From ea1505feced6feb373b9394e18fb520d595c6d0e Mon Sep 17 00:00:00 2001 From: Tim Wood Date: Fri, 16 May 2014 13:19:13 -0700 Subject: [PATCH] Switch to a flat data format. Use zdump to generate data set as well as unit tests. Move timezone specific unit tests to tests/zones. Change timezone tests to use a common helper method. --- .gitmodules | 4 +- .jshintrc | 2 +- Gruntfile.js | 3 +- data/packed/latest.json | 411 ++++ data/source | 1 + index.js | 2 +- moment-timezone.js | 467 +---- tasks/build-changes.js | 19 + tasks/build-tests.js | 20 + tasks/helpers/all-zones.js | 33 + tasks/helpers/change.js | 41 + tasks/helpers/to-base-60.js | 22 + tasks/helpers/year.js | 36 + tasks/helpers/zdump.js | 19 + tasks/{ => helpers}/zone-names.js | 2 +- tasks/helpers/zone.js | 145 ++ tasks/zdump.js | 216 --- tests/africa/abidjan.js | 14 - tests/africa/accra.js | 112 -- tests/africa/addis_ababa.js | 14 - tests/africa/algiers.js | 256 --- tests/africa/asmara.js | 14 - tests/africa/bamako.js | 34 - tests/africa/bangui.js | 14 - tests/africa/banjul.js | 34 - tests/africa/bissau.js | 24 - tests/africa/blantyre.js | 14 - tests/africa/brazzaville.js | 14 - tests/africa/bujumbura.js | 6 - tests/africa/cairo.js | 852 --------- tests/africa/casablanca.js | 636 ------- tests/africa/ceuta.js | 882 --------- tests/africa/conakry.js | 34 - tests/africa/dakar.js | 24 - tests/africa/dar_es_salaam.js | 34 - tests/africa/djibouti.js | 14 - tests/africa/douala.js | 14 - tests/africa/el_aaiun.js | 24 - tests/africa/freetown.js | 214 --- tests/africa/gaborone.js | 34 - tests/africa/harare.js | 14 - tests/africa/johannesburg.js | 48 - tests/africa/juba.js | 248 --- tests/africa/kampala.js | 44 - tests/africa/khartoum.js | 248 --- tests/africa/kigali.js | 14 - tests/africa/kinshasa.js | 6 - tests/africa/lagos.js | 14 - tests/africa/libreville.js | 14 - tests/africa/lome.js | 6 - tests/africa/luanda.js | 14 - tests/africa/lubumbashi.js | 6 - tests/africa/lusaka.js | 14 - tests/africa/malabo.js | 24 - tests/africa/maputo.js | 14 - tests/africa/maseru.js | 34 - tests/africa/mbabane.js | 14 - tests/africa/mogadishu.js | 24 - tests/africa/monrovia.js | 24 - tests/africa/nairobi.js | 44 - tests/africa/ndjamena.js | 34 - tests/africa/niamey.js | 40 - tests/africa/nouakchott.js | 34 - tests/africa/ouagadougou.js | 14 - tests/africa/porto-novo.js | 24 - tests/africa/sao_tome.js | 14 - tests/africa/tripoli.js | 582 ------ tests/africa/tunis.js | 238 --- tests/africa/windhoek.js | 660 ------- tests/america/adak.js | 1008 ---------- tests/america/anchorage.js | 1008 ---------- tests/america/anguilla.js | 14 - tests/america/antigua.js | 24 - tests/america/araguaina.js | 740 -------- tests/america/argentina/buenos_aires.js | 448 ----- tests/america/argentina/catamarca.js | 448 ----- tests/america/argentina/cordoba.js | 448 ----- tests/america/argentina/jujuy.js | 434 ----- tests/america/argentina/la_rioja.js | 452 ----- tests/america/argentina/mendoza.js | 448 ----- tests/america/argentina/rio_gallegos.js | 448 ----- tests/america/argentina/salta.js | 434 ----- tests/america/argentina/san_juan.js | 452 ----- tests/america/argentina/san_luis.js | 446 ----- tests/america/argentina/tucuman.js | 462 ----- tests/america/argentina/ushuaia.js | 448 ----- tests/america/aruba.js | 24 - tests/america/asuncion.js | 912 --------- tests/america/atikokan.js | 52 - tests/america/bahia.js | 464 ----- tests/america/bahia_banderas.js | 676 ------- tests/america/barbados.js | 80 - tests/america/belem.js | 234 --- tests/america/belize.js | 410 ---- tests/america/blanc-sablon.js | 42 - tests/america/boa_vista.js | 262 --- tests/america/bogota.js | 34 - tests/america/boise.js | 1060 ----------- tests/america/cambridge_bay.js | 874 --------- tests/america/campo_grande.js | 924 --------- tests/america/cancun.js | 616 ------ tests/america/caracas.js | 34 - tests/america/cayenne.js | 24 - tests/america/cayman.js | 14 - tests/america/chicago.js | 1652 ---------------- tests/america/chihuahua.js | 646 ------- tests/america/costa_rica.js | 70 - tests/america/creston.js | 24 - tests/america/cuiaba.js | 916 --------- tests/america/curacao.js | 24 - tests/america/danmarkshavn.js | 248 --- tests/america/dawson.js | 892 --------- tests/america/dawson_creek.js | 406 ---- tests/america/denver.js | 1106 ----------- tests/america/detroit.js | 986 ---------- tests/america/dominica.js | 14 - tests/america/edmonton.js | 1088 ----------- tests/america/eirunepe.js | 264 --- tests/america/el_salvador.js | 42 - tests/america/fortaleza.js | 310 --- tests/america/glace_bay.js | 990 ---------- tests/america/godthab.js | 826 -------- tests/america/goose_bay.js | 1428 -------------- tests/america/grand_turk.js | 840 -------- tests/america/grenada.js | 14 - tests/america/guadeloupe.js | 14 - tests/america/guatemala.js | 76 - tests/america/guayaquil.js | 14 - tests/america/guyana.js | 44 - tests/america/halifax.js | 1606 ---------------- tests/america/havana.js | 1098 ----------- tests/america/hermosillo.js | 130 -- tests/america/indiana/indianapolis.js | 702 ------- tests/america/indiana/knox.js | 1084 ----------- tests/america/indiana/marengo.js | 724 ------- tests/america/indiana/petersburg.js | 818 -------- tests/america/indiana/tell_city.js | 710 ------- tests/america/indiana/vevay.js | 570 ------ tests/america/indiana/vincennes.js | 710 ------- tests/america/indiana/winamac.js | 752 -------- tests/america/inuvik.js | 856 --------- tests/america/iqaluit.js | 854 --------- tests/america/jamaica.js | 154 -- tests/america/juneau.js | 998 ---------- tests/america/kentucky/louisville.js | 1252 ------------ tests/america/kentucky/monticello.js | 1036 ---------- tests/america/la_paz.js | 24 - tests/america/lima.js | 112 -- tests/america/los_angeles.js | 1308 ------------- tests/america/maceio.js | 330 ---- tests/america/managua.js | 124 -- tests/america/manaus.js | 254 --- tests/america/martinique.js | 28 - tests/america/matamoros.js | 616 ------ tests/america/mazatlan.js | 676 ------- tests/america/menominee.js | 1004 ---------- tests/america/merida.js | 622 ------ tests/america/metlakatla.js | 238 --- tests/america/mexico_city.js | 714 ------- tests/america/miquelon.js | 738 ------- tests/america/moncton.js | 1452 -------------- tests/america/monterrey.js | 616 ------ tests/america/montevideo.js | 960 ---------- tests/america/montreal.js | 1634 ---------------- tests/america/montserrat.js | 14 - tests/america/nassau.js | 1050 ---------- tests/america/new_york.js | 1652 ---------------- tests/america/nipigon.js | 948 --------- tests/america/nome.js | 1008 ---------- tests/america/noronha.js | 310 --- tests/america/north_dakota/beulah.js | 1050 ---------- tests/america/north_dakota/center.js | 1050 ---------- tests/america/north_dakota/new_salem.js | 1050 ---------- tests/america/ojinaga.js | 646 ------- tests/america/panama.js | 14 - tests/america/pangnirtung.js | 870 --------- tests/america/paramaribo.js | 54 - tests/america/phoenix.js | 74 - tests/america/port-au-prince.js | 616 ------ tests/america/port_of_spain.js | 14 - tests/america/porto_velho.js | 234 --- tests/america/puerto_rico.js | 28 - tests/america/rainy_river.js | 948 --------- tests/america/rankin_inlet.js | 846 --------- tests/america/recife.js | 310 --- tests/america/regina.js | 384 ---- tests/america/resolute.js | 840 -------- tests/america/rio_branco.js | 244 --- tests/america/santa_isabel.js | 1068 ----------- tests/america/santarem.js | 244 --- tests/america/santiago.js | 1134 ----------- tests/america/santo_domingo.js | 128 -- tests/america/sao_paulo.js | 924 --------- tests/america/scoresbysund.js | 826 -------- tests/america/sitka.js | 998 ---------- tests/america/st_johns.js | 1670 ---------------- tests/america/st_kitts.js | 14 - tests/america/st_lucia.js | 14 - tests/america/st_thomas.js | 14 - tests/america/st_vincent.js | 14 - tests/america/swift_current.js | 174 -- tests/america/tegucigalpa.js | 56 - tests/america/thule.js | 672 ------- tests/america/thunder_bay.js | 976 ---------- tests/america/tijuana.js | 1068 ----------- tests/america/toronto.js | 1634 ---------------- tests/america/tortola.js | 14 - tests/america/vancouver.js | 1330 ------------- tests/america/whitehorse.js | 892 --------- tests/america/winnipeg.js | 1302 ------------- tests/america/yakutat.js | 998 ---------- tests/america/yellowknife.js | 870 --------- tests/antarctica/casey.js | 60 - tests/antarctica/davis.js | 74 - tests/antarctica/dumontdurville.js | 40 - tests/antarctica/macquarie.js | 652 ------- tests/antarctica/mawson.js | 24 - tests/antarctica/mcmurdo.js | 912 --------- tests/antarctica/palmer.js | 882 --------- tests/antarctica/rothera.js | 14 - tests/antarctica/syowa.js | 14 - tests/antarctica/vostok.js | 14 - tests/asia/aden.js | 14 - tests/asia/almaty.js | 346 ---- tests/asia/amman.js | 832 -------- tests/asia/anadyr.js | 458 ----- tests/asia/aqtau.js | 372 ---- tests/asia/aqtobe.js | 356 ---- tests/asia/ashgabat.js | 192 -- tests/asia/baghdad.js | 378 ---- tests/asia/bahrain.js | 24 - tests/asia/baku.js | 784 -------- tests/asia/bangkok.js | 14 - tests/asia/beirut.js | 984 ---------- tests/asia/bishkek.js | 374 ---- tests/asia/brunei.js | 24 - tests/asia/choibalsan.js | 342 ---- tests/asia/chongqing.js | 108 -- tests/asia/colombo.js | 62 - tests/asia/damascus.js | 1064 ----------- tests/asia/dhaka.js | 62 - tests/asia/dili.js | 54 - tests/asia/dubai.js | 14 - tests/asia/dushanbe.js | 178 -- tests/asia/gaza.js | 1008 ---------- tests/asia/harbin.js | 138 -- tests/asia/hebron.js | 1016 ---------- tests/asia/ho_chi_minh.js | 44 - tests/asia/hong_kong.js | 490 ----- tests/asia/hovd.js | 332 ---- tests/asia/irkutsk.js | 458 ----- tests/asia/jakarta.js | 74 - tests/asia/jayapura.js | 34 - tests/asia/jerusalem.js | 1004 ---------- tests/asia/kabul.js | 14 - tests/asia/kamchatka.js | 458 ----- tests/asia/karachi.js | 96 - tests/asia/kashgar.js | 118 -- tests/asia/kathmandu.js | 24 - tests/asia/khandyga.js | 466 ----- tests/asia/kolkata.js | 38 - tests/asia/krasnoyarsk.js | 458 ----- tests/asia/kuala_lumpur.js | 74 - tests/asia/kuching.js | 152 -- tests/asia/kuwait.js | 14 - tests/asia/macau.js | 304 --- tests/asia/magadan.js | 458 ----- tests/asia/makassar.js | 44 - tests/asia/manila.js | 72 - tests/asia/muscat.js | 14 - tests/asia/nicosia.js | 896 --------- tests/asia/novokuznetsk.js | 458 ----- tests/asia/novosibirsk.js | 462 ----- tests/asia/omsk.js | 458 ----- tests/asia/oral.js | 366 ---- tests/asia/phnom_penh.js | 44 - tests/asia/pontianak.js | 84 - tests/asia/pyongyang.js | 54 - tests/asia/qatar.js | 24 - tests/asia/qyzylorda.js | 360 ---- tests/asia/rangoon.js | 34 - tests/asia/riyadh.js | 14 - tests/asia/sakhalin.js | 468 ----- tests/asia/samarkand.js | 182 -- tests/asia/seoul.js | 106 -- tests/asia/shanghai.js | 126 -- tests/asia/singapore.js | 84 - tests/asia/taipei.js | 284 --- tests/asia/tashkent.js | 182 -- tests/asia/tbilisi.js | 370 ---- tests/asia/tehran.js | 710 ------- tests/asia/thimphu.js | 24 - tests/asia/tokyo.js | 70 - tests/asia/ulaanbaatar.js | 332 ---- tests/asia/urumqi.js | 108 -- tests/asia/ust-nera.js | 462 ----- tests/asia/vientiane.js | 44 - tests/asia/vladivostok.js | 458 ----- tests/asia/yakutsk.js | 458 ----- tests/asia/yekaterinburg.js | 458 ----- tests/asia/yerevan.js | 448 ----- tests/atlantic/azores.js | 1526 --------------- tests/atlantic/bermuda.js | 910 --------- tests/atlantic/canary.js | 836 -------- tests/atlantic/cape_verde.js | 44 - tests/atlantic/faroe.js | 812 -------- tests/atlantic/madeira.js | 1526 --------------- tests/atlantic/reykjavik.js | 458 ----- tests/atlantic/south_georgia.js | 6 - tests/atlantic/st_helena.js | 14 - tests/atlantic/stanley.js | 496 ----- tests/australia/adelaide.js | 1006 ---------- tests/australia/brisbane.js | 140 -- tests/australia/broken_hill.js | 1006 ---------- tests/australia/currie.js | 1006 ---------- tests/australia/darwin.js | 72 - tests/australia/eucla.js | 166 -- tests/australia/hobart.js | 1062 ----------- tests/australia/lindeman.js | 168 -- tests/australia/lord_howe.js | 802 -------- tests/australia/melbourne.js | 1006 ---------- tests/australia/perth.js | 166 -- tests/australia/sydney.js | 1006 ---------- tests/cet.js | 962 ---------- tests/cst6cdt.js | 1050 ---------- tests/eet.js | 858 --------- tests/est.js | 6 - tests/est5edt.js | 1050 ---------- tests/europe/amsterdam.js | 1260 ------------ tests/europe/andorra.js | 756 -------- tests/europe/athens.js | 972 ---------- tests/europe/belgrade.js | 836 -------- tests/europe/berlin.js | 992 ---------- tests/europe/brussels.js | 1288 ------------- tests/europe/bucharest.js | 952 ---------- tests/europe/budapest.js | 1074 ----------- tests/europe/chisinau.js | 988 ---------- tests/europe/copenhagen.js | 934 --------- tests/europe/dublin.js | 1602 ---------------- tests/europe/gibraltar.js | 1380 -------------- tests/europe/helsinki.js | 826 -------- tests/europe/istanbul.js | 1200 ------------ tests/europe/kaliningrad.js | 546 ------ tests/europe/kiev.js | 842 -------- tests/europe/lisbon.js | 1536 --------------- tests/europe/london.js | 1688 ----------------- tests/europe/luxembourg.js | 1288 ------------- tests/europe/madrid.js | 1148 ----------- tests/europe/malta.js | 1186 ------------ tests/europe/minsk.js | 488 ----- tests/europe/monaco.js | 1298 ------------- tests/europe/moscow.js | 536 ------ tests/europe/oslo.js | 990 ---------- tests/europe/paris.js | 1288 ------------- tests/europe/prague.js | 990 ---------- tests/europe/riga.js | 888 --------- tests/europe/rome.js | 1186 ------------ tests/europe/samara.js | 468 ----- tests/europe/simferopol.js | 856 --------- tests/europe/sofia.js | 878 --------- tests/europe/stockholm.js | 830 -------- tests/europe/tallinn.js | 870 --------- tests/europe/tirane.js | 944 --------- tests/europe/uzhgorod.js | 852 --------- tests/europe/vaduz.js | 802 -------- tests/europe/vienna.js | 976 ---------- tests/europe/vilnius.js | 852 --------- tests/europe/volgograd.js | 470 ----- tests/europe/warsaw.js | 1164 ------------ tests/europe/zaporozhye.js | 860 --------- tests/europe/zurich.js | 830 -------- tests/helpers/helpers.js | 32 + tests/hst.js | 6 - tests/indian/antananarivo.js | 28 - tests/indian/chagos.js | 24 - tests/indian/christmas.js | 6 - tests/indian/cocos.js | 6 - tests/indian/comoro.js | 14 - tests/indian/kerguelen.js | 20 - tests/indian/mahe.js | 14 - tests/indian/maldives.js | 14 - tests/indian/mauritius.js | 54 - tests/indian/mayotte.js | 14 - tests/indian/reunion.js | 14 - tests/links/links.js | 20 +- tests/met.js | 962 ---------- tests/mst.js | 6 - tests/mst7mdt.js | 1050 ---------- tests/pacific/apia.js | 416 ---- tests/pacific/auckland.js | 1098 ----------- tests/pacific/chatham.js | 906 --------- tests/pacific/chuuk.js | 6 - tests/pacific/easter.js | 1014 ---------- tests/pacific/efate.js | 160 -- tests/pacific/enderbury.js | 24 - tests/pacific/fakaofo.js | 14 - tests/pacific/fiji.js | 450 ----- tests/pacific/funafuti.js | 6 - tests/pacific/galapagos.js | 24 - tests/pacific/gambier.js | 14 - tests/pacific/guadalcanal.js | 14 - tests/pacific/guam.js | 14 - tests/pacific/honolulu.js | 48 - tests/pacific/johnston.js | 6 - tests/pacific/kiritimati.js | 24 - tests/pacific/kosrae.js | 24 - tests/pacific/kwajalein.js | 24 - tests/pacific/majuro.js | 14 - tests/pacific/marquesas.js | 14 - tests/pacific/midway.js | 38 - tests/pacific/nauru.js | 44 - tests/pacific/niue.js | 24 - tests/pacific/norfolk.js | 14 - tests/pacific/noumea.js | 68 - tests/pacific/pago_pago.js | 44 - tests/pacific/palau.js | 6 - tests/pacific/pitcairn.js | 14 - tests/pacific/pohnpei.js | 6 - tests/pacific/port_moresby.js | 6 - tests/pacific/rarotonga.js | 192 -- tests/pacific/saipan.js | 24 - tests/pacific/tahiti.js | 14 - tests/pacific/tarawa.js | 6 - tests/pacific/tongatapu.js | 62 - tests/pacific/wake.js | 6 - tests/pacific/wallis.js | 6 - tests/pst8pdt.js | 1050 ---------- tests/wet.js | 858 --------- tests/zones/africa/abidjan.js | 10 + tests/zones/africa/accra.js | 59 + tests/zones/africa/addis_ababa.js | 10 + tests/zones/africa/algiers.js | 131 ++ tests/zones/africa/asmara.js | 10 + tests/zones/africa/bamako.js | 20 + tests/zones/africa/bangui.js | 10 + tests/zones/africa/banjul.js | 20 + tests/zones/africa/bissau.js | 15 + tests/zones/africa/blantyre.js | 10 + tests/zones/africa/brazzaville.js | 10 + tests/zones/africa/bujumbura.js | 7 + tests/zones/africa/cairo.js | 429 +++++ tests/zones/africa/casablanca.js | 333 ++++ tests/zones/africa/ceuta.js | 444 +++++ tests/zones/africa/conakry.js | 20 + tests/zones/africa/dakar.js | 15 + tests/zones/africa/dar_es_salaam.js | 20 + tests/zones/africa/djibouti.js | 10 + tests/zones/africa/douala.js | 10 + tests/zones/africa/el_aaiun.js | 287 +++ tests/zones/africa/freetown.js | 110 ++ tests/zones/africa/gaborone.js | 20 + tests/zones/africa/harare.js | 10 + tests/zones/africa/johannesburg.js | 27 + tests/zones/africa/juba.js | 127 ++ tests/zones/africa/kampala.js | 25 + tests/zones/africa/khartoum.js | 127 ++ tests/zones/africa/kigali.js | 10 + tests/zones/africa/kinshasa.js | 7 + tests/zones/africa/lagos.js | 10 + tests/zones/africa/libreville.js | 10 + tests/zones/africa/lome.js | 7 + tests/zones/africa/luanda.js | 10 + tests/zones/africa/lubumbashi.js | 7 + tests/zones/africa/lusaka.js | 10 + tests/zones/africa/malabo.js | 15 + tests/zones/africa/maputo.js | 10 + tests/zones/africa/maseru.js | 20 + tests/zones/africa/mbabane.js | 10 + tests/zones/africa/mogadishu.js | 15 + tests/zones/africa/monrovia.js | 15 + tests/zones/africa/nairobi.js | 25 + tests/zones/africa/ndjamena.js | 20 + tests/zones/africa/niamey.js | 23 + tests/zones/africa/nouakchott.js | 20 + tests/zones/africa/ouagadougou.js | 10 + tests/zones/africa/porto-novo.js | 15 + tests/zones/africa/sao_tome.js | 10 + tests/zones/africa/tripoli.js | 126 ++ tests/zones/africa/tunis.js | 122 ++ tests/zones/africa/windhoek.js | 333 ++++ tests/zones/america/adak.js | 507 +++++ tests/zones/america/anchorage.js | 507 +++++ tests/zones/america/anguilla.js | 10 + tests/zones/america/antigua.js | 15 + tests/zones/america/araguaina.js | 203 ++ tests/zones/america/argentina/buenos_aires.js | 227 +++ tests/zones/america/argentina/catamarca.js | 227 +++ tests/zones/america/argentina/cordoba.js | 227 +++ tests/zones/america/argentina/jujuy.js | 220 +++ tests/zones/america/argentina/la_rioja.js | 229 +++ tests/zones/america/argentina/mendoza.js | 227 +++ tests/zones/america/argentina/rio_gallegos.js | 227 +++ tests/zones/america/argentina/salta.js | 220 +++ tests/zones/america/argentina/san_juan.js | 229 +++ tests/zones/america/argentina/san_luis.js | 226 +++ tests/zones/america/argentina/tucuman.js | 234 +++ tests/zones/america/argentina/ushuaia.js | 227 +++ tests/zones/america/aruba.js | 15 + tests/zones/america/asuncion.js | 459 +++++ tests/zones/america/atikokan.js | 29 + tests/zones/america/bahia.js | 235 +++ tests/zones/america/bahia_banderas.js | 341 ++++ tests/zones/america/barbados.js | 43 + tests/zones/america/belem.js | 120 ++ tests/zones/america/belize.js | 208 ++ tests/zones/america/blanc-sablon.js | 24 + tests/zones/america/boa_vista.js | 134 ++ tests/zones/america/bogota.js | 20 + tests/zones/america/boise.js | 533 ++++++ tests/zones/america/cambridge_bay.js | 440 +++++ tests/zones/america/campo_grande.js | 465 +++++ tests/zones/america/cancun.js | 311 +++ tests/zones/america/caracas.js | 20 + tests/zones/america/cayenne.js | 15 + tests/zones/america/cayman.js | 10 + tests/zones/america/chicago.js | 829 ++++++++ tests/zones/america/chihuahua.js | 326 ++++ tests/zones/america/costa_rica.js | 38 + tests/zones/america/creston.js | 15 + tests/zones/america/cuiaba.js | 461 +++++ tests/zones/america/curacao.js | 15 + tests/zones/america/danmarkshavn.js | 127 ++ tests/zones/america/dawson.js | 449 +++++ tests/zones/america/dawson_creek.js | 206 ++ tests/zones/america/denver.js | 556 ++++++ tests/zones/america/detroit.js | 496 +++++ tests/zones/america/dominica.js | 10 + tests/zones/america/edmonton.js | 547 ++++++ tests/zones/america/eirunepe.js | 140 ++ tests/zones/america/el_salvador.js | 24 + tests/zones/america/fortaleza.js | 158 ++ tests/zones/america/glace_bay.js | 498 +++++ tests/zones/america/godthab.js | 416 ++++ tests/zones/america/goose_bay.js | 717 +++++++ tests/zones/america/grand_turk.js | 423 +++++ tests/zones/america/grenada.js | 10 + tests/zones/america/guadeloupe.js | 10 + tests/zones/america/guatemala.js | 41 + tests/zones/america/guayaquil.js | 10 + tests/zones/america/guyana.js | 25 + tests/zones/america/halifax.js | 806 ++++++++ tests/zones/america/havana.js | 552 ++++++ tests/zones/america/hermosillo.js | 68 + tests/zones/america/indiana/indianapolis.js | 354 ++++ tests/zones/america/indiana/knox.js | 545 ++++++ tests/zones/america/indiana/marengo.js | 365 ++++ tests/zones/america/indiana/petersburg.js | 412 ++++ tests/zones/america/indiana/tell_city.js | 358 ++++ tests/zones/america/indiana/vevay.js | 288 +++ tests/zones/america/indiana/vincennes.js | 358 ++++ tests/zones/america/indiana/winamac.js | 379 ++++ tests/zones/america/inuvik.js | 431 +++++ tests/zones/america/iqaluit.js | 430 +++++ tests/zones/america/jamaica.js | 80 + tests/zones/america/juneau.js | 502 +++++ tests/zones/america/kentucky/louisville.js | 629 ++++++ tests/zones/america/kentucky/monticello.js | 521 +++++ tests/zones/america/la_paz.js | 15 + tests/zones/america/lima.js | 59 + tests/zones/america/los_angeles.js | 657 +++++++ tests/zones/america/maceio.js | 168 ++ tests/zones/america/managua.js | 65 + tests/zones/america/manaus.js | 130 ++ tests/zones/america/martinique.js | 17 + tests/zones/america/matamoros.js | 311 +++ tests/zones/america/mazatlan.js | 341 ++++ tests/zones/america/menominee.js | 505 +++++ tests/zones/america/merida.js | 314 +++ tests/zones/america/metlakatla.js | 122 ++ tests/zones/america/mexico_city.js | 360 ++++ tests/zones/america/miquelon.js | 372 ++++ tests/zones/america/moncton.js | 729 +++++++ tests/zones/america/monterrey.js | 311 +++ tests/zones/america/montevideo.js | 483 +++++ tests/zones/america/montreal.js | 820 ++++++++ tests/zones/america/montserrat.js | 10 + tests/zones/america/nassau.js | 528 ++++++ tests/zones/america/new_york.js | 829 ++++++++ tests/zones/america/nipigon.js | 477 +++++ tests/zones/america/nome.js | 507 +++++ tests/zones/america/noronha.js | 158 ++ tests/zones/america/north_dakota/beulah.js | 528 ++++++ tests/zones/america/north_dakota/center.js | 528 ++++++ tests/zones/america/north_dakota/new_salem.js | 528 ++++++ tests/zones/america/ojinaga.js | 326 ++++ tests/zones/america/panama.js | 10 + tests/zones/america/pangnirtung.js | 438 +++++ tests/zones/america/paramaribo.js | 30 + tests/zones/america/phoenix.js | 40 + tests/zones/america/port-au-prince.js | 311 +++ tests/zones/america/port_of_spain.js | 10 + tests/zones/america/porto_velho.js | 120 ++ tests/zones/america/puerto_rico.js | 17 + tests/zones/america/rainy_river.js | 477 +++++ tests/zones/america/rankin_inlet.js | 426 +++++ tests/zones/america/recife.js | 158 ++ tests/zones/america/regina.js | 195 ++ tests/zones/america/resolute.js | 423 +++++ tests/zones/america/rio_branco.js | 130 ++ tests/zones/america/santa_isabel.js | 537 ++++++ tests/zones/america/santarem.js | 125 ++ tests/zones/america/santiago.js | 570 ++++++ tests/zones/america/santo_domingo.js | 67 + tests/zones/america/sao_paulo.js | 465 +++++ tests/zones/america/scoresbysund.js | 416 ++++ tests/zones/america/sitka.js | 502 +++++ tests/zones/america/st_johns.js | 838 ++++++++ tests/zones/america/st_kitts.js | 10 + tests/zones/america/st_lucia.js | 10 + tests/zones/america/st_thomas.js | 10 + tests/zones/america/st_vincent.js | 10 + tests/zones/america/swift_current.js | 90 + tests/zones/america/tegucigalpa.js | 31 + tests/zones/america/thule.js | 339 ++++ tests/zones/america/thunder_bay.js | 491 +++++ tests/zones/america/tijuana.js | 537 ++++++ tests/zones/america/toronto.js | 820 ++++++++ tests/zones/america/tortola.js | 10 + tests/zones/america/vancouver.js | 668 +++++++ tests/zones/america/whitehorse.js | 449 +++++ tests/zones/america/winnipeg.js | 654 +++++++ tests/zones/america/yakutat.js | 502 +++++ tests/zones/america/yellowknife.js | 438 +++++ tests/zones/antarctica/casey.js | 33 + tests/zones/antarctica/davis.js | 40 + tests/zones/antarctica/dumontdurville.js | 23 + tests/zones/antarctica/macquarie.js | 329 ++++ tests/zones/antarctica/mawson.js | 15 + tests/zones/antarctica/mcmurdo.js | 552 ++++++ tests/zones/antarctica/palmer.js | 444 +++++ tests/zones/antarctica/rothera.js | 10 + tests/zones/antarctica/syowa.js | 10 + tests/zones/antarctica/vostok.js | 10 + tests/zones/asia/aden.js | 10 + tests/zones/asia/almaty.js | 176 ++ tests/zones/asia/amman.js | 419 ++++ tests/zones/asia/anadyr.js | 232 +++ tests/zones/asia/aqtau.js | 189 ++ tests/zones/asia/aqtobe.js | 181 ++ tests/zones/asia/ashgabat.js | 99 + tests/zones/asia/baghdad.js | 192 ++ tests/zones/asia/bahrain.js | 15 + tests/zones/asia/baku.js | 395 ++++ tests/zones/asia/bangkok.js | 10 + tests/zones/asia/beirut.js | 495 +++++ tests/zones/asia/bishkek.js | 190 ++ tests/zones/asia/brunei.js | 15 + tests/zones/asia/choibalsan.js | 174 ++ tests/zones/asia/chongqing.js | 57 + tests/zones/asia/colombo.js | 34 + tests/zones/asia/damascus.js | 535 ++++++ tests/zones/asia/dhaka.js | 34 + tests/zones/asia/dili.js | 30 + tests/zones/asia/dubai.js | 10 + tests/zones/asia/dushanbe.js | 92 + tests/zones/asia/gaza.js | 507 +++++ tests/zones/asia/harbin.js | 72 + tests/zones/asia/hebron.js | 511 +++++ tests/zones/asia/ho_chi_minh.js | 25 + tests/zones/asia/hong_kong.js | 248 +++ tests/zones/asia/hovd.js | 169 ++ tests/zones/asia/irkutsk.js | 232 +++ tests/zones/asia/jakarta.js | 40 + tests/zones/asia/jayapura.js | 20 + tests/zones/asia/jerusalem.js | 505 +++++ tests/zones/asia/kabul.js | 10 + tests/zones/asia/kamchatka.js | 232 +++ tests/zones/asia/karachi.js | 51 + tests/zones/asia/kashgar.js | 62 + tests/zones/asia/kathmandu.js | 15 + tests/zones/asia/khandyga.js | 236 +++ tests/zones/asia/kolkata.js | 22 + tests/zones/asia/krasnoyarsk.js | 232 +++ tests/zones/asia/kuala_lumpur.js | 40 + tests/zones/asia/kuching.js | 79 + tests/zones/asia/kuwait.js | 10 + tests/zones/asia/macau.js | 155 ++ tests/zones/asia/magadan.js | 232 +++ tests/zones/asia/makassar.js | 25 + tests/zones/asia/manila.js | 39 + tests/zones/asia/muscat.js | 10 + tests/zones/asia/nicosia.js | 451 +++++ tests/zones/asia/novokuznetsk.js | 232 +++ tests/zones/asia/novosibirsk.js | 234 +++ tests/zones/asia/omsk.js | 232 +++ tests/zones/asia/oral.js | 186 ++ tests/zones/asia/phnom_penh.js | 25 + tests/zones/asia/pontianak.js | 45 + tests/zones/asia/pyongyang.js | 30 + tests/zones/asia/qatar.js | 15 + tests/zones/asia/qyzylorda.js | 183 ++ tests/zones/asia/rangoon.js | 20 + tests/zones/asia/riyadh.js | 10 + tests/zones/asia/sakhalin.js | 237 +++ tests/zones/asia/samarkand.js | 94 + tests/zones/asia/seoul.js | 56 + tests/zones/asia/shanghai.js | 66 + tests/zones/asia/singapore.js | 45 + tests/zones/asia/taipei.js | 145 ++ tests/zones/asia/tashkent.js | 94 + tests/zones/asia/tbilisi.js | 188 ++ tests/zones/asia/tehran.js | 358 ++++ tests/zones/asia/thimphu.js | 15 + tests/zones/asia/tokyo.js | 38 + tests/zones/asia/ulaanbaatar.js | 169 ++ tests/zones/asia/urumqi.js | 57 + tests/zones/asia/ust-nera.js | 234 +++ tests/zones/asia/vientiane.js | 25 + tests/zones/asia/vladivostok.js | 232 +++ tests/zones/asia/yakutsk.js | 232 +++ tests/zones/asia/yekaterinburg.js | 232 +++ tests/zones/asia/yerevan.js | 227 +++ tests/zones/atlantic/azores.js | 766 ++++++++ tests/zones/atlantic/bermuda.js | 458 +++++ tests/zones/atlantic/canary.js | 421 ++++ tests/zones/atlantic/cape_verde.js | 25 + tests/zones/atlantic/faroe.js | 409 ++++ tests/zones/atlantic/madeira.js | 766 ++++++++ tests/zones/atlantic/reykjavik.js | 232 +++ tests/zones/atlantic/south_georgia.js | 7 + tests/zones/atlantic/st_helena.js | 10 + tests/zones/atlantic/stanley.js | 251 +++ tests/zones/australia/adelaide.js | 506 +++++ tests/zones/australia/brisbane.js | 73 + tests/zones/australia/broken_hill.js | 506 +++++ tests/zones/australia/currie.js | 506 +++++ tests/zones/australia/darwin.js | 39 + tests/zones/australia/eucla.js | 86 + tests/zones/australia/hobart.js | 534 ++++++ tests/zones/australia/lindeman.js | 87 + tests/zones/australia/lord_howe.js | 404 ++++ tests/zones/australia/melbourne.js | 506 +++++ tests/zones/australia/perth.js | 86 + tests/zones/australia/sydney.js | 506 +++++ tests/zones/cet.js | 484 +++++ tests/zones/cst6cdt.js | 528 ++++++ tests/zones/eet.js | 432 +++++ tests/zones/est.js | 7 + tests/zones/est5edt.js | 528 ++++++ tests/zones/europe/amsterdam.js | 633 +++++++ tests/zones/europe/andorra.js | 381 ++++ tests/zones/europe/athens.js | 489 +++++ tests/zones/europe/belgrade.js | 421 ++++ tests/zones/europe/berlin.js | 499 +++++ tests/zones/europe/brussels.js | 647 +++++++ tests/zones/europe/bucharest.js | 479 +++++ tests/zones/europe/budapest.js | 540 ++++++ tests/zones/europe/chisinau.js | 497 +++++ tests/zones/europe/copenhagen.js | 470 +++++ tests/zones/europe/dublin.js | 804 ++++++++ tests/zones/europe/gibraltar.js | 693 +++++++ tests/zones/europe/helsinki.js | 416 ++++ tests/zones/europe/istanbul.js | 603 ++++++ tests/zones/europe/kaliningrad.js | 276 +++ tests/zones/europe/kiev.js | 431 +++++ tests/zones/europe/lisbon.js | 771 ++++++++ tests/zones/europe/london.js | 847 +++++++++ tests/zones/europe/luxembourg.js | 647 +++++++ tests/zones/europe/madrid.js | 577 ++++++ tests/zones/europe/malta.js | 596 ++++++ tests/zones/europe/minsk.js | 247 +++ tests/zones/europe/monaco.js | 652 +++++++ tests/zones/europe/moscow.js | 271 +++ tests/zones/europe/oslo.js | 498 +++++ tests/zones/europe/paris.js | 647 +++++++ tests/zones/europe/prague.js | 498 +++++ tests/zones/europe/riga.js | 447 +++++ tests/zones/europe/rome.js | 596 ++++++ tests/zones/europe/samara.js | 237 +++ tests/zones/europe/simferopol.js | 431 +++++ tests/zones/europe/sofia.js | 442 +++++ tests/zones/europe/stockholm.js | 418 ++++ tests/zones/europe/tallinn.js | 438 +++++ tests/zones/europe/tirane.js | 475 +++++ tests/zones/europe/uzhgorod.js | 429 +++++ tests/zones/europe/vaduz.js | 418 ++++ tests/zones/europe/vienna.js | 491 +++++ tests/zones/europe/vilnius.js | 429 +++++ tests/zones/europe/volgograd.js | 238 +++ tests/zones/europe/warsaw.js | 585 ++++++ tests/zones/europe/zaporozhye.js | 433 +++++ tests/zones/europe/zurich.js | 418 ++++ tests/zones/hst.js | 7 + tests/zones/indian/antananarivo.js | 17 + tests/zones/indian/chagos.js | 15 + tests/zones/indian/christmas.js | 7 + tests/zones/indian/cocos.js | 7 + tests/zones/indian/comoro.js | 10 + tests/zones/indian/kerguelen.js | 13 + tests/zones/indian/mahe.js | 10 + tests/zones/indian/maldives.js | 10 + tests/zones/indian/mauritius.js | 30 + tests/zones/indian/mayotte.js | 10 + tests/zones/indian/reunion.js | 10 + tests/zones/met.js | 484 +++++ tests/zones/mst.js | 7 + tests/zones/mst7mdt.js | 528 ++++++ tests/zones/pacific/apia.js | 211 +++ tests/zones/pacific/auckland.js | 552 ++++++ tests/zones/pacific/chatham.js | 456 +++++ tests/zones/pacific/chuuk.js | 7 + tests/zones/pacific/easter.js | 510 +++++ tests/zones/pacific/efate.js | 83 + tests/zones/pacific/enderbury.js | 15 + tests/zones/pacific/fakaofo.js | 10 + tests/zones/pacific/fiji.js | 228 +++ tests/zones/pacific/funafuti.js | 7 + tests/zones/pacific/galapagos.js | 15 + tests/zones/pacific/gambier.js | 10 + tests/zones/pacific/guadalcanal.js | 10 + tests/zones/pacific/guam.js | 10 + tests/zones/pacific/honolulu.js | 27 + tests/zones/pacific/johnston.js | 27 + tests/zones/pacific/kiritimati.js | 15 + tests/zones/pacific/kosrae.js | 15 + tests/zones/pacific/kwajalein.js | 15 + tests/zones/pacific/majuro.js | 10 + tests/zones/pacific/marquesas.js | 10 + tests/zones/pacific/midway.js | 22 + tests/zones/pacific/nauru.js | 25 + tests/zones/pacific/niue.js | 15 + tests/zones/pacific/norfolk.js | 10 + tests/zones/pacific/noumea.js | 37 + tests/zones/pacific/pago_pago.js | 25 + tests/zones/pacific/palau.js | 7 + tests/zones/pacific/pitcairn.js | 10 + tests/zones/pacific/pohnpei.js | 7 + tests/zones/pacific/port_moresby.js | 7 + tests/zones/pacific/rarotonga.js | 99 + tests/zones/pacific/saipan.js | 15 + tests/zones/pacific/tahiti.js | 10 + tests/zones/pacific/tarawa.js | 7 + tests/zones/pacific/tongatapu.js | 34 + tests/zones/pacific/wake.js | 7 + tests/zones/pacific/wallis.js | 7 + tests/zones/pst8pdt.js | 528 ++++++ tests/zones/wet.js | 432 +++++ tz | 1 - 838 files changed, 95209 insertions(+), 186614 deletions(-) create mode 100644 data/packed/latest.json create mode 160000 data/source create mode 100644 tasks/build-changes.js create mode 100644 tasks/build-tests.js create mode 100644 tasks/helpers/all-zones.js create mode 100644 tasks/helpers/change.js create mode 100644 tasks/helpers/to-base-60.js create mode 100644 tasks/helpers/year.js create mode 100644 tasks/helpers/zdump.js rename tasks/{ => helpers}/zone-names.js (99%) create mode 100644 tasks/helpers/zone.js delete mode 100644 tasks/zdump.js delete mode 100644 tests/africa/abidjan.js delete mode 100644 tests/africa/accra.js delete mode 100644 tests/africa/addis_ababa.js delete mode 100644 tests/africa/algiers.js delete mode 100644 tests/africa/asmara.js delete mode 100644 tests/africa/bamako.js delete mode 100644 tests/africa/bangui.js delete mode 100644 tests/africa/banjul.js delete mode 100644 tests/africa/bissau.js delete mode 100644 tests/africa/blantyre.js delete mode 100644 tests/africa/brazzaville.js delete mode 100644 tests/africa/bujumbura.js delete mode 100644 tests/africa/cairo.js delete mode 100644 tests/africa/casablanca.js delete mode 100644 tests/africa/ceuta.js delete mode 100644 tests/africa/conakry.js delete mode 100644 tests/africa/dakar.js delete mode 100644 tests/africa/dar_es_salaam.js delete mode 100644 tests/africa/djibouti.js delete mode 100644 tests/africa/douala.js delete mode 100644 tests/africa/el_aaiun.js delete mode 100644 tests/africa/freetown.js delete mode 100644 tests/africa/gaborone.js delete mode 100644 tests/africa/harare.js delete mode 100644 tests/africa/johannesburg.js delete mode 100644 tests/africa/juba.js delete mode 100644 tests/africa/kampala.js delete mode 100644 tests/africa/khartoum.js delete mode 100644 tests/africa/kigali.js delete mode 100644 tests/africa/kinshasa.js delete mode 100644 tests/africa/lagos.js delete mode 100644 tests/africa/libreville.js delete mode 100644 tests/africa/lome.js delete mode 100644 tests/africa/luanda.js delete mode 100644 tests/africa/lubumbashi.js delete mode 100644 tests/africa/lusaka.js delete mode 100644 tests/africa/malabo.js delete mode 100644 tests/africa/maputo.js delete mode 100644 tests/africa/maseru.js delete mode 100644 tests/africa/mbabane.js delete mode 100644 tests/africa/mogadishu.js delete mode 100644 tests/africa/monrovia.js delete mode 100644 tests/africa/nairobi.js delete mode 100644 tests/africa/ndjamena.js delete mode 100644 tests/africa/niamey.js delete mode 100644 tests/africa/nouakchott.js delete mode 100644 tests/africa/ouagadougou.js delete mode 100644 tests/africa/porto-novo.js delete mode 100644 tests/africa/sao_tome.js delete mode 100644 tests/africa/tripoli.js delete mode 100644 tests/africa/tunis.js delete mode 100644 tests/africa/windhoek.js delete mode 100644 tests/america/adak.js delete mode 100644 tests/america/anchorage.js delete mode 100644 tests/america/anguilla.js delete mode 100644 tests/america/antigua.js delete mode 100644 tests/america/araguaina.js delete mode 100644 tests/america/argentina/buenos_aires.js delete mode 100644 tests/america/argentina/catamarca.js delete mode 100644 tests/america/argentina/cordoba.js delete mode 100644 tests/america/argentina/jujuy.js delete mode 100644 tests/america/argentina/la_rioja.js delete mode 100644 tests/america/argentina/mendoza.js delete mode 100644 tests/america/argentina/rio_gallegos.js delete mode 100644 tests/america/argentina/salta.js delete mode 100644 tests/america/argentina/san_juan.js delete mode 100644 tests/america/argentina/san_luis.js delete mode 100644 tests/america/argentina/tucuman.js delete mode 100644 tests/america/argentina/ushuaia.js delete mode 100644 tests/america/aruba.js delete mode 100644 tests/america/asuncion.js delete mode 100644 tests/america/atikokan.js delete mode 100644 tests/america/bahia.js delete mode 100644 tests/america/bahia_banderas.js delete mode 100644 tests/america/barbados.js delete mode 100644 tests/america/belem.js delete mode 100644 tests/america/belize.js delete mode 100644 tests/america/blanc-sablon.js delete mode 100644 tests/america/boa_vista.js delete mode 100644 tests/america/bogota.js delete mode 100644 tests/america/boise.js delete mode 100644 tests/america/cambridge_bay.js delete mode 100644 tests/america/campo_grande.js delete mode 100644 tests/america/cancun.js delete mode 100644 tests/america/caracas.js delete mode 100644 tests/america/cayenne.js delete mode 100644 tests/america/cayman.js delete mode 100644 tests/america/chicago.js delete mode 100644 tests/america/chihuahua.js delete mode 100644 tests/america/costa_rica.js delete mode 100644 tests/america/creston.js delete mode 100644 tests/america/cuiaba.js delete mode 100644 tests/america/curacao.js delete mode 100644 tests/america/danmarkshavn.js delete mode 100644 tests/america/dawson.js delete mode 100644 tests/america/dawson_creek.js delete mode 100644 tests/america/denver.js delete mode 100644 tests/america/detroit.js delete mode 100644 tests/america/dominica.js delete mode 100644 tests/america/edmonton.js delete mode 100644 tests/america/eirunepe.js delete mode 100644 tests/america/el_salvador.js delete mode 100644 tests/america/fortaleza.js delete mode 100644 tests/america/glace_bay.js delete mode 100644 tests/america/godthab.js delete mode 100644 tests/america/goose_bay.js delete mode 100644 tests/america/grand_turk.js delete mode 100644 tests/america/grenada.js delete mode 100644 tests/america/guadeloupe.js delete mode 100644 tests/america/guatemala.js delete mode 100644 tests/america/guayaquil.js delete mode 100644 tests/america/guyana.js delete mode 100644 tests/america/halifax.js delete mode 100644 tests/america/havana.js delete mode 100644 tests/america/hermosillo.js delete mode 100644 tests/america/indiana/indianapolis.js delete mode 100644 tests/america/indiana/knox.js delete mode 100644 tests/america/indiana/marengo.js delete mode 100644 tests/america/indiana/petersburg.js delete mode 100644 tests/america/indiana/tell_city.js delete mode 100644 tests/america/indiana/vevay.js delete mode 100644 tests/america/indiana/vincennes.js delete mode 100644 tests/america/indiana/winamac.js delete mode 100644 tests/america/inuvik.js delete mode 100644 tests/america/iqaluit.js delete mode 100644 tests/america/jamaica.js delete mode 100644 tests/america/juneau.js delete mode 100644 tests/america/kentucky/louisville.js delete mode 100644 tests/america/kentucky/monticello.js delete mode 100644 tests/america/la_paz.js delete mode 100644 tests/america/lima.js delete mode 100644 tests/america/los_angeles.js delete mode 100644 tests/america/maceio.js delete mode 100644 tests/america/managua.js delete mode 100644 tests/america/manaus.js delete mode 100644 tests/america/martinique.js delete mode 100644 tests/america/matamoros.js delete mode 100644 tests/america/mazatlan.js delete mode 100644 tests/america/menominee.js delete mode 100644 tests/america/merida.js delete mode 100644 tests/america/metlakatla.js delete mode 100644 tests/america/mexico_city.js delete mode 100644 tests/america/miquelon.js delete mode 100644 tests/america/moncton.js delete mode 100644 tests/america/monterrey.js delete mode 100644 tests/america/montevideo.js delete mode 100644 tests/america/montreal.js delete mode 100644 tests/america/montserrat.js delete mode 100644 tests/america/nassau.js delete mode 100644 tests/america/new_york.js delete mode 100644 tests/america/nipigon.js delete mode 100644 tests/america/nome.js delete mode 100644 tests/america/noronha.js delete mode 100644 tests/america/north_dakota/beulah.js delete mode 100644 tests/america/north_dakota/center.js delete mode 100644 tests/america/north_dakota/new_salem.js delete mode 100644 tests/america/ojinaga.js delete mode 100644 tests/america/panama.js delete mode 100644 tests/america/pangnirtung.js delete mode 100644 tests/america/paramaribo.js delete mode 100644 tests/america/phoenix.js delete mode 100644 tests/america/port-au-prince.js delete mode 100644 tests/america/port_of_spain.js delete mode 100644 tests/america/porto_velho.js delete mode 100644 tests/america/puerto_rico.js delete mode 100644 tests/america/rainy_river.js delete mode 100644 tests/america/rankin_inlet.js delete mode 100644 tests/america/recife.js delete mode 100644 tests/america/regina.js delete mode 100644 tests/america/resolute.js delete mode 100644 tests/america/rio_branco.js delete mode 100644 tests/america/santa_isabel.js delete mode 100644 tests/america/santarem.js delete mode 100644 tests/america/santiago.js delete mode 100644 tests/america/santo_domingo.js delete mode 100644 tests/america/sao_paulo.js delete mode 100644 tests/america/scoresbysund.js delete mode 100644 tests/america/sitka.js delete mode 100644 tests/america/st_johns.js delete mode 100644 tests/america/st_kitts.js delete mode 100644 tests/america/st_lucia.js delete mode 100644 tests/america/st_thomas.js delete mode 100644 tests/america/st_vincent.js delete mode 100644 tests/america/swift_current.js delete mode 100644 tests/america/tegucigalpa.js delete mode 100644 tests/america/thule.js delete mode 100644 tests/america/thunder_bay.js delete mode 100644 tests/america/tijuana.js delete mode 100644 tests/america/toronto.js delete mode 100644 tests/america/tortola.js delete mode 100644 tests/america/vancouver.js delete mode 100644 tests/america/whitehorse.js delete mode 100644 tests/america/winnipeg.js delete mode 100644 tests/america/yakutat.js delete mode 100644 tests/america/yellowknife.js delete mode 100644 tests/antarctica/casey.js delete mode 100644 tests/antarctica/davis.js delete mode 100644 tests/antarctica/dumontdurville.js delete mode 100644 tests/antarctica/macquarie.js delete mode 100644 tests/antarctica/mawson.js delete mode 100644 tests/antarctica/mcmurdo.js delete mode 100644 tests/antarctica/palmer.js delete mode 100644 tests/antarctica/rothera.js delete mode 100644 tests/antarctica/syowa.js delete mode 100644 tests/antarctica/vostok.js delete mode 100644 tests/asia/aden.js delete mode 100644 tests/asia/almaty.js delete mode 100644 tests/asia/amman.js delete mode 100644 tests/asia/anadyr.js delete mode 100644 tests/asia/aqtau.js delete mode 100644 tests/asia/aqtobe.js delete mode 100644 tests/asia/ashgabat.js delete mode 100644 tests/asia/baghdad.js delete mode 100644 tests/asia/bahrain.js delete mode 100644 tests/asia/baku.js delete mode 100644 tests/asia/bangkok.js delete mode 100644 tests/asia/beirut.js delete mode 100644 tests/asia/bishkek.js delete mode 100644 tests/asia/brunei.js delete mode 100644 tests/asia/choibalsan.js delete mode 100644 tests/asia/chongqing.js delete mode 100644 tests/asia/colombo.js delete mode 100644 tests/asia/damascus.js delete mode 100644 tests/asia/dhaka.js delete mode 100644 tests/asia/dili.js delete mode 100644 tests/asia/dubai.js delete mode 100644 tests/asia/dushanbe.js delete mode 100644 tests/asia/gaza.js delete mode 100644 tests/asia/harbin.js delete mode 100644 tests/asia/hebron.js delete mode 100644 tests/asia/ho_chi_minh.js delete mode 100644 tests/asia/hong_kong.js delete mode 100644 tests/asia/hovd.js delete mode 100644 tests/asia/irkutsk.js delete mode 100644 tests/asia/jakarta.js delete mode 100644 tests/asia/jayapura.js delete mode 100644 tests/asia/jerusalem.js delete mode 100644 tests/asia/kabul.js delete mode 100644 tests/asia/kamchatka.js delete mode 100644 tests/asia/karachi.js delete mode 100644 tests/asia/kashgar.js delete mode 100644 tests/asia/kathmandu.js delete mode 100644 tests/asia/khandyga.js delete mode 100644 tests/asia/kolkata.js delete mode 100644 tests/asia/krasnoyarsk.js delete mode 100644 tests/asia/kuala_lumpur.js delete mode 100644 tests/asia/kuching.js delete mode 100644 tests/asia/kuwait.js delete mode 100644 tests/asia/macau.js delete mode 100644 tests/asia/magadan.js delete mode 100644 tests/asia/makassar.js delete mode 100644 tests/asia/manila.js delete mode 100644 tests/asia/muscat.js delete mode 100644 tests/asia/nicosia.js delete mode 100644 tests/asia/novokuznetsk.js delete mode 100644 tests/asia/novosibirsk.js delete mode 100644 tests/asia/omsk.js delete mode 100644 tests/asia/oral.js delete mode 100644 tests/asia/phnom_penh.js delete mode 100644 tests/asia/pontianak.js delete mode 100644 tests/asia/pyongyang.js delete mode 100644 tests/asia/qatar.js delete mode 100644 tests/asia/qyzylorda.js delete mode 100644 tests/asia/rangoon.js delete mode 100644 tests/asia/riyadh.js delete mode 100644 tests/asia/sakhalin.js delete mode 100644 tests/asia/samarkand.js delete mode 100644 tests/asia/seoul.js delete mode 100644 tests/asia/shanghai.js delete mode 100644 tests/asia/singapore.js delete mode 100644 tests/asia/taipei.js delete mode 100644 tests/asia/tashkent.js delete mode 100644 tests/asia/tbilisi.js delete mode 100644 tests/asia/tehran.js delete mode 100644 tests/asia/thimphu.js delete mode 100644 tests/asia/tokyo.js delete mode 100644 tests/asia/ulaanbaatar.js delete mode 100644 tests/asia/urumqi.js delete mode 100644 tests/asia/ust-nera.js delete mode 100644 tests/asia/vientiane.js delete mode 100644 tests/asia/vladivostok.js delete mode 100644 tests/asia/yakutsk.js delete mode 100644 tests/asia/yekaterinburg.js delete mode 100644 tests/asia/yerevan.js delete mode 100644 tests/atlantic/azores.js delete mode 100644 tests/atlantic/bermuda.js delete mode 100644 tests/atlantic/canary.js delete mode 100644 tests/atlantic/cape_verde.js delete mode 100644 tests/atlantic/faroe.js delete mode 100644 tests/atlantic/madeira.js delete mode 100644 tests/atlantic/reykjavik.js delete mode 100644 tests/atlantic/south_georgia.js delete mode 100644 tests/atlantic/st_helena.js delete mode 100644 tests/atlantic/stanley.js delete mode 100644 tests/australia/adelaide.js delete mode 100644 tests/australia/brisbane.js delete mode 100644 tests/australia/broken_hill.js delete mode 100644 tests/australia/currie.js delete mode 100644 tests/australia/darwin.js delete mode 100644 tests/australia/eucla.js delete mode 100644 tests/australia/hobart.js delete mode 100644 tests/australia/lindeman.js delete mode 100644 tests/australia/lord_howe.js delete mode 100644 tests/australia/melbourne.js delete mode 100644 tests/australia/perth.js delete mode 100644 tests/australia/sydney.js delete mode 100644 tests/cet.js delete mode 100644 tests/cst6cdt.js delete mode 100644 tests/eet.js delete mode 100644 tests/est.js delete mode 100644 tests/est5edt.js delete mode 100644 tests/europe/amsterdam.js delete mode 100644 tests/europe/andorra.js delete mode 100644 tests/europe/athens.js delete mode 100644 tests/europe/belgrade.js delete mode 100644 tests/europe/berlin.js delete mode 100644 tests/europe/brussels.js delete mode 100644 tests/europe/bucharest.js delete mode 100644 tests/europe/budapest.js delete mode 100644 tests/europe/chisinau.js delete mode 100644 tests/europe/copenhagen.js delete mode 100644 tests/europe/dublin.js delete mode 100644 tests/europe/gibraltar.js delete mode 100644 tests/europe/helsinki.js delete mode 100644 tests/europe/istanbul.js delete mode 100644 tests/europe/kaliningrad.js delete mode 100644 tests/europe/kiev.js delete mode 100644 tests/europe/lisbon.js delete mode 100644 tests/europe/london.js delete mode 100644 tests/europe/luxembourg.js delete mode 100644 tests/europe/madrid.js delete mode 100644 tests/europe/malta.js delete mode 100644 tests/europe/minsk.js delete mode 100644 tests/europe/monaco.js delete mode 100644 tests/europe/moscow.js delete mode 100644 tests/europe/oslo.js delete mode 100644 tests/europe/paris.js delete mode 100644 tests/europe/prague.js delete mode 100644 tests/europe/riga.js delete mode 100644 tests/europe/rome.js delete mode 100644 tests/europe/samara.js delete mode 100644 tests/europe/simferopol.js delete mode 100644 tests/europe/sofia.js delete mode 100644 tests/europe/stockholm.js delete mode 100644 tests/europe/tallinn.js delete mode 100644 tests/europe/tirane.js delete mode 100644 tests/europe/uzhgorod.js delete mode 100644 tests/europe/vaduz.js delete mode 100644 tests/europe/vienna.js delete mode 100644 tests/europe/vilnius.js delete mode 100644 tests/europe/volgograd.js delete mode 100644 tests/europe/warsaw.js delete mode 100644 tests/europe/zaporozhye.js delete mode 100644 tests/europe/zurich.js create mode 100644 tests/helpers/helpers.js delete mode 100644 tests/hst.js delete mode 100644 tests/indian/antananarivo.js delete mode 100644 tests/indian/chagos.js delete mode 100644 tests/indian/christmas.js delete mode 100644 tests/indian/cocos.js delete mode 100644 tests/indian/comoro.js delete mode 100644 tests/indian/kerguelen.js delete mode 100644 tests/indian/mahe.js delete mode 100644 tests/indian/maldives.js delete mode 100644 tests/indian/mauritius.js delete mode 100644 tests/indian/mayotte.js delete mode 100644 tests/indian/reunion.js delete mode 100644 tests/met.js delete mode 100644 tests/mst.js delete mode 100644 tests/mst7mdt.js delete mode 100644 tests/pacific/apia.js delete mode 100644 tests/pacific/auckland.js delete mode 100644 tests/pacific/chatham.js delete mode 100644 tests/pacific/chuuk.js delete mode 100644 tests/pacific/easter.js delete mode 100644 tests/pacific/efate.js delete mode 100644 tests/pacific/enderbury.js delete mode 100644 tests/pacific/fakaofo.js delete mode 100644 tests/pacific/fiji.js delete mode 100644 tests/pacific/funafuti.js delete mode 100644 tests/pacific/galapagos.js delete mode 100644 tests/pacific/gambier.js delete mode 100644 tests/pacific/guadalcanal.js delete mode 100644 tests/pacific/guam.js delete mode 100644 tests/pacific/honolulu.js delete mode 100644 tests/pacific/johnston.js delete mode 100644 tests/pacific/kiritimati.js delete mode 100644 tests/pacific/kosrae.js delete mode 100644 tests/pacific/kwajalein.js delete mode 100644 tests/pacific/majuro.js delete mode 100644 tests/pacific/marquesas.js delete mode 100644 tests/pacific/midway.js delete mode 100644 tests/pacific/nauru.js delete mode 100644 tests/pacific/niue.js delete mode 100644 tests/pacific/norfolk.js delete mode 100644 tests/pacific/noumea.js delete mode 100644 tests/pacific/pago_pago.js delete mode 100644 tests/pacific/palau.js delete mode 100644 tests/pacific/pitcairn.js delete mode 100644 tests/pacific/pohnpei.js delete mode 100644 tests/pacific/port_moresby.js delete mode 100644 tests/pacific/rarotonga.js delete mode 100644 tests/pacific/saipan.js delete mode 100644 tests/pacific/tahiti.js delete mode 100644 tests/pacific/tarawa.js delete mode 100644 tests/pacific/tongatapu.js delete mode 100644 tests/pacific/wake.js delete mode 100644 tests/pacific/wallis.js delete mode 100644 tests/pst8pdt.js delete mode 100644 tests/wet.js create mode 100644 tests/zones/africa/abidjan.js create mode 100644 tests/zones/africa/accra.js create mode 100644 tests/zones/africa/addis_ababa.js create mode 100644 tests/zones/africa/algiers.js create mode 100644 tests/zones/africa/asmara.js create mode 100644 tests/zones/africa/bamako.js create mode 100644 tests/zones/africa/bangui.js create mode 100644 tests/zones/africa/banjul.js create mode 100644 tests/zones/africa/bissau.js create mode 100644 tests/zones/africa/blantyre.js create mode 100644 tests/zones/africa/brazzaville.js create mode 100644 tests/zones/africa/bujumbura.js create mode 100644 tests/zones/africa/cairo.js create mode 100644 tests/zones/africa/casablanca.js create mode 100644 tests/zones/africa/ceuta.js create mode 100644 tests/zones/africa/conakry.js create mode 100644 tests/zones/africa/dakar.js create mode 100644 tests/zones/africa/dar_es_salaam.js create mode 100644 tests/zones/africa/djibouti.js create mode 100644 tests/zones/africa/douala.js create mode 100644 tests/zones/africa/el_aaiun.js create mode 100644 tests/zones/africa/freetown.js create mode 100644 tests/zones/africa/gaborone.js create mode 100644 tests/zones/africa/harare.js create mode 100644 tests/zones/africa/johannesburg.js create mode 100644 tests/zones/africa/juba.js create mode 100644 tests/zones/africa/kampala.js create mode 100644 tests/zones/africa/khartoum.js create mode 100644 tests/zones/africa/kigali.js create mode 100644 tests/zones/africa/kinshasa.js create mode 100644 tests/zones/africa/lagos.js create mode 100644 tests/zones/africa/libreville.js create mode 100644 tests/zones/africa/lome.js create mode 100644 tests/zones/africa/luanda.js create mode 100644 tests/zones/africa/lubumbashi.js create mode 100644 tests/zones/africa/lusaka.js create mode 100644 tests/zones/africa/malabo.js create mode 100644 tests/zones/africa/maputo.js create mode 100644 tests/zones/africa/maseru.js create mode 100644 tests/zones/africa/mbabane.js create mode 100644 tests/zones/africa/mogadishu.js create mode 100644 tests/zones/africa/monrovia.js create mode 100644 tests/zones/africa/nairobi.js create mode 100644 tests/zones/africa/ndjamena.js create mode 100644 tests/zones/africa/niamey.js create mode 100644 tests/zones/africa/nouakchott.js create mode 100644 tests/zones/africa/ouagadougou.js create mode 100644 tests/zones/africa/porto-novo.js create mode 100644 tests/zones/africa/sao_tome.js create mode 100644 tests/zones/africa/tripoli.js create mode 100644 tests/zones/africa/tunis.js create mode 100644 tests/zones/africa/windhoek.js create mode 100644 tests/zones/america/adak.js create mode 100644 tests/zones/america/anchorage.js create mode 100644 tests/zones/america/anguilla.js create mode 100644 tests/zones/america/antigua.js create mode 100644 tests/zones/america/araguaina.js create mode 100644 tests/zones/america/argentina/buenos_aires.js create mode 100644 tests/zones/america/argentina/catamarca.js create mode 100644 tests/zones/america/argentina/cordoba.js create mode 100644 tests/zones/america/argentina/jujuy.js create mode 100644 tests/zones/america/argentina/la_rioja.js create mode 100644 tests/zones/america/argentina/mendoza.js create mode 100644 tests/zones/america/argentina/rio_gallegos.js create mode 100644 tests/zones/america/argentina/salta.js create mode 100644 tests/zones/america/argentina/san_juan.js create mode 100644 tests/zones/america/argentina/san_luis.js create mode 100644 tests/zones/america/argentina/tucuman.js create mode 100644 tests/zones/america/argentina/ushuaia.js create mode 100644 tests/zones/america/aruba.js create mode 100644 tests/zones/america/asuncion.js create mode 100644 tests/zones/america/atikokan.js create mode 100644 tests/zones/america/bahia.js create mode 100644 tests/zones/america/bahia_banderas.js create mode 100644 tests/zones/america/barbados.js create mode 100644 tests/zones/america/belem.js create mode 100644 tests/zones/america/belize.js create mode 100644 tests/zones/america/blanc-sablon.js create mode 100644 tests/zones/america/boa_vista.js create mode 100644 tests/zones/america/bogota.js create mode 100644 tests/zones/america/boise.js create mode 100644 tests/zones/america/cambridge_bay.js create mode 100644 tests/zones/america/campo_grande.js create mode 100644 tests/zones/america/cancun.js create mode 100644 tests/zones/america/caracas.js create mode 100644 tests/zones/america/cayenne.js create mode 100644 tests/zones/america/cayman.js create mode 100644 tests/zones/america/chicago.js create mode 100644 tests/zones/america/chihuahua.js create mode 100644 tests/zones/america/costa_rica.js create mode 100644 tests/zones/america/creston.js create mode 100644 tests/zones/america/cuiaba.js create mode 100644 tests/zones/america/curacao.js create mode 100644 tests/zones/america/danmarkshavn.js create mode 100644 tests/zones/america/dawson.js create mode 100644 tests/zones/america/dawson_creek.js create mode 100644 tests/zones/america/denver.js create mode 100644 tests/zones/america/detroit.js create mode 100644 tests/zones/america/dominica.js create mode 100644 tests/zones/america/edmonton.js create mode 100644 tests/zones/america/eirunepe.js create mode 100644 tests/zones/america/el_salvador.js create mode 100644 tests/zones/america/fortaleza.js create mode 100644 tests/zones/america/glace_bay.js create mode 100644 tests/zones/america/godthab.js create mode 100644 tests/zones/america/goose_bay.js create mode 100644 tests/zones/america/grand_turk.js create mode 100644 tests/zones/america/grenada.js create mode 100644 tests/zones/america/guadeloupe.js create mode 100644 tests/zones/america/guatemala.js create mode 100644 tests/zones/america/guayaquil.js create mode 100644 tests/zones/america/guyana.js create mode 100644 tests/zones/america/halifax.js create mode 100644 tests/zones/america/havana.js create mode 100644 tests/zones/america/hermosillo.js create mode 100644 tests/zones/america/indiana/indianapolis.js create mode 100644 tests/zones/america/indiana/knox.js create mode 100644 tests/zones/america/indiana/marengo.js create mode 100644 tests/zones/america/indiana/petersburg.js create mode 100644 tests/zones/america/indiana/tell_city.js create mode 100644 tests/zones/america/indiana/vevay.js create mode 100644 tests/zones/america/indiana/vincennes.js create mode 100644 tests/zones/america/indiana/winamac.js create mode 100644 tests/zones/america/inuvik.js create mode 100644 tests/zones/america/iqaluit.js create mode 100644 tests/zones/america/jamaica.js create mode 100644 tests/zones/america/juneau.js create mode 100644 tests/zones/america/kentucky/louisville.js create mode 100644 tests/zones/america/kentucky/monticello.js create mode 100644 tests/zones/america/la_paz.js create mode 100644 tests/zones/america/lima.js create mode 100644 tests/zones/america/los_angeles.js create mode 100644 tests/zones/america/maceio.js create mode 100644 tests/zones/america/managua.js create mode 100644 tests/zones/america/manaus.js create mode 100644 tests/zones/america/martinique.js create mode 100644 tests/zones/america/matamoros.js create mode 100644 tests/zones/america/mazatlan.js create mode 100644 tests/zones/america/menominee.js create mode 100644 tests/zones/america/merida.js create mode 100644 tests/zones/america/metlakatla.js create mode 100644 tests/zones/america/mexico_city.js create mode 100644 tests/zones/america/miquelon.js create mode 100644 tests/zones/america/moncton.js create mode 100644 tests/zones/america/monterrey.js create mode 100644 tests/zones/america/montevideo.js create mode 100644 tests/zones/america/montreal.js create mode 100644 tests/zones/america/montserrat.js create mode 100644 tests/zones/america/nassau.js create mode 100644 tests/zones/america/new_york.js create mode 100644 tests/zones/america/nipigon.js create mode 100644 tests/zones/america/nome.js create mode 100644 tests/zones/america/noronha.js create mode 100644 tests/zones/america/north_dakota/beulah.js create mode 100644 tests/zones/america/north_dakota/center.js create mode 100644 tests/zones/america/north_dakota/new_salem.js create mode 100644 tests/zones/america/ojinaga.js create mode 100644 tests/zones/america/panama.js create mode 100644 tests/zones/america/pangnirtung.js create mode 100644 tests/zones/america/paramaribo.js create mode 100644 tests/zones/america/phoenix.js create mode 100644 tests/zones/america/port-au-prince.js create mode 100644 tests/zones/america/port_of_spain.js create mode 100644 tests/zones/america/porto_velho.js create mode 100644 tests/zones/america/puerto_rico.js create mode 100644 tests/zones/america/rainy_river.js create mode 100644 tests/zones/america/rankin_inlet.js create mode 100644 tests/zones/america/recife.js create mode 100644 tests/zones/america/regina.js create mode 100644 tests/zones/america/resolute.js create mode 100644 tests/zones/america/rio_branco.js create mode 100644 tests/zones/america/santa_isabel.js create mode 100644 tests/zones/america/santarem.js create mode 100644 tests/zones/america/santiago.js create mode 100644 tests/zones/america/santo_domingo.js create mode 100644 tests/zones/america/sao_paulo.js create mode 100644 tests/zones/america/scoresbysund.js create mode 100644 tests/zones/america/sitka.js create mode 100644 tests/zones/america/st_johns.js create mode 100644 tests/zones/america/st_kitts.js create mode 100644 tests/zones/america/st_lucia.js create mode 100644 tests/zones/america/st_thomas.js create mode 100644 tests/zones/america/st_vincent.js create mode 100644 tests/zones/america/swift_current.js create mode 100644 tests/zones/america/tegucigalpa.js create mode 100644 tests/zones/america/thule.js create mode 100644 tests/zones/america/thunder_bay.js create mode 100644 tests/zones/america/tijuana.js create mode 100644 tests/zones/america/toronto.js create mode 100644 tests/zones/america/tortola.js create mode 100644 tests/zones/america/vancouver.js create mode 100644 tests/zones/america/whitehorse.js create mode 100644 tests/zones/america/winnipeg.js create mode 100644 tests/zones/america/yakutat.js create mode 100644 tests/zones/america/yellowknife.js create mode 100644 tests/zones/antarctica/casey.js create mode 100644 tests/zones/antarctica/davis.js create mode 100644 tests/zones/antarctica/dumontdurville.js create mode 100644 tests/zones/antarctica/macquarie.js create mode 100644 tests/zones/antarctica/mawson.js create mode 100644 tests/zones/antarctica/mcmurdo.js create mode 100644 tests/zones/antarctica/palmer.js create mode 100644 tests/zones/antarctica/rothera.js create mode 100644 tests/zones/antarctica/syowa.js create mode 100644 tests/zones/antarctica/vostok.js create mode 100644 tests/zones/asia/aden.js create mode 100644 tests/zones/asia/almaty.js create mode 100644 tests/zones/asia/amman.js create mode 100644 tests/zones/asia/anadyr.js create mode 100644 tests/zones/asia/aqtau.js create mode 100644 tests/zones/asia/aqtobe.js create mode 100644 tests/zones/asia/ashgabat.js create mode 100644 tests/zones/asia/baghdad.js create mode 100644 tests/zones/asia/bahrain.js create mode 100644 tests/zones/asia/baku.js create mode 100644 tests/zones/asia/bangkok.js create mode 100644 tests/zones/asia/beirut.js create mode 100644 tests/zones/asia/bishkek.js create mode 100644 tests/zones/asia/brunei.js create mode 100644 tests/zones/asia/choibalsan.js create mode 100644 tests/zones/asia/chongqing.js create mode 100644 tests/zones/asia/colombo.js create mode 100644 tests/zones/asia/damascus.js create mode 100644 tests/zones/asia/dhaka.js create mode 100644 tests/zones/asia/dili.js create mode 100644 tests/zones/asia/dubai.js create mode 100644 tests/zones/asia/dushanbe.js create mode 100644 tests/zones/asia/gaza.js create mode 100644 tests/zones/asia/harbin.js create mode 100644 tests/zones/asia/hebron.js create mode 100644 tests/zones/asia/ho_chi_minh.js create mode 100644 tests/zones/asia/hong_kong.js create mode 100644 tests/zones/asia/hovd.js create mode 100644 tests/zones/asia/irkutsk.js create mode 100644 tests/zones/asia/jakarta.js create mode 100644 tests/zones/asia/jayapura.js create mode 100644 tests/zones/asia/jerusalem.js create mode 100644 tests/zones/asia/kabul.js create mode 100644 tests/zones/asia/kamchatka.js create mode 100644 tests/zones/asia/karachi.js create mode 100644 tests/zones/asia/kashgar.js create mode 100644 tests/zones/asia/kathmandu.js create mode 100644 tests/zones/asia/khandyga.js create mode 100644 tests/zones/asia/kolkata.js create mode 100644 tests/zones/asia/krasnoyarsk.js create mode 100644 tests/zones/asia/kuala_lumpur.js create mode 100644 tests/zones/asia/kuching.js create mode 100644 tests/zones/asia/kuwait.js create mode 100644 tests/zones/asia/macau.js create mode 100644 tests/zones/asia/magadan.js create mode 100644 tests/zones/asia/makassar.js create mode 100644 tests/zones/asia/manila.js create mode 100644 tests/zones/asia/muscat.js create mode 100644 tests/zones/asia/nicosia.js create mode 100644 tests/zones/asia/novokuznetsk.js create mode 100644 tests/zones/asia/novosibirsk.js create mode 100644 tests/zones/asia/omsk.js create mode 100644 tests/zones/asia/oral.js create mode 100644 tests/zones/asia/phnom_penh.js create mode 100644 tests/zones/asia/pontianak.js create mode 100644 tests/zones/asia/pyongyang.js create mode 100644 tests/zones/asia/qatar.js create mode 100644 tests/zones/asia/qyzylorda.js create mode 100644 tests/zones/asia/rangoon.js create mode 100644 tests/zones/asia/riyadh.js create mode 100644 tests/zones/asia/sakhalin.js create mode 100644 tests/zones/asia/samarkand.js create mode 100644 tests/zones/asia/seoul.js create mode 100644 tests/zones/asia/shanghai.js create mode 100644 tests/zones/asia/singapore.js create mode 100644 tests/zones/asia/taipei.js create mode 100644 tests/zones/asia/tashkent.js create mode 100644 tests/zones/asia/tbilisi.js create mode 100644 tests/zones/asia/tehran.js create mode 100644 tests/zones/asia/thimphu.js create mode 100644 tests/zones/asia/tokyo.js create mode 100644 tests/zones/asia/ulaanbaatar.js create mode 100644 tests/zones/asia/urumqi.js create mode 100644 tests/zones/asia/ust-nera.js create mode 100644 tests/zones/asia/vientiane.js create mode 100644 tests/zones/asia/vladivostok.js create mode 100644 tests/zones/asia/yakutsk.js create mode 100644 tests/zones/asia/yekaterinburg.js create mode 100644 tests/zones/asia/yerevan.js create mode 100644 tests/zones/atlantic/azores.js create mode 100644 tests/zones/atlantic/bermuda.js create mode 100644 tests/zones/atlantic/canary.js create mode 100644 tests/zones/atlantic/cape_verde.js create mode 100644 tests/zones/atlantic/faroe.js create mode 100644 tests/zones/atlantic/madeira.js create mode 100644 tests/zones/atlantic/reykjavik.js create mode 100644 tests/zones/atlantic/south_georgia.js create mode 100644 tests/zones/atlantic/st_helena.js create mode 100644 tests/zones/atlantic/stanley.js create mode 100644 tests/zones/australia/adelaide.js create mode 100644 tests/zones/australia/brisbane.js create mode 100644 tests/zones/australia/broken_hill.js create mode 100644 tests/zones/australia/currie.js create mode 100644 tests/zones/australia/darwin.js create mode 100644 tests/zones/australia/eucla.js create mode 100644 tests/zones/australia/hobart.js create mode 100644 tests/zones/australia/lindeman.js create mode 100644 tests/zones/australia/lord_howe.js create mode 100644 tests/zones/australia/melbourne.js create mode 100644 tests/zones/australia/perth.js create mode 100644 tests/zones/australia/sydney.js create mode 100644 tests/zones/cet.js create mode 100644 tests/zones/cst6cdt.js create mode 100644 tests/zones/eet.js create mode 100644 tests/zones/est.js create mode 100644 tests/zones/est5edt.js create mode 100644 tests/zones/europe/amsterdam.js create mode 100644 tests/zones/europe/andorra.js create mode 100644 tests/zones/europe/athens.js create mode 100644 tests/zones/europe/belgrade.js create mode 100644 tests/zones/europe/berlin.js create mode 100644 tests/zones/europe/brussels.js create mode 100644 tests/zones/europe/bucharest.js create mode 100644 tests/zones/europe/budapest.js create mode 100644 tests/zones/europe/chisinau.js create mode 100644 tests/zones/europe/copenhagen.js create mode 100644 tests/zones/europe/dublin.js create mode 100644 tests/zones/europe/gibraltar.js create mode 100644 tests/zones/europe/helsinki.js create mode 100644 tests/zones/europe/istanbul.js create mode 100644 tests/zones/europe/kaliningrad.js create mode 100644 tests/zones/europe/kiev.js create mode 100644 tests/zones/europe/lisbon.js create mode 100644 tests/zones/europe/london.js create mode 100644 tests/zones/europe/luxembourg.js create mode 100644 tests/zones/europe/madrid.js create mode 100644 tests/zones/europe/malta.js create mode 100644 tests/zones/europe/minsk.js create mode 100644 tests/zones/europe/monaco.js create mode 100644 tests/zones/europe/moscow.js create mode 100644 tests/zones/europe/oslo.js create mode 100644 tests/zones/europe/paris.js create mode 100644 tests/zones/europe/prague.js create mode 100644 tests/zones/europe/riga.js create mode 100644 tests/zones/europe/rome.js create mode 100644 tests/zones/europe/samara.js create mode 100644 tests/zones/europe/simferopol.js create mode 100644 tests/zones/europe/sofia.js create mode 100644 tests/zones/europe/stockholm.js create mode 100644 tests/zones/europe/tallinn.js create mode 100644 tests/zones/europe/tirane.js create mode 100644 tests/zones/europe/uzhgorod.js create mode 100644 tests/zones/europe/vaduz.js create mode 100644 tests/zones/europe/vienna.js create mode 100644 tests/zones/europe/vilnius.js create mode 100644 tests/zones/europe/volgograd.js create mode 100644 tests/zones/europe/warsaw.js create mode 100644 tests/zones/europe/zaporozhye.js create mode 100644 tests/zones/europe/zurich.js create mode 100644 tests/zones/hst.js create mode 100644 tests/zones/indian/antananarivo.js create mode 100644 tests/zones/indian/chagos.js create mode 100644 tests/zones/indian/christmas.js create mode 100644 tests/zones/indian/cocos.js create mode 100644 tests/zones/indian/comoro.js create mode 100644 tests/zones/indian/kerguelen.js create mode 100644 tests/zones/indian/mahe.js create mode 100644 tests/zones/indian/maldives.js create mode 100644 tests/zones/indian/mauritius.js create mode 100644 tests/zones/indian/mayotte.js create mode 100644 tests/zones/indian/reunion.js create mode 100644 tests/zones/met.js create mode 100644 tests/zones/mst.js create mode 100644 tests/zones/mst7mdt.js create mode 100644 tests/zones/pacific/apia.js create mode 100644 tests/zones/pacific/auckland.js create mode 100644 tests/zones/pacific/chatham.js create mode 100644 tests/zones/pacific/chuuk.js create mode 100644 tests/zones/pacific/easter.js create mode 100644 tests/zones/pacific/efate.js create mode 100644 tests/zones/pacific/enderbury.js create mode 100644 tests/zones/pacific/fakaofo.js create mode 100644 tests/zones/pacific/fiji.js create mode 100644 tests/zones/pacific/funafuti.js create mode 100644 tests/zones/pacific/galapagos.js create mode 100644 tests/zones/pacific/gambier.js create mode 100644 tests/zones/pacific/guadalcanal.js create mode 100644 tests/zones/pacific/guam.js create mode 100644 tests/zones/pacific/honolulu.js create mode 100644 tests/zones/pacific/johnston.js create mode 100644 tests/zones/pacific/kiritimati.js create mode 100644 tests/zones/pacific/kosrae.js create mode 100644 tests/zones/pacific/kwajalein.js create mode 100644 tests/zones/pacific/majuro.js create mode 100644 tests/zones/pacific/marquesas.js create mode 100644 tests/zones/pacific/midway.js create mode 100644 tests/zones/pacific/nauru.js create mode 100644 tests/zones/pacific/niue.js create mode 100644 tests/zones/pacific/norfolk.js create mode 100644 tests/zones/pacific/noumea.js create mode 100644 tests/zones/pacific/pago_pago.js create mode 100644 tests/zones/pacific/palau.js create mode 100644 tests/zones/pacific/pitcairn.js create mode 100644 tests/zones/pacific/pohnpei.js create mode 100644 tests/zones/pacific/port_moresby.js create mode 100644 tests/zones/pacific/rarotonga.js create mode 100644 tests/zones/pacific/saipan.js create mode 100644 tests/zones/pacific/tahiti.js create mode 100644 tests/zones/pacific/tarawa.js create mode 100644 tests/zones/pacific/tongatapu.js create mode 100644 tests/zones/pacific/wake.js create mode 100644 tests/zones/pacific/wallis.js create mode 100644 tests/zones/pst8pdt.js create mode 100644 tests/zones/wet.js delete mode 160000 tz diff --git a/.gitmodules b/.gitmodules index 09510fb1..131d69b7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "tz"] - path = tz +[submodule "data/source"] + path = data/source url = git://github.com/eggert/tz.git diff --git a/.jshintrc b/.jshintrc index 2a90c3ba..733f8b62 100644 --- a/.jshintrc +++ b/.jshintrc @@ -44,7 +44,7 @@ "validthis" : false, "browser" : false, - "node" : false, + "node" : true, "nomen" : false, "onevar" : true, diff --git a/Gruntfile.js b/Gruntfile.js index ef34b722..9c836bfa 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -2,7 +2,8 @@ module.exports = function(grunt) { grunt.initConfig({ nodeunit : { all : [ - "tests/**/*.js" + "tests/**/*.js", + "!tests/helpers/**" ] }, uglify : { diff --git a/data/packed/latest.json b/data/packed/latest.json new file mode 100644 index 00000000..1e8a988e --- /dev/null +++ b/data/packed/latest.json @@ -0,0 +1,411 @@ +[ + "Africa/Abidjan|LMT GMT|g8 0|01|-2ldXHQ", + "Africa/Accra|LMT GMT GHST|Q 0 -k0|0121212121212121|-26BbX8 JrbX8 MnE0 1BAk0 MnE0 1BAk0 MnE0 1BAk0 MnE0 1C0k0 MnE0 1BAk0 MnE0 1BAk0 MnE0", + "Africa/Addis_Ababa|ADMT EAT|-2zk -300|01|-1lVCzk", + "Africa/Algiers|PMT WET WEST CET CEST|-9l 0 -100 -100 -200|0121212121212121343431312123431213|-2nco9l cNb9l HA00 19A00 1iM00 11c00 1oo00 Wo00 1rc00 QM00 1EM00 UM00 DA00 Imo00 rd00 De00 9Xz00 1fb00 1ap00 16K00 2yo00 mEp00 hwL00 jxA00 11A00 dDd00 17b00 11B00 1cN00 2Dy00 1cN00 1fB00 1cL00", + "Africa/Asmara|ADMT EAT|-2zk -300|01|-1lVCzk", + "Africa/Bamako|LMT GMT WAT|w0 0 100|0121|-2ldXs0 RULs0 144p00", + "Africa/Bangui|LMT WAT|-1ek -100|01|-2le1ek", + "Africa/Banjul|LMT BMT WAT GMT|16A 16A 100 0|0123|-2ldWRo U0o00 1aALRo", + "Africa/Bissau|LMT WAT GMT|12k 100 0|012|-2mFWVE 2yQnVE", + "Africa/Blantyre|LMT CAT|-2k0 -200|01|-2GJek0", + "Africa/Brazzaville|LMT WAT|-118 -100|01|-2le118", + "Africa/Bujumbura|CAT|-200|0|", + "Africa/Cairo|EET EEST|-200 -300|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO00 vb00 1ip00 11z00 1iN00 1nz00 12p00 1pz00 10N00 1pz00 16p00 1jz00 s3d00 Vz00 1oN00 11b00 1oO00 10N00 1pz00 10N00 1pb00 10N00 1pb00 10N00 1pb00 10N00 1pz00 10N00 1pb00 10N00 1pb00 11d00 1oL00 11d00 1pb00 11d00 1oL00 11d00 1oL00 11d00 1oL00 11d00 1pb00 11d00 1oL00 11d00 1oL00 11d00 1oL00 11d00 1pb00 11d00 1oL00 11d00 1oL00 11d00 1oL00 11d00 1pb00 11d00 1oL00 11d00 1WL00 rd00 1Rz00 wp00 1pb00 11d00 1oL00 11d00 1oL00 11d00 1oL00 11d00 1pb00 11d00 1qL00 Xd00 1oL00 11d00 1oL00 11d00 1pb00 11d00 1oL00 11d00 1oL00 11d00 1ny00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 WL00 1qN00 Rb00 1wp00 On00 1zd00 Lz00 1EN00 Fb00 c100 8n00", + "Africa/Casablanca|LMT WET WEST CET|uk 0 -100 -100|012121212121212121312121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2gMntE 130LtE rb00 Dd00 dVb00 b6p00 TX00 EoB00 LL00 gnd00 rz00 43d00 AL00 1Nd00 XX00 1Cp00 pz00 dEp00 4mn00 SyN00 AL00 1Nd00 wn00 1FB00 Db00 1zd00 Lz00 1Nf00 wM00 co00 go00 1o000 s000 dA00 vc00 11A00 Ao00 c000 zA00 11A00 wo00 c000 DA00 11A00 sM00 c000 K000 WM00 oM00 c000 O000 WM00 kM00 c000 S000 11A00 eo00 c000 VA00 11A00 ao00 c000 11A00 11A00 6o00 c000 18o00 WM00 2M00 c000 1c000 19A00 1g000 15A00 1k000 12000 1nA00 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1m000 13A00 1io00", + "Africa/Ceuta|WET WEST CET CEST|0 -100 -100 -200|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN00 11z00 drd00 18o00 3I000 17c00 1fA00 1a000 1io00 1a000 1y7p00 LL00 gnd00 rz00 43d00 AL00 1Nd00 XX00 1Cp00 pz00 dEp00 4VB00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Africa/Conakry|LMT GMT WAT|SQ 0 100|0121|-2ldX58 RUL58 12U100", + "Africa/Dakar|LMT WAT GMT|19I 100 0|012|-2ldWOg 1bBzOg", + "Africa/Dar_es_Salaam|LMT EAT BEAUT|-2B8 -300 -2J0|0121|-1yW2B8 FnzB8 vDAf0", + "Africa/Djibouti|LMT EAT|-2QA -300|01|-2mrCQA", + "Africa/Douala|LMT WAT|-CM -100|01|-2le0CM", + "Africa/El_Aaiun|LMT WAT WET WEST|QM 100 0 -100|0123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1rDz7c 1GVA7c 6L00 AL00 1Nd00 XX00 1Cp00 pz00 1cBB00 AL00 1Nd00 wn00 1FB00 Db00 1zd00 Lz00 1Nf00 wM00 co00 go00 1o000 s000 dA00 vc00 11A00 Ao00 c000 zA00 11A00 wo00 c000 DA00 11A00 sM00 c000 K000 WM00 oM00 c000 O000 WM00 kM00 c000 S000 11A00 eo00 c000 VA00 11A00 ao00 c000 11A00 11A00 6o00 c000 18o00 WM00 2M00 c000 1c000 19A00 1g000 15A00 1k000 12000 1nA00 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1m000 13A00 1io00", + "Africa/Freetown|FMT WAT SLST WAT SLST GMT|R0 100 k0 0 -100 0|0121212121212121213454545454545|-2hLb70 Ry070 MLk0 1BAE0 MLk0 1BcE0 MLk0 1BcE0 MLk0 1BcE0 MLk0 1BAE0 MLk0 1BcE0 MLk0 1BcE0 MLk0 yGoE0 10n00 AL00 1Nd00 AL00 1Nd00 AL00 1NB00 AL00 1Nd00 AL00 1Nd00 AL00", + "Africa/Gaborone|SAST CAT CAST|-1u0 -200 -300|0121|-2GJdu0 1CINu0 1cL00", + "Africa/Harare|LMT CAT|-24c -200|01|-2GJe4c", + "Africa/Johannesburg|SAST SAST SAST|-1u0 -200 -300|012121|-2GJdu0 1Ajdu0 1cL00 1cN00 1cL00", + "Africa/Juba|LMT CAT CAST EAT|-2a8 -200 -300 -300|01212121212121212121212121212121213|-1yW2a8 1zK0a8 16L00 1iN00 17b00 1jd00 17b00 1ip00 17z00 1i100 17X00 1hB00 18n00 1hd00 19b00 1gp00 19z00 1iN00 17b00 1ip00 17z00 1i100 18n00 1hd00 18L00 1gN00 19b00 1gp00 19z00 1iN00 17z00 1i100 17X00 yGd00", + "Africa/Kampala|LMT EAT BEAT BEAUT|-29E -300 -2u0 -2J0|01231|-1F3C9E 3Dz9E HNAu0 lTbJ0", + "Africa/Khartoum|LMT CAT CAST EAT|-2a8 -200 -300 -300|01212121212121212121212121212121213|-1yW2a8 1zK0a8 16L00 1iN00 17b00 1jd00 17b00 1ip00 17z00 1i100 17X00 1hB00 18n00 1hd00 19b00 1gp00 19z00 1iN00 17b00 1ip00 17z00 1i100 18n00 1hd00 18L00 1gN00 19b00 1gp00 19z00 1iN00 17z00 1i100 17X00 yGd00", + "Africa/Kigali|LMT CAT|-20g -200|01|-1ode0g", + "Africa/Kinshasa|WAT|-100|0|", + "Africa/Lagos|LMT WAT|-dA -100|01|-22y0dA", + "Africa/Libreville|LMT WAT|-BM -100|01|-2le0BM", + "Africa/Lome|GMT|0|0|", + "Africa/Luanda|AOT WAT|-Q4 -100|01|-2mG0Q4", + "Africa/Lubumbashi|CAT|-200|0|", + "Africa/Lusaka|LMT CAT|-1R8 -200|01|-2GJdR8", + "Africa/Malabo|LMT GMT WAT|-z8 0 -100|012|-2le0z8 26uoz8", + "Africa/Maputo|LMT CAT|-2ak -200|01|-2GJeak", + "Africa/Maseru|LMT SAST SAST|-1O0 -200 -300|0121|-2GJdO0 1CINO0 1cL00", + "Africa/Mbabane|LMT SAST|-24o -200|01|-2GJe4o", + "Africa/Mogadishu|EAT BEAT|-300 -2u0|010|-1yW300 13iMu0", + "Africa/Monrovia|MMT LRT GMT|H8 Iu 0|012|-23LzgQ 29s01m", + "Africa/Nairobi|LMT EAT BEAT BEAUT|-2rg -300 -2u0 -2J0|01231|-1F3Crg 3Dzrg okMu0 MFXJ0", + "Africa/Ndjamena|LMT WAT WAST|-10c -100 -200|0121|-2le10c 2J3c0c Wn00", + "Africa/Niamey|LMT WAT GMT WAT|-8s 100 0 -100|0123|-2le08s RUN8s 12TX00", + "Africa/Nouakchott|LMT GMT WAT|13M 0 100|0121|-2ldWUc RUKUc 158N00", + "Africa/Ouagadougou|LMT GMT|64 0|01|-2ldXRU", + "Africa/Porto-Novo|LMT GMT WAT|-as 0 -100|012|-2le0as RUMas", + "Africa/Sao_Tome|LMT GMT|Aw 0|01|-2ldXns", + "Africa/Tripoli|LMT CET CEST EET|-QI -100 -200 -200|012121213121212121212121213123123|-21JcQI 1hnBQI vx00 4iP00 xx00 4eN00 Bb00 7ip00 U0n00 A100 1db00 1cN00 1db00 1dd00 1db00 1eN00 1bb00 1e100 1cL00 1c100 1db00 1dd00 1db00 1cN00 1db00 1q100 fAn00 1ep00 1db00 AKq00 TA00 1o000", + "Africa/Tunis|PMT CET CEST|-9l -100 -200|0121212121212121212121212121212121|-2nco9l 18pa9l 1qM00 DA00 3Tc00 11B00 1ze00 WM00 7z00 3d00 14L00 1cN00 1f900 1ar00 16J00 1gXB00 WM00 1rA00 11c00 nwo00 Ko00 1cM00 1cM00 1rA00 10M00 zuM00 10N00 1aN00 1qM00 WM00 1qM00 11A00 1o000", + "Africa/Windhoek|SWAT SAST SAST CAT WAT WAST|-1u0 -200 -300 -200 -100 -200|012134545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2GJdu0 1Ajdu0 1cL00 1SqL00 9NA00 11D00 1nX00 11B00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 11B00 1nX00 11B00", + "America/Adak|NST NWT NPT BST BDT AHST HAST HADT|b00 a00 a00 b00 a00 a00 a00 900|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX00 8wW00 iB00 Qlb00 52O00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 cm00 10q00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Anchorage|CAT CAWT CAPT AHST AHDT YST AKST AKDT|a00 900 900 a00 900 900 900 800|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T000 8wX00 iA00 Qlb00 52O00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 cm00 10q00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Anguilla|LMT AST|464 400|01|-2kNvRU", + "America/Antigua|LMT EST AST|47c 500 400|012|-2kNvQM 1yxAQM", + "America/Araguaina|LMT BRT BRST|3cM 300 200|0121212121212121212121212121212121212121212121212121|-2glwLc HdKLc 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 1EN00 FX00 1HB00 Lz00 dMN00 Lz00 1zd00 Rb00 1wN00 Wn00 1tB00 Rb00 1tB00 WL00 1tB00 Rb00 1zd00 On00 1HB00 FX00 ny100 Lz00", + "America/Argentina/Buenos_Aires|CMT ART ARST ART ARST|4gM 400 300 300 200|0121212121212121212121212121212121212121213434343434343234343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1wp00 Rb00 1wp00 Rb00 1wp00 TX00 g0p00 10M00 j3c00 uL00 1qN00 WL00", + "America/Argentina/Catamarca|CMT ART ARST ART ARST WART|4gM 400 300 300 200 400|0121212121212121212121212121212121212121213434343454343235343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1wp00 Rb00 1wq00 Ra00 1wp00 TX00 g0p00 10M00 ako00 7B00 8zb00 uL00", + "America/Argentina/Cordoba|CMT ART ARST ART ARST WART|4gM 400 300 300 200 400|0121212121212121212121212121212121212121213434343454343234343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1wp00 Rb00 1wq00 Ra00 1wp00 TX00 g0p00 10M00 j3c00 uL00 1qN00 WL00", + "America/Argentina/Jujuy|CMT ART ARST ART ARST WART WARST|4gM 400 300 300 200 400 300|01212121212121212121212121212121212121212134343456543432343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1ze00 TX00 1ld00 WK00 1wp00 TX00 g0p00 10M00 j3c00 uL00", + "America/Argentina/La_Rioja|CMT ART ARST ART ARST WART|4gM 400 300 300 200 400|01212121212121212121212121212121212121212134343434534343235343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1wp00 Qn00 qO00 16n00 Rb00 1wp00 TX00 g0p00 10M00 ako00 7B00 8zb00 uL00", + "America/Argentina/Mendoza|CMT ART ARST ART ARST WART WARST|4gM 400 300 300 200 400 300|0121212121212121212121212121212121212121213434345656543235343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1u200 SL00 1vd00 Tb00 1wp00 TW00 g0p00 10M00 agM00 Op00 7TX00 uL00", + "America/Argentina/Rio_Gallegos|CMT ART ARST ART ARST WART|4gM 400 300 300 200 400|0121212121212121212121212121212121212121213434343434343235343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1wp00 Rb00 1wp00 Rb00 1wp00 TX00 g0p00 10M00 ako00 7B00 8zb00 uL00", + "America/Argentina/Salta|CMT ART ARST ART ARST WART|4gM 400 300 300 200 400|01212121212121212121212121212121212121212134343434543432343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1wp00 Rb00 1wq00 Ra00 1wp00 TX00 g0p00 10M00 j3c00 uL00", + "America/Argentina/San_Juan|CMT ART ARST ART ARST WART|4gM 400 300 300 200 400|01212121212121212121212121212121212121212134343434534343235343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1wp00 Qn00 qO00 16n00 Rb00 1wp00 TX00 g0p00 10M00 ak000 m100 8lb00 uL00", + "America/Argentina/San_Luis|CMT ART ARST ART ARST WART WARST|4gM 400 300 300 200 400 300|01212121212121212121212121212121212121212134343456536353465653|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 XX00 1q200 SL00 AN00 kin00 10M00 ak000 m100 8lb00 8L00 jd00 1qN00 WL00 1qN00", + "America/Argentina/Tucuman|CMT ART ARST ART ARST WART|4gM 400 300 300 200 400|012121212121212121212121212121212121212121343434345434323534343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1wp00 Rb00 1wq00 Ra00 1wp00 TX00 g0p00 10M00 ako00 4N00 8BX00 uL00 1qN00 WL00", + "America/Argentina/Ushuaia|CMT ART ARST ART ARST WART|4gM 400 300 300 200 400|0121212121212121212121212121212121212121213434343434343235343|-20UHHc pKnHc Mn00 1iN00 Tb00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 1C100 LX00 1C100 LX00 1C100 LX00 1C100 Mn00 MN00 2jz00 MN00 4lX00 u100 5Lb00 1pB00 Fnz00 u100 uL00 1vd00 SL00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 zvd00 Bz00 1tB00 TX00 1wp00 Rb00 1wp00 Rb00 1wp00 TX00 g0p00 10M00 ajA00 8p00 8zb00 uL00", + "America/Aruba|LMT ANT AST|4zL 4u0 400|012|-2kV7od 28KLSd", + "America/Asuncion|AMT PYT PYT PYST|3OE 400 300 300|012131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|-1x589k 1DKM9k 3CL00 3Dd00 10L00 1pB00 10n00 1pB00 10n00 1pB00 1cL00 1dd00 1db00 1dd00 1cL00 1dd00 1cL00 1dd00 1cL00 1dd00 1db00 1dd00 1cL00 1dd00 1cL00 1dd00 1cL00 1dd00 1db00 1dd00 1cL00 1lB00 14n00 1dd00 1cL00 1fd00 WL00 1rd00 1aL00 1dB00 Xz00 1qp00 Xb00 1qN00 10L00 1rB00 TX00 1tB00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1qN00 1cL00 WN00 1qL00 11B00 1nX00 1ip00 WL00 1qN00 WL00 1qN00 WL00 1tB00 TX00 1tB00 TX00 1tB00 19X00 1a100 1fz00 1a100 1fz00 1cN00 17b00 1ip00 17b00 1ip00 17b00 1ip00 19X00 1fB00 19X00 1fB00 19X00 1ip00 17b00 1ip00 17b00 1ip00 19X00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1ip00 17b00 1ip00 17b00 1ip00 19X00 1fB00 19X00 1fB00 19X00 1ip00 17b00 1ip00 17b00 1ip00 19X00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1ip00 17b00 1ip00 17b00 1ip00", + "America/Atikokan|CST CDT CWT CPT EST|600 500 500 500 500|0101234|-25TQ00 1in00 Rnb00 3je00 8x300 iw00", + "America/Bahia|LMT BRT BRST|2y4 300 200|01212121212121212121212121212121212121212121212121212121212121|-2glxpU HdLpU 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 1EN00 FX00 1HB00 Lz00 1EN00 Lz00 1C100 IL00 1HB00 Db00 1HB00 On00 1zd00 On00 1zd00 Lz00 1zd00 Rb00 1wN00 Wn00 1tB00 Rb00 1tB00 WL00 1tB00 Rb00 1zd00 On00 1HB00 FX00 l5B00 Rb00", + "America/Bahia_Banderas|LMT MST CST PST MDT CDT|710 700 600 800 600 500|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF00 deL00 8lc00 17c00 10M00 1dd00 otX00 gmN00 P2N00 13Vd00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 1fB00 WL00 1fB00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nW00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00", + "America/Barbados|LMT BMT AST ADT|3Wt 3Wt 400 300|01232323232|-1Q0I1v jsM00 1ODC1v IL00 1ip00 17b00 1ip00 17b00 1ld00 13b00", + "America/Belem|LMT BRT BRST|3dU 300 200|012121212121212121212121212121|-2glwK4 HdKK4 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00", + "America/Belize|LMT CST CHDT CDT|5QM 600 5u0 500|01212121212121212121212121212121212121212121212121213131|-2kBu7c fPA7c Onu0 1zcu0 Rbu0 1wou0 Rbu0 1wou0 Rbu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Rbu0 1wou0 Rbu0 1wou0 Rbu0 1wou0 Rbu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Rbu0 1wou0 Rbu0 1wou0 Rbu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Rbu0 1wou0 Rbu0 1wou0 Rbu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Rbu0 1wou0 Rbu0 1f0Mu0 qn00 lxB00 mn00", + "America/Blanc-Sablon|AST ADT AWT APT|400 300 300 300|010230|-25TS00 1in00 UGp00 8x500 iu00", + "America/Boa_Vista|LMT AMT AMST|42E 400 300|0121212121212121212121212121212121|-2glvVk HdKVk 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 smp00 WL00 1tB00 2L00", + "America/Bogota|BMT COT COST|4Ug 500 400|0121|-2eb73I 38yo3I 2en00", + "America/Boise|PST PDT MST MWT MPT MDT|800 700 700 600 600 600|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q00 1nX00 11B00 1nX00 8C100 JCL00 8x200 ix00 QwN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 Dd00 1Kn00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Cambridge_Bay|zzz MST MWT MPT MDDT MDT CST CDT EST|0 700 600 600 500 600 600 500 500|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc00 RO900 8x200 ix00 LCL00 1fA00 zgO00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11A00 1nX00 2K00 WQ00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Campo_Grande|LMT AMT AMST|3Cs 400 300|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwlw HdLlw 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 1EN00 FX00 1HB00 Lz00 1EN00 Lz00 1C100 IL00 1HB00 Db00 1HB00 On00 1zd00 On00 1zd00 Lz00 1zd00 Rb00 1wN00 Wn00 1tB00 Rb00 1tB00 WL00 1tB00 Rb00 1zd00 On00 1HB00 FX00 1C100 Lz00 1Ip00 HX00 1zd00 On00 1HB00 IL00 1wp00 On00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 Rb00 1zd00 Lz00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 On00 1zd00 On00 1C100 Lz00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 Rb00 1wp00 On00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 On00 1zd00 On00 1C100 Lz00 1C100 Lz00 1C100 Lz00 1C100 On00 1zd00 Rb00 1wp00 On00 1C100 Lz00 1C100 On00 1zd00", + "America/Cancun|LMT CST EST EDT CDT|5L4 600 500 400 500|0123232341414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQG00 2q2o00 yLB00 1lb00 14p00 1lb00 14p00 Lz00 xB00 14p00 1nX00 11B00 1nX00 1fB00 WL00 1fB00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00", + "America/Caracas|CMT VET VET|4rE 4u0 400|0121|-2kV7wk 28KM2k 1IwOu0", + "America/Cayenne|LMT GFT GFT|3tk 400 300|012|-2mrwuE 2gWouE", + "America/Cayman|KMT EST|57b 500|01|-2l1uQN", + "America/Chicago|CST CDT EST CWT CPT|600 500 500 500 500|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s00 1nX00 11B00 1nX00 1wp00 TX00 WN00 1qL00 1cN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 11B00 1Hz00 14p00 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 RB00 8x300 iw00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Chihuahua|LMT MST CST CDT MDT|74k 700 600 500 600|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF00 deL00 8lc00 17c00 10M00 1dd00 2zQN00 1lb00 14p00 1lb00 14q00 1lb00 14p00 1nX00 11B00 1nX00 1fB00 WL00 1fB00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00", + "America/Costa_Rica|SJMT CST CDT|5Ad 600 500|0121212121|-1Xd6nL 2lu0nL Db00 1Kp00 Db00 pRB00 15b00 1kp00 mL00", + "America/Creston|MST PST|700 800|010|-29DR00 43B00", + "America/Cuiaba|LMT AMT AMST|3Ik 400 300|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwfE HdLfE 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 1EN00 FX00 1HB00 Lz00 1EN00 Lz00 1C100 IL00 1HB00 Db00 1HB00 On00 1zd00 On00 1zd00 Lz00 1zd00 Rb00 1wN00 Wn00 1tB00 Rb00 1tB00 WL00 1tB00 Rb00 1zd00 On00 1HB00 FX00 4a100 HX00 1zd00 On00 1HB00 IL00 1wp00 On00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 Rb00 1zd00 Lz00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 On00 1zd00 On00 1C100 Lz00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 Rb00 1wp00 On00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 On00 1zd00 On00 1C100 Lz00 1C100 Lz00 1C100 Lz00 1C100 On00 1zd00 Rb00 1wp00 On00 1C100 Lz00 1C100 On00 1zd00", + "America/Curacao|LMT ANT AST|4zL 4u0 400|012|-2kV7od 28KLSd", + "America/Danmarkshavn|LMT WGT WGST GMT|1eE 300 200 0|01212121212121212121212121212121213|-2a5WJk 2z5fJk 19U00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 DC00", + "America/Dawson|YST YDT YWT YPT YDDT PST PDT|900 800 800 800 700 800 700|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN00 1in00 1o100 13V00 Ser00 8x000 iz00 LCL00 1fA00 jrA00 fNd00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Dawson_Creek|PST PDT PWT PPT MST|800 700 700 700 700|0102301010101010101010101010101010101010101010101010101014|-25TO00 1in00 UGp00 8x100 iy00 3NB00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 ML00", + "America/Denver|MST MDT MWT MPT|700 600 600 600|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r00 1nX00 11B00 1nX00 11B00 1qL00 WN00 mn00 Ord00 8x200 ix00 LCN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Detroit|LMT CST EST EWT EPT EDT|5wb 600 500 400 400 400|01234252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2CgirN peqrN 156L00 8x400 iv00 6fd00 11z00 Jy100 SL00 dnB00 1cL00 s100 1Vz00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Dominica|LMT AST|464 400|01|-2kNvRU", + "America/Edmonton|LMT MST MDT MWT MPT|7xQ 700 600 600 600|01212121212121341212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q8 shdq8 1in00 17d00 hz00 2dB00 1fz00 1a100 11z00 1qN00 WL00 1qN00 11z00 IGN00 8x200 ix00 3NB00 11z00 LFB00 1cL00 3Cp00 1cL00 66N00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Eirunepe|LMT ACT ACST AMT|4Ds 500 400 400|0121212121212121212121212121212131|-2glvkw HdLkw 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 dPB00 On00 yTd00 d5X00", + "America/El_Salvador|LMT CST CDT|5UM 600 500|012121|-1XiG3c 2Fvc3c WL00 1qN00 WL00", + "America/Fortaleza|LMT BRT BRST|2y0 300 200|0121212121212121212121212121212121212121|-2glxq0 HdLq0 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 1EN00 FX00 1HB00 Lz00 nsp00 WL00 1tB00 5z00 2mN00 On00", + "America/Glace_Bay|LMT AST ADT AWT APT|3XM 400 300 300 300|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0c CwO0c 1in00 UGp00 8x500 iu00 iq100 11z00 Jg100 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Godthab|LMT WGT WGST|3qU 300 200|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux4 2z5dx4 19U00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3uQ 2uQ 3u0 2u0 2u0 2u0 400 300 200|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt8 1in00 DXb00 2HbX8 WL00 1qN00 WL00 1qN00 WL00 1tB00 TX00 1tB00 WL00 1qN00 WL00 1qN00 7UHu0 itu0 1tB00 WL00 1qN00 WL00 1qN00 WL00 1qN00 WL00 1tB00 WL00 1ld00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 S100 g0u0 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14n10 1lb00 14p00 1nW00 11C00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zcX0 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Grand_Turk|KMT EST EDT|57b 500 400|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2l1uQN 2HHBQN 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Grenada|LMT AST|464 400|01|-2kNvRU", + "America/Guadeloupe|LMT AST|464 400|01|-2kNvRU", + "America/Guatemala|LMT CST CDT|624 600 500|0121212121|-24KhVU 2efXVU An00 mtd00 Nz00 ifB00 17b00 zDB00 11z00", + "America/Guayaquil|QMT ECT|5e0 500|01|-1yVSK0", + "America/Guyana|LMT GBGT GYT GYT GYT|3QE 3J0 3J0 300 400|01234|-2dvU7k 24JzQk mlc00 Bxbf0", + "America/Halifax|LMT AST ADT AWT APT|4eo 400 300 300 300|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJA xzzJA 1db00 3I300 1in00 3HX00 IL00 1E100 ML00 1yN00 Pb00 1Bd00 Mn00 1Bd00 Rz00 1w100 Xb00 1w100 LX00 1w100 Xb00 1w100 Lz00 1C100 Jz00 1E100 OL00 1yN00 Un00 1qp00 Xb00 1qp00 11X00 1w100 Lz00 1HB00 LX00 1C100 FX00 1w100 Xb00 1qp00 Xb00 1BB00 LX00 1td00 Xb00 1qp00 Xb00 Rf00 8x500 iu00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 3Qp00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 3Qp00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 6i100 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Havana|HMT CST CDT|5tA 500 400|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuuo 72zuo ML00 sld00 An00 1Nd00 Db00 1Nd00 An00 6Ep00 An00 1Nd00 An00 JDd00 Mn00 1Ap00 On00 1fd00 11X00 1qN00 WL00 1wp00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 14n00 1ld00 14L00 1kN00 15b00 1kp00 1cL00 1cN00 1fz00 1a100 1fz00 1fB00 11z00 14p00 1nX00 11B00 1nX00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 14n00 1ld00 14n00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 1a100 1in00 1a100 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 17c00 1o000 11A00 1qM00 11A00 1o000 11A00 1o000 14o00 1lc00 14o00 1lc00 11A00 6i000 Rc00 1wo00 U000 1tA00 Rc00 1wo00 U000 1wo00 U000 1zc00 U000 1qM00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00", + "America/Hermosillo|LMT MST CST PST MDT|7nQ 700 600 800 600|0121212131414141|-1UQF00 deL00 8lc00 17c00 10M00 1dd00 otX00 gmN00 P2N00 13Vd00 1lb00 14p00 1lb00 14p00 1lb00", + "America/Indiana/Indianapolis|CST CDT CWT CPT EST EDT|600 500 500 500 500 400|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s00 1nX00 11B00 1nX00 QI100 Db00 RB00 8x300 iw00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 5Tz00 1o100 qLb00 1cL00 1cN00 1cL00 1qhd00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Indiana/Knox|CST CDT CWT CPT EST|600 500 500 500 500|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 3NB00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 1fz00 1cN00 1cL00 1cN00 11z00 1o100 11z00 1o100 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 3Cn00 8wp00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 z8o00 1o000 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Indiana/Marengo|CST CDT CWT CPT EST EDT|600 500 500 500 500 400|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 dyN00 11z00 6fd00 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 jrz00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1VA00 LA00 1BX00 1e6p00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|600 500 500 500 500 400|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 njX00 WN00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 3Fb00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 19co00 1o000 Rd00 1zb00 Oo00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|600 500 500 500 500 400|01010230101010101010101010101010454541010101010101010101010101010101010101010101010101010101010101010|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 1o100 11z00 g0p00 11z00 1o100 11z00 1qL00 WN00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 1fz00 1cN00 WL00 1qN00 1cL00 1cN00 1cL00 1cN00 caL00 1cL00 1cN00 1cL00 1qhd00 1o000 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Indiana/Vevay|CST CDT CWT CPT EST EDT|600 500 500 500 500 400|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 kPB00 Awn00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1lnd00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|600 500 500 500 500 400|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 1o100 11z00 g0p00 11z00 1o100 11z00 1qL00 WN00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 1fz00 1cN00 WL00 1qN00 1cL00 1cN00 1cL00 1cN00 caL00 1cL00 1cN00 1cL00 1qhd00 1o000 Rd00 1zb00 Oo00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Indiana/Winamac|CST CDT CWT CPT EST EDT|600 500 500 500 500 400|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 1fz00 1cN00 1cL00 1cN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 jrz00 1cL00 1cN00 1cL00 1qhd00 1o000 Rd00 1za00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Inuvik|zzz PST PDDT MST MDT|0 800 600 700 600|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA00 tWU00 1fA00 wPe00 2pz00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Iqaluit|zzz EWT EPT EST EDDT EDT CST CDT|0 400 400 500 300 400 600 500|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K000 7nX00 iv00 LCL00 1fA00 zgO00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11C00 1nX00 11A00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Jamaica|KMT EST EDT|57b 500 400|0121212121212121212121|-2l1uQN 2vwNQN 1cL00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00", + "America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|800 700 700 700 800 900 900 800|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T200 8x100 iy00 Vo100 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cM00 1cM00 1cL00 1cN00 1fz00 1a100 1fz00 co00 10q00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|600 500 500 500 500 400|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s00 1nX00 11B00 1nX00 3Fd00 Nb00 LPd00 11z00 RB00 8x300 iw00 Bb00 10N00 2bB00 8in00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 xz00 gso00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1VA00 LA00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|600 500 500 500 500 400|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 SWp00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11A00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/La_Paz|CMT BOST BOT|4wA 3wA 400|012|-1x37ro 13b00", + "America/Lima|LMT PET PEST|58A 500 400|0121212121212121|-2tyGPo 1bDzPo zX00 1aN00 1cL00 1cN00 1cL00 1PrB00 zX00 1O100 zX00 6Gp00 zX00 98p00 zX00", + "America/Los_Angeles|PST PDT PWT PPT|800 700 700 700|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q00 1nX00 11B00 1nX00 SgN00 8x100 iy00 5Wp00 1Vb00 3dB00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Maceio|LMT BRT BRST|2mQ 300 200|012121212121212121212121212121212121212121|-2glxB8 HdLB8 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 1EN00 FX00 1HB00 Lz00 dMN00 Lz00 8Q100 WL00 1tB00 5z00 2mN00 On00", + "America/Managua|MMT CST EST CDT|5Jc 600 500 500|0121313121213131|-1quieM 1yAMeM 4mn00 9Up00 Dz00 1K100 Dz00 s3F00 1KH00 DB00 9In00 k8p00 19X00 1o300 11y00", + "America/Manaus|LMT AMT AMST|404 400 300|01212121212121212121212121212121|-2glvXU HdKXU 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 dPB00 On00", + "America/Martinique|FFMT AST ADT|44k 400 300|0121|-2mPTTE 2LPbTE 19X00", + "America/Matamoros|LMT CST CDT|6E0 600 500|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG00 2FjC00 1nX00 i6p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 1fB00 WL00 1fB00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 U100 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Mazatlan|LMT MST CST PST MDT|75E 700 600 800 600|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF00 deL00 8lc00 17c00 10M00 1dd00 otX00 gmN00 P2N00 13Vd00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 1fB00 WL00 1fB00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00", + "America/Menominee|CST CDT CWT CPT EST|600 500 500 500 500|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 1o100 11z00 LCN00 1fz00 64100 9Jb00 1cM00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Merida|LMT CST EST CDT|5Ws 600 500 500|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG00 2q2o00 2hz00 wu300 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 1fB00 WL00 1fB00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00", + "America/Metlakatla|PST PWT PPT PDT MeST|800 700 700 700 800|0120303030303030303030303030303034|-17T200 8x100 iy00 Vo100 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00", + "America/Mexico_City|LMT MST CST CDT CWT|6AA 700 600 500 500|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF00 deL00 8lc00 17c00 10M00 1dd00 gEn00 TX00 3xd00 Jb00 6zB00 SL00 e5d00 17b00 1Pff00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 1fB00 WL00 1fB00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00", + "America/Miquelon|LMT AST PMST PMDT|3IE 400 300 200|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkfk 2LTAfk gQ100 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Moncton|EST AST ADT AWT APT|500 400 300 300 300|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH00 CwN00 1in00 zAo00 An00 1Nd00 An00 1Nd00 An00 1Nd00 An00 1Nd00 An00 1Nd00 An00 1K100 Lz00 1zB00 NX00 1u100 Wn00 S200 8x500 iu00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 3Cp00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14n10 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 ReX0 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Monterrey|LMT CST CDT|6Fg 600 500|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG00 2FjC00 1nX00 i6p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 1fB00 WL00 1fB00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00", + "America/Montevideo|MMT UYT UYHST UYST UYT UYHST|3II 3u0 300 200 300 2u0|012121212121212121212121213434343434345454543453434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-20UIfg 8jzJg 1cLu0 1dcu0 1cLu0 1dcu0 1cLu0 ircu0 11zu0 1o0u0 11zu0 1o0u0 11zu0 1qMu0 WLu0 1qMu0 WLu0 1qMu0 WLu0 1qMu0 11zu0 1o0u0 11zu0 NAu0 11bu0 2iMu0 zWu0 Dq100 19X00 pd00 jz00 cm100 19X00 1fB00 1on00 11d00 1oL00 1nB00 1fzu0 1aou0 1fzu0 1aou0 1fzu0 3nAu0 Jb00 3MN00 1SLu0 4jzu0 2PB00 Lb00 3Dd00 1pb00 ixd00 An00 1MN00 An00 1wp00 On00 1wp00 Rb00 1zd00 On00 1wp00 Rb00 s8p00 1fB00 1ip00 11z00 1ld00 14n00 1o100 11z00 1o100 11z00 1o100 14n00 1ld00 14n00 1ld00 14n00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 14n00 1ld00 14n00 1ld00 14n00 1o100 11z00 1o100 11z00 1o100 14n00 1ld00 14n00 1ld00 14n00 1ld00 14n00 1o100 11z00 1o100 11z00 1o100 14n00 1ld00 14n00 1ld00 14n00 1o100 11z00 1o100 11z00 1o100 14n00 1ld00 14n00 1ld00 14n00 1ld00 14n00 1o100 11z00 1o100 11z00 1o100", + "America/Montreal|EST EDT EWT EPT|500 400 400 400|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-28tR00 bV00 2m300 1in00 121u0 1nb00 1g100 11z00 1o0u0 11zu0 1o0u0 11zu0 3VAu0 Rzu0 1qMu0 WLu0 1qMu0 WLu0 1qKu0 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 4kO00 8x400 iv00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 1fz00 1cN00 1cL00 1cN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Montserrat|LMT AST|464 400|01|-2kNvRU", + "America/Nassau|LMT EST EDT|59u 500 400|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuOu 26XdOu 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/New_York|EST EDT EWT EPT|500 400 400 400|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t00 1nX00 11B00 1nX00 11B00 1qL00 1a100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 RB00 8x400 iv00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Nipigon|EST EDT EWT EPT|500 400 400 400|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR00 1in00 Rnb00 3je00 8x400 iv00 19yN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b00 a00 a00 b00 a00 900 900 800|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX00 8wW00 iB00 Qlb00 52O00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 cl00 10q00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Noronha|LMT FNT FNST|29E 200 100|0121212121212121212121212121212121212121|-2glxOk HdKOk 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 1EN00 FX00 1HB00 Lz00 nsp00 WL00 1tB00 2L00 2pB00 On00", + "America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|700 600 600 600 600 500|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r00 1nX00 11B00 1nX00 SgN00 8x200 ix00 QwN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Oo00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/North_Dakota/Center|MST MDT MWT MPT CST CDT|700 600 600 600 600 500|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r00 1nX00 11B00 1nX00 SgN00 8x200 ix00 QwN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14o00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|700 600 600 600 600 500|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r00 1nX00 11B00 1nX00 SgN00 8x200 ix00 QwN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14o00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Ojinaga|LMT MST CST CDT MDT|6VE 700 600 500 600|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF00 deL00 8lc00 17c00 10M00 1dd00 2zQN00 1lb00 14p00 1lb00 14q00 1lb00 14p00 1nX00 11B00 1nX00 1fB00 WL00 1fB00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 U100 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Panama|CMT EST|5jA 500|01|-2uduEo", + "America/Pangnirtung|zzz AST AWT APT ADDT ADT EDT EST CST CDT|0 400 300 300 200 300 400 500 600 500|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM00 PnG00 8x500 iu00 LCL00 1fA00 zgO00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1o000 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11C00 1nX00 11A00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Paramaribo|LMT PMT PMT NEGT SRT SRT|3EE 3EQ 3EA 3u0 3u0 300|012345|-2nDUjk Wqo0c qanXI 1dmLNo lzc00", + "America/Phoenix|MST MDT MWT|700 600 600|01010202010|-261r00 1nX00 11B00 1nX00 SgN00 4Al10 Ap00 1db00 SWqX0 1cL00", + "America/Port-au-Prince|PPMT EST EDT|4N0 500 400|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb0 2FnMb0 19X00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14q00 1o000 11A00 1o000 11A00 1o000 14o00 1lc00 14o00 1lc00 14o00 1o000 11A00 1o000 11A00 1o000 14o00 1lc00 14o00 1lc00 i6n00 1nX00 11B00 1nX00 d4300 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Port_of_Spain|LMT AST|464 400|01|-2kNvRU", + "America/Porto_Velho|LMT AMT AMST|4fA 400 300|012121212121212121212121212121|-2glvIo HdKIo 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00", + "America/Puerto_Rico|AST AWT APT|400 300 300|0120|-17lU00 7XT00 iu00", + "America/Rainy_River|CST CDT CWT CPT|600 500 500 500|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ00 1in00 Rnb00 3je00 8x300 iw00 19yN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Rankin_Inlet|zzz CST CDDT CDT EST|0 600 400 500 500|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc00 keu00 1fA00 zgO00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Recife|LMT BRT BRST|2jA 300 200|0121212121212121212121212121212121212121|-2glxEo HdLEo 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 1EN00 FX00 1HB00 Lz00 nsp00 WL00 1tB00 2L00 2pB00 On00", + "America/Regina|LMT MST MDT MWT MPT CST|6WA 700 600 600 600 600|012121212121212121212121341212121212121212121212121215|-2AD51o uHe1o 1in00 s2L00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 66N00 1cL00 1cN00 19X00 1fB00 1cL00 1fB00 1cL00 1cN00 1cL00 M300 8x200 ix00 1ip00 1cL00 1ip00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 3NB00 1cL00 1cN00", + "America/Resolute|zzz CST CDDT CDT EST|0 600 400 500 500|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA00 GWS00 1fA00 zgO00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Rio_Branco|LMT ACT ACST AMT|4vc 500 400 400|01212121212121212121212121212131|-2glvsM HdLsM 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 NBd00 d5X00", + "America/Santa_Isabel|LMT MST PST PDT PWT PPT|7Ds 700 800 700 700 700|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE00 4PX00 8mM00 8lc00 SN00 1cL00 pHB00 83r00 zI00 5O100 1Rz00 cOP00 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 BUp00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00", + "America/Santarem|LMT AMT AMST BRT|3CM 400 300 300|0121212121212121212121212121213|-2glwlc HdLlc 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 qe100 xb00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 NBd00", + "America/Santiago|SMT CLT CLT CLST CLST|4GK 500 400 400 300|010203131313131313124242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424|-2q5The fNche 5gLGK 21bhe jRAGK 1pbhe 11d00 1oL00 11d00 1oL00 11d00 1oL00 11d00 1pb00 11d00 nHX00 op00 9UK00 1Je00 Qen00 WL00 1zd00 On00 1ip00 11z00 1o100 11z00 1qN00 WL00 1ld00 14n00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 WL00 1qN00 1cL00 1cN00 11z00 1ld00 14n00 1qN00 11z00 1cN00 19X00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 17b00 1ip00 11z00 1ip00 1fz00 1fB00 11z00 1qN00 WL00 1qN00 WL00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 17b00 1ip00 11z00 1o100 19X00 1fB00 1nX00 G100 1EL00 Op00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Op00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Op00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Op00 1zb00 Rd00 1wn00 Rd00", + "America/Santo_Domingo|SDMT EST EDT EHDT AST|4E0 500 400 4u0 400|01213131313131414|-1ttjk0 1lJMk0 Mn00 6sp00 Lbu0 1Cou0 yLu0 1RAu0 wLu0 1QMu0 xzu0 1Q0u0 xXu0 1PAu0 13jB00 e000", + "America/Sao_Paulo|LMT BRT BRST|36s 300 200|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwRw HdKRw 1cc00 1e100 1bX00 Ezd00 So00 1vA00 Mn00 1BB00 ML00 1BB00 zX00 pTd00 PX00 2ep00 nz00 1C100 zX00 1C100 LX00 1C100 Mn00 H2100 Rb00 1tB00 IL00 1Fd00 FX00 1EN00 FX00 1HB00 Lz00 1EN00 Lz00 1C100 IL00 1HB00 Db00 1HB00 On00 1zd00 On00 1zd00 Lz00 1zd00 Rb00 1wN00 Wn00 1tB00 Rb00 1tB00 WL00 1tB00 Rb00 1zd00 On00 1HB00 FX00 1C100 Lz00 1Ip00 HX00 1zd00 On00 1HB00 IL00 1wp00 On00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 Rb00 1zd00 Lz00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 On00 1zd00 On00 1C100 Lz00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 Rb00 1wp00 On00 1C100 Lz00 1C100 On00 1zd00 On00 1zd00 On00 1zd00 On00 1C100 Lz00 1C100 Lz00 1C100 Lz00 1C100 On00 1zd00 Rb00 1wp00 On00 1C100 Lz00 1C100 On00 1zd00", + "America/Scoresbysund|LMT CGT CGST EGST EGT|1rQ 200 100 0 100|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2a5Ww8 2z5ew8 1a000 1cK00 1cL00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "America/Sitka|PST PWT PPT PDT YST AKST AKDT|800 700 700 700 900 900 800|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T200 8x100 iy00 Vo100 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 co00 10q00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3uQ 2uQ 3u0 2u0 2u0 2u0 1u0|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit8 14L00 1nB00 1in00 1gm00 Dz00 1JB00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1fB00 19X00 1fB00 19X00 10O00 eKX8 19X00 1iq00 WL00 1qN00 WL00 1qN00 WL00 1tB00 TX00 1tB00 WL00 1qN00 WL00 1qN00 7UHu0 itu0 1tB00 WL00 1qN00 WL00 1qN00 WL00 1qN00 WL00 1tB00 WL00 1ld00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14n10 1lb00 14p00 1nW00 11C00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zcX0 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/St_Kitts|LMT AST|464 400|01|-2kNvRU", + "America/St_Lucia|LMT AST|464 400|01|-2kNvRU", + "America/St_Thomas|LMT AST|464 400|01|-2kNvRU", + "America/St_Vincent|LMT AST|464 400|01|-2kNvRU", + "America/Swift_Current|LMT MST MDT MWT MPT CST|7bk 700 600 600 600 600|012134121212121212121215|-2AD4ME uHdME 1in00 UGp00 8x200 ix00 1o100 17b00 1ip00 11z00 1o100 11z00 1o100 11z00 isN00 1cL00 3Cp00 1cL00 1cN00 11z00 1qN00 WL00 pMp00", + "America/Tegucigalpa|LMT CST CDT|5MQ 600 500|01212121|-1WGGb8 2ETcb8 WL00 1qN00 WL00 GRd00 AL00", + "America/Thule|LMT AST ADT|4z8 400 300|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5ToQ 31NBoQ 1cL00 1cN00 1cL00 1fB00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Thunder_Bay|CST EST EWT EPT EDT|600 500 400 400 400|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S00 1iaN00 8x400 iv00 XNB00 1cL00 1cN00 1fz00 1cN00 1cL00 3Cp00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Tijuana|LMT MST PST PDT PWT PPT|7M4 700 800 700 700 700|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE00 4PX00 8mM00 8lc00 SN00 1cL00 pHB00 83r00 zI00 5O100 1Rz00 cOP00 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 BUp00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 U100 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Toronto|EST EDT EWT EPT|500 400 400 400|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR00 1in00 11Wu0 1nzu0 1fD00 WJ00 1wr00 Nb00 1Ap00 On00 1zd00 On00 1wp00 TX00 1tB00 TX00 1tB00 TX00 1tB00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 4kM00 8x400 iv00 1o100 11z00 1nX00 11z00 1o100 11z00 1o100 1qL00 11D00 1nX00 11B00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Tortola|LMT AST|464 400|01|-2kNvRU", + "America/Vancouver|PST PDT PWT PPT|800 700 700 700|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO00 1in00 UGp00 8x100 iy00 1o100 17b00 1ip00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Whitehorse|YST YDT YWT YPT YDDT PST PDT|900 800 800 800 700 800 700|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN00 1in00 1o100 13V00 Ser00 8x000 iz00 LCL00 1fA00 1Be00 xDz00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Winnipeg|CST CDT CWT CPT|600 500 500 500|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi00 WL00 3ND00 1in00 Jap00 Rb00 aCN00 8x300 iw00 1tB00 11z00 1ip00 11z00 1o100 11z00 1o100 11z00 1rd00 10L00 1op00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 1cL00 1cN00 11z00 6i100 WL00 6i100 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1a000 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1a000 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 14o00 1lc00 14o00 1o000 11A00 1o000 11A00 1o000 14o00 1lc00 14o00 1lc00 14o00 1o000 11A00 1o000 11A00 1o000 14o00 1lc00 14o00 1lc00 14o00 1lc00 14o00 1o000 11A00 1o000 11A00 1o000 14o00 1lc00 14o00 1lc00 14o00 1o000 11A00 1o000 11A00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Yakutat|YST YWT YPT YDT AKST AKDT|900 800 800 800 900 800|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T100 8x000 iz00 Vo100 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 cn00 10q00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "America/Yellowknife|zzz MST MWT MPT MDDT MDT|0 700 600 600 500 600|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA00 hix00 8x200 ix00 LCL00 1fA00 zgO00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "Antarctica/Casey|zzz WST CAST|0 -800 -b00|012121|-2q000 1DjS00 T900 40P00 KL00", + "Antarctica/Davis|zzz DAVT DAVT|0 -700 -500|01012121|-vyo00 iXt00 alj00 1D7v00 VB00 3Wn00 KN00", + "Antarctica/DumontDUrville|zzz PMT DDUT|0 -a00 -a00|0102|-U0o00 cfq00 bFm00", + "Antarctica/Macquarie|EST EST zzz MIST|-a00 -b00 0 -b00|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E800 19X00 4SL00 1ayy00 Lvs00 1cM00 1o000 Rc00 1wo00 Rc00 1wo00 U000 1wo00 LA00 1C000 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 11A00 1qM00 WM00 1qM00 Oo00 1zc00 Oo00 1zc00 Oo00 1wo00 WM00 1tA00 WM00 1tA00 U000 1tA00 U000 1tA00 11A00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 11A00 1o000 1io00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1cM00 1a000 1io00 1cM00 1cM00 1cM00 1cM00 1cM00", + "Antarctica/Mawson|zzz MAWT MAWT|0 -600 -500|012|-CEo00 2fyk00", + "Antarctica/McMurdo|NZMT NZST NZST NZDT|-bu0 -cu0 -c00 -d00|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu0 Lz00 1tB00 11zu0 1o0u0 11zu0 1o0u0 11zu0 1o0u0 14nu0 1lcu0 14nu0 1lcu0 1lbu0 11Au0 1nXu0 11Au0 1nXu0 11Au0 1nXu0 11Au0 1nXu0 11Au0 1qLu0 WMu0 1qLu0 11Au0 1n1bu0 IM00 1C000 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1qM00 14o00 1lc00 14o00 1lc00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1io00 17c00 1lc00 14o00 1lc00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1lc00 14o00 1lc00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1io00 17c00 1io00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1io00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000", + "Antarctica/Palmer|zzz ARST ART ART ARST CLT CLST|0 300 400 300 200 400 300|012121212123435656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656|-cao00 nD00 1vd00 SL00 1vd00 17z00 1cN00 1fz00 1cN00 1cL00 1cN00 asn00 Db00 jsN00 14N00 11z00 1o100 11z00 1qN00 WL00 1qN00 WL00 1qN00 1cL00 1cN00 11z00 1ld00 14n00 1qN00 11z00 1cN00 19X00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 17b00 1ip00 11z00 1ip00 1fz00 1fB00 11z00 1qN00 WL00 1qN00 WL00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 17b00 1ip00 11z00 1o100 19X00 1fB00 1nX00 G100 1EL00 Op00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Op00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Op00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Op00 1zb00 Rd00 1wn00 Rd00", + "Antarctica/Rothera|zzz ROTT|0 300|01|gOo00", + "Antarctica/Syowa|zzz SYOT|0 -300|01|-vs000", + "Antarctica/Vostok|zzz VOST|0 -600|01|-tjA00", + "Asia/Aden|LMT AST|-2XS -300|01|-MG2XS", + "Asia/Almaty|LMT ALMT ALMT ALMST|-57M -500 -600 -700|0123232323232323232323232323232323232323232323232|-1Pc57M eUo7M 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 3Cl00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00", + "Asia/Amman|LMT EET EEST|-2nI -200 -300|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2nI 1HiMnI KL00 1oN00 11b00 1oN00 11b00 1pd00 1dz00 1cp00 11b00 1op00 11b00 fO100 1db00 1e100 1cL00 1cN00 1cL00 1cN00 1fz00 1pd00 10n00 1ld00 14n00 1hB00 15b00 1ip00 19X00 1cN00 1cL00 1cN00 17b00 1ld00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1So00 y000 1fc00 1dc00 1co00 1dc00 1cM00 1cM00 1cM00 1o000 11A00 1lc00 17c00 1cM00 1cM00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 4bX00 Dd00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00", + "Asia/Anadyr|LMT ANAT ANAT ANAST ANAST ANAST ANAT|-bNU -c00 -d00 -e00 -d00 -c00 -b00|01232414141414141414141561414141414141414141414141414141414141561|-1PcbNU eUnNU 23CL00 1db00 1cN00 1dc00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qN00 WM00", + "Asia/Aqtau|LMT FORT FORT SHET SHET SHEST AQTT AQTST AQTST AQTT|-3l4 -400 -500 -500 -600 -600 -500 -600 -500 -400|012345353535353535353536767676898989898989898989896|-1Pc3l4 eUnl4 1jcL00 JDc00 1cL00 1dc00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 2UK00 Fz00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cN00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 RW00", + "Asia/Aqtobe|LMT AKTT AKTT AKTST AKTT AQTT AQTST|-3ME -400 -500 -600 -600 -500 -600|01234323232323232323232565656565656565656565656565|-1Pc3ME eUnME 23CL00 1db00 1cM00 1dc00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 2UK00 Fz00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00", + "Asia/Ashgabat|LMT ASHT ASHT ASHST ASHST TMT TMT|-3Rw -400 -500 -600 -500 -400 -500|012323232323232323232324156|-1Pc3Rw eUnRw 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 ba00 xC00", + "Asia/Baghdad|BMT AST ADT|-2VA -300 -400|012121212121212121212121212121212121212121212121212121|-26BeVA 2ACnVA 11b00 1cp00 1dz00 1dd00 1db00 1cN00 1cp00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1de00 1dc00 1dc00 1dc00 1cM00 1dc00 1cM00 1dc00 1cM00 1dc00 1dc00 1dc00 1cM00 1dc00 1cM00 1dc00 1cM00 1dc00 1dc00 1dc00 1cM00 1dc00 1cM00 1dc00 1cM00 1dc00 1dc00 1dc00 1cM00 1dc00 1cM00 1dc00 1cM00 1dc00", + "Asia/Bahrain|LMT GST AST|-3mk -400 -300|012|-21Jfmk 27BXmk", + "Asia/Baku|LMT BAKT BAKT BAKST BAKST AZST AZT AZT AZST|-3jo -300 -400 -500 -400 -400 -300 -400 -500|0123232323232323232323245657878787878787878787878787878787878787878787878787878787878787878787878787878787878787|-1Pc3jo 1jUojo WCL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 10K00 c300 1cJ00 1cL00 8wu00 1o000 11z00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Asia/Bangkok|BMT ICT|-6G4 -700|01|-218SG4", + "Asia/Beirut|EET EEST|-200 -300|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq00 1on00 14100 1db00 19B00 1in00 1ip00 WL00 1lQp00 11b00 1oN00 11b00 1oN00 11b00 1pd00 11b00 1oN00 11b00 q6N00 En00 1oN00 11b00 1oN00 11b00 1oN00 11b00 1pd00 11b00 1oN00 11b00 1op00 11b00 dA100 17b00 1iN00 17b00 1iN00 17b00 1iN00 17b00 1vB00 SL00 1mp00 13z00 1iN00 17b00 1iN00 17b00 1jd00 12n00 1a100 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00", + "Asia/Bishkek|LMT FRUT FRUT FRUST FRUST KGT KGST KGT|-4Wo -500 -600 -700 -600 -500 -600 -600|01232323232323232323232456565656565656565656565656567|-1Pc4Wo eUnWo 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 11c00 1tX00 17b00 1ip00 17b00 1ip00 17b00 1ip00 17b00 1ip00 19X00 1cPu0 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 T8u0", + "Asia/Brunei|LMT BNT BNT|-7DE -7u0 -800|012|-1KITDE gDc9E", + "Asia/Choibalsan|LMT ULAT ULAT CHOST CHOT CHOT|-7C0 -700 -800 -a00 -900 -800|012343434343434343434343434343434343434343434345|-2APHC0 2UkoC0 cKn00 1da00 1dd00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 6hD00 11z00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 3Db00", + "Asia/Chongqing|LMT LONT CST CDT|-76k -700 -800 -900|012323232323232|-1Ggv6k 27pA6k eBz00 Rb00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00", + "Asia/Colombo|MMT IST IHST IST LKT LKT|-5jw -5u0 -600 -6u0 -6u0 -600|01231451|-2zOtjw 1rFbNw 1zzu0 7Apu0 23dz00 11zu0 n3cu0", + "Asia/Damascus|LMT EET EEST|-2pc -200 -300|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jepc Hepc 17b00 1ip00 17b00 1ip00 17b00 1ip00 19X00 1xRB00 11X00 1oN00 10L00 1pB00 11b00 1oN00 10L00 1mp00 13X00 1oN00 11b00 1pd00 11b00 1oN00 11b00 1oN00 11b00 1oN00 11b00 1pd00 11b00 1oN00 11b00 1oN00 11b00 1oN00 11b00 1pd00 11b00 1oN00 Nb00 1AN00 Nb00 bcp00 19X00 1gp00 19X00 3ld00 1xX00 Vd00 1Bz00 Sp00 1vX00 10p00 1dz00 1cN00 1cL00 1db00 1db00 1g100 1an00 1ap00 1db00 1fd00 1db00 1cN00 1db00 1dd00 1db00 1cp00 1dz00 1c100 1dX00 1cN00 1db00 1dd00 1db00 1cN00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1db00 1cN00 1db00 1cN00 19z00 1fB00 1qL00 11B00 1on00 Wp00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 1qL00 WN00 1qL00", + "Asia/Dhaka|HMT BURT IST DACT BDT BDST|-5Rk -6u0 -5u0 -600 -600 -700|01213454|-18LFRk 1unnk HB00 m6n00 LqMu0 1x6n00 1hXX0", + "Asia/Dili|LMT TLT JST TLT WITA|-8mk -800 -900 -900 -800|012343|-2le8mk 1dnXmk 8HA00 1ew000 Xld00", + "Asia/Dubai|LMT GST|-3Fc -400|01|-21JfFc", + "Asia/Dushanbe|LMT DUST DUST DUSST DUSST TJT|-4zc -500 -600 -700 -600 -500|0123232323232323232323245|-1Pc4zc eUnzc 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 14N00", + "Asia/Gaza|EET EET EEST IST IDT|-200 -300 -300 -200 -300|010101010102020202020202020202023434343434343434343434343430202020202020202020202020202020202020202020202020202020202020202020202020202020202020|-1c2q00 5Rb00 10r00 1px00 10N00 1pz00 16p00 1jB00 16p00 1jx00 pBd00 Vz00 1oN00 11b00 1oO00 10N00 1pz00 10N00 1pb00 10N00 1pb00 10N00 1pb00 10N00 1pz00 10N00 1pb00 10N00 1pb00 11d00 1oL00 dW00 hfB00 Db00 1fB00 Rb00 npB00 11z00 1C100 IL00 1s100 10n00 1o100 WL00 1zd00 On00 1ld00 11z00 1o100 14n00 1o100 14n00 1nd00 12n00 1nd00 Xz00 1q100 12n00 M100 C000 17c00 1io00 17c00 1io00 17c00 1o000 1cL00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 17c00 1io00 18N00 1bz00 19z00 1gp00 16100 1iL00 11z00 1o100 14o00 1lA10 SKX0 1xd10 MKX0 1AN00 1a000 1fA00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00", + "Asia/Harbin|LMT CHAT CST CHAT CDT|-8qI -8u0 -800 -900 -900|012312424242424242|-1GgwqI a8nUI j4Mu0 146L00 y5Au0 eBAu0 Rb00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00", + "Asia/Hebron|EET EET EEST IST IDT|-200 -300 -300 -200 -300|01010101010202020202020202020202343434343434343434343434343020202020202020202020202020202020202020202020202020202020202020202020202020202020202020|-1c2q00 5Rb00 10r00 1px00 10N00 1pz00 16p00 1jB00 16p00 1jx00 pBd00 Vz00 1oN00 11b00 1oO00 10N00 1pz00 10N00 1pb00 10N00 1pb00 10N00 1pb00 10N00 1pz00 10N00 1pb00 10N00 1pb00 11d00 1oL00 dW00 hfB00 Db00 1fB00 Rb00 npB00 11z00 1C100 IL00 1s100 10n00 1o100 WL00 1zd00 On00 1ld00 11z00 1o100 14n00 1o100 14n00 1nd00 12n00 1nd00 Xz00 1q100 12n00 M100 C000 17c00 1io00 17c00 1io00 17c00 1o000 1cL00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 17c00 1io00 18N00 1bz00 19z00 1gp00 16100 1iL00 12L00 1mN00 14o00 1lc00 Tb00 1xd10 MKX0 bB00 cn00 1cN00 1a000 1fA00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 19X00 1fB00 19X00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00", + "Asia/Ho_Chi_Minh|LMT SMT ICT ICT|-76E -76k -700 -800|01232|-2yKT6E byo1k 2KM5k Kfz00", + "Asia/Hong_Kong|LMT HKT HKST JST|-7AG -800 -900 -900|0121312121212121212121212121212121212121212121212121212121212121212121|-2CFHAG 1sEP6G 1cL00 ylu0 93X00 1qQu0 1tX00 Rd00 1In00 NB00 1cL00 11B00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1kL00 14N00 1nX00 U100 1tz00 U100 1wn00 Rd00 1wn00 U100 1tz00 U100 1tz00 U100 1tz00 U100 1wn00 Rd00 1wn00 Rd00 1wn00 U100 1tz00 U100 1tz00 17d00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 s100 1Vz00 1cN00 1cL00 1cN00 1cL00 6fd00 14n00", + "Asia/Hovd|LMT HOVT HOVT HOVST|-66A -600 -700 -800|01232323232323232323232323232323232323232323232|-2APG6A 2Uko6A cKn00 1db00 1dd00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 6hD00 11z00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00", + "Asia/Irkutsk|IMT IRKT IRKT IRKST IRKST IRKT|-6Vk -700 -800 -900 -800 -900|01232323232323232323232412323232323232323232323232323232323232325|-21zGVk pjXVk 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Asia/Jakarta|BMT JAVT WIB JST WIB WIB|-77c -7k0 -7u0 -900 -800 -700|01232425|-1Q0Tk0 luM00 mPzO0 8vWu0 6kpu0 4PXu0 xhcu0", + "Asia/Jayapura|LMT WIT CST|-9mM -900 -9u0|0121|-1uu9mM sMMmM L4nu0", + "Asia/Jerusalem|JMT IST IDT IDDT|-2kE -200 -300 -400|01212121212132121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26BekE SyMkE 5Rb00 10r00 1px00 10N00 1pz00 16p00 1jB00 16p00 1jx00 3LB00 Em00 or00 1cn00 1dB00 16n00 10O00 1ja00 1tC00 14o00 1cM00 1a000 11A00 1Na00 An00 1MP00 AJ00 1Kp00 LC00 1oo00 Wl00 EQN00 Db00 1fB00 Rb00 npB00 11z00 1C100 IL00 1s100 10n00 1o100 WL00 1zd00 On00 1ld00 11z00 1o100 14n00 1o100 14n00 1nd00 12n00 1nd00 Xz00 1q100 12n00 1hB00 1dX00 1ep00 1aL00 1eN00 17X00 1nf00 11z00 1tB00 19W00 1e100 17b00 1ep00 1gL00 18N00 1fz00 1eN00 17b00 1gq00 1gn00 19d00 1dz00 1c100 17X00 1hB00 1gn00 19d00 1dz00 1c100 17X00 1kp00 1dz00 1c100 1aL00 1eN00 1oL00 10N00 1oL00 10N00 1oL00 10N00 1rz00 W100 1rz00 W100 1rz00 10N00 1oL00 10N00 1oL00 10N00 1rz00 W100 1rz00 W100 1rz00 10N00 1oL00 10N00 1oL00 10N00 1oL00 10N00 1rz00 W100 1rz00 W100 1rz00 10N00 1oL00 10N00 1oL00 10N00 1rz00 W100 1rz00 W100 1rz00 W100 1rz00 10N00 1oL00 10N00 1oL00", + "Asia/Kabul|AFT AFT|-400 -4u0|01|-10Qs00", + "Asia/Kamchatka|LMT PETT PETT PETST PETST|-ayA -b00 -c00 -d00 -c00|01232323232323232323232412323232323232323232323232323232323232412|-1SLKyA ivXyA 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qN00 WM00", + "Asia/Karachi|LMT IST IST KART PKT PKST|-4sc -5u0 -6u0 -500 -500 -600|012134545454|-2xossc 1qOKWc 7zX00 eup00 LqMu0 1fy010 1cL00 dK0X0 11b00 16100 1jX00", + "Asia/Kashgar|LMT KAST KAST CST CDT|-53U -5u0 -500 -800 -900|0123434343434343|-1Ggt3U tdbxU 1Ccou0 eBx00 Rb00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00", + "Asia/Kathmandu|LMT IST NPT|-5Fg -5u0 -5J0|012|-21JhFg 2EGMbg", + "Asia/Khandyga|LMT YAKT YAKT YAKST YAKST VLAT VLAST VLAT YAKT|-92d -800 -900 -a00 -900 -a00 -b00 -b00 -a00|0123232323232323232323241232323232323232323232323256565656565656578|-21Q92d pAp2d 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 qK00 yN00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 17V00", + "Asia/Kolkata|HMT BURT IST IST|-5Rk -6u0 -5u0 -6u0|01232|-18LFRk 1unnk HB00 7zX00", + "Asia/Krasnoyarsk|LMT KRAT KRAT KRAST KRAST KRAT|-6bk -600 -700 -800 -700 -800|01232323232323232323232412323232323232323232323232323232323232325|-21Hibk prAbk 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Asia/Kuala_Lumpur|SMT MALT MALST MALT MALT JST MYT|-6Tp -700 -7k0 -7k0 -7u0 -900 -800|01234546|-2Bg6Tp 17anTp 7hXE0 dM000 17bO0 8Fyu0 1so1u0", + "Asia/Kuching|LMT BORT BORT BORTST JST MYT|-7lk -7u0 -800 -8k0 -900 -800|01232323232323232425|-1KITlk gDbPk 6ynu0 AnE0 1O0k0 AnE0 1NAk0 AnE0 1NAk0 AnE0 1NAk0 AnE0 1O0k0 AnE0 1NAk0 AnE0 pAk0 8Fz00 1so100", + "Asia/Kuwait|LMT AST|-3bU -300|01|-MG3bU", + "Asia/Macau|LMT MOT MOST CST|-7yk -800 -900 -800|0121212121212121212121212121212121212121213|-2le7yk 1XO34k 1wn00 Rd00 1wn00 R9u0 1wqu0 U100 1tz00 TVu0 1tz00 17gu0 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cJu0 1cL00 1cN00 1fz00 1cN00 1cOu0 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cJu0 1cL00 1cN00 1fz00 1cN00 1cL00 KEp00", + "Asia/Magadan|LMT MAGT MAGT MAGST MAGST MAGT|-a3c -a00 -b00 -c00 -b00 -c00|01232323232323232323232412323232323232323232323232323232323232325|-1Pca3c eUo3c 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Asia/Makassar|LMT MMT WITA JST|-7VA -7VA -800 -900|01232|-21JjVA vfc00 myLVA 8ML00", + "Asia/Manila|PHT PHST JST|-800 -900 -900|010201010|-1kJI00 AL00 cK100 65X00 mXB00 vX00 VK100 1db00", + "Asia/Muscat|LMT GST|-3So -400|01|-21JfSo", + "Asia/Nicosia|LMT EET EEST|-2ds -200 -300|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2ds 2a3cds 1cL00 1qp00 Xz00 19B00 19X00 1fB00 1db00 1cp00 1cL00 1fB00 19X00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 1cL00 1cN00 1cL00 1cN00 1o300 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Asia/Novokuznetsk|NMT KRAT KRAT KRAST KRAST NOVST NOVT NOVT|-5MM -600 -700 -800 -700 -700 -600 -700|01232323232323232323232412323232323232323232323232323232323232567|-21HhMM przMM 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qN00 WM00", + "Asia/Novosibirsk|LMT NOVT NOVT NOVST NOVST|-5vE -600 -700 -800 -700|012323232323232323232324123234141414141414141414141414141414141412|-21QnvE pAFvE 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 ml00 Os00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Asia/Omsk|LMT OMST OMST OMSST OMSST OMST|-4RA -500 -600 -700 -600 -700|01232323232323232323232412323232323232323232323232323232323232325|-224sRA pMLRA 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Asia/Oral|LMT URAT URAT URAST URAT URAST ORAT ORAST ORAT|-3po -400 -500 -600 -600 -500 -400 -500 -500|012343232323232323251516767676767676767676767676768|-1Pc3po eUnpo 23CL00 1db00 1cM00 1dc00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cN00 1cM00 1fA00 2UK00 Fz00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 RW00", + "Asia/Phnom_Penh|LMT SMT ICT ICT|-6XE -76k -700 -800|01232|-2yKSXE bynSk 2KM5k Kfz00", + "Asia/Pontianak|LMT PMT WIB JST WIB WITA WIB|-7hk -7hk -7u0 -900 -800 -800 -700|012324256|-2ua7hk XE000 munLk 8Rau0 6kpu0 4PXu0 xhcu0 Wqnu0", + "Asia/Pyongyang|KST KST KST|-8u0 -900 -800|010121|-2CsUu0 Ucnu0 9Iou0 S5Xu0 hXB00", + "Asia/Qatar|LMT GST AST|-3q8 -400 -300|012|-21Jfq8 27BXq8", + "Asia/Qyzylorda|LMT KIZT KIZT KIZST KIZT QYZT QYZT QYZST|-4lQ -400 -500 -600 -600 -500 -600 -700|012343232323232323232325676767676767676767676767676|-1Pc4lQ eUolQ 23CL00 1db00 1cM00 1dc00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 2UK00 dC00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00", + "Asia/Rangoon|RMT BURT JST MMT|-6oE -6u0 -900 -6u0|0123|-21JioE SmnSE 7j9u0", + "Asia/Riyadh|LMT AST|-36Q -300|01|-MG36Q", + "Asia/Sakhalin|LMT CJT JST SAKT SAKST SAKST SAKT|-9uM -900 -900 -b00 -c00 -b00 -a00|012343434343434343434343563434343434356565656565656565656565656563|-2AGVuM 1iLAuM iBc00 1qFa00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o100 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Asia/Samarkand|LMT SAMT SAMT SAMST TAST UZST UZT|-4rc -400 -500 -600 -600 -600 -500|01234323232323232323232356|-1Pc4rc eUorc 23CL00 1db00 1cM00 1dc00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 11x00 bf00", + "Asia/Seoul|KST KST KST KDT KDT|-8u0 -900 -800 -900 -a00|0101232014141|-2CsUu0 Ucnu0 9Iou0 S5Xu0 eWN00 Mn00 2cp00 hnzu0 JhXu0 11z00 1o100 11z00", + "Asia/Shanghai|LMT CST CDT|-85V -800 -900|012121212121212121|-1Ggw5V ueM5V LX00 16p00 1jz00 1Myp00 Rb00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00", + "Asia/Singapore|SMT MALT MALST MALT MALT JST SGT SGT|-6Tp -700 -7k0 -7k0 -7u0 -900 -7u0 -800|012345467|-2Bg6Tp 17anTp 7hXE0 dM000 17bO0 8Fyu0 Mspu0 DTA00", + "Asia/Taipei|CST CDT|-800 -900|01010101010101010101010101010101010101010|-104w00 11b00 1oN00 11b00 1oN00 11b00 1pd00 11b00 1oN00 11b00 1oN00 11b00 1oN00 11b00 10N00 1BX00 10p00 1pz00 10p00 1pz00 10p00 1db00 1dd00 1db00 1cN00 1db00 1cN00 1db00 1cN00 1db00 1BB00 ML00 1Bd00 ML00 uq100 1db00 1cN00 1db00 97d00 AL00", + "Asia/Tashkent|LMT TAST TAST TASST TASST UZST UZT|-4Bc -500 -600 -700 -600 -600 -500|01232323232323232323232456|-1Pc4Bc eUnBc 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 11y00 bf00", + "Asia/Tbilisi|TBMT TBIT TBIT TBIST TBIST GEST GET GET GEST|-2Xg -300 -400 -500 -400 -400 -300 -400 -500|0123232323232323232323245656565787878787878787878567|-1Pc2Xg 1jUnXg WCL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 3y00 19f00 1cK00 1cL00 1cN00 1cL00 1cN00 1cL00 1cM00 1cL00 1fB00 3Nz00 11B00 1nX00 11B00 1qL00 WN00 1qL00 WN00 1qL00 11B00 1nX00 11B00 1nX00 11B00 An00 Os00 WM00", + "Asia/Tehran|LMT TMT IRST IRST IRDT IRDT|-3pI -3pI -3u0 -400 -500 -4u0|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDpI 1d3c00 1huLTI TXu0 1pz00 sN00 vAu0 1cL00 1dB00 1en00 pNB00 UL00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cN00 1dz00 64p00 1dz00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00 1cN00 1dz00 1cp00 1dz00 1cp00 1dz00 1cp00 1dz00", + "Asia/Thimphu|LMT IST BTT|-5WA -5u0 -600|012|-Su5WA 1BGMsA", + "Asia/Tokyo|CJT JST JDT|-900 -900 -a00|0121212121|-1hTl00 p9C00 QL00 1lB00 13X00 1zB00 NX00 1zB00 NX00", + "Asia/Ulaanbaatar|LMT ULAT ULAT ULAST|-77w -700 -800 -900|01232323232323232323232323232323232323232323232|-2APH7w 2Uko7w cKn00 1db00 1dd00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 6hD00 11z00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00", + "Asia/Urumqi|LMT URUT CST CDT|-5Ok -600 -800 -900|012323232323232|-1GgtOk 27pzOk eBy00 Rb00 1o100 11z00 1o100 11z00 1qN00 11z00 1o100 11z00 1o100 11z00", + "Asia/Ust-Nera|LMT YAKT YAKT MAGST MAGT MAGST MAGT MAGT VLAT|-9wS -800 -900 -c00 -b00 -b00 -a00 -c00 -b00|012343434343434343434345643434343434343434343434343434343434343478|-21Q9wS pApwS 23CL00 1d900 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 17V00", + "Asia/Vientiane|LMT SMT ICT ICT|-6Oo -76k -700 -800|01232|-2yKSOo bynJ4 2KM5k Kfz00", + "Asia/Vladivostok|LMT VLAT VLAT VLAST VLASST VLAST VLAT|-8LI -900 -a00 -b00 -a00 -900 -b00|01232323232323232323232452323232323232323232323232323232323232326|-1SJILI itXLI 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Asia/Yakutsk|LMT YAKT YAKT YAKST YAKST YAKT|-8CE -800 -900 -a00 -900 -a00|01232323232323232323232412323232323232323232323232323232323232325|-21Q8CE pAoCE 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Asia/Yekaterinburg|LMT SVET SVET SVEST SVEST YEKT YEKST YEKT|-42o -400 -500 -600 -500 -500 -600 -600|01232323232323232323232415656565656565656565656565656565656565657|-22Rc2o qBw2o 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Asia/Yerevan|LMT YERT YERT YERST YERST AMST AMT AMT AMST|-2W0 -300 -400 -500 -400 -400 -300 -400 -500|0123232323232323232323245656565657878787878787878787878787878787|-1Pc2W0 1jUnW0 WCL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1am00 2r00 1cJ00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 3Fb00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00", + "Atlantic/Azores|HMT AZOT AZOST AZOMT AZOT AZOST WET|1Sw 200 100 0 100 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545456545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2mGK5s ckL5s Sp00 LX00 1vc00 Tc00 1uM00 SM00 1vc00 Tc00 1vc00 SM00 1vc00 66000 1co00 3E000 17c00 1fA00 1a000 1io00 1a000 1io00 17c00 3I000 17c00 1cM00 1cM00 3Fc00 1cM00 1a000 1fA00 1io00 17c00 1cM00 1cM00 1a000 1fA00 1io00 1qM00 Dc00 1tA00 1cM00 1dc00 14000 gL00 IM00 s100 U000 dX00 Rc00 pd00 Rc00 gL00 Oo00 pd00 Rc00 gL00 Oo00 pd00 14o00 1cM00 1cP00 1cM00 1cM00 1cM00 1cM00 1cM00 3Co00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 qIl00 1cM00 1fA00 1cM00 1cM00 1cN00 1cL00 1cN00 1cM00 1cM00 1cM00 1cM00 1cN00 1cL00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cL00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Atlantic/Bermuda|LMT AST ADT|4ji 400 300|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnREG 1LTbEG 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "Atlantic/Canary|LMT CANT WET WEST|11A 100 0 -100|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaWo XPAWo 1lAK00 1a100 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Atlantic/Cape_Verde|LMT CVT CVST CVT|1y4 200 100 100|01213|-2xompU 1qOMpU 7zX00 1djf00", + "Atlantic/Faroe|LMT WET WEST|r4 0 -100|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnwU 2WgowU 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Atlantic/Madeira|FMT MADT MADST MADMT WET WEST|17A 100 0 -100 0 -100|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2mGKQo ckKQo Sp00 LX00 1vc00 Tc00 1uM00 SM00 1vc00 Tc00 1vc00 SM00 1vc00 66000 1co00 3E000 17c00 1fA00 1a000 1io00 1a000 1io00 17c00 3I000 17c00 1cM00 1cM00 3Fc00 1cM00 1a000 1fA00 1io00 17c00 1cM00 1cM00 1a000 1fA00 1io00 1qM00 Dc00 1tA00 1cM00 1dc00 14000 gL00 IM00 s100 U000 dX00 Rc00 pd00 Rc00 gL00 Oo00 pd00 Rc00 gL00 Oo00 pd00 14o00 1cM00 1cP00 1cM00 1cM00 1cM00 1cM00 1cM00 3Co00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 qIl00 1cM00 1fA00 1cM00 1cM00 1cN00 1cL00 1cN00 1cM00 1cM00 1cM00 1cM00 1cN00 1cL00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Atlantic/Reykjavik|RMT IST ISST GMT|1rM 100 0 0|01212121212121212121212121212121212121212121212121212121212121213|-2uWmwc mfawc 1Bd00 ML00 1LB00 NLX00 1pe00 zd00 1EL00 LA00 1C000 Oo00 1wo00 Rc00 1wo00 Rc00 1wo00 Rc00 1zc00 Oo00 1zc00 14o00 1lc00 14o00 1lc00 14o00 1o000 11A00 1lc00 14o00 1o000 14o00 1lc00 14o00 1lc00 14o00 1lc00 14o00 1lc00 14o00 1o000 14o00 1lc00 14o00 1lc00 14o00 1lc00 14o00 1lc00 14o00 1lc00 14o00 1o000 14o00 1lc00 14o00 1lc00 14o00 1lc00 14o00 1lc00 14o00 1o000 14o00", + "Atlantic/South_Georgia|GST|200|0|", + "Atlantic/St_Helena|JMT GMT|mM 0|01|-KfXBc", + "Atlantic/Stanley|SMT FKT FKST FKT FKST|3Po 400 300 300 200|0121212121212134343212121212121212121212121212121212121212121212121212|-2kJw8A 12bA8A 19X00 1fB00 19X00 1ip00 19X00 1fB00 19X00 1fB00 19X00 1fB00 Cn00 1Cc100 WL00 1qL00 U100 1tz00 U100 1qM00 WN00 1qL00 WN00 1qL00 WN00 1qL00 WN00 1tz00 U100 1tz00 WN00 1qL00 WN00 1qL00 WN00 1qL00 WN00 1qL00 WN00 1tz00 WN00 1qL00 WN00 1qL00 WN00 1qL00 WN00 1qL00 WN00 1qN00 U100 1wn00 Rd00 1wn00 U100 1tz00 U100 1tz00 U100 1tz00 U100 1tz00 U100 1wn00 U100 1tz00 U100 1tz00 U100", + "Australia/Adelaide|CST CST|-9u0 -au0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt0 xcX0 10jd00 yL00 1cN00 1cL00 1fB00 19X00 17c100 LA00 1C000 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 U000 1qM00 WM00 1tA00 WM00 1tA00 U000 1tA00 U000 1tA00 Oo00 1zc00 WM00 1qM00 Rc00 1zc00 U000 1tA00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 11A00 1o000 WM00 1qM00 14o00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00", + "Australia/Brisbane|EST EST|-a00 -b00|01010101010101010|-293lX0 xcX0 10jd00 yL00 1cN00 1cL00 1fB00 19X00 17c100 LA00 H1A00 Oo00 1zc00 Oo00 1zc00 Oo00", + "Australia/Broken_Hill|CST CST|-9u0 -au0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt0 xcX0 10jd00 yL00 1cN00 1cL00 1fB00 19X00 17c100 LA00 1C000 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 14o00 1o000 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 U000 1qM00 WM00 1tA00 WM00 1tA00 U000 1tA00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 11A00 1o000 WM00 1qM00 14o00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00", + "Australia/Currie|EST EST|-a00 -b00|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E800 19X00 10jd00 yL00 1cN00 1cL00 1fB00 19X00 17c100 LA00 1C000 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 11A00 1qM00 WM00 1qM00 Oo00 1zc00 Oo00 1zc00 Oo00 1wo00 WM00 1tA00 WM00 1tA00 U000 1tA00 U000 1tA00 11A00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 11A00 1o000 1io00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1cM00 1a000 1io00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00", + "Australia/Darwin|CST CST|-9u0 -au0|010101010|-293lt0 xcX0 10jd00 yL00 1cN00 1cL00 1fB00 19X00", + "Australia/Eucla|CWST CWST|-8J0 -9J0|0101010101010101010|-293kI0 xcX0 10jd00 yL00 1cN00 1cL00 1gSp00 Oo00 l5A00 Oo00 iJA00 G000 zU000 IM00 1qM00 11A00 1o000 11A00", + "Australia/Hobart|EST EST|-a00 -b00|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E800 19X00 10jd00 yL00 1cN00 1cL00 1fB00 19X00 VfB00 1cM00 1o000 Rc00 1wo00 Rc00 1wo00 U000 1wo00 LA00 1C000 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 11A00 1qM00 WM00 1qM00 Oo00 1zc00 Oo00 1zc00 Oo00 1wo00 WM00 1tA00 WM00 1tA00 U000 1tA00 U000 1tA00 11A00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 11A00 1o000 1io00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1cM00 1a000 1io00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00", + "Australia/Lindeman|EST EST|-a00 -b00|010101010101010101010|-293lX0 xcX0 10jd00 yL00 1cN00 1cL00 1fB00 19X00 17c100 LA00 H1A00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00", + "Australia/Lord_Howe|EST LHST LHST LHST|-a00 -au0 -bu0 -b00|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC00 1zdu0 Rb00 1zd00 On00 1zd00 On00 1zd00 On00 1zd00 TXu0 1qMu0 WLu0 1tAu0 WLu0 1tAu0 TXu0 1tAu0 Onu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Rbu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 11zu0 1o0u0 11zu0 1o0u0 11zu0 1o0u0 11zu0 1qMu0 WLu0 11Au0 1nXu0 1qMu0 11zu0 1o0u0 11zu0 1o0u0 11zu0 1qMu0 WLu0 1qMu0 11zu0 1o0u0 WLu0 1qMu0 14nu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1fAu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1fAu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1fzu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1fAu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1cMu0 1cLu0 1fAu0 1cLu0 1cMu0 1cLu0 1cMu0", + "Australia/Melbourne|EST EST|-a00 -b00|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX0 xcX0 10jd00 yL00 1cN00 1cL00 1fB00 19X00 17c100 LA00 1C000 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 U000 1qM00 WM00 1qM00 11A00 1tA00 U000 1tA00 U000 1tA00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 11A00 1o000 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 11A00 1o000 WM00 1qM00 14o00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00", + "Australia/Perth|WST WST|-800 -900|0101010101010101010|-293jX0 xcX0 10jd00 yL00 1cN00 1cL00 1gSp00 Oo00 l5A00 Oo00 iJA00 G000 zU000 IM00 1qM00 11A00 1o000 11A00", + "Australia/Sydney|EST EST|-a00 -b00|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX0 xcX0 10jd00 yL00 1cN00 1cL00 1fB00 19X00 17c100 LA00 1C000 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 14o00 1o000 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 U000 1qM00 WM00 1tA00 WM00 1tA00 U000 1tA00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 11A00 1o000 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 11A00 1o000 WM00 1qM00 14o00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00", + "CET|CET CEST|-100 -200|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe00 11d00 1iO00 11A00 1o000 11A00 Qrc00 6i000 WM00 1fA00 1cM00 1cM00 1cM00 16M00 1gMM00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "CST6CDT|CST CDT CWT CPT|600 500 500 500|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s00 1nX00 11B00 1nX00 SgN00 8x300 iw00 QwN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "EET|EET EEST|-200 -300|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "EST|EST|500|0|", + "EST5EDT|EST EDT EWT EPT|500 400 400 400|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t00 1nX00 11B00 1nX00 SgN00 8x400 iv00 QwN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "Europe/Amsterdam|AMT NST NEST NET CEST CET|-jw -1jw -1k0 -k0 -200 -100|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcjw 11b00 1iP00 11A00 1io00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1co00 1io00 1yo00 Pc00 1a000 1fA00 1Bc00 Mo00 1tc00 Uo00 1tA00 U000 1uo00 W000 1s000 VA00 1so00 Vc00 1sM00 UM00 1wo00 Rc00 1u000 Wo00 1rA00 W000 1s000 VA00 1sM00 UM00 1w000 fV00 BCXw 1tA00 U000 1u000 Wo00 1sm00 601k0 WM00 1fA00 1cM00 1cM00 1cM00 16M00 1gMM00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Andorra|WET CET CEST|0 -100 -200|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA00 1xIN00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Athens|AMT EET EEST CEST CET|-1yQ -200 -300 -200 -100|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61xQ CNbxQ mn00 kU100 9b00 3Es00 Xa00 1fb00 1dd00 k3X00 Nz00 SCp00 1vc00 SO00 1cM00 1a000 1ao00 1fc00 1a100 1fG00 1cg00 1dX00 1bX00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Belgrade|CET CEST|-100 -200|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC00 3IP00 WM00 1fA00 1cM00 1cM00 1rc00 Qo00 1vmo00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Berlin|CET CEST CEMT|-100 -200 -300|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe00 11d00 1iO00 11A00 1o000 11A00 Qrc00 6i000 WM00 1fA00 1cM00 1cM00 1cM00 kL00 Nc00 m100 WM00 1ao00 1cp00 dX00 jz00 Dd00 1io00 17c00 1fA00 1a000 1ehA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Brussels|WET CET CEST WEST|0 -100 -200 -100|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc00 3zX00 11c00 1iO00 11A00 1o000 11A00 my00 Ic00 1qM00 Rc00 1EM00 UM00 1u000 10o00 1io00 1io00 17c00 1a000 1fA00 1cM00 1cM00 1io00 17c00 1fA00 1a000 1io00 1a300 1io00 17c00 1fA00 1a000 1io00 17c00 1cM00 1cM00 1a000 1io00 1cM00 1cM00 1a000 1fA00 1io00 17c00 1cM00 1cM00 1a000 1fA00 1io00 1qM00 Dc00 y000 5Wn00 WM00 1fA00 1cM00 16M00 1iM00 16M00 1C000 Uo00 1eeo00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Bucharest|BMT EET EEST|-1Io -200 -300|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApIo 20LIo RA00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1Axc00 On00 1fA00 1a100 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cK00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cL00 1cN00 1cL00 1fB00 1nX00 11E00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Budapest|CET CEST|-100 -200|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe00 11d00 1iO00 11A00 1ip00 1cn00 1jd00 11b00 1ld00 1bb00 NVc00 3O000 WM00 1fA00 1cM00 1cM00 1oJ00 1e000 Xf00 1fA00 1cM00 1cM00 1cM00 1cM00 1fA00 1a000 1iM00 1fA00 8Ha00 Rb00 1wN00 Rb00 1BB00 Lz00 1C200 LB00 SNX00 1a100 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T0 -1Io -200 -300 -200 -100 -300 -400|0123232323232323232345454676767676767676767623232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT0 wGMaA 20LIo RA00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 27A00 2en00 39g00 WM00 1fA00 1cM00 V900 1t7z00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1ty00 2bD00 1cM00 1cK00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 1nX00 11E00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Copenhagen|CET CEST|-100 -200|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC00 Tz00 VuO00 60q00 WM00 1fA00 1cM00 1cM00 1cM00 S000 1HA00 Nc00 1C000 Dc00 1Nc00 Ao00 1h5A00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Dublin|DMT IST GMT BST IST|pl -yD 0 -100 -100|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9yD Rc00 1fzyD 14M00 1fc00 1g000 1co00 1dc00 1co00 1oo00 14000 1dc00 19A00 1io00 1io00 WM00 1o000 14o00 1o000 17c00 1io00 17c00 1fA00 1a000 1lc00 17c00 1io00 17c00 1fA00 1a000 1io00 17c00 1io00 17c00 1fA00 1cM00 1io00 17c00 1fA00 1a000 1io00 17c00 1io00 17c00 1fA00 1a000 1io00 1qM00 Dc00 g5X00 14p00 1wn00 17d00 1io00 11A00 1o000 17c00 1fA00 1a000 1fA00 1cM00 1fA00 1a000 17c00 1fA00 1a000 1io00 17c00 1lc00 17c00 1fA00 1a000 1io00 17c00 1io00 17c00 1fA00 1a000 1a000 1qM00 WM00 1qM00 11A00 1o000 WM00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1tA00 IM00 90o00 U000 1tA00 U000 1tA00 U000 1tA00 U000 1tA00 WM00 1qM00 WM00 1qM00 WM00 1tA00 U000 1tA00 U000 1tA00 11z00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1o000 14o00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Gibraltar|GMT BST BDST CET CEST|0 -100 -200 -100 -200|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa00 Rc00 1fA00 14M00 1fc00 1g000 1co00 1dc00 1co00 1oo00 14000 1dc00 19A00 1io00 1io00 WM00 1o000 14o00 1o000 17c00 1io00 17c00 1fA00 1a000 1lc00 17c00 1io00 17c00 1fA00 1a000 1io00 17c00 1io00 17c00 1fA00 1cM00 1io00 17c00 1fA00 1a000 1io00 17c00 1io00 17c00 1fA00 1a000 1io00 1qM00 Dc00 2Rz00 Dc00 1zc00 Oo00 1zc00 Rc00 1wo00 17c00 1iM00 FA00 xB00 1fA00 1a000 14o00 bb00 LA00 xB00 Rc00 1wo00 11A00 1o000 17c00 1fA00 1a000 1fA00 1cM00 1fA00 1a000 17c00 1fA00 1a000 1io00 17c00 1lc00 17c00 1fA00 10Jz00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Helsinki|HMT EET EEST|-1DQ -200 -300|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuNDQ OULDQ 1db00 1xGP00 1cM00 1cM00 1cM00 1cN00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Istanbul|IMT EET EEST TRST TRT|-1UU -200 -300 -400 -300|012121212121212121212121212121212121212121212121212121234343434342121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ogNUU dzzUU 11b00 8tB00 1on00 14100 1db00 19B00 1in00 3Rd00 Un00 1oN00 11b00 zSp00 CL00 mN00 1Vz00 1gN00 1pz00 5Rd00 1fz00 1yp00 ML00 1kp00 17b00 1ip00 17b00 1fB00 19X00 1jB00 18L00 1ip00 17z00 qdd00 xX00 3S100 Tz00 dA100 11z00 1o100 11z00 1qN00 11z00 1ze00 11B00 WM00 1qO00 WI00 1nX00 1rB00 10L00 11B00 1in00 17d00 1in00 2pX00 19E00 1fU00 16Q00 1iI00 16Q00 1iI00 1Vd00 pb00 3Kp00 14o00 1df00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cL00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WO00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 Xc00 1qo00 WM00 1qM00 11A00 1o000 12000 1nA00 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Kaliningrad|CET CEST CET CEST MSK MSD EEST EET FET|-100 -200 -200 -300 -300 -400 -300 -200 -300|010101010101023245454545454545454545467676767676767676767676767676767676767678|-2aFe00 11d00 1iO00 11A00 1o000 11A00 Qrc00 6i000 WM00 1fA00 1cM00 1cM00 Am00 Lb00 1en00 op00 1pNz00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 1cJ00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-224 -200 -300 -200 -100 -400 -300|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc224 eUo24 rnz00 2Hg00 WM00 1fA00 da00 1v4m00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 Db00 32200 1cK00 1cL00 1cN00 1cL00 1cN00 1cL00 1cQ00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Lisbon|LMT WET WEST WEMT CET CEST|Aw 0 -100 -200 -100 -200|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ldXns aPWns Sp00 LX00 1vc00 Tc00 1uM00 SM00 1vc00 Tc00 1vc00 SM00 1vc00 66000 1co00 3E000 17c00 1fA00 1a000 1io00 1a000 1io00 17c00 3I000 17c00 1cM00 1cM00 3Fc00 1cM00 1a000 1fA00 1io00 17c00 1cM00 1cM00 1a000 1fA00 1io00 1qM00 Dc00 1tA00 1cM00 1dc00 14000 gL00 IM00 s100 U000 dX00 Rc00 pd00 Rc00 gL00 Oo00 pd00 Rc00 gL00 Oo00 pd00 14o00 1cM00 1cP00 1cM00 1cM00 1cM00 1cM00 1cM00 3Co00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 pvy00 1cM00 1cM00 1fA00 1cM00 1cM00 1cN00 1cL00 1cN00 1cM00 1cM00 1cM00 1cM00 1cN00 1cL00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/London|GMT BST BDST|0 -100 -200|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa00 Rc00 1fA00 14M00 1fc00 1g000 1co00 1dc00 1co00 1oo00 14000 1dc00 19A00 1io00 1io00 WM00 1o000 14o00 1o000 17c00 1io00 17c00 1fA00 1a000 1lc00 17c00 1io00 17c00 1fA00 1a000 1io00 17c00 1io00 17c00 1fA00 1cM00 1io00 17c00 1fA00 1a000 1io00 17c00 1io00 17c00 1fA00 1a000 1io00 1qM00 Dc00 2Rz00 Dc00 1zc00 Oo00 1zc00 Rc00 1wo00 17c00 1iM00 FA00 xB00 1fA00 1a000 14o00 bb00 LA00 xB00 Rc00 1wo00 11A00 1o000 17c00 1fA00 1a000 1fA00 1cM00 1fA00 1a000 17c00 1fA00 1a000 1io00 17c00 1lc00 17c00 1fA00 1a000 1io00 17c00 1io00 17c00 1fA00 1a000 1a000 1qM00 WM00 1qM00 11A00 1o000 WM00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1tA00 IM00 90o00 U000 1tA00 U000 1tA00 U000 1tA00 U000 1tA00 WM00 1qM00 WM00 1qM00 WM00 1tA00 U000 1tA00 U000 1tA00 11z00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1o000 14o00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-oA -100 -200 0 -100 -200 -100|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0oA t6moA TB00 1nX00 Up00 1o200 11A00 rW00 CM00 1qP00 R900 1EO00 UK00 1u200 10m00 1ip00 1in00 17e00 19W00 1fB00 1db00 1cp00 1in00 17d00 1fz00 1a100 1in00 1a100 1in00 17f00 1fA00 1a000 1io00 17c00 1cM00 1cM00 1a000 1io00 1cM00 1cM00 1a000 1fA00 1io00 17c00 1cM00 1cM00 1a000 1fA00 1io00 1qM00 Dc00 vA00 60L00 WM00 1fA00 1cM00 17c00 1io00 16M00 1C000 Uo00 1eeo00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Madrid|WET WEST WEMT CET CEST|0 -100 -200 -100 -200|01010101010101010101010121212121234343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-28dd00 11A00 1go00 19A00 1co00 1dA00 b1A00 18o00 3I000 17c00 1fA00 1a000 1io00 1a000 1io00 17c00 iyo00 Rc00 18o00 1hc00 1io00 1a000 14o00 5aL00 MM00 1vc00 17A00 1i000 1bc00 1eo00 17d00 1in00 17A00 6hA00 10N00 XIL00 1a100 1in00 17d00 19X00 1cN00 1fz00 1a100 1fX00 1cp00 1cO00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Malta|CET CEST|-100 -200|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2as100 M000 1cM00 1cM00 14o00 1o000 WM00 1qM00 17c00 1cM00 M3A00 5M200 WM00 1fA00 1cM00 1cM00 1cM00 16m00 1de00 1lc00 14m00 1lc00 WO00 1qM00 GTW00 On00 1C100 Lz00 1C100 Lz00 1EN00 Lz00 1C100 Lz00 1zd00 Oo00 1C000 On00 1cp00 1cM00 1lA00 Xc00 1qq00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1iN00 19z00 1fB00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Minsk|MMT EET MSK CEST CET MSD EEST FET|-1O0 -200 -300 -200 -100 -400 -300 -300|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O0 eUnO0 qNX00 3gQ00 WM00 1fA00 1cM00 Al00 1tsn00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 3Fc00 1cN00 1cK00 1cM00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Europe/Monaco|PMT WET WEST WEMT CET CEST|-9l 0 -100 -200 -100 -200|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2nco9l cNb9l HA00 19A00 1iM00 11c00 1oo00 Wo00 1rc00 QM00 1EM00 UM00 1u000 10o00 1io00 1wo00 Rc00 1a000 1fA00 1cM00 1cM00 1io00 17c00 1fA00 1a000 1io00 1a000 1io00 17c00 1fA00 1a000 1io00 17c00 1cM00 1cM00 1a000 1io00 1cM00 1cM00 1a000 1fA00 1io00 17c00 1cM00 1cM00 1a000 1fA00 1io00 1qM00 Df00 2RV00 11z00 11B00 1ze00 WM00 1fA00 1cM00 1fa00 1aq00 16M00 1ekn00 1cL00 1fC00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Moscow|MMT MMT MST MDST MSD MSK MSD EET EEST MSK|-2u0 -2uM -3uM -4uM -400 -300 -500 -200 -300 -400|01213234546457545454545454545454545875454545454545454545454545454545454545459|-2ag2u0 2pyXc 1bA00 11X00 GN00 1Hb00 c200 imuM 3DA00 dz00 15A00 c100 2q100 iM100 23CL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 IM00 rU00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Europe/Oslo|CET CEST|-100 -200|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM00 Qm00 W6o00 5pf00 WM00 1fA00 1cM00 1cM00 1cM00 1cM00 wJc00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1qM00 WM00 zpc00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Paris|PMT WET WEST CEST CET WEMT|-9l 0 -100 -200 -100 -200|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco8l cNb8l HA00 19A00 1iM00 11c00 1oo00 Wo00 1rc00 QM00 1EM00 UM00 1u000 10o00 1io00 1wo00 Rc00 1a000 1fA00 1cM00 1cM00 1io00 17c00 1fA00 1a000 1io00 1a000 1io00 17c00 1fA00 1a000 1io00 17c00 1cM00 1cM00 1a000 1io00 1cM00 1cM00 1a000 1fA00 1io00 17c00 1cM00 1cM00 1a000 1fA00 1io00 1qM00 Df00 Ik00 5M300 WM00 1fA00 1cM00 Vx00 hB00 1aq00 16M00 1ekn00 1cL00 1fC00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Prague|CET CEST|-100 -200|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe00 11d00 1iO00 11A00 1o000 11A00 Qrc00 6i000 WM00 1fA00 1cM00 16M00 1lc00 1tA00 17A00 11c00 1io00 17c00 1io00 17c00 1fc00 1ao00 1bNc00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1Ao -2Ao -200 -300 -200 -100 -400 -300|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzAo 11A00 1iM00 ko00 gWm00 yDXAo 2bX00 3fE00 WM00 1fA00 1cM00 1cM00 4m00 1sLy00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cN00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 1o000 11A00 1o000 11A00 1qM00 3oo00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Rome|CET CEST|-100 -200|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2as100 M000 1cM00 1cM00 14o00 1o000 WM00 1qM00 17c00 1cM00 M3A00 5M200 WM00 1fA00 1cM00 16K00 1iO00 16m00 1de00 1lc00 14m00 1lc00 WO00 1qM00 GTW00 On00 1C100 Lz00 1C100 Lz00 1EN00 Lz00 1C100 Lz00 1zd00 Oo00 1C000 On00 1C100 Lz00 1zd00 On00 1C100 LA00 1C000 LA00 1zc00 Oo00 1C000 Oo00 1zc00 Oo00 1fC00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Samara|LMT SAMT SAMT KUYT KUYST KUYST KUYT KUYST SAMST SAMST|-3kA -300 -400 -400 -500 -400 -300 -300 -500 -400|012343434343434343435656762828282828282828282828282828282828282912|-22WNkA qHakA bcn00 1Qqo00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cN00 1cM00 1fA00 1cM00 1cN00 8o00 14j00 1cL00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qN00 WM00", + "Europe/Simferopol|SMT EET MSK CEST CET MSD EEST|-2g0 -200 -300 -200 -100 -400 -300|0123434325252525252525252521616165252526161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2g0 eUog0 rEn00 2qs00 WM00 1fA00 1cM00 3V00 1u0L00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1Q000 4eL00 1cL00 1cN00 1cL00 1cN00 dX00 WL00 1cN00 1cL00 1fB00 1o300 11B00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Sofia|EET CET CEST EEST|-200 -100 -200 -300|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L00 WM00 1fA00 1cM00 1cM00 1cN00 1mKH00 1dd00 1fb00 1ap00 1fb00 1a200 1fy00 1a300 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cK00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 1nX00 11E00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Stockholm|CET CEST|-100 -200|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC00 TB00 2yDe00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D0 -100 -200 -200 -300 -400 -300|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND0 teD0 11A00 1Ta00 4rXl0 KSLD0 2FX00 2Jg00 WM00 1fA00 1cM00 18J00 1sTX00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cN00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o100 11A00 1qM00 5QM00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Tirane|LMT CET CEST|-1jk -100 -200|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBjk 14pcjk 5LC00 WM00 4M00 1fCK00 10n00 1op00 11z00 1pd00 11z00 1qN00 WL00 1qp00 Xb00 1qp00 Xb00 1qp00 11z00 1lB00 11z00 1qN00 11z00 1iN00 16n00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-100 -200 -300 -400 -200 -300|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL00 6i000 WM00 1fA00 1cM00 1ml00 1Cp00 1r3W00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1Q000 1Nf00 2pw00 1cL00 1cN00 1cL00 1cN00 1cL00 1cQ00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Vaduz|CET CEST|-100 -200|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc00 11A00 1o000 11A00 1xG100 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Vienna|CET CEST|-100 -200|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe00 11d00 1iO00 11A00 1o000 11A00 3KM00 14o00 LA000 6i000 WM00 1fA00 1cM00 1cM00 1cM00 4000 2qM00 1a000 1cM00 1cM00 1io00 17c00 1gHa00 19X00 1cP00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o0 -1zA -100 -200 -300 -200 -400 -300|012324525254646464646464646464647373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do0 6ILMo 1OozA zz00 Mfd00 29W00 3is00 WM00 1fA00 1cM00 LV00 1tgL00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cN00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11B00 1o000 11A00 1qM00 8io00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Volgograd|LMT TSAT STAT STAT VOLT VOLST VOLST VOLT|-2VE -300 -300 -400 -400 -500 -400 -300|01234545454545454545467674676767676767676767676767676767676767674|-21IqVE cLXVE cEM00 1gqn00 Lco00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cN00 1cM00 1fA00 1cM00 2pz00 1cJ00 1cQ00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00", + "Europe/Warsaw|WMT CET CEST EET EEST|-1o0 -100 -200 -200 -300|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo0 1LXo0 11d00 1iO00 11A00 1o000 11A00 1on00 11A00 6zy00 HWP00 5IM00 WM00 1fA00 1cM00 1dz00 1mL00 1en00 15B00 1aq00 1nA00 11A00 1io00 17c00 1fA00 1a000 iDX00 LA00 1cM00 1cM00 1C000 Oo00 1cM00 1cM00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1C000 LA00 uso00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cN00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Zaporozhye|CUT EET MSK CEST CET MSD EEST|-2k0 -200 -300 -200 -100 -400 -300|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k0 eUok0 rdb00 2RE00 WM00 1fA00 8m00 1v9a00 1db00 1cN00 1db00 1cN00 1db00 1dd00 1cO00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cK00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cQ00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "Europe/Zurich|CET CEST|-100 -200|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc00 11A00 1o000 11A00 1xG100 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "HST|HST|a00|0|", + "Indian/Antananarivo|LMT EAT EAST|-3a4 -300 -400|0121|-2mrDa4 1HRba4 Ao00", + "Indian/Chagos|LMT IOT IOT|-4NE -500 -600|012|-2xosNE 3AGLNE", + "Indian/Christmas|CXT|-700|0|", + "Indian/Cocos|CCT|-6u0|0|", + "Indian/Comoro|LMT EAT|-2R4 -300|01|-2mrCR4", + "Indian/Kerguelen|zzz TFT|0 -500|01|-MG000", + "Indian/Mahe|LMT SCT|-3FM -400|01|-2yO3FM", + "Indian/Maldives|MMT MVT|-4S0 -500|01|-olgS0", + "Indian/Mauritius|LMT MUT MUST|-3O0 -400 -500|012121|-2xorO0 34unO0 14L00 12kr00 11z00", + "Indian/Mayotte|LMT EAT|-30U -300|01|-2mrD0U", + "Indian/Reunion|LMT RET|-3FQ -400|01|-2mDDFQ", + "MET|MET MEST|-100 -200|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe00 11d00 1iO00 11A00 1o000 11A00 Qrc00 6i000 WM00 1fA00 1cM00 1cM00 1cM00 16M00 1gMM00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000", + "MST|MST|700|0|", + "MST7MDT|MST MDT MWT MPT|700 600 600 600|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r00 1nX00 11B00 1nX00 SgN00 8x200 ix00 QwN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "PST8PDT|PST PDT PWT PPT|800 700 700 700|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q00 1nX00 11B00 1nX00 SgN00 8x100 iy00 QwN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1cN00 1cL00 1cN00 1cL00 s100 1Vz00 LB00 1BX00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1fz00 1a100 1fz00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 14p00 1lb00 14p00 1lb00 14p00 1nX00 11B00 1nX00 11B00 1nX00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Rd00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00 Op00 1zb00", + "Pacific/Apia|LMT SAMT WST WSDT WSDT WST|bqU bu0 b00 a00 -e00 -d00|01232345454545454545454545454545454545454545454545454545454|-2nDMx4 1yW034 2rRbu0 1ff00 1a000 CI00 AQ00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1io00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000", + "Pacific/Auckland|NZMT NZST NZST NZDT|-bu0 -cu0 -c00 -d00|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu0 Lz00 1tB00 11zu0 1o0u0 11zu0 1o0u0 11zu0 1o0u0 14nu0 1lcu0 14nu0 1lcu0 1lbu0 11Au0 1nXu0 11Au0 1nXu0 11Au0 1nXu0 11Au0 1nXu0 11Au0 1qLu0 WMu0 1qLu0 11Au0 1n1bu0 IM00 1C000 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1qM00 14o00 1lc00 14o00 1lc00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1io00 17c00 1lc00 14o00 1lc00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1lc00 14o00 1lc00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1io00 17c00 1io00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1io00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000", + "Pacific/Chatham|LMT CHAST CHADT|-cdM -cJ0 -dJ0|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-vDodM Hq2dM IM00 1C000 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Oo00 1zc00 Rc00 1zc00 Oo00 1qM00 14o00 1lc00 14o00 1lc00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1io00 17c00 1lc00 14o00 1lc00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1lc00 14o00 1lc00 14o00 1lc00 17c00 1io00 17c00 1io00 17c00 1io00 17c00 1io00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1io00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1a000 1fA00 1cM00 1fA00 1a000 1fA00 1a000", + "Pacific/Chuuk|CHUT|-a00|0|", + "Pacific/Easter|EMT EASST EAST EAST EASST|7hs 600 700 600 500|012121212121212121212121212121213434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-1uSgGw nHUGw op00 9UK00 RXB00 WL00 1zd00 On00 1ip00 11z00 1o100 11z00 1qN00 WL00 1ld00 14n00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 WL00 1qN00 1cL00 1cN00 11z00 1ld00 14n00 1qN00 11z00 1cN00 19X00 1qN00 11z00 1o100 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 17b00 1ip00 11z00 1ip00 1fz00 1fB00 11z00 1qN00 WL00 1qN00 WL00 1qN00 WL00 1qN00 11z00 1o100 11z00 1o100 11z00 1qN00 WL00 1qN00 17b00 1ip00 11z00 1o100 19X00 1fB00 1nX00 G100 1EL00 Op00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Op00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Op00 1zb00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1wn00 Rd00 1zb00 Op00 1zb00 Rd00 1wn00 Rd00", + "Pacific/Efate|LMT VUT VUST|-bdg -b00 -c00|0121212121212121212121|-2l9ndg 2Szcdg 1cL00 1oN00 10L00 1fB00 19X00 1fB00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1cN00 1cL00 1fB00 Lz00 1Nd00 An00", + "Pacific/Enderbury|PHOT PHOT PHOT|c00 b00 -d00|012|nIc00 B8n00", + "Pacific/Fakaofo|TKT TKT|b00 -d00|01|1Gfn00", + "Pacific/Fiji|LMT FJT FJST|-bTI -c00 -d00|012121212121212121212121212121212121212121212121212121212121212|-2bUzTI 3m8NTI LA00 1EM00 IM00 nJc00 LA00 1o000 Rc00 1wo00 Ao00 1Nc00 Ao00 1Q000 xz00 1Q100 xz00 1Q100 An00 1Nd00 An00 1Nd00 An00 1Nd00 An00 1Q100 xz00 1Q100 An00 1Nd00 An00 1Nd00 An00 1Nd00 An00 1Q100 xz00 1Q100 xz00 1Q100 An00 1Nd00 An00 1Nd00 An00 1Nd00 An00 1Q100 xz00 1Q100 xz00 1Q100 An00 1Nd00 An00 1Nd00 An00 1Nd00 An00 1Q100 xz00 1Q100", + "Pacific/Funafuti|TVT|-c00|0|", + "Pacific/Galapagos|LMT ECT GALT|5Wo 500 600|012|-1yVS1A 2dTz1A", + "Pacific/Gambier|LMT GAMT|8XM 900|01|-2jof0c", + "Pacific/Guadalcanal|LMT SBT|-aDM -b00|01|-2joyDM", + "Pacific/Guam|GST ChST|-a00 -a00|01|1fpq00", + "Pacific/Honolulu|HST HDT HST|au0 9u0 a00|010102|-1thLu0 8x00 lef00 8Pz00 46p00", + "Pacific/Johnston|HST HDT HST|au0 9u0 a00|010102|-1thLu0 8x00 lef00 8Pz00 46p00", + "Pacific/Kiritimati|LINT LINT LINT|aE0 a00 -e00|012|nIaE0 B8nk0", + "Pacific/Kosrae|KOST KOST|-b00 -c00|010|-AX00 1bdz00", + "Pacific/Kwajalein|MHT KWAT MHT|-b00 c00 -c00|012|-AX00 W9X00", + "Pacific/Majuro|MHT MHT|-b00 -c00|01|-AX00", + "Pacific/Marquesas|LMT MART|9i0 9u0|01|-2joeG0", + "Pacific/Midway|NST NDT BST SST|b00 a00 b00 b00|01023|-x3N00 An00 pJd00 EyM00", + "Pacific/Nauru|LMT NRT JST NRT|-b7E -bu0 -900 -c00|01213|-1Xdn7E PvzBE 5RCu0 1ouJu0", + "Pacific/Niue|NUT NUT NUT|bk0 bu0 b00|012|-KfME0 17y0a0", + "Pacific/Norfolk|NMT NFT|-bc0 -bu0|01|-Kgbc0", + "Pacific/Noumea|LMT NCT NCST|-b5M -b00 -c00|01212121|-2l9n5M 2EqM5M xX00 1PB00 yn00 HeP00 Ao00", + "Pacific/Pago_Pago|LMT SAMT NST BST SST|bmM bu0 b00 b00 b00|01234|-2nDMBc 1yW07c FXzu0 EyM00", + "Pacific/Palau|PWT|-900|0|", + "Pacific/Pitcairn|PNT PST|8u0 800|01|18Vku0", + "Pacific/Pohnpei|PONT|-b00|0|", + "Pacific/Port_Moresby|PGT|-a00|0|", + "Pacific/Rarotonga|CKT CKHST CKT|au0 9u0 a00|012121212121212121212121212|lyWu0 IL00 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Rbu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Rbu0 1zcu0 Onu0 1zcu0 Onu0 1zcu0 Onu0", + "Pacific/Saipan|MPT MPT ChST|-900 -a00 -a00|012|-AV00 1g2n00", + "Pacific/Tahiti|LMT TAHT|9Wg a00|01|-2joe1I", + "Pacific/Tarawa|GILT|-c00|0|", + "Pacific/Tongatapu|TOT TOT TOST|-ck0 -d00 -e00|01212121|-1aB0k0 2n5dk0 15A00 1wo00 xz00 1Q100 xz00", + "Pacific/Wake|WAKT|-c00|0|", + "Pacific/Wallis|WFT|-c00|0|", + "WET|WET WEST|0 -100|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB00 1a000 1fA00 1cM00 1cM00 1cM00 1fA00 1a000 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1cM00 1fA00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000 11A00 1qM00 WM00 1qM00 WM00 1qM00 WM00 1qM00 11A00 1o000 11A00 1o000" +] \ No newline at end of file diff --git a/data/source b/data/source new file mode 160000 index 00000000..afa8e7a1 --- /dev/null +++ b/data/source @@ -0,0 +1 @@ +Subproject commit afa8e7a12ba5e689e3a8dfef2ae6730ab598b626 diff --git a/index.js b/index.js index 9b178526..e0a52b02 100644 --- a/index.js +++ b/index.js @@ -1,2 +1,2 @@ module.exports = require("./moment-timezone"); -module.exports.tz.add(require('./moment-timezone.json')); +module.exports.tz.add(require('./data/packed/latest.json')); diff --git a/moment-timezone.js b/moment-timezone.js index c189d0c6..4b5583aa 100644 --- a/moment-timezone.js +++ b/moment-timezone.js @@ -5,6 +5,7 @@ // github.com/timrwood/moment-timezone (function () { + "use strict"; var VERSION = "0.0.6"; @@ -12,325 +13,87 @@ var oldZoneName = moment.fn.zoneName, oldZoneAbbr = moment.fn.zoneAbbr, - defaultRule, - rules = {}, - ruleSets = {}, + zonesData = {}, zones = {}, - zoneSets = {}, - links = {}, - - TIME_RULE_WALL_CLOCK = 0, - TIME_RULE_UTC = 1, - TIME_RULE_STANDARD = 2, - - DAY_RULE_DAY_OF_MONTH = 7, - DAY_RULE_LAST_WEEKDAY = 8; + links = {}; if (moment.tz !== undefined) { // Do not load moment-timezone a second time. return moment; } - // converts time in the HH:mm:ss format to absolute number of minutes - function parseMinutes (input) { - input = input + ''; - var output = input.split(':'), - sign = ~input.indexOf('-') ? -1 : 1, - hour = Math.abs(+output[0]), - minute = parseInt(output[1], 10) || 0, - second = parseInt(output[2], 10) || 0; - - return sign * ((hour * 60) + (minute) + (second / 60)); - } - - /************************************ - Rules - ************************************/ - - function Rule (name, startYear, endYear, month, day, dayRule, time, timeRule, offset, letters) { - this.name = name; - this.startYear = +startYear; - this.endYear = +endYear; - this.month = +month; - this.day = +day; - this.dayRule = +dayRule; - this.time = parseMinutes(time); - this.timeRule = +timeRule; - this.offset = parseMinutes(offset); - this.letters = letters || ''; - this.date = memoize(this.date); - this.weekdayAfter = memoize(this.weekdayAfter); - this.lastWeekday = memoize(this.lastWeekday); - } - - Rule.prototype = { - contains : function (year) { - return (year >= this.startYear && year <= this.endYear); - }, - - start : function (year) { - year = Math.min(Math.max(year, this.startYear), this.endYear); - return moment.utc([year, this.month, this.date(year), 0, this.time]); - }, - - date : function (year) { - if (this.dayRule === DAY_RULE_DAY_OF_MONTH) { - return this.day; - } else if (this.dayRule === DAY_RULE_LAST_WEEKDAY) { - return this.lastWeekday(year); - } - return this.weekdayAfter(year); - }, - - weekdayAfter : function (year) { - var day = this.day, - firstDayOfWeek = moment([year, this.month, 1]).day(), - output = this.dayRule + 1 - firstDayOfWeek; + function toInt(string) { + var i, charCode, + num, + out = 0, + sign = 1; - while (output < day) { - output += 7; + for (i = 0; i < string.length; i++) { + charCode = string.charCodeAt(i); + if (charCode === 45) { + sign = -1; + continue; } - - return output; - }, - - lastWeekday : function (year) { - var day = this.day, - dow = day % 7, - lastDowOfMonth = moment([year, this.month + 1, 1]).day(), - daysInMonth = moment([year, this.month, 1]).daysInMonth(), - output = daysInMonth + (dow - (lastDowOfMonth - 1)) - (~~(day / 7) * 7); - - if (dow >= lastDowOfMonth) { - output -= 7; + if (charCode > 96) { + num = charCode - 87; + } else if (charCode > 64) { + num = charCode - 29; + } else { + num = charCode - 48; } - return output; + out = 60 * out + num; } - }; - /************************************ - Rule Year - ************************************/ - - function RuleYear (year, rule) { - this.rule = rule; - this.start = rule.start(year); + return out * sign; } - RuleYear.prototype = { - equals : function (other) { - if (!other || other.rule !== this.rule) { - return false; - } - return Math.abs(other.start - this.start) < 86400000; // 24 * 60 * 60 * 1000 - } - }; - - function sortRuleYears (a, b) { - if (a.isLast) { - return -1; - } - if (b.isLast) { - return 1; + function arrayToInt (array) { + for (var i = 0; i < array.length; i++) { + array[i] = toInt(array[i]); } - return b.start - a.start; } - /************************************ - Rule Sets - ************************************/ - - function RuleSet (name) { - this.name = name; - this.rules = []; - this.lastYearRule = memoize(this.lastYearRule); - } - - RuleSet.prototype = { - add : function (rule) { - this.rules.push(rule); - }, - - ruleYears : function (mom, lastZone) { - var i, j, - year = mom.year(), - rule, - lastZoneRule, - rules = []; - - for (i = 0; i < this.rules.length; i++) { - rule = this.rules[i]; - if (rule.contains(year)) { - rules.push(new RuleYear(year, rule)); - } else if (rule.contains(year + 1)) { - rules.push(new RuleYear(year + 1, rule)); - } - } - rules.push(new RuleYear(year - 1, this.lastYearRule(year - 1))); - - if (lastZone) { - lastZoneRule = new RuleYear(year - 1, lastZone.lastRule()); - lastZoneRule.start = lastZone.until.clone().utc(); - lastZoneRule.isLast = lastZone.ruleSet !== this; - rules.push(lastZoneRule); - } - - rules.sort(sortRuleYears); - return rules; - }, - - rule : function (mom, offset, lastZone) { - var rules = this.ruleYears(mom, lastZone), - lastOffset = 0, - rule, - lastZoneOffset, - lastZoneOffsetAbs, - lastRule, - i; - - if (lastZone) { - lastZoneOffset = lastZone.offset + lastZone.lastRule().offset; - lastZoneOffsetAbs = Math.abs(lastZoneOffset) * 90000; - } - - // make sure to include the previous rule's offset - for (i = rules.length - 1; i > -1; i--) { - lastRule = rule; - rule = rules[i]; - - if (rule.equals(lastRule)) { - continue; - } - - if (lastZone && !rule.isLast && Math.abs(rule.start - lastZone.until) <= lastZoneOffsetAbs) { - lastOffset += lastZoneOffset - offset; - } - - if (rule.rule.timeRule === TIME_RULE_STANDARD) { - lastOffset = offset; - } - - if (rule.rule.timeRule !== TIME_RULE_UTC) { - rule.start.add('m', -lastOffset); - } - - lastOffset = rule.rule.offset + offset; - } - - for (i = 0; i < rules.length; i++) { - rule = rules[i]; - if (mom >= rule.start && !rule.isLast) { - return rule.rule; - } - } - - return defaultRule; - }, - - lastYearRule : function (year) { - var i, - rule, - start, - bestRule = defaultRule, - largest = -1e30; - - for (i = 0; i < this.rules.length; i++) { - rule = this.rules[i]; - if (year >= rule.startYear) { - start = rule.start(year); - if (start > largest) { - largest = start; - bestRule = rule; - } - } - } - - return bestRule; + function intToUntil (array) { + for (var i = 0; i < array.length; i++) { + array[i] = (array[i - 1] || 0) + (array[i] * 1000); } - }; - - /************************************ - Zone - ************************************/ - function Zone (name, offset, ruleSet, letters, until, untilOffset) { - var i, - untilArray = typeof until === 'string' ? until.split('_') : [9999]; - - this.name = name; - this.offset = parseMinutes(offset); - this.ruleSet = ruleSet; - this.letters = letters; - this.lastRule = memoize(this.lastRule); - - for (i = 0; i < untilArray.length; i++) { - untilArray[i] = +untilArray[i]; - } - this.until = moment.utc(untilArray).subtract('m', parseMinutes(untilOffset)); + array.push(Infinity); } - Zone.prototype = { - rule : function (mom, lastZone) { - return this.ruleSet.rule(mom, this.offset, lastZone); - }, - - lastRule : function () { - return this.rule(this.until); - }, - - format : function (rule) { - return this.letters.replace("%s", rule.letters); - } - }; + function Zone (data) { + this.name = data[0]; + this.abbrs = data[1].split(' '); + this.offsets = data[2].split(' '); + this.indices = data[3].split(''); + this.untils = data[4].split(' '); - /************************************ - Zone Set - ************************************/ + arrayToInt(this.offsets); + arrayToInt(this.indices); + arrayToInt(this.untils); - function sortZones (a, b) { - return a.until - b.until; + intToUntil(this.untils); } - function ZoneSet (name) { - this.name = normalizeName(name); - this.displayName = name; - this.zones = []; - this.zoneAndRule = memoize(this.zoneAndRule, function (mom) { - return +mom; - }); - } + Zone.prototype = { + _index : function (timestamp) { + var target = +timestamp, + untils = this.untils, + i; - ZoneSet.prototype = { - zoneAndRule : function (mom) { - var i, - zone, - lastZone; - - mom = mom.clone().utc(); - for (i = 0; i < this.zones.length; i++) { - zone = this.zones[i]; - if (mom < zone.until) { - break; + for (i = 0; i < untils.length; i++) { + if (target < untils[i]) { + return this.indices[i]; } - lastZone = zone; } - - return [zone, zone.rule(mom, lastZone)]; - }, - - add : function (zone) { - this.zones.push(zone); - this.zones.sort(sortZones); }, - format : function (mom) { - var zoneAndRule = this.zoneAndRule(mom); - return zoneAndRule[0].format(zoneAndRule[1]); + abbr : function (mom) { + return this.abbrs[this._index(mom)]; }, offset : function (mom) { - var zoneAndRule = this.zoneAndRule(mom); - return -(zoneAndRule[0].offset + zoneAndRule[1].offset); + return this.offsets[this._index(mom)] / 60; } }; @@ -338,117 +101,49 @@ Global Methods ************************************/ - function memoize (fn, keyFn) { - var cache = {}; - return function (first) { - var key = keyFn ? keyFn.apply(this, arguments) : first; - return key in cache ? - cache[key] : - (cache[key] = fn.apply(this, arguments)); - }; - } - - function addRules (rules) { - var i, j, rule; - for (i in rules) { - rule = rules[i]; - for (j = 0; j < rule.length; j++) { - addRule(i + '\t' + rule[j]); - } - } - } - - function addRule (ruleString) { - // don't duplicate rules - if (rules[ruleString]) { - return rules[ruleString]; - } - - var p = ruleString.split(/\s/), - name = normalizeName(p[0]), - rule = new Rule(name, p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10]); - - // cache the rule so we don't add it again - rules[ruleString] = rule; - - // add to the ruleset - getRuleSet(name).add(rule); - - return rule; - } - function normalizeName (name) { return (name || '').toLowerCase().replace(/\//g, '_'); } function addZones (zones) { - var i, j, zone; - for (i in zones) { - zone = zones[i]; - for (j = 0; j < zone.length; j++) { - addZone(i + '\t' + zone[j]); - } - } - } - - function addLinks (linksToAdd) { var i; - for (i in linksToAdd) { - links[normalizeName(i)] = normalizeName(linksToAdd[i]); + for (i = 0; i < zones.length; i++) { + addZone(zones[i]); } } function addZone (zoneString) { - // don't duplicate zones - if (zones[zoneString]) { - return zones[zoneString]; - } - - var p = zoneString.split(/\s/), - name = normalizeName(p[0]), - zone = new Zone(name, p[1], getRuleSet(p[2]), p[3], p[4], p[5]); - - // cache the zone so we don't add it again - zones[zoneString] = zone; - - // add to the zoneset - getZoneSet(p[0]).add(zone); + var parts = zoneString.split('|'), + name = normalizeName(parts[0]); - return zone; + zones[name] = null; + zonesData[name] = parts; } - function getRuleSet (name) { - name = normalizeName(name); - if (!ruleSets[name]) { - ruleSets[name] = new RuleSet(name); + function addLinks(data) { + var i, link; + for (i = 0; i < data.length; i++) { + link = data[i].split('|'); + links[normalizeName(link[0])] = normalizeName(link[1]); } - return ruleSets[name]; } - function getZoneSet (name) { + function getZone (name) { var machineName = normalizeName(name); if (links[machineName]) { machineName = links[machineName]; } - if (!zoneSets[machineName]) { - zoneSets[machineName] = new ZoneSet(name); + if (!zones[machineName] && zonesData[machineName]) { + zones[machineName] = new Zone(zonesData[machineName]); } - return zoneSets[machineName]; + return zones[machineName]; } function add (data) { if (!data) { return; } - if (data.zones) { - addZones(data.zones); - } - if (data.rules) { - addRules(data.rules); - } - if (data.links) { - addLinks(data.links); - } + addZones(data); } // overwrite moment.updateOffset @@ -463,38 +158,42 @@ } }; - function getZoneSets() { - var sets = [], + function getZones() { + var output = [], zoneName; - for (zoneName in zoneSets) { - sets.push(zoneSets[zoneName]); + + for (zoneName in zones) { + if (zones.hasOwnProperty(zoneName)) { + output.push(zones[zoneName]); + } } - return sets; + + return output; } moment.fn.tz = function (name) { if (name) { - this._z = getZoneSet(name); + this._z = getZone(name); if (this._z) { moment.updateOffset(this); } return this; } if (this._z) { - return this._z.displayName; + return this._z.name; } }; moment.fn.zoneName = function () { if (this._z) { - return this._z.format(this); + return this._z.abbr(this); } return oldZoneName.call(this); }; moment.fn.zoneAbbr = function () { if (this._z) { - return this._z.format(this); + return this._z.abbr(this); } return oldZoneAbbr.call(this); }; @@ -514,19 +213,15 @@ }; moment.tz.add = add; - moment.tz.addRule = addRule; - moment.tz.addZone = addZone; - moment.tz.zones = getZoneSets; + moment.tz.link = addLinks; + moment.tz.zones = getZones; moment.tz.version = VERSION; moment.tz.zoneExists = function (name) { - return getZoneSet(name).zones.length > 0; + return !!getZone(name); }; - // add default rule - defaultRule = addRule("- 0 9999 0 0 0 0 0 0"); - return moment; } diff --git a/tasks/build-changes.js b/tasks/build-changes.js new file mode 100644 index 00000000..d30055b7 --- /dev/null +++ b/tasks/build-changes.js @@ -0,0 +1,19 @@ +"use strict"; + +var allZones = require('./helpers/all-zones'); + +module.exports = function (grunt) { + grunt.registerTask('build-changes', 'Build offset changes for each timezone using zdump(8).', function () { + var done = this.async(); + + allZones(function (all) { + var data = all.map(function (zone) { + return zone.renderChanges(); + }); + + grunt.file.write('data/packed/latest.json', JSON.stringify(data, null, '\t')); + + done(); + }); + }); +}; diff --git a/tasks/build-tests.js b/tasks/build-tests.js new file mode 100644 index 00000000..f17f13f3 --- /dev/null +++ b/tasks/build-tests.js @@ -0,0 +1,20 @@ +"use strict"; + +var path = require('path'), + allZones = require('./helpers/all-zones'); + +module.exports = function (grunt) { + grunt.registerTask('build-tests', 'Build tests for each timezone using zdump(8).', function () { + var done = this.async(); + + allZones(function (all) { + all.forEach(function (zone) { + var filename = path.resolve("tests/zones/" + zone.name.toLowerCase() + '.js'); + grunt.file.write(filename, zone.renderTests()); + console.log('Built tests/' + zone.name.toLowerCase() + '.js'); + }); + + done(); + }); + }); +}; diff --git a/tasks/helpers/all-zones.js b/tasks/helpers/all-zones.js new file mode 100644 index 00000000..a25cf989 --- /dev/null +++ b/tasks/helpers/all-zones.js @@ -0,0 +1,33 @@ +"use strict"; + +var zoneNames = require('./zone-names'), + zdump = require('./zdump'), + Zone = require('./zone'); + +function sortZones (a, b) { + if (a.name < b.name) { return -1; } + if (a.name > b.name) { return 1; } + return 0; +} + +module.exports = function allZones (cb) { + var all = [], + remaining = zoneNames.length; + + zoneNames.forEach(function (name) { + zdump(name, function (err, lines) { + if (err) { + console.log('!! ' + name); + console.error(err); + } else { + all.push(new Zone(name, lines)); + console.log('zdump -v ' + name); + } + + remaining--; + if (remaining === 0) { + cb(all.sort(sortZones)); + } + }); + }); +}; \ No newline at end of file diff --git a/tasks/helpers/change.js b/tasks/helpers/change.js new file mode 100644 index 00000000..fbb68249 --- /dev/null +++ b/tasks/helpers/change.js @@ -0,0 +1,41 @@ +"use strict"; + +var moment = require('moment'); + +function Change (line) { + var s = line.split(/\s+/), + format = "MMM D HH:mm:ss YYYY", + utc = moment.utc(s.slice(2, 6).join(' '), format), + local = moment.utc(s.slice(9, 13).join(' '), format); + + this.utc = utc; + this.start = +utc; + this.until = Infinity; + this.name = s[13]; + this.offset = Math.round(utc.diff(local, 'seconds', true)); + this.year = s[5]; + this.time = s[11]; + + if (this.offset % 60 === 0) { + this.offsetFraction = Math.round(this.offset / 60); + } else { + this.offsetFraction = this.offset + ' / 60'; + } +} + +module.exports = Change; + +Change.prototype = { + isSameAs : function (other) { + return (other.offset === this.offset) && (other.name === this.name); + }, + + formatTest : function () { + return '[' + [ + '"' + this.utc.format() + '"', + '"' + this.time + '"', + '"' + this.name + '"', + this.offsetFraction + ].join(', ') + ']'; + } +}; \ No newline at end of file diff --git a/tasks/helpers/to-base-60.js b/tasks/helpers/to-base-60.js new file mode 100644 index 00000000..acfc4578 --- /dev/null +++ b/tasks/helpers/to-base-60.js @@ -0,0 +1,22 @@ +"use strict"; + +var BASE60 = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX'.split(''); + +function unsignedToBase60(number) { + var output = '', + nextNumber; + + while (number > 0) { + nextNumber = Math.floor(number / 60); + output = BASE60[(number - (60 * nextNumber))] + output; + number = nextNumber; + } + return output || '0'; +} + +function signedToBase60(num) { + num = +num; + return num < 0 ? '-' + unsignedToBase60(-num) : unsignedToBase60(num); +} + +module.exports = signedToBase60; diff --git a/tasks/helpers/year.js b/tasks/helpers/year.js new file mode 100644 index 00000000..257f219d --- /dev/null +++ b/tasks/helpers/year.js @@ -0,0 +1,36 @@ +"use strict"; + +function Year (name, year) { + this.tests = []; + this.name = name; + this.year = year; +} + +module.exports = Year; + +Year.prototype.add = function (test) { + this.tests.push(test); +}; + +// Formatting a Year should look like this. +// +// "1918" : helpers.makeTestYear("America/Los_Angeles", [ +// ["1918-03-31T09:59:59+00:00", "01:59:59", "PST", 480], +// ["1918-03-31T10:00:00+00:00", "03:00:00", "PDT", 420], +// ["1918-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], +// ["1918-10-27T09:00:00+00:00", "01:00:00", "PST", 480] +// ]), + +Year.prototype.format = function () { + var o = '', i, tests = []; + + o += '\t"' + this.year + '" : helpers.makeTestYear("' + this.name + '", ['; + + for (i = 0; i < this.tests.length; i++) { + tests.push('\n\t\t' + this.tests[i].formatTest()); + } + o += tests.join(','); + + o += '\n\t])'; + return o; +}; \ No newline at end of file diff --git a/tasks/helpers/zdump.js b/tasks/helpers/zdump.js new file mode 100644 index 00000000..da4d78f0 --- /dev/null +++ b/tasks/helpers/zdump.js @@ -0,0 +1,19 @@ +"use strict"; + +var exec = require('child_process').exec; + +function splitToLines (stdout) { + return stdout.split('\n').filter(function (line) { + return !!line; + }); +} + +module.exports = function zdump(name, cb) { + exec('zdump -v ' + name, function (err, stdout) { + if (err) { + cb(err); + } else { + cb(null, splitToLines(stdout)); + } + }); +}; \ No newline at end of file diff --git a/tasks/zone-names.js b/tasks/helpers/zone-names.js similarity index 99% rename from tasks/zone-names.js rename to tasks/helpers/zone-names.js index 4a6ee2f1..443ea9d9 100644 --- a/tasks/zone-names.js +++ b/tasks/helpers/zone-names.js @@ -407,5 +407,5 @@ module.exports = [ "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis", - "WET", + "WET" ]; \ No newline at end of file diff --git a/tasks/helpers/zone.js b/tasks/helpers/zone.js new file mode 100644 index 00000000..2660ad6a --- /dev/null +++ b/tasks/helpers/zone.js @@ -0,0 +1,145 @@ +"use strict"; + +var Change = require('./change'), + Year = require('./year'), + toBase60 = require('./to-base-60'); + +function Zone (name, lines) { + this.years = {}; + this.changes = []; + this.name = name; + this.addChanges(lines); + this.addTests(lines); +} + +module.exports = Zone; + + + + +// TESTS + +Zone.prototype.addTests = function (data) { + // Ignore first two and last two lines + data.slice(2, -2).forEach(function (item) { + this.addTestForChange(new Change(item)); + }.bind(this)); +}; + +Zone.prototype.addTestForChange = function (change) { + var years = this.years; + if (!years[change.year]) { + years[change.year] = new Year(this.name, change.year); + } + years[change.year].add(change); +}; + +Zone.prototype.renderTestYears = function () { + var o = [], + years = this.years, + i; + + for (i in years) { + if (years.hasOwnProperty(i)) { + o.push(years[i].format()); + } + } + return o.join(',\n\n'); +}; + +Zone.prototype.renderTestRequire = function () { + var levels = (this.name.match(/\//g) || []).length, + i, + o = ''; + + if (levels === 0) { + return './'; + } + + for (i = 0; i < levels; i++) { + o += '../'; + } + return o; +}; + +Zone.prototype.renderTests = function () { + return [ + '"use strict";', + '', + 'var helpers = require("' + this.renderTestRequire() + '../../tests/helpers/helpers");', + '', + 'exports["' + this.name + '"] = {', + this.renderTestYears(), + '};' + ].join('\n'); +}; + + + + +// CHANGES + +Zone.prototype.addChanges = function (data) { + data.forEach(function (item) { + this.addChange(new Change(item)); + }.bind(this)); +}; + +Zone.prototype.addChange = function (change) { + var changes = this.changes, + last = changes[changes.length - 1]; + + if (last && last.isSameAs(change)) { + changes.pop(); + last = changes[changes.length - 1]; + } else if (last) { + last.until = +change.start; + } + + changes.push(change); +}; + +Zone.prototype.renderUntils = function () { + var last = 0; + + return this.changes.slice(0, -1).map(function (change) { + var diff = change.until - last; + last = change.until; + return diff; + }).map(function (number) { + return Math.round(number / 1000); + }).map(toBase60).join(' '); +}; + +Zone.prototype.renderMapIndex = function () { + var count = 0, + indices = [], + map = {}, + names = [], + offsets = []; + + this.changes.forEach(function (change, i) { + var value = change.name + '|' + change.offset; + if (map[value] === undefined) { + map[value] = count; + names[count] = change.name; + offsets[count] = change.offset; + count++; + } + indices[i] = map[value]; + }); + + return [ + names.join(' '), + offsets.map(toBase60).join(' '), + indices.map(toBase60).join('') + ].join('|'); +}; + +Zone.prototype.renderChanges = function () { + return [ + this.name, + this.renderMapIndex(), + this.renderUntils() + ].join('|'); +}; diff --git a/tasks/zdump.js b/tasks/zdump.js deleted file mode 100644 index de77f4a2..00000000 --- a/tasks/zdump.js +++ /dev/null @@ -1,216 +0,0 @@ -var path = require('path'), - moment = require('../moment-timezone'), - zoneNames = require('./zone-names'); - -module.exports = function (grunt) { - // placeholder for an array of timezones - var ALL_ZONES; - - /****************************** - Grunt task - ******************************/ - - grunt.registerTask('zdump', 'Generate unit tests for each timezone based on zdump.', function () { - var i; - ALL_ZONES = []; - for (i = 0; i < zoneNames.length; i++) { - ALL_ZONES.push(zoneNames[i]); - } - nextTest(this.async()); - }); - - /****************************** - zdump - ******************************/ - - function zdump(name, cb) { - grunt.util.spawn({ - cmd: "zdump", - args: ["-v", name] - }, function (err, result, code) { - cb(result.stdout.split('\n')); - }); - } - - /****************************** - Tests - ******************************/ - - function nextTest(cb) { - var zone = ALL_ZONES.shift(); - if (zone) { - generateTest(zone, function () { - nextTest(cb); - }); - } else { - cb(); - } - } - - function generateTest(name, cb) { - zdump(name, function (data) { - var file = new File(name, data); - file.save(); - cb(); - }); - } - - /****************************** - Files - ******************************/ - - function File (name, data) { - this.years = {}; - this.name = name; - this.addTests(data); - } - - File.prototype = { - addTests : function (data) { - var test, - years = this.years, - i; - - // start at 2 so we skip the 1901 - // end 2 behind data.length to skip 2038 - for (i = 2; i < data.length - 2; i++) { - test = new Test(this.name, data[i]); - if (!years[test.year]) { - years[test.year] = new Year(this.name, test.year); - } - years[test.year].add(test); - } - }, - - renderTests : function () { - var o = [], - years = this.years, - i; - for (i in years) { - o.push(years[i].format()); - } - return (o.join(',\n\n')); - }, - - renderRequire : function () { - var levels = (this.name.match(/\//g) || []).length, - i, - o = ''; - - for (i = 0; i < levels; i++) { - o += '../'; - } - return o; - }, - - render : function () { - var o = ''; - o += 'var moment = require("' + this.renderRequire() + '../index");'; - o += '\n\nexports["' + this.name + '"] = {\n\n'; - o += this.renderTests(); - o += '\n};'; - return o; - }, - - save : function () { - var filename = path.join(process.cwd(), "tests/" + this.name.toLowerCase() + '.js'); - grunt.file.write(filename, this.render()); - grunt.log.writeln("[] ".green + this.name); - } - }; - - /****************************** - Year object - ******************************/ - - function Year (name, year) { - this.tests = []; - this.name = name; - this.year = year; - } - - Year.prototype = { - add : function (test) { - this.tests.push(test); - }, - - format : function () { - var o = '', i; - o += '\t"' + this.year + '" : function (t) {'; - // o += '\n\t\tt.expect(' + (this.tests.length * 2) + ');\n'; - // for (i = 0; i < this.tests.length; i++) { - // o += '\n\t\t' + this.tests[i].nameTest(); - // } - // o += '\n'; - for (i = 0; i < this.tests.length; i++) { - o += '\n\t\t' + this.tests[i].formatTest(); - } - o += '\n'; - for (i = 0; i < this.tests.length; i++) { - o += '\n\t\t' + this.tests[i].offsetTest(); - } - o += '\n\n\t\tt.done();'; - o += '\n\t}'; - return o; - } - }; - - /****************************** - Test object - ******************************/ - - function Test (name, line) { - var s = line.split(/\s+/), - utc = s.slice(2, 6).join(' '), - local = s.slice(9, 13).join(' '), - format = "MMM D HH:mm:ss YYYY", - diff; - - this.utc = moment.utc(utc, format); - this.local = moment.utc(local, format); - this.time = s[11]; - this.name = name; - this.nameShort = s[13]; - this.year = s[5]; - - diff = this.utc.diff(this.local, 'minutes', true); - - if (diff === ~~diff) { - this.offset = diff; - } else { - this.offset = Math.round(diff * 60) + ' / 60'; - } - } - - Test.prototype = { - formatTest : function () { - var o = '', - utc = this.utc.format(); - o += 't.equal(moment("' + utc + '").tz("' + this.name + '").format("HH:mm:ss"), '; - o += '"' + this.time + '"'; - o += ', "' + utc + " should be " + this.time + ' ' + this.nameShort + '");'; - - return o; - }, - - offsetTest : function () { - var o = '', - utc = this.utc.format(); - o += 't.equal(moment("' + utc + '").tz("' + this.name + '").zone(), '; - o += this.offset; - o += ', "' + utc + " should be " + this.offset + ' minutes offset in ' + this.nameShort + '");'; - - return o; - }, - - nameTest : function () { - var o = '', - utc = this.utc.format(); - o += 't.equal(moment("' + utc + '").tz("' + this.name + '").zoneName(), "'; - o += this.nameShort; - o += '", "' + utc + " should be " + this.nameShort + '");'; - - return o; - } - }; -}; diff --git a/tests/africa/abidjan.js b/tests/africa/abidjan.js deleted file mode 100644 index 19d99165..00000000 --- a/tests/africa/abidjan.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Abidjan"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T00:16:07+00:00").tz("Africa/Abidjan").format("HH:mm:ss"), "23:59:59", "1912-01-01T00:16:07+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-01T00:16:08+00:00").tz("Africa/Abidjan").format("HH:mm:ss"), "00:16:08", "1912-01-01T00:16:08+00:00 should be 00:16:08 GMT"); - - t.equal(moment("1912-01-01T00:16:07+00:00").tz("Africa/Abidjan").zone(), 968 / 60, "1912-01-01T00:16:07+00:00 should be 968 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-01T00:16:08+00:00").tz("Africa/Abidjan").zone(), 0, "1912-01-01T00:16:08+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/accra.js b/tests/africa/accra.js deleted file mode 100644 index d2be1c28..00000000 --- a/tests/africa/accra.js +++ /dev/null @@ -1,112 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Accra"] = { - - "1918" : function (t) { - t.equal(moment("1918-01-01T00:00:51+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1918-01-01T00:00:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1918-01-01T00:00:52+00:00").tz("Africa/Accra").format("HH:mm:ss"), "00:00:52", "1918-01-01T00:00:52+00:00 should be 00:00:52 GMT"); - - t.equal(moment("1918-01-01T00:00:51+00:00").tz("Africa/Accra").zone(), 52 / 60, "1918-01-01T00:00:51+00:00 should be 52 / 60 minutes offset in LMT"); - t.equal(moment("1918-01-01T00:00:52+00:00").tz("Africa/Accra").zone(), 0, "1918-01-01T00:00:52+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-08-31T23:59:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1936-08-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1936-09-01T00:00:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "00:20:00", "1936-09-01T00:00:00+00:00 should be 00:20:00 GHST"); - t.equal(moment("1936-12-30T23:39:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1936-12-30T23:39:59+00:00 should be 23:59:59 GHST"); - t.equal(moment("1936-12-30T23:40:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:40:00", "1936-12-30T23:40:00+00:00 should be 23:40:00 GMT"); - - t.equal(moment("1936-08-31T23:59:59+00:00").tz("Africa/Accra").zone(), 0, "1936-08-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1936-09-01T00:00:00+00:00").tz("Africa/Accra").zone(), -20, "1936-09-01T00:00:00+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1936-12-30T23:39:59+00:00").tz("Africa/Accra").zone(), -20, "1936-12-30T23:39:59+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1936-12-30T23:40:00+00:00").tz("Africa/Accra").zone(), 0, "1936-12-30T23:40:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-08-31T23:59:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1937-08-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1937-09-01T00:00:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "00:20:00", "1937-09-01T00:00:00+00:00 should be 00:20:00 GHST"); - t.equal(moment("1937-12-30T23:39:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1937-12-30T23:39:59+00:00 should be 23:59:59 GHST"); - t.equal(moment("1937-12-30T23:40:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:40:00", "1937-12-30T23:40:00+00:00 should be 23:40:00 GMT"); - - t.equal(moment("1937-08-31T23:59:59+00:00").tz("Africa/Accra").zone(), 0, "1937-08-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1937-09-01T00:00:00+00:00").tz("Africa/Accra").zone(), -20, "1937-09-01T00:00:00+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1937-12-30T23:39:59+00:00").tz("Africa/Accra").zone(), -20, "1937-12-30T23:39:59+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1937-12-30T23:40:00+00:00").tz("Africa/Accra").zone(), 0, "1937-12-30T23:40:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-08-31T23:59:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1938-08-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1938-09-01T00:00:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "00:20:00", "1938-09-01T00:00:00+00:00 should be 00:20:00 GHST"); - t.equal(moment("1938-12-30T23:39:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1938-12-30T23:39:59+00:00 should be 23:59:59 GHST"); - t.equal(moment("1938-12-30T23:40:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:40:00", "1938-12-30T23:40:00+00:00 should be 23:40:00 GMT"); - - t.equal(moment("1938-08-31T23:59:59+00:00").tz("Africa/Accra").zone(), 0, "1938-08-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1938-09-01T00:00:00+00:00").tz("Africa/Accra").zone(), -20, "1938-09-01T00:00:00+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1938-12-30T23:39:59+00:00").tz("Africa/Accra").zone(), -20, "1938-12-30T23:39:59+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1938-12-30T23:40:00+00:00").tz("Africa/Accra").zone(), 0, "1938-12-30T23:40:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-08-31T23:59:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1939-08-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1939-09-01T00:00:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "00:20:00", "1939-09-01T00:00:00+00:00 should be 00:20:00 GHST"); - t.equal(moment("1939-12-30T23:39:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1939-12-30T23:39:59+00:00 should be 23:59:59 GHST"); - t.equal(moment("1939-12-30T23:40:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:40:00", "1939-12-30T23:40:00+00:00 should be 23:40:00 GMT"); - - t.equal(moment("1939-08-31T23:59:59+00:00").tz("Africa/Accra").zone(), 0, "1939-08-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1939-09-01T00:00:00+00:00").tz("Africa/Accra").zone(), -20, "1939-09-01T00:00:00+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1939-12-30T23:39:59+00:00").tz("Africa/Accra").zone(), -20, "1939-12-30T23:39:59+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1939-12-30T23:40:00+00:00").tz("Africa/Accra").zone(), 0, "1939-12-30T23:40:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-08-31T23:59:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1940-08-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1940-09-01T00:00:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "00:20:00", "1940-09-01T00:00:00+00:00 should be 00:20:00 GHST"); - t.equal(moment("1940-12-30T23:39:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1940-12-30T23:39:59+00:00 should be 23:59:59 GHST"); - t.equal(moment("1940-12-30T23:40:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:40:00", "1940-12-30T23:40:00+00:00 should be 23:40:00 GMT"); - - t.equal(moment("1940-08-31T23:59:59+00:00").tz("Africa/Accra").zone(), 0, "1940-08-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1940-09-01T00:00:00+00:00").tz("Africa/Accra").zone(), -20, "1940-09-01T00:00:00+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1940-12-30T23:39:59+00:00").tz("Africa/Accra").zone(), -20, "1940-12-30T23:39:59+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1940-12-30T23:40:00+00:00").tz("Africa/Accra").zone(), 0, "1940-12-30T23:40:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-08-31T23:59:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1941-08-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1941-09-01T00:00:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "00:20:00", "1941-09-01T00:00:00+00:00 should be 00:20:00 GHST"); - t.equal(moment("1941-12-30T23:39:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1941-12-30T23:39:59+00:00 should be 23:59:59 GHST"); - t.equal(moment("1941-12-30T23:40:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:40:00", "1941-12-30T23:40:00+00:00 should be 23:40:00 GMT"); - - t.equal(moment("1941-08-31T23:59:59+00:00").tz("Africa/Accra").zone(), 0, "1941-08-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1941-09-01T00:00:00+00:00").tz("Africa/Accra").zone(), -20, "1941-09-01T00:00:00+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1941-12-30T23:39:59+00:00").tz("Africa/Accra").zone(), -20, "1941-12-30T23:39:59+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1941-12-30T23:40:00+00:00").tz("Africa/Accra").zone(), 0, "1941-12-30T23:40:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-08-31T23:59:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1942-08-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1942-09-01T00:00:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "00:20:00", "1942-09-01T00:00:00+00:00 should be 00:20:00 GHST"); - t.equal(moment("1942-12-30T23:39:59+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:59:59", "1942-12-30T23:39:59+00:00 should be 23:59:59 GHST"); - t.equal(moment("1942-12-30T23:40:00+00:00").tz("Africa/Accra").format("HH:mm:ss"), "23:40:00", "1942-12-30T23:40:00+00:00 should be 23:40:00 GMT"); - - t.equal(moment("1942-08-31T23:59:59+00:00").tz("Africa/Accra").zone(), 0, "1942-08-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1942-09-01T00:00:00+00:00").tz("Africa/Accra").zone(), -20, "1942-09-01T00:00:00+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1942-12-30T23:39:59+00:00").tz("Africa/Accra").zone(), -20, "1942-12-30T23:39:59+00:00 should be -20 minutes offset in GHST"); - t.equal(moment("1942-12-30T23:40:00+00:00").tz("Africa/Accra").zone(), 0, "1942-12-30T23:40:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/addis_ababa.js b/tests/africa/addis_ababa.js deleted file mode 100644 index 7dbbbf1a..00000000 --- a/tests/africa/addis_ababa.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Addis_Ababa"] = { - - "1936" : function (t) { - t.equal(moment("1936-05-04T21:24:39+00:00").tz("Africa/Addis_Ababa").format("HH:mm:ss"), "23:59:59", "1936-05-04T21:24:39+00:00 should be 23:59:59 ADMT"); - t.equal(moment("1936-05-04T21:24:40+00:00").tz("Africa/Addis_Ababa").format("HH:mm:ss"), "00:24:40", "1936-05-04T21:24:40+00:00 should be 00:24:40 EAT"); - - t.equal(moment("1936-05-04T21:24:39+00:00").tz("Africa/Addis_Ababa").zone(), -9320 / 60, "1936-05-04T21:24:39+00:00 should be -9320 / 60 minutes offset in ADMT"); - t.equal(moment("1936-05-04T21:24:40+00:00").tz("Africa/Addis_Ababa").zone(), -180, "1936-05-04T21:24:40+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/algiers.js b/tests/africa/algiers.js deleted file mode 100644 index 6e083e76..00000000 --- a/tests/africa/algiers.js +++ /dev/null @@ -1,256 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Algiers"] = { - - "1911" : function (t) { - t.equal(moment("1911-03-10T23:50:38+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1911-03-10T23:50:38+00:00 should be 23:59:59 PMT"); - t.equal(moment("1911-03-10T23:50:39+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:50:39", "1911-03-10T23:50:39+00:00 should be 23:50:39 WET"); - - t.equal(moment("1911-03-10T23:50:38+00:00").tz("Africa/Algiers").zone(), -561 / 60, "1911-03-10T23:50:38+00:00 should be -561 / 60 minutes offset in PMT"); - t.equal(moment("1911-03-10T23:50:39+00:00").tz("Africa/Algiers").zone(), 0, "1911-03-10T23:50:39+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-06-14T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "22:59:59", "1916-06-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1916-06-14T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1916-06-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1916-10-01T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1916-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1916-10-01T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1916-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1916-06-14T22:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1916-06-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1916-06-14T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1916-06-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1916-10-01T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1916-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1916-10-01T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1916-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "22:59:59", "1917-03-24T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1917-03-24T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1917-03-24T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1917-10-07T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1917-10-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1917-10-07T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1917-10-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1917-03-24T22:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1917-03-24T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1917-03-24T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1917-03-24T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-07T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1917-10-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-07T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1917-10-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "22:59:59", "1918-03-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1918-03-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1918-10-06T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1918-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1918-10-06T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1918-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1918-03-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1918-03-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-06T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1918-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-06T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1918-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "22:59:59", "1919-03-01T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1919-03-01T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1919-10-05T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1919-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1919-10-05T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1919-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1919-03-01T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1919-03-01T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-05T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1919-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-05T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1919-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "22:59:59", "1920-02-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1920-02-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1920-10-23T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1920-10-23T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1920-10-23T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1920-10-23T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1920-02-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1920-02-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-23T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1920-10-23T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-23T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1920-10-23T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "22:59:59", "1921-03-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1921-03-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1921-06-21T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1921-06-21T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1921-06-21T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1921-06-21T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1921-03-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1921-03-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-06-21T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1921-06-21T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-06-21T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1921-06-21T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-09-11T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "22:59:59", "1939-09-11T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1939-09-11T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1939-09-11T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1939-11-18T23:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:59:59", "1939-11-18T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1939-11-19T00:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1939-11-19T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1939-09-11T22:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1939-09-11T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1939-09-11T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1939-09-11T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-18T23:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1939-11-18T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-19T00:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1939-11-19T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:59:59", "1940-02-25T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "03:00:00", "1940-02-25T02:00:00+00:00 should be 03:00:00 CET"); - - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1940-02-25T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1940-02-25T02:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-07T23:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:59:59", "1944-10-07T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1944-10-08T00:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:00:00", "1944-10-08T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Africa/Algiers").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-07T23:59:59+00:00").tz("Africa/Algiers").zone(), -120, "1944-10-07T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-08T00:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1944-10-08T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-09-15T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:59:59", "1945-09-15T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1945-09-15T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1945-09-15T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Africa/Algiers").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-15T22:59:59+00:00").tz("Africa/Algiers").zone(), -120, "1945-09-15T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-15T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1945-09-15T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-10-06T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1946-10-06T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1946-10-06T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1946-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1946-10-06T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1946-10-06T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-10-06T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1946-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-01-28T23:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1956-01-28T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1956-01-29T00:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:00:00", "1956-01-29T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1956-01-28T23:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1956-01-28T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1956-01-29T00:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1956-01-29T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-13T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1963-04-13T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1963-04-13T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1963-04-13T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1963-04-13T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1963-04-13T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1963-04-13T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1963-04-13T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "22:59:59", "1971-04-25T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1971-04-25T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1971-04-25T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1971-09-26T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1971-09-26T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1971-09-26T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1971-09-26T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1971-04-25T22:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1971-04-25T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1971-04-25T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1971-04-25T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1971-09-26T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1971-09-26T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1971-09-26T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1971-09-26T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-05-05T23:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1977-05-05T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1977-05-06T00:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:00:00", "1977-05-06T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1977-10-20T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1977-10-20T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1977-10-20T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:00:00", "1977-10-20T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1977-05-05T23:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1977-05-05T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1977-05-06T00:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1977-05-06T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-10-20T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1977-10-20T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-10-20T23:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1977-10-20T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-23T23:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "00:59:59", "1978-03-23T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1978-03-24T00:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "02:00:00", "1978-03-24T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1978-09-22T00:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "02:59:59", "1978-09-22T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1978-09-22T01:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "02:00:00", "1978-09-22T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1978-03-23T23:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1978-03-23T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-03-24T00:00:00+00:00").tz("Africa/Algiers").zone(), -120, "1978-03-24T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-22T00:59:59+00:00").tz("Africa/Algiers").zone(), -120, "1978-09-22T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-22T01:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1978-09-22T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-10-25T22:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1979-10-25T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1979-10-25T23:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:00:00", "1979-10-25T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1979-10-25T22:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1979-10-25T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-10-25T23:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1979-10-25T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-24T23:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1980-04-24T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1980-04-25T00:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:00:00", "1980-04-25T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1980-10-31T00:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:59:59", "1980-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1980-10-31T01:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:00:00", "1980-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1980-04-24T23:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1980-04-24T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1980-04-25T00:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1980-04-25T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-10-31T00:59:59+00:00").tz("Africa/Algiers").zone(), -60, "1980-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-10-31T01:00:00+00:00").tz("Africa/Algiers").zone(), 0, "1980-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-30T23:59:59+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "23:59:59", "1981-04-30T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1981-05-01T00:00:00+00:00").tz("Africa/Algiers").format("HH:mm:ss"), "01:00:00", "1981-05-01T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1981-04-30T23:59:59+00:00").tz("Africa/Algiers").zone(), 0, "1981-04-30T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1981-05-01T00:00:00+00:00").tz("Africa/Algiers").zone(), -60, "1981-05-01T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/asmara.js b/tests/africa/asmara.js deleted file mode 100644 index 053e7bd5..00000000 --- a/tests/africa/asmara.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Asmara"] = { - - "1936" : function (t) { - t.equal(moment("1936-05-04T21:24:39+00:00").tz("Africa/Asmara").format("HH:mm:ss"), "23:59:59", "1936-05-04T21:24:39+00:00 should be 23:59:59 ADMT"); - t.equal(moment("1936-05-04T21:24:40+00:00").tz("Africa/Asmara").format("HH:mm:ss"), "00:24:40", "1936-05-04T21:24:40+00:00 should be 00:24:40 EAT"); - - t.equal(moment("1936-05-04T21:24:39+00:00").tz("Africa/Asmara").zone(), -9320 / 60, "1936-05-04T21:24:39+00:00 should be -9320 / 60 minutes offset in ADMT"); - t.equal(moment("1936-05-04T21:24:40+00:00").tz("Africa/Asmara").zone(), -180, "1936-05-04T21:24:40+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/bamako.js b/tests/africa/bamako.js deleted file mode 100644 index 42213d75..00000000 --- a/tests/africa/bamako.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Bamako"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T00:31:59+00:00").tz("Africa/Bamako").format("HH:mm:ss"), "23:59:59", "1912-01-01T00:31:59+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-01T00:32:00+00:00").tz("Africa/Bamako").format("HH:mm:ss"), "00:32:00", "1912-01-01T00:32:00+00:00 should be 00:32:00 GMT"); - - t.equal(moment("1912-01-01T00:31:59+00:00").tz("Africa/Bamako").zone(), 32, "1912-01-01T00:31:59+00:00 should be 32 minutes offset in LMT"); - t.equal(moment("1912-01-01T00:32:00+00:00").tz("Africa/Bamako").zone(), 0, "1912-01-01T00:32:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-02-25T23:59:59+00:00").tz("Africa/Bamako").format("HH:mm:ss"), "23:59:59", "1934-02-25T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1934-02-26T00:00:00+00:00").tz("Africa/Bamako").format("HH:mm:ss"), "23:00:00", "1934-02-26T00:00:00+00:00 should be 23:00:00 WAT"); - - t.equal(moment("1934-02-25T23:59:59+00:00").tz("Africa/Bamako").zone(), 0, "1934-02-25T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1934-02-26T00:00:00+00:00").tz("Africa/Bamako").zone(), 60, "1934-02-26T00:00:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-06-20T00:59:59+00:00").tz("Africa/Bamako").format("HH:mm:ss"), "23:59:59", "1960-06-20T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1960-06-20T01:00:00+00:00").tz("Africa/Bamako").format("HH:mm:ss"), "01:00:00", "1960-06-20T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1960-06-20T00:59:59+00:00").tz("Africa/Bamako").zone(), 60, "1960-06-20T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1960-06-20T01:00:00+00:00").tz("Africa/Bamako").zone(), 0, "1960-06-20T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/bangui.js b/tests/africa/bangui.js deleted file mode 100644 index 9c72676e..00000000 --- a/tests/africa/bangui.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Bangui"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T22:45:39+00:00").tz("Africa/Bangui").format("HH:mm:ss"), "23:59:59", "1911-12-31T22:45:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T22:45:40+00:00").tz("Africa/Bangui").format("HH:mm:ss"), "23:45:40", "1911-12-31T22:45:40+00:00 should be 23:45:40 WAT"); - - t.equal(moment("1911-12-31T22:45:39+00:00").tz("Africa/Bangui").zone(), -4460 / 60, "1911-12-31T22:45:39+00:00 should be -4460 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T22:45:40+00:00").tz("Africa/Bangui").zone(), -60, "1911-12-31T22:45:40+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/banjul.js b/tests/africa/banjul.js deleted file mode 100644 index 18d1c052..00000000 --- a/tests/africa/banjul.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Banjul"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T01:06:35+00:00").tz("Africa/Banjul").format("HH:mm:ss"), "23:59:59", "1912-01-01T01:06:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-01T01:06:36+00:00").tz("Africa/Banjul").format("HH:mm:ss"), "00:00:00", "1912-01-01T01:06:36+00:00 should be 00:00:00 BMT"); - - t.equal(moment("1912-01-01T01:06:35+00:00").tz("Africa/Banjul").zone(), 3996 / 60, "1912-01-01T01:06:35+00:00 should be 3996 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-01T01:06:36+00:00").tz("Africa/Banjul").zone(), 3996 / 60, "1912-01-01T01:06:36+00:00 should be 3996 / 60 minutes offset in BMT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-01-01T01:06:35+00:00").tz("Africa/Banjul").format("HH:mm:ss"), "23:59:59", "1935-01-01T01:06:35+00:00 should be 23:59:59 BMT"); - t.equal(moment("1935-01-01T01:06:36+00:00").tz("Africa/Banjul").format("HH:mm:ss"), "00:06:36", "1935-01-01T01:06:36+00:00 should be 00:06:36 WAT"); - - t.equal(moment("1935-01-01T01:06:35+00:00").tz("Africa/Banjul").zone(), 3996 / 60, "1935-01-01T01:06:35+00:00 should be 3996 / 60 minutes offset in BMT"); - t.equal(moment("1935-01-01T01:06:36+00:00").tz("Africa/Banjul").zone(), 60, "1935-01-01T01:06:36+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-01-01T00:59:59+00:00").tz("Africa/Banjul").format("HH:mm:ss"), "23:59:59", "1964-01-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1964-01-01T01:00:00+00:00").tz("Africa/Banjul").format("HH:mm:ss"), "01:00:00", "1964-01-01T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1964-01-01T00:59:59+00:00").tz("Africa/Banjul").zone(), 60, "1964-01-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1964-01-01T01:00:00+00:00").tz("Africa/Banjul").zone(), 0, "1964-01-01T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/bissau.js b/tests/africa/bissau.js deleted file mode 100644 index 284709cd..00000000 --- a/tests/africa/bissau.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Bissau"] = { - - "1911" : function (t) { - t.equal(moment("1911-05-26T01:02:19+00:00").tz("Africa/Bissau").format("HH:mm:ss"), "23:59:59", "1911-05-26T01:02:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-05-26T01:02:20+00:00").tz("Africa/Bissau").format("HH:mm:ss"), "00:02:20", "1911-05-26T01:02:20+00:00 should be 00:02:20 WAT"); - - t.equal(moment("1911-05-26T01:02:19+00:00").tz("Africa/Bissau").zone(), 3740 / 60, "1911-05-26T01:02:19+00:00 should be 3740 / 60 minutes offset in LMT"); - t.equal(moment("1911-05-26T01:02:20+00:00").tz("Africa/Bissau").zone(), 60, "1911-05-26T01:02:20+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-01-01T00:59:59+00:00").tz("Africa/Bissau").format("HH:mm:ss"), "23:59:59", "1975-01-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1975-01-01T01:00:00+00:00").tz("Africa/Bissau").format("HH:mm:ss"), "01:00:00", "1975-01-01T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1975-01-01T00:59:59+00:00").tz("Africa/Bissau").zone(), 60, "1975-01-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1975-01-01T01:00:00+00:00").tz("Africa/Bissau").zone(), 0, "1975-01-01T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/blantyre.js b/tests/africa/blantyre.js deleted file mode 100644 index fe80b31c..00000000 --- a/tests/africa/blantyre.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Blantyre"] = { - - "1903" : function (t) { - t.equal(moment("1903-02-28T21:39:59+00:00").tz("Africa/Blantyre").format("HH:mm:ss"), "23:59:59", "1903-02-28T21:39:59+00:00 should be 23:59:59 LMT"); - t.equal(moment("1903-02-28T21:40:00+00:00").tz("Africa/Blantyre").format("HH:mm:ss"), "23:40:00", "1903-02-28T21:40:00+00:00 should be 23:40:00 CAT"); - - t.equal(moment("1903-02-28T21:39:59+00:00").tz("Africa/Blantyre").zone(), -140, "1903-02-28T21:39:59+00:00 should be -140 minutes offset in LMT"); - t.equal(moment("1903-02-28T21:40:00+00:00").tz("Africa/Blantyre").zone(), -120, "1903-02-28T21:40:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/brazzaville.js b/tests/africa/brazzaville.js deleted file mode 100644 index 0e0b1527..00000000 --- a/tests/africa/brazzaville.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Brazzaville"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T22:58:51+00:00").tz("Africa/Brazzaville").format("HH:mm:ss"), "23:59:59", "1911-12-31T22:58:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T22:58:52+00:00").tz("Africa/Brazzaville").format("HH:mm:ss"), "23:58:52", "1911-12-31T22:58:52+00:00 should be 23:58:52 WAT"); - - t.equal(moment("1911-12-31T22:58:51+00:00").tz("Africa/Brazzaville").zone(), -3668 / 60, "1911-12-31T22:58:51+00:00 should be -3668 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T22:58:52+00:00").tz("Africa/Brazzaville").zone(), -60, "1911-12-31T22:58:52+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/bujumbura.js b/tests/africa/bujumbura.js deleted file mode 100644 index ab2953d6..00000000 --- a/tests/africa/bujumbura.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Bujumbura"] = { - - -}; \ No newline at end of file diff --git a/tests/africa/cairo.js b/tests/africa/cairo.js deleted file mode 100644 index e8c4242f..00000000 --- a/tests/africa/cairo.js +++ /dev/null @@ -1,852 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Cairo"] = { - - "1940" : function (t) { - t.equal(moment("1940-07-14T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1940-07-14T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1940-07-14T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1940-07-14T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1940-09-30T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1940-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1940-09-30T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1940-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1940-07-14T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1940-07-14T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1940-07-14T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1940-07-14T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1940-09-30T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1940-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1940-09-30T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1940-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-14T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1941-04-14T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1941-04-14T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1941-04-14T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1941-09-15T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1941-09-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1941-09-15T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1941-09-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1941-04-14T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1941-04-14T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1941-04-14T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1941-04-14T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1941-09-15T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1941-09-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1941-09-15T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1941-09-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-31T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1942-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1942-03-31T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1942-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1942-10-26T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1942-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1942-10-26T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1942-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1942-03-31T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1942-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1942-03-31T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1942-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1942-10-26T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1942-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1942-10-26T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1942-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-31T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1943-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1943-03-31T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1943-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1943-10-31T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1943-10-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1943-10-31T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1943-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1943-03-31T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1943-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1943-03-31T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1943-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1943-10-31T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1943-10-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1943-10-31T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1943-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-31T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1944-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1944-03-31T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1944-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1944-10-31T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1944-10-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1944-10-31T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1944-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1944-03-31T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1944-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1944-03-31T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1944-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1944-10-31T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1944-10-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1944-10-31T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1944-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-15T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1945-04-15T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1945-04-15T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1945-04-15T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1945-10-31T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1945-10-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1945-10-31T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1945-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1945-04-15T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1945-04-15T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1945-04-15T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1945-04-15T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1945-10-31T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1945-10-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1945-10-31T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1945-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-05-09T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1957-05-09T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1957-05-09T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1957-05-09T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1957-09-30T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1957-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1957-09-30T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1957-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1957-05-09T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1957-05-09T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1957-05-09T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1957-05-09T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1957-09-30T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1957-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1957-09-30T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1957-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-30T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1958-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1958-04-30T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1958-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1958-09-30T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1958-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1958-09-30T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1958-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1958-04-30T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1958-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1958-04-30T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1958-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1958-09-30T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1958-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1958-09-30T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1958-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1959-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1959-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1959-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1959-09-29T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1959-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1959-09-30T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1959-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1959-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1959-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1959-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1959-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1959-09-29T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1959-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1959-09-30T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1959-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1960-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1960-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1960-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1960-09-29T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1960-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1960-09-30T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1960-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1960-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1960-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1960-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1960-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1960-09-29T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1960-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1960-09-30T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1960-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1961-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1961-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1961-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1961-09-29T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1961-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1961-09-30T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1961-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1961-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1961-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1961-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1961-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1961-09-29T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1961-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1961-09-30T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1961-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1962-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1962-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1962-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1962-09-29T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1962-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1962-09-30T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1962-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1962-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1962-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1962-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1962-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-09-29T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1962-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-09-30T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1962-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1963-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1963-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1963-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1963-09-29T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1963-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1963-09-30T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1963-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1963-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1963-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1963-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1963-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1963-09-29T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1963-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1963-09-30T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1963-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1964-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1964-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1964-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1964-09-29T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1964-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1964-09-30T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1964-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1964-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1964-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1964-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1964-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-29T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1964-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-30T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1964-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1965-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1965-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1965-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1965-09-29T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1965-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1965-09-30T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1965-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1965-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1965-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1965-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1965-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1965-09-29T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1965-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1965-09-30T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1965-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1966-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1966-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1966-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1966-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1966-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1966-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1966-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1966-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1966-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1966-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1966-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1966-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1966-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1966-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1966-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1967-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1967-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1967-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1967-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1967-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1967-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1967-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1967-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1967-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1967-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1967-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1967-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1967-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1967-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1967-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1968-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1968-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1968-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1968-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1968-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1968-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1968-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1968-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1968-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1968-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1968-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1968-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1968-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1968-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1968-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1969-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1969-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1969-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1969-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1969-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1969-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1969-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1969-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1969-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1969-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1969-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1969-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1969-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1969-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1969-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1970-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1970-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1970-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1970-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1970-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1970-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1970-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1970-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1970-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1970-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1970-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1970-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1970-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1970-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1970-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1971-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1971-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1971-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1971-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1971-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1971-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1971-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1971-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1971-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1971-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1971-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1971-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1971-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1971-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1971-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1972-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1972-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1972-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1972-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1972-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1972-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1972-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1972-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1972-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1972-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1972-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1972-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1972-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1972-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1972-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1973-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1973-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1973-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1973-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1973-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1973-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1973-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1973-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1973-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1973-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1973-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1973-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1973-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1974-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1974-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1974-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1974-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1974-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1974-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1974-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1974-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1974-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1974-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1974-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1974-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1974-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1975-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1975-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1975-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1975-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1975-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1975-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1975-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1975-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1975-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1975-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1975-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1975-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1975-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1976-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1976-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1976-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1976-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1976-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1976-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1976-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1976-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1976-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1976-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1976-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1976-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1976-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1977-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1977-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1977-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1977-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1977-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1977-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1977-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1977-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1977-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1977-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1977-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1977-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1977-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1978-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1978-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1978-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1978-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1978-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1978-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1978-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1978-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1978-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1978-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1978-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1978-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1978-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1979-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1979-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1979-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1979-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1979-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1979-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1979-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1979-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1979-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1979-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1979-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1979-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1979-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1980-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1980-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1980-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1980-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1980-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1980-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1980-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1980-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1980-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1980-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1980-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1980-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1980-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1981-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1981-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1981-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1981-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1981-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1981-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1981-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1981-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1981-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1981-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1981-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1981-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1981-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-07-24T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1982-07-24T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1982-07-24T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1982-07-24T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1982-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1982-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1982-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1982-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1982-07-24T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1982-07-24T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1982-07-24T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1982-07-24T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1982-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1982-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-07-11T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1983-07-11T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1983-07-11T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1983-07-11T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1983-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1983-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1983-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1983-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1983-07-11T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1983-07-11T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1983-07-11T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1983-07-11T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1983-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1983-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1984-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1984-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1984-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1984-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1984-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1984-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1984-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1984-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1984-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1984-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1984-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1984-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1984-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1985-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1985-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1985-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1985-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1985-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1985-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1985-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1985-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1985-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1985-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1985-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1985-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1985-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1986-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1986-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1986-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1986-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1986-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1986-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1986-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1986-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1986-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1986-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1986-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1986-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1987-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1987-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1987-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1987-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1987-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1987-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1987-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1987-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1987-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1987-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1987-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1987-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1988-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1988-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1988-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1988-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1988-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1988-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1988-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1988-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1988-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1988-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1988-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1988-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-05-05T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1989-05-05T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1989-05-05T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1989-05-05T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1989-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1989-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1989-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1989-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1989-05-05T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1989-05-05T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-05-05T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1989-05-05T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1989-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1989-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1990-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1990-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1990-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1990-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1990-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1990-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1990-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1990-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1990-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1990-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1990-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1990-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1991-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1991-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1991-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1991-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1991-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1991-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1991-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1991-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1991-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1991-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1991-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1991-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1992-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1992-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1992-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1992-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1992-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1992-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1992-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1992-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1992-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1992-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1992-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1992-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1993-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1993-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1993-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1993-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1993-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1993-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1993-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1993-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1993-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1993-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1993-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1993-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-30T22:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "00:59:59", "1994-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1994-04-30T23:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1994-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1994-09-30T23:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:59:59", "1994-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1994-10-01T00:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "02:00:00", "1994-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1994-04-30T22:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1994-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-04-30T23:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1994-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-30T23:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1994-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-10-01T00:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1994-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-27T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1995-04-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1995-04-27T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1995-04-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1995-09-28T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1995-09-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1995-09-28T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1995-09-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1995-04-27T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1995-04-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-04-27T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1995-04-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-28T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1995-09-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-28T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1995-09-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-25T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1996-04-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-04-25T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1996-04-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-09-26T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1996-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1996-09-26T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1996-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1996-04-25T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1996-04-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-04-25T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1996-04-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-26T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1996-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-26T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1996-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-24T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1997-04-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1997-04-24T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1997-04-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1997-09-25T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1997-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1997-09-25T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1997-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1997-04-24T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1997-04-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-04-24T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1997-04-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-25T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1997-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-25T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1997-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-23T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1998-04-23T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1998-04-23T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1998-04-23T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1998-09-24T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1998-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1998-09-24T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1998-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1998-04-23T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1998-04-23T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-04-23T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1998-04-23T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-24T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1998-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-24T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1998-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-29T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1999-04-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1999-04-29T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "1999-04-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1999-09-30T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "1999-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1999-09-30T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "1999-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1999-04-29T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "1999-04-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-04-29T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "1999-04-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-09-30T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "1999-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-09-30T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "1999-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-27T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2000-04-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2000-04-27T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2000-04-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2000-09-28T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2000-09-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2000-09-28T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2000-09-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2000-04-27T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2000-04-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-04-27T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2000-04-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-09-28T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2000-09-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-09-28T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2000-09-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-26T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2001-04-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2001-04-26T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2001-04-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2001-09-27T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2001-09-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2001-09-27T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2001-09-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2001-04-26T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2001-04-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-04-26T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2001-04-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-09-27T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2001-09-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-09-27T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2001-09-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-25T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2002-04-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2002-04-25T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2002-04-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2002-09-26T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2002-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2002-09-26T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2002-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2002-04-25T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2002-04-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-04-25T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2002-04-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-09-26T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2002-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-09-26T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2002-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-24T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2003-04-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2003-04-24T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2003-04-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2003-09-25T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2003-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2003-09-25T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2003-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2003-04-24T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2003-04-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-04-24T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2003-04-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-09-25T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2003-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-09-25T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2003-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-29T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2004-04-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2004-04-29T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2004-04-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2004-09-30T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2004-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2004-09-30T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2004-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2004-04-29T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2004-04-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-04-29T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2004-04-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-09-30T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2004-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-09-30T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2004-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-28T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2005-04-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2005-04-28T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2005-04-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2005-09-29T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2005-09-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2005-09-29T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2005-09-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2005-04-28T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2005-04-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-04-28T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2005-04-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-09-29T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2005-09-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-09-29T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2005-09-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-27T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2006-04-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2006-04-27T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2006-04-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2006-09-21T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2006-09-21T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2006-09-21T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2006-09-21T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2006-04-27T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2006-04-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-04-27T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2006-04-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-09-21T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2006-09-21T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-09-21T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2006-09-21T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-26T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2007-04-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2007-04-26T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2007-04-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2007-09-06T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2007-09-06T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2007-09-06T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2007-09-06T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2007-04-26T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2007-04-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-04-26T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2007-04-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-09-06T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2007-09-06T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-09-06T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2007-09-06T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-24T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2008-04-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2008-04-24T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2008-04-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2008-08-28T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2008-08-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2008-08-28T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2008-08-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2008-04-24T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2008-04-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-04-24T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2008-04-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-08-28T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2008-08-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-08-28T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2008-08-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-23T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2009-04-23T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2009-04-23T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2009-04-23T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2009-08-20T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2009-08-20T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2009-08-20T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2009-08-20T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2009-04-23T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2009-04-23T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-04-23T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2009-04-23T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-08-20T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2009-08-20T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-08-20T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2009-08-20T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-29T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2010-04-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2010-04-29T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2010-04-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2010-08-10T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2010-08-10T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2010-08-10T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2010-08-10T21:00:00+00:00 should be 23:00:00 EET"); - t.equal(moment("2010-09-09T21:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2010-09-09T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2010-09-09T22:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "01:00:00", "2010-09-09T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2010-09-30T20:59:59+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:59:59", "2010-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2010-09-30T21:00:00+00:00").tz("Africa/Cairo").format("HH:mm:ss"), "23:00:00", "2010-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2010-04-29T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2010-04-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-04-29T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2010-04-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-08-10T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2010-08-10T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-08-10T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2010-08-10T21:00:00+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-09-09T21:59:59+00:00").tz("Africa/Cairo").zone(), -120, "2010-09-09T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-09-09T22:00:00+00:00").tz("Africa/Cairo").zone(), -180, "2010-09-09T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-09-30T20:59:59+00:00").tz("Africa/Cairo").zone(), -180, "2010-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-09-30T21:00:00+00:00").tz("Africa/Cairo").zone(), -120, "2010-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/casablanca.js b/tests/africa/casablanca.js deleted file mode 100644 index 1a9cb5ee..00000000 --- a/tests/africa/casablanca.js +++ /dev/null @@ -1,636 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Casablanca"] = { - - "1913" : function (t) { - t.equal(moment("1913-10-26T00:30:19+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1913-10-26T00:30:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1913-10-26T00:30:20+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "00:30:20", "1913-10-26T00:30:20+00:00 should be 00:30:20 WET"); - - t.equal(moment("1913-10-26T00:30:19+00:00").tz("Africa/Casablanca").zone(), 1820 / 60, "1913-10-26T00:30:19+00:00 should be 1820 / 60 minutes offset in LMT"); - t.equal(moment("1913-10-26T00:30:20+00:00").tz("Africa/Casablanca").zone(), 0, "1913-10-26T00:30:20+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-09-11T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1939-09-11T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1939-09-12T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "1939-09-12T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1939-11-18T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1939-11-18T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1939-11-18T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "1939-11-18T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1939-09-11T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "1939-09-11T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1939-09-12T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "1939-09-12T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-18T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "1939-11-18T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-18T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "1939-11-18T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-24T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1940-02-24T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1940-02-25T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "1940-02-25T00:00:00+00:00 should be 01:00:00 WEST"); - - t.equal(moment("1940-02-24T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "1940-02-24T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1940-02-25T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "1940-02-25T00:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-11-17T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1945-11-17T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1945-11-17T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "1945-11-17T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1945-11-17T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "1945-11-17T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1945-11-17T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "1945-11-17T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-06-10T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1950-06-10T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1950-06-11T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "1950-06-11T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1950-10-28T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1950-10-28T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1950-10-28T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "1950-10-28T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1950-06-10T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "1950-06-10T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1950-06-11T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "1950-06-11T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1950-10-28T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "1950-10-28T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1950-10-28T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "1950-10-28T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-06-03T11:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "11:59:59", "1967-06-03T11:59:59+00:00 should be 11:59:59 WET"); - t.equal(moment("1967-06-03T12:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "13:00:00", "1967-06-03T12:00:00+00:00 should be 13:00:00 WEST"); - t.equal(moment("1967-09-30T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1967-09-30T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1967-09-30T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "1967-09-30T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1967-06-03T11:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "1967-06-03T11:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1967-06-03T12:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "1967-06-03T12:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1967-09-30T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "1967-09-30T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1967-09-30T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "1967-09-30T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-06-23T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1974-06-23T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1974-06-24T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "1974-06-24T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1974-08-31T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1974-08-31T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1974-08-31T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "1974-08-31T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1974-06-23T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "1974-06-23T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1974-06-24T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "1974-06-24T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1974-08-31T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "1974-08-31T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1974-08-31T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "1974-08-31T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-30T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1976-04-30T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1976-05-01T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "1976-05-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1976-07-31T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1976-07-31T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1976-07-31T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "1976-07-31T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1976-04-30T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "1976-04-30T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1976-05-01T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "1976-05-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1976-07-31T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "1976-07-31T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1976-07-31T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "1976-07-31T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-30T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1977-04-30T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1977-05-01T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "1977-05-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1977-09-27T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1977-09-27T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1977-09-27T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "1977-09-27T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1977-04-30T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "1977-04-30T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1977-05-01T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "1977-05-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-27T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "1977-09-27T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-27T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "1977-09-27T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-05-31T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1978-05-31T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1978-06-01T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "1978-06-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1978-08-03T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1978-08-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1978-08-03T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "1978-08-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1978-05-31T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "1978-05-31T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1978-06-01T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "1978-06-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-08-03T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "1978-08-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-08-03T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "1978-08-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-15T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1984-03-15T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1984-03-16T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "1984-03-16T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1984-03-15T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "1984-03-15T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1984-03-16T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "1984-03-16T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-12-31T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "1985-12-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1985-12-31T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "1985-12-31T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1985-12-31T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "1985-12-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-12-31T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "1985-12-31T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-05-31T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "2008-05-31T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("2008-06-01T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "2008-06-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("2008-08-31T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "2008-08-31T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("2008-08-31T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "2008-08-31T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("2008-05-31T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2008-05-31T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2008-06-01T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2008-06-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-08-31T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2008-08-31T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-08-31T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2008-08-31T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-05-31T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "2009-05-31T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("2009-06-01T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "2009-06-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("2009-08-20T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "2009-08-20T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("2009-08-20T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "2009-08-20T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("2009-05-31T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2009-05-31T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2009-06-01T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2009-06-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-08-20T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2009-08-20T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-08-20T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2009-08-20T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-05-01T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "2010-05-01T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("2010-05-02T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "2010-05-02T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("2010-08-07T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "2010-08-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("2010-08-07T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "2010-08-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("2010-05-01T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2010-05-01T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2010-05-02T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2010-05-02T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-08-07T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2010-08-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-08-07T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2010-08-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T23:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "2011-04-02T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("2011-04-03T00:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:00:00", "2011-04-03T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("2011-07-30T22:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:59:59", "2011-07-30T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("2011-07-30T23:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "23:00:00", "2011-07-30T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("2011-04-02T23:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2011-04-02T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2011-04-03T00:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2011-04-03T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-07-30T22:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2011-07-30T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-07-30T23:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2011-07-30T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2012-04-29T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2012-04-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2012-04-29T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2012-07-20T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2012-07-20T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2012-07-20T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2012-07-20T02:00:00+00:00 should be 02:00:00 WET"); - t.equal(moment("2012-08-20T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2012-08-20T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2012-08-20T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2012-08-20T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2012-09-30T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2012-09-30T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2012-09-30T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2012-09-30T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2012-04-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2012-04-29T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2012-04-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2012-04-29T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-07-20T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2012-07-20T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-07-20T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2012-07-20T02:00:00+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2012-08-20T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2012-08-20T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2012-08-20T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2012-08-20T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-09-30T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2012-09-30T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-09-30T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2012-09-30T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-28T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2013-04-28T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2013-04-28T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2013-04-28T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2013-07-09T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2013-07-09T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2013-07-09T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2013-07-09T02:00:00+00:00 should be 02:00:00 WET"); - t.equal(moment("2013-08-08T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2013-08-08T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2013-08-08T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2013-08-08T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2013-09-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2013-09-29T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2013-09-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2013-09-29T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2013-04-28T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2013-04-28T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2013-04-28T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2013-04-28T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-07-09T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2013-07-09T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-07-09T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2013-07-09T02:00:00+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2013-08-08T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2013-08-08T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2013-08-08T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2013-08-08T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-09-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2013-09-29T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-09-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2013-09-29T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-27T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2014-04-27T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2014-04-27T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2014-04-27T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2014-06-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2014-06-29T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2014-06-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2014-06-29T02:00:00+00:00 should be 02:00:00 WET"); - t.equal(moment("2014-07-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2014-07-29T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2014-07-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2014-07-29T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2014-09-28T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2014-09-28T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2014-09-28T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2014-09-28T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2014-04-27T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2014-04-27T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2014-04-27T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2014-04-27T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-06-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2014-06-29T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-06-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2014-06-29T02:00:00+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2014-07-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2014-07-29T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2014-07-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2014-07-29T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-09-28T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2014-09-28T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-09-28T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2014-09-28T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-26T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2015-04-26T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2015-04-26T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2015-04-26T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2015-06-18T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2015-06-18T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2015-06-18T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2015-06-18T02:00:00+00:00 should be 02:00:00 WET"); - t.equal(moment("2015-07-18T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2015-07-18T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2015-07-18T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2015-07-18T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2015-09-27T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2015-09-27T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2015-09-27T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2015-09-27T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2015-04-26T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2015-04-26T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2015-04-26T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2015-04-26T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-06-18T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2015-06-18T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-06-18T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2015-06-18T02:00:00+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2015-07-18T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2015-07-18T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2015-07-18T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2015-07-18T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-09-27T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2015-09-27T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-09-27T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2015-09-27T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-24T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2016-04-24T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2016-04-24T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2016-04-24T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2016-06-07T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2016-06-07T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2016-06-07T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2016-06-07T02:00:00+00:00 should be 02:00:00 WET"); - t.equal(moment("2016-07-07T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2016-07-07T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2016-07-07T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2016-07-07T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2016-09-25T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2016-09-25T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2016-09-25T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2016-09-25T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2016-04-24T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2016-04-24T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2016-04-24T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2016-04-24T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-06-07T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2016-06-07T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-06-07T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2016-06-07T02:00:00+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2016-07-07T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2016-07-07T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2016-07-07T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2016-07-07T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-09-25T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2016-09-25T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-09-25T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2016-09-25T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-30T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2017-04-30T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2017-04-30T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2017-04-30T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2017-05-27T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2017-05-27T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2017-05-27T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2017-05-27T02:00:00+00:00 should be 02:00:00 WET"); - t.equal(moment("2017-06-26T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2017-06-26T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2017-06-26T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2017-06-26T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2017-09-24T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2017-09-24T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2017-09-24T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2017-09-24T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2017-04-30T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2017-04-30T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2017-04-30T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2017-04-30T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-05-27T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2017-05-27T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-05-27T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2017-05-27T02:00:00+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2017-06-26T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2017-06-26T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2017-06-26T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2017-06-26T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-09-24T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2017-09-24T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-09-24T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2017-09-24T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2018-04-29T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2018-04-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2018-04-29T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2018-05-16T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2018-05-16T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2018-05-16T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2018-05-16T02:00:00+00:00 should be 02:00:00 WET"); - t.equal(moment("2018-06-15T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2018-06-15T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2018-06-15T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2018-06-15T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2018-09-30T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2018-09-30T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2018-09-30T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2018-09-30T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2018-04-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2018-04-29T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2018-04-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2018-04-29T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-05-16T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2018-05-16T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-05-16T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2018-05-16T02:00:00+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2018-06-15T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2018-06-15T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2018-06-15T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2018-06-15T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-09-30T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2018-09-30T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-09-30T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2018-09-30T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-28T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2019-04-28T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2019-04-28T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2019-04-28T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2019-05-06T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2019-05-06T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2019-05-06T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2019-05-06T02:00:00+00:00 should be 02:00:00 WET"); - t.equal(moment("2019-06-05T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2019-06-05T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2019-06-05T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2019-06-05T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2019-09-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2019-09-29T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2019-09-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2019-09-29T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2019-04-28T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2019-04-28T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2019-04-28T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2019-04-28T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-05-06T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2019-05-06T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-05-06T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2019-05-06T02:00:00+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2019-06-05T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2019-06-05T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2019-06-05T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2019-06-05T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-09-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2019-09-29T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-09-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2019-09-29T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-05-24T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2020-05-24T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2020-05-24T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2020-05-24T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2020-09-27T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2020-09-27T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2020-09-27T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2020-09-27T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2020-05-24T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2020-05-24T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2020-05-24T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2020-05-24T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-09-27T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2020-09-27T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-09-27T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2020-09-27T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-05-13T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2021-05-13T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2021-05-13T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2021-05-13T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2021-09-26T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2021-09-26T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2021-09-26T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2021-09-26T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2021-05-13T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2021-05-13T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2021-05-13T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2021-05-13T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-09-26T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2021-09-26T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-09-26T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2021-09-26T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-05-03T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2022-05-03T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2022-05-03T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2022-05-03T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2022-09-25T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2022-09-25T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2022-09-25T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2022-09-25T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2022-05-03T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2022-05-03T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2022-05-03T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2022-05-03T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-09-25T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2022-09-25T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-09-25T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2022-09-25T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-30T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2023-04-30T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2023-04-30T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2023-04-30T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2023-09-24T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2023-09-24T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2023-09-24T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2023-09-24T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2023-04-30T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2023-04-30T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2023-04-30T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2023-04-30T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-09-24T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2023-09-24T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-09-24T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2023-09-24T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-28T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2024-04-28T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2024-04-28T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2024-04-28T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2024-09-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2024-09-29T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2024-09-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2024-09-29T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2024-04-28T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2024-04-28T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2024-04-28T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2024-04-28T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-09-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2024-09-29T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-09-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2024-09-29T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-27T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2025-04-27T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2025-04-27T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2025-04-27T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2025-09-28T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2025-09-28T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2025-09-28T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2025-09-28T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2025-04-27T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2025-04-27T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2025-04-27T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2025-04-27T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-09-28T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2025-09-28T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-09-28T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2025-09-28T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-26T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2026-04-26T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2026-04-26T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2026-04-26T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2026-09-27T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2026-09-27T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2026-09-27T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2026-09-27T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2026-04-26T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2026-04-26T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2026-04-26T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2026-04-26T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-09-27T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2026-09-27T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-09-27T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2026-09-27T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-25T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2027-04-25T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2027-04-25T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2027-04-25T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2027-09-26T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2027-09-26T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2027-09-26T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2027-09-26T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2027-04-25T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2027-04-25T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2027-04-25T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2027-04-25T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-09-26T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2027-09-26T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-09-26T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2027-09-26T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-30T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2028-04-30T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2028-04-30T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2028-04-30T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2028-09-24T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2028-09-24T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2028-09-24T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2028-09-24T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2028-04-30T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2028-04-30T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2028-04-30T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2028-04-30T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-09-24T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2028-09-24T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-09-24T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2028-09-24T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2029-04-29T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2029-04-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2029-04-29T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2029-09-30T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2029-09-30T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2029-09-30T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2029-09-30T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2029-04-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2029-04-29T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2029-04-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2029-04-29T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-09-30T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2029-09-30T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-09-30T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2029-09-30T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-28T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2030-04-28T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2030-04-28T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2030-04-28T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2030-09-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2030-09-29T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2030-09-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2030-09-29T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2030-04-28T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2030-04-28T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2030-04-28T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2030-04-28T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-09-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2030-09-29T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-09-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2030-09-29T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-27T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2031-04-27T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2031-04-27T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2031-04-27T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2031-09-28T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2031-09-28T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2031-09-28T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2031-09-28T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2031-04-27T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2031-04-27T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2031-04-27T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2031-04-27T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-09-28T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2031-09-28T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-09-28T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2031-09-28T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-25T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2032-04-25T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2032-04-25T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2032-04-25T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2032-09-26T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2032-09-26T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2032-09-26T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2032-09-26T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2032-04-25T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2032-04-25T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2032-04-25T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2032-04-25T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-09-26T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2032-09-26T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-09-26T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2032-09-26T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-24T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2033-04-24T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2033-04-24T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2033-04-24T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2033-09-25T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2033-09-25T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2033-09-25T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2033-09-25T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2033-04-24T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2033-04-24T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2033-04-24T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2033-04-24T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-09-25T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2033-09-25T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-09-25T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2033-09-25T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-30T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2034-04-30T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2034-04-30T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2034-04-30T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2034-09-24T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2034-09-24T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2034-09-24T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2034-09-24T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2034-04-30T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2034-04-30T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2034-04-30T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2034-04-30T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-09-24T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2034-09-24T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-09-24T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2034-09-24T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-29T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2035-04-29T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2035-04-29T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2035-04-29T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2035-09-30T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2035-09-30T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2035-09-30T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2035-09-30T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2035-04-29T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2035-04-29T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2035-04-29T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2035-04-29T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-09-30T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2035-09-30T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-09-30T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2035-09-30T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-27T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2036-04-27T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2036-04-27T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2036-04-27T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2036-09-28T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2036-09-28T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2036-09-28T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2036-09-28T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2036-04-27T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2036-04-27T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2036-04-27T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2036-04-27T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-09-28T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2036-09-28T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-09-28T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2036-09-28T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-26T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "01:59:59", "2037-04-26T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("2037-04-26T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "03:00:00", "2037-04-26T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("2037-09-27T01:59:59+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:59:59", "2037-09-27T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("2037-09-27T02:00:00+00:00").tz("Africa/Casablanca").format("HH:mm:ss"), "02:00:00", "2037-09-27T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("2037-04-26T01:59:59+00:00").tz("Africa/Casablanca").zone(), 0, "2037-04-26T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2037-04-26T02:00:00+00:00").tz("Africa/Casablanca").zone(), -60, "2037-04-26T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-09-27T01:59:59+00:00").tz("Africa/Casablanca").zone(), -60, "2037-09-27T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-09-27T02:00:00+00:00").tz("Africa/Casablanca").zone(), 0, "2037-09-27T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/ceuta.js b/tests/africa/ceuta.js deleted file mode 100644 index 3f8a7f9f..00000000 --- a/tests/africa/ceuta.js +++ /dev/null @@ -1,882 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Ceuta"] = { - - "1918" : function (t) { - t.equal(moment("1918-05-06T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "22:59:59", "1918-05-06T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1918-05-06T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "00:00:00", "1918-05-06T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1918-10-07T21:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "22:59:59", "1918-10-07T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1918-10-07T22:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "22:00:00", "1918-10-07T22:00:00+00:00 should be 22:00:00 WET"); - - t.equal(moment("1918-05-06T22:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1918-05-06T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1918-05-06T23:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1918-05-06T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-07T21:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1918-10-07T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-07T22:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1918-10-07T22:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-16T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "22:59:59", "1924-04-16T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1924-04-16T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "00:00:00", "1924-04-16T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1924-10-04T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:00:00", "1924-10-04T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1924-04-16T22:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1924-04-16T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1924-04-16T23:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1924-04-16T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1924-10-04T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1924-10-04T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "22:59:59", "1926-04-17T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "00:00:00", "1926-04-17T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1926-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:00:00", "1926-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1926-04-17T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1926-04-17T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1926-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1926-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "22:59:59", "1927-04-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "00:00:00", "1927-04-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1927-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:00:00", "1927-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1927-04-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1927-04-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1927-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1927-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "22:59:59", "1928-04-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "00:00:00", "1928-04-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1928-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:00:00", "1928-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1928-04-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1928-04-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1928-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1928-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-06-03T11:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "11:59:59", "1967-06-03T11:59:59+00:00 should be 11:59:59 WET"); - t.equal(moment("1967-06-03T12:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "13:00:00", "1967-06-03T12:00:00+00:00 should be 13:00:00 WEST"); - t.equal(moment("1967-09-30T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1967-09-30T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1967-09-30T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:00:00", "1967-09-30T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1967-06-03T11:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1967-06-03T11:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1967-06-03T12:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1967-06-03T12:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1967-09-30T22:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1967-09-30T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1967-09-30T23:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1967-09-30T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-06-23T23:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1974-06-23T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1974-06-24T00:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:00:00", "1974-06-24T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1974-08-31T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1974-08-31T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1974-08-31T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:00:00", "1974-08-31T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1974-06-23T23:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1974-06-23T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1974-06-24T00:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1974-06-24T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1974-08-31T22:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1974-08-31T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1974-08-31T23:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1974-08-31T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-30T23:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1976-04-30T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1976-05-01T00:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:00:00", "1976-05-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1976-07-31T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1976-07-31T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1976-07-31T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:00:00", "1976-07-31T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1976-04-30T23:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1976-04-30T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1976-05-01T00:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1976-05-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1976-07-31T22:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1976-07-31T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1976-07-31T23:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1976-07-31T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-30T23:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1977-04-30T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1977-05-01T00:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:00:00", "1977-05-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1977-09-27T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1977-09-27T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1977-09-27T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:00:00", "1977-09-27T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1977-04-30T23:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1977-04-30T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1977-05-01T00:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1977-05-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-27T22:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1977-09-27T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-27T23:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1977-09-27T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-05-31T23:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1978-05-31T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1978-06-01T00:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:00:00", "1978-06-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1978-08-03T22:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1978-08-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1978-08-03T23:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:00:00", "1978-08-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1978-05-31T23:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1978-05-31T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1978-06-01T00:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1978-06-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-08-03T22:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1978-08-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-08-03T23:00:00+00:00").tz("Africa/Ceuta").zone(), 0, "1978-08-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-15T23:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "23:59:59", "1984-03-15T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1984-03-16T00:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:00:00", "1984-03-16T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1984-03-15T23:59:59+00:00").tz("Africa/Ceuta").zone(), 0, "1984-03-15T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1984-03-16T00:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1984-03-16T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Africa/Ceuta").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Africa/Ceuta").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Africa/Ceuta").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Africa/Ceuta").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Africa/Ceuta").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/conakry.js b/tests/africa/conakry.js deleted file mode 100644 index 9408c738..00000000 --- a/tests/africa/conakry.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Conakry"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T00:54:51+00:00").tz("Africa/Conakry").format("HH:mm:ss"), "23:59:59", "1912-01-01T00:54:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-01T00:54:52+00:00").tz("Africa/Conakry").format("HH:mm:ss"), "00:54:52", "1912-01-01T00:54:52+00:00 should be 00:54:52 GMT"); - - t.equal(moment("1912-01-01T00:54:51+00:00").tz("Africa/Conakry").zone(), 3292 / 60, "1912-01-01T00:54:51+00:00 should be 3292 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-01T00:54:52+00:00").tz("Africa/Conakry").zone(), 0, "1912-01-01T00:54:52+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-02-25T23:59:59+00:00").tz("Africa/Conakry").format("HH:mm:ss"), "23:59:59", "1934-02-25T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1934-02-26T00:00:00+00:00").tz("Africa/Conakry").format("HH:mm:ss"), "23:00:00", "1934-02-26T00:00:00+00:00 should be 23:00:00 WAT"); - - t.equal(moment("1934-02-25T23:59:59+00:00").tz("Africa/Conakry").zone(), 0, "1934-02-25T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1934-02-26T00:00:00+00:00").tz("Africa/Conakry").zone(), 60, "1934-02-26T00:00:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-01-01T00:59:59+00:00").tz("Africa/Conakry").format("HH:mm:ss"), "23:59:59", "1960-01-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1960-01-01T01:00:00+00:00").tz("Africa/Conakry").format("HH:mm:ss"), "01:00:00", "1960-01-01T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1960-01-01T00:59:59+00:00").tz("Africa/Conakry").zone(), 60, "1960-01-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1960-01-01T01:00:00+00:00").tz("Africa/Conakry").zone(), 0, "1960-01-01T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/dakar.js b/tests/africa/dakar.js deleted file mode 100644 index 789a4032..00000000 --- a/tests/africa/dakar.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Dakar"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T01:09:43+00:00").tz("Africa/Dakar").format("HH:mm:ss"), "23:59:59", "1912-01-01T01:09:43+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-01T01:09:44+00:00").tz("Africa/Dakar").format("HH:mm:ss"), "00:09:44", "1912-01-01T01:09:44+00:00 should be 00:09:44 WAT"); - - t.equal(moment("1912-01-01T01:09:43+00:00").tz("Africa/Dakar").zone(), 4184 / 60, "1912-01-01T01:09:43+00:00 should be 4184 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-01T01:09:44+00:00").tz("Africa/Dakar").zone(), 60, "1912-01-01T01:09:44+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-01T00:59:59+00:00").tz("Africa/Dakar").format("HH:mm:ss"), "23:59:59", "1941-06-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1941-06-01T01:00:00+00:00").tz("Africa/Dakar").format("HH:mm:ss"), "01:00:00", "1941-06-01T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1941-06-01T00:59:59+00:00").tz("Africa/Dakar").zone(), 60, "1941-06-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1941-06-01T01:00:00+00:00").tz("Africa/Dakar").zone(), 0, "1941-06-01T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/dar_es_salaam.js b/tests/africa/dar_es_salaam.js deleted file mode 100644 index 5bd57c76..00000000 --- a/tests/africa/dar_es_salaam.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Dar_es_Salaam"] = { - - "1930" : function (t) { - t.equal(moment("1930-12-31T21:22:51+00:00").tz("Africa/Dar_es_Salaam").format("HH:mm:ss"), "23:59:59", "1930-12-31T21:22:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1930-12-31T21:22:52+00:00").tz("Africa/Dar_es_Salaam").format("HH:mm:ss"), "00:22:52", "1930-12-31T21:22:52+00:00 should be 00:22:52 EAT"); - - t.equal(moment("1930-12-31T21:22:51+00:00").tz("Africa/Dar_es_Salaam").zone(), -9428 / 60, "1930-12-31T21:22:51+00:00 should be -9428 / 60 minutes offset in LMT"); - t.equal(moment("1930-12-31T21:22:52+00:00").tz("Africa/Dar_es_Salaam").zone(), -180, "1930-12-31T21:22:52+00:00 should be -180 minutes offset in EAT"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-12-31T20:59:59+00:00").tz("Africa/Dar_es_Salaam").format("HH:mm:ss"), "23:59:59", "1947-12-31T20:59:59+00:00 should be 23:59:59 EAT"); - t.equal(moment("1947-12-31T21:00:00+00:00").tz("Africa/Dar_es_Salaam").format("HH:mm:ss"), "23:45:00", "1947-12-31T21:00:00+00:00 should be 23:45:00 BEAUT"); - - t.equal(moment("1947-12-31T20:59:59+00:00").tz("Africa/Dar_es_Salaam").zone(), -180, "1947-12-31T20:59:59+00:00 should be -180 minutes offset in EAT"); - t.equal(moment("1947-12-31T21:00:00+00:00").tz("Africa/Dar_es_Salaam").zone(), -165, "1947-12-31T21:00:00+00:00 should be -165 minutes offset in BEAUT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-12-31T21:14:59+00:00").tz("Africa/Dar_es_Salaam").format("HH:mm:ss"), "23:59:59", "1960-12-31T21:14:59+00:00 should be 23:59:59 BEAUT"); - t.equal(moment("1960-12-31T21:15:00+00:00").tz("Africa/Dar_es_Salaam").format("HH:mm:ss"), "00:15:00", "1960-12-31T21:15:00+00:00 should be 00:15:00 EAT"); - - t.equal(moment("1960-12-31T21:14:59+00:00").tz("Africa/Dar_es_Salaam").zone(), -165, "1960-12-31T21:14:59+00:00 should be -165 minutes offset in BEAUT"); - t.equal(moment("1960-12-31T21:15:00+00:00").tz("Africa/Dar_es_Salaam").zone(), -180, "1960-12-31T21:15:00+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/djibouti.js b/tests/africa/djibouti.js deleted file mode 100644 index fde13456..00000000 --- a/tests/africa/djibouti.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Djibouti"] = { - - "1911" : function (t) { - t.equal(moment("1911-06-30T21:07:23+00:00").tz("Africa/Djibouti").format("HH:mm:ss"), "23:59:59", "1911-06-30T21:07:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-06-30T21:07:24+00:00").tz("Africa/Djibouti").format("HH:mm:ss"), "00:07:24", "1911-06-30T21:07:24+00:00 should be 00:07:24 EAT"); - - t.equal(moment("1911-06-30T21:07:23+00:00").tz("Africa/Djibouti").zone(), -10356 / 60, "1911-06-30T21:07:23+00:00 should be -10356 / 60 minutes offset in LMT"); - t.equal(moment("1911-06-30T21:07:24+00:00").tz("Africa/Djibouti").zone(), -180, "1911-06-30T21:07:24+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/douala.js b/tests/africa/douala.js deleted file mode 100644 index ca7b864f..00000000 --- a/tests/africa/douala.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Douala"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T23:21:11+00:00").tz("Africa/Douala").format("HH:mm:ss"), "23:59:59", "1911-12-31T23:21:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T23:21:12+00:00").tz("Africa/Douala").format("HH:mm:ss"), "00:21:12", "1911-12-31T23:21:12+00:00 should be 00:21:12 WAT"); - - t.equal(moment("1911-12-31T23:21:11+00:00").tz("Africa/Douala").zone(), -2328 / 60, "1911-12-31T23:21:11+00:00 should be -2328 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T23:21:12+00:00").tz("Africa/Douala").zone(), -60, "1911-12-31T23:21:12+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/el_aaiun.js b/tests/africa/el_aaiun.js deleted file mode 100644 index 3b3720c2..00000000 --- a/tests/africa/el_aaiun.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/El_Aaiun"] = { - - "1934" : function (t) { - t.equal(moment("1934-01-01T00:52:47+00:00").tz("Africa/El_Aaiun").format("HH:mm:ss"), "23:59:59", "1934-01-01T00:52:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1934-01-01T00:52:48+00:00").tz("Africa/El_Aaiun").format("HH:mm:ss"), "23:52:48", "1934-01-01T00:52:48+00:00 should be 23:52:48 WAT"); - - t.equal(moment("1934-01-01T00:52:47+00:00").tz("Africa/El_Aaiun").zone(), 3168 / 60, "1934-01-01T00:52:47+00:00 should be 3168 / 60 minutes offset in LMT"); - t.equal(moment("1934-01-01T00:52:48+00:00").tz("Africa/El_Aaiun").zone(), 60, "1934-01-01T00:52:48+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-14T00:59:59+00:00").tz("Africa/El_Aaiun").format("HH:mm:ss"), "23:59:59", "1976-04-14T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1976-04-14T01:00:00+00:00").tz("Africa/El_Aaiun").format("HH:mm:ss"), "01:00:00", "1976-04-14T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1976-04-14T00:59:59+00:00").tz("Africa/El_Aaiun").zone(), 60, "1976-04-14T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1976-04-14T01:00:00+00:00").tz("Africa/El_Aaiun").zone(), 0, "1976-04-14T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/freetown.js b/tests/africa/freetown.js deleted file mode 100644 index c9e710d0..00000000 --- a/tests/africa/freetown.js +++ /dev/null @@ -1,214 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Freetown"] = { - - "1913" : function (t) { - t.equal(moment("1913-06-01T00:52:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1913-06-01T00:52:59+00:00 should be 23:59:59 FMT"); - t.equal(moment("1913-06-01T00:53:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:53:00", "1913-06-01T00:53:00+00:00 should be 23:53:00 WAT"); - - t.equal(moment("1913-06-01T00:52:59+00:00").tz("Africa/Freetown").zone(), 53, "1913-06-01T00:52:59+00:00 should be 53 minutes offset in FMT"); - t.equal(moment("1913-06-01T00:53:00+00:00").tz("Africa/Freetown").zone(), 60, "1913-06-01T00:53:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-06-01T00:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1935-06-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1935-06-01T01:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "00:40:00", "1935-06-01T01:00:00+00:00 should be 00:40:00 SLST"); - t.equal(moment("1935-10-01T00:19:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1935-10-01T00:19:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1935-10-01T00:20:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:20:00", "1935-10-01T00:20:00+00:00 should be 23:20:00 WAT"); - - t.equal(moment("1935-06-01T00:59:59+00:00").tz("Africa/Freetown").zone(), 60, "1935-06-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1935-06-01T01:00:00+00:00").tz("Africa/Freetown").zone(), 20, "1935-06-01T01:00:00+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1935-10-01T00:19:59+00:00").tz("Africa/Freetown").zone(), 20, "1935-10-01T00:19:59+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1935-10-01T00:20:00+00:00").tz("Africa/Freetown").zone(), 60, "1935-10-01T00:20:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-06-01T00:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1936-06-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1936-06-01T01:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "00:40:00", "1936-06-01T01:00:00+00:00 should be 00:40:00 SLST"); - t.equal(moment("1936-10-01T00:19:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1936-10-01T00:19:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1936-10-01T00:20:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:20:00", "1936-10-01T00:20:00+00:00 should be 23:20:00 WAT"); - - t.equal(moment("1936-06-01T00:59:59+00:00").tz("Africa/Freetown").zone(), 60, "1936-06-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1936-06-01T01:00:00+00:00").tz("Africa/Freetown").zone(), 20, "1936-06-01T01:00:00+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1936-10-01T00:19:59+00:00").tz("Africa/Freetown").zone(), 20, "1936-10-01T00:19:59+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1936-10-01T00:20:00+00:00").tz("Africa/Freetown").zone(), 60, "1936-10-01T00:20:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-06-01T00:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1937-06-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1937-06-01T01:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "00:40:00", "1937-06-01T01:00:00+00:00 should be 00:40:00 SLST"); - t.equal(moment("1937-10-01T00:19:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1937-10-01T00:19:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1937-10-01T00:20:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:20:00", "1937-10-01T00:20:00+00:00 should be 23:20:00 WAT"); - - t.equal(moment("1937-06-01T00:59:59+00:00").tz("Africa/Freetown").zone(), 60, "1937-06-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1937-06-01T01:00:00+00:00").tz("Africa/Freetown").zone(), 20, "1937-06-01T01:00:00+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1937-10-01T00:19:59+00:00").tz("Africa/Freetown").zone(), 20, "1937-10-01T00:19:59+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1937-10-01T00:20:00+00:00").tz("Africa/Freetown").zone(), 60, "1937-10-01T00:20:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-06-01T00:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1938-06-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1938-06-01T01:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "00:40:00", "1938-06-01T01:00:00+00:00 should be 00:40:00 SLST"); - t.equal(moment("1938-10-01T00:19:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1938-10-01T00:19:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1938-10-01T00:20:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:20:00", "1938-10-01T00:20:00+00:00 should be 23:20:00 WAT"); - - t.equal(moment("1938-06-01T00:59:59+00:00").tz("Africa/Freetown").zone(), 60, "1938-06-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1938-06-01T01:00:00+00:00").tz("Africa/Freetown").zone(), 20, "1938-06-01T01:00:00+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1938-10-01T00:19:59+00:00").tz("Africa/Freetown").zone(), 20, "1938-10-01T00:19:59+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1938-10-01T00:20:00+00:00").tz("Africa/Freetown").zone(), 60, "1938-10-01T00:20:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-06-01T00:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1939-06-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1939-06-01T01:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "00:40:00", "1939-06-01T01:00:00+00:00 should be 00:40:00 SLST"); - t.equal(moment("1939-10-01T00:19:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1939-10-01T00:19:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1939-10-01T00:20:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:20:00", "1939-10-01T00:20:00+00:00 should be 23:20:00 WAT"); - - t.equal(moment("1939-06-01T00:59:59+00:00").tz("Africa/Freetown").zone(), 60, "1939-06-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1939-06-01T01:00:00+00:00").tz("Africa/Freetown").zone(), 20, "1939-06-01T01:00:00+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1939-10-01T00:19:59+00:00").tz("Africa/Freetown").zone(), 20, "1939-10-01T00:19:59+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1939-10-01T00:20:00+00:00").tz("Africa/Freetown").zone(), 60, "1939-10-01T00:20:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-06-01T00:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1940-06-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1940-06-01T01:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "00:40:00", "1940-06-01T01:00:00+00:00 should be 00:40:00 SLST"); - t.equal(moment("1940-10-01T00:19:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1940-10-01T00:19:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1940-10-01T00:20:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:20:00", "1940-10-01T00:20:00+00:00 should be 23:20:00 WAT"); - - t.equal(moment("1940-06-01T00:59:59+00:00").tz("Africa/Freetown").zone(), 60, "1940-06-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1940-06-01T01:00:00+00:00").tz("Africa/Freetown").zone(), 20, "1940-06-01T01:00:00+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1940-10-01T00:19:59+00:00").tz("Africa/Freetown").zone(), 20, "1940-10-01T00:19:59+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1940-10-01T00:20:00+00:00").tz("Africa/Freetown").zone(), 60, "1940-10-01T00:20:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-01T00:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1941-06-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1941-06-01T01:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "00:40:00", "1941-06-01T01:00:00+00:00 should be 00:40:00 SLST"); - t.equal(moment("1941-10-01T00:19:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1941-10-01T00:19:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1941-10-01T00:20:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:20:00", "1941-10-01T00:20:00+00:00 should be 23:20:00 WAT"); - - t.equal(moment("1941-06-01T00:59:59+00:00").tz("Africa/Freetown").zone(), 60, "1941-06-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1941-06-01T01:00:00+00:00").tz("Africa/Freetown").zone(), 20, "1941-06-01T01:00:00+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1941-10-01T00:19:59+00:00").tz("Africa/Freetown").zone(), 20, "1941-10-01T00:19:59+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1941-10-01T00:20:00+00:00").tz("Africa/Freetown").zone(), 60, "1941-10-01T00:20:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-06-01T00:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1942-06-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1942-06-01T01:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "00:40:00", "1942-06-01T01:00:00+00:00 should be 00:40:00 SLST"); - t.equal(moment("1942-10-01T00:19:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1942-10-01T00:19:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1942-10-01T00:20:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:20:00", "1942-10-01T00:20:00+00:00 should be 23:20:00 WAT"); - - t.equal(moment("1942-06-01T00:59:59+00:00").tz("Africa/Freetown").zone(), 60, "1942-06-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1942-06-01T01:00:00+00:00").tz("Africa/Freetown").zone(), 20, "1942-06-01T01:00:00+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1942-10-01T00:19:59+00:00").tz("Africa/Freetown").zone(), 20, "1942-10-01T00:19:59+00:00 should be 20 minutes offset in SLST"); - t.equal(moment("1942-10-01T00:20:00+00:00").tz("Africa/Freetown").zone(), 60, "1942-10-01T00:20:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-01-01T00:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1957-01-01T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1957-01-01T01:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "01:00:00", "1957-01-01T01:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("1957-05-31T23:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1957-05-31T23:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1957-06-01T00:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "01:00:00", "1957-06-01T00:00:00+00:00 should be 01:00:00 SLST"); - t.equal(moment("1957-08-31T22:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1957-08-31T22:59:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1957-08-31T23:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:00:00", "1957-08-31T23:00:00+00:00 should be 23:00:00 GMT"); - - t.equal(moment("1957-01-01T00:59:59+00:00").tz("Africa/Freetown").zone(), 60, "1957-01-01T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1957-01-01T01:00:00+00:00").tz("Africa/Freetown").zone(), 0, "1957-01-01T01:00:00+00:00 should be 0 minutes offset in WAT"); - t.equal(moment("1957-05-31T23:59:59+00:00").tz("Africa/Freetown").zone(), 0, "1957-05-31T23:59:59+00:00 should be 0 minutes offset in WAT"); - t.equal(moment("1957-06-01T00:00:00+00:00").tz("Africa/Freetown").zone(), -60, "1957-06-01T00:00:00+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1957-08-31T22:59:59+00:00").tz("Africa/Freetown").zone(), -60, "1957-08-31T22:59:59+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1957-08-31T23:00:00+00:00").tz("Africa/Freetown").zone(), 0, "1957-08-31T23:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-05-31T23:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1958-05-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1958-06-01T00:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "01:00:00", "1958-06-01T00:00:00+00:00 should be 01:00:00 SLST"); - t.equal(moment("1958-08-31T22:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1958-08-31T22:59:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1958-08-31T23:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:00:00", "1958-08-31T23:00:00+00:00 should be 23:00:00 GMT"); - - t.equal(moment("1958-05-31T23:59:59+00:00").tz("Africa/Freetown").zone(), 0, "1958-05-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1958-06-01T00:00:00+00:00").tz("Africa/Freetown").zone(), -60, "1958-06-01T00:00:00+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1958-08-31T22:59:59+00:00").tz("Africa/Freetown").zone(), -60, "1958-08-31T22:59:59+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1958-08-31T23:00:00+00:00").tz("Africa/Freetown").zone(), 0, "1958-08-31T23:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-05-31T23:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1959-05-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1959-06-01T00:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "01:00:00", "1959-06-01T00:00:00+00:00 should be 01:00:00 SLST"); - t.equal(moment("1959-08-31T22:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1959-08-31T22:59:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1959-08-31T23:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:00:00", "1959-08-31T23:00:00+00:00 should be 23:00:00 GMT"); - - t.equal(moment("1959-05-31T23:59:59+00:00").tz("Africa/Freetown").zone(), 0, "1959-05-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1959-06-01T00:00:00+00:00").tz("Africa/Freetown").zone(), -60, "1959-06-01T00:00:00+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1959-08-31T22:59:59+00:00").tz("Africa/Freetown").zone(), -60, "1959-08-31T22:59:59+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1959-08-31T23:00:00+00:00").tz("Africa/Freetown").zone(), 0, "1959-08-31T23:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-05-31T23:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1960-05-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1960-06-01T00:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "01:00:00", "1960-06-01T00:00:00+00:00 should be 01:00:00 SLST"); - t.equal(moment("1960-08-31T22:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1960-08-31T22:59:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1960-08-31T23:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:00:00", "1960-08-31T23:00:00+00:00 should be 23:00:00 GMT"); - - t.equal(moment("1960-05-31T23:59:59+00:00").tz("Africa/Freetown").zone(), 0, "1960-05-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1960-06-01T00:00:00+00:00").tz("Africa/Freetown").zone(), -60, "1960-06-01T00:00:00+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1960-08-31T22:59:59+00:00").tz("Africa/Freetown").zone(), -60, "1960-08-31T22:59:59+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1960-08-31T23:00:00+00:00").tz("Africa/Freetown").zone(), 0, "1960-08-31T23:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-05-31T23:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1961-05-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1961-06-01T00:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "01:00:00", "1961-06-01T00:00:00+00:00 should be 01:00:00 SLST"); - t.equal(moment("1961-08-31T22:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1961-08-31T22:59:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1961-08-31T23:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:00:00", "1961-08-31T23:00:00+00:00 should be 23:00:00 GMT"); - - t.equal(moment("1961-05-31T23:59:59+00:00").tz("Africa/Freetown").zone(), 0, "1961-05-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1961-06-01T00:00:00+00:00").tz("Africa/Freetown").zone(), -60, "1961-06-01T00:00:00+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1961-08-31T22:59:59+00:00").tz("Africa/Freetown").zone(), -60, "1961-08-31T22:59:59+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1961-08-31T23:00:00+00:00").tz("Africa/Freetown").zone(), 0, "1961-08-31T23:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-05-31T23:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1962-05-31T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1962-06-01T00:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "01:00:00", "1962-06-01T00:00:00+00:00 should be 01:00:00 SLST"); - t.equal(moment("1962-08-31T22:59:59+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:59:59", "1962-08-31T22:59:59+00:00 should be 23:59:59 SLST"); - t.equal(moment("1962-08-31T23:00:00+00:00").tz("Africa/Freetown").format("HH:mm:ss"), "23:00:00", "1962-08-31T23:00:00+00:00 should be 23:00:00 GMT"); - - t.equal(moment("1962-05-31T23:59:59+00:00").tz("Africa/Freetown").zone(), 0, "1962-05-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1962-06-01T00:00:00+00:00").tz("Africa/Freetown").zone(), -60, "1962-06-01T00:00:00+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1962-08-31T22:59:59+00:00").tz("Africa/Freetown").zone(), -60, "1962-08-31T22:59:59+00:00 should be -60 minutes offset in SLST"); - t.equal(moment("1962-08-31T23:00:00+00:00").tz("Africa/Freetown").zone(), 0, "1962-08-31T23:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/gaborone.js b/tests/africa/gaborone.js deleted file mode 100644 index d50c3e5d..00000000 --- a/tests/africa/gaborone.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Gaborone"] = { - - "1903" : function (t) { - t.equal(moment("1903-02-28T22:29:59+00:00").tz("Africa/Gaborone").format("HH:mm:ss"), "23:59:59", "1903-02-28T22:29:59+00:00 should be 23:59:59 SAST"); - t.equal(moment("1903-02-28T22:30:00+00:00").tz("Africa/Gaborone").format("HH:mm:ss"), "00:30:00", "1903-02-28T22:30:00+00:00 should be 00:30:00 CAT"); - - t.equal(moment("1903-02-28T22:29:59+00:00").tz("Africa/Gaborone").zone(), -90, "1903-02-28T22:29:59+00:00 should be -90 minutes offset in SAST"); - t.equal(moment("1903-02-28T22:30:00+00:00").tz("Africa/Gaborone").zone(), -120, "1903-02-28T22:30:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-09-18T23:59:59+00:00").tz("Africa/Gaborone").format("HH:mm:ss"), "01:59:59", "1943-09-18T23:59:59+00:00 should be 01:59:59 CAT"); - t.equal(moment("1943-09-19T00:00:00+00:00").tz("Africa/Gaborone").format("HH:mm:ss"), "03:00:00", "1943-09-19T00:00:00+00:00 should be 03:00:00 CAST"); - - t.equal(moment("1943-09-18T23:59:59+00:00").tz("Africa/Gaborone").zone(), -120, "1943-09-18T23:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1943-09-19T00:00:00+00:00").tz("Africa/Gaborone").zone(), -180, "1943-09-19T00:00:00+00:00 should be -180 minutes offset in CAST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-18T22:59:59+00:00").tz("Africa/Gaborone").format("HH:mm:ss"), "01:59:59", "1944-03-18T22:59:59+00:00 should be 01:59:59 CAST"); - t.equal(moment("1944-03-18T23:00:00+00:00").tz("Africa/Gaborone").format("HH:mm:ss"), "01:00:00", "1944-03-18T23:00:00+00:00 should be 01:00:00 CAT"); - - t.equal(moment("1944-03-18T22:59:59+00:00").tz("Africa/Gaborone").zone(), -180, "1944-03-18T22:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1944-03-18T23:00:00+00:00").tz("Africa/Gaborone").zone(), -120, "1944-03-18T23:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/harare.js b/tests/africa/harare.js deleted file mode 100644 index 4ae0723d..00000000 --- a/tests/africa/harare.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Harare"] = { - - "1903" : function (t) { - t.equal(moment("1903-02-28T21:55:47+00:00").tz("Africa/Harare").format("HH:mm:ss"), "23:59:59", "1903-02-28T21:55:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1903-02-28T21:55:48+00:00").tz("Africa/Harare").format("HH:mm:ss"), "23:55:48", "1903-02-28T21:55:48+00:00 should be 23:55:48 CAT"); - - t.equal(moment("1903-02-28T21:55:47+00:00").tz("Africa/Harare").zone(), -7452 / 60, "1903-02-28T21:55:47+00:00 should be -7452 / 60 minutes offset in LMT"); - t.equal(moment("1903-02-28T21:55:48+00:00").tz("Africa/Harare").zone(), -120, "1903-02-28T21:55:48+00:00 should be -120 minutes offset in CAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/johannesburg.js b/tests/africa/johannesburg.js deleted file mode 100644 index 511664fd..00000000 --- a/tests/africa/johannesburg.js +++ /dev/null @@ -1,48 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Johannesburg"] = { - - "1903" : function (t) { - t.equal(moment("1903-02-28T22:29:59+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "23:59:59", "1903-02-28T22:29:59+00:00 should be 23:59:59 SAST"); - t.equal(moment("1903-02-28T22:30:00+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "00:30:00", "1903-02-28T22:30:00+00:00 should be 00:30:00 SAST"); - - t.equal(moment("1903-02-28T22:29:59+00:00").tz("Africa/Johannesburg").zone(), -90, "1903-02-28T22:29:59+00:00 should be -90 minutes offset in SAST"); - t.equal(moment("1903-02-28T22:30:00+00:00").tz("Africa/Johannesburg").zone(), -120, "1903-02-28T22:30:00+00:00 should be -120 minutes offset in SAST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-09-19T23:59:59+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "01:59:59", "1942-09-19T23:59:59+00:00 should be 01:59:59 SAST"); - t.equal(moment("1942-09-20T00:00:00+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "03:00:00", "1942-09-20T00:00:00+00:00 should be 03:00:00 SAST"); - - t.equal(moment("1942-09-19T23:59:59+00:00").tz("Africa/Johannesburg").zone(), -120, "1942-09-19T23:59:59+00:00 should be -120 minutes offset in SAST"); - t.equal(moment("1942-09-20T00:00:00+00:00").tz("Africa/Johannesburg").zone(), -180, "1942-09-20T00:00:00+00:00 should be -180 minutes offset in SAST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-20T22:59:59+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "01:59:59", "1943-03-20T22:59:59+00:00 should be 01:59:59 SAST"); - t.equal(moment("1943-03-20T23:00:00+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "01:00:00", "1943-03-20T23:00:00+00:00 should be 01:00:00 SAST"); - t.equal(moment("1943-09-18T23:59:59+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "01:59:59", "1943-09-18T23:59:59+00:00 should be 01:59:59 SAST"); - t.equal(moment("1943-09-19T00:00:00+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "03:00:00", "1943-09-19T00:00:00+00:00 should be 03:00:00 SAST"); - - t.equal(moment("1943-03-20T22:59:59+00:00").tz("Africa/Johannesburg").zone(), -180, "1943-03-20T22:59:59+00:00 should be -180 minutes offset in SAST"); - t.equal(moment("1943-03-20T23:00:00+00:00").tz("Africa/Johannesburg").zone(), -120, "1943-03-20T23:00:00+00:00 should be -120 minutes offset in SAST"); - t.equal(moment("1943-09-18T23:59:59+00:00").tz("Africa/Johannesburg").zone(), -120, "1943-09-18T23:59:59+00:00 should be -120 minutes offset in SAST"); - t.equal(moment("1943-09-19T00:00:00+00:00").tz("Africa/Johannesburg").zone(), -180, "1943-09-19T00:00:00+00:00 should be -180 minutes offset in SAST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-18T22:59:59+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "01:59:59", "1944-03-18T22:59:59+00:00 should be 01:59:59 SAST"); - t.equal(moment("1944-03-18T23:00:00+00:00").tz("Africa/Johannesburg").format("HH:mm:ss"), "01:00:00", "1944-03-18T23:00:00+00:00 should be 01:00:00 SAST"); - - t.equal(moment("1944-03-18T22:59:59+00:00").tz("Africa/Johannesburg").zone(), -180, "1944-03-18T22:59:59+00:00 should be -180 minutes offset in SAST"); - t.equal(moment("1944-03-18T23:00:00+00:00").tz("Africa/Johannesburg").zone(), -120, "1944-03-18T23:00:00+00:00 should be -120 minutes offset in SAST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/juba.js b/tests/africa/juba.js deleted file mode 100644 index a72b0c09..00000000 --- a/tests/africa/juba.js +++ /dev/null @@ -1,248 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Juba"] = { - - "1930" : function (t) { - t.equal(moment("1930-12-31T21:53:35+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1930-12-31T21:53:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1930-12-31T21:53:36+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:53:36", "1930-12-31T21:53:36+00:00 should be 23:53:36 CAT"); - - t.equal(moment("1930-12-31T21:53:35+00:00").tz("Africa/Juba").zone(), -7584 / 60, "1930-12-31T21:53:35+00:00 should be -7584 / 60 minutes offset in LMT"); - t.equal(moment("1930-12-31T21:53:36+00:00").tz("Africa/Juba").zone(), -120, "1930-12-31T21:53:36+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-30T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1970-04-30T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1970-04-30T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1970-04-30T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1970-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1970-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1970-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1970-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1970-04-30T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1970-04-30T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1970-04-30T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1970-04-30T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1970-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1970-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1970-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1970-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-29T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1971-04-29T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1971-04-29T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1971-04-29T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1971-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1971-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1971-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1971-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1971-04-29T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1971-04-29T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1971-04-29T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1971-04-29T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1971-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1971-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1971-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1971-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-29T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1972-04-29T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1972-04-29T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1972-04-29T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1972-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1972-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1972-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1972-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1972-04-29T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1972-04-29T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1972-04-29T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1972-04-29T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1972-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1972-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1972-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1972-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-28T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1973-04-28T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1973-04-28T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1973-04-28T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1973-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1973-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1973-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1973-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1973-04-28T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1973-04-28T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1973-04-28T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1973-04-28T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1973-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1973-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1973-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1973-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-27T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1974-04-27T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1974-04-27T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1974-04-27T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1974-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1974-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1974-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1974-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1974-04-27T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1974-04-27T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1974-04-27T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1974-04-27T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1974-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1974-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1974-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1974-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-26T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1975-04-26T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1975-04-26T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1975-04-26T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1975-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1975-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1975-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1975-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1975-04-26T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1975-04-26T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1975-04-26T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1975-04-26T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1975-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1975-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1975-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1975-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-24T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1976-04-24T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1976-04-24T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1976-04-24T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1976-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1976-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1976-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1976-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1976-04-24T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1976-04-24T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1976-04-24T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1976-04-24T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1976-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1976-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1976-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1976-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-23T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1977-04-23T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1977-04-23T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1977-04-23T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1977-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1977-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1977-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1977-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1977-04-23T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1977-04-23T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1977-04-23T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1977-04-23T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1977-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1977-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1977-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1977-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-29T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1978-04-29T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1978-04-29T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1978-04-29T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1978-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1978-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1978-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1978-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1978-04-29T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1978-04-29T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1978-04-29T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1978-04-29T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1978-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1978-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1978-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1978-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-28T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1979-04-28T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1979-04-28T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1979-04-28T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1979-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1979-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1979-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1979-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1979-04-28T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1979-04-28T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1979-04-28T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1979-04-28T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1979-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1979-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1979-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1979-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-26T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1980-04-26T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1980-04-26T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1980-04-26T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1980-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1980-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1980-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1980-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1980-04-26T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1980-04-26T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1980-04-26T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1980-04-26T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1980-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1980-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1980-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1980-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-25T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1981-04-25T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1981-04-25T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1981-04-25T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1981-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1981-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1981-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1981-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1981-04-25T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1981-04-25T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1981-04-25T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1981-04-25T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1981-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1981-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1981-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1981-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-24T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1982-04-24T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1982-04-24T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1982-04-24T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1982-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1982-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1982-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1982-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1982-04-24T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1982-04-24T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1982-04-24T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1982-04-24T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1982-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1982-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1982-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1982-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-23T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1983-04-23T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1983-04-23T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1983-04-23T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1983-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1983-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1983-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1983-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1983-04-23T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1983-04-23T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1983-04-23T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1983-04-23T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1983-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1983-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1983-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1983-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-28T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1984-04-28T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1984-04-28T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1984-04-28T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1984-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1984-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1984-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1984-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1984-04-28T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1984-04-28T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1984-04-28T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1984-04-28T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1984-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1984-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1984-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1984-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-27T21:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1985-04-27T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1985-04-27T22:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "01:00:00", "1985-04-27T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1985-10-14T20:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:59:59", "1985-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1985-10-14T21:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "23:00:00", "1985-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1985-04-27T21:59:59+00:00").tz("Africa/Juba").zone(), -120, "1985-04-27T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1985-04-27T22:00:00+00:00").tz("Africa/Juba").zone(), -180, "1985-04-27T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1985-10-14T20:59:59+00:00").tz("Africa/Juba").zone(), -180, "1985-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1985-10-14T21:00:00+00:00").tz("Africa/Juba").zone(), -120, "1985-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-01-15T09:59:59+00:00").tz("Africa/Juba").format("HH:mm:ss"), "11:59:59", "2000-01-15T09:59:59+00:00 should be 11:59:59 CAT"); - t.equal(moment("2000-01-15T10:00:00+00:00").tz("Africa/Juba").format("HH:mm:ss"), "13:00:00", "2000-01-15T10:00:00+00:00 should be 13:00:00 EAT"); - - t.equal(moment("2000-01-15T09:59:59+00:00").tz("Africa/Juba").zone(), -120, "2000-01-15T09:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("2000-01-15T10:00:00+00:00").tz("Africa/Juba").zone(), -180, "2000-01-15T10:00:00+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/kampala.js b/tests/africa/kampala.js deleted file mode 100644 index 722338bd..00000000 --- a/tests/africa/kampala.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Kampala"] = { - - "1928" : function (t) { - t.equal(moment("1928-06-30T21:50:19+00:00").tz("Africa/Kampala").format("HH:mm:ss"), "23:59:59", "1928-06-30T21:50:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1928-06-30T21:50:20+00:00").tz("Africa/Kampala").format("HH:mm:ss"), "00:50:20", "1928-06-30T21:50:20+00:00 should be 00:50:20 EAT"); - - t.equal(moment("1928-06-30T21:50:19+00:00").tz("Africa/Kampala").zone(), -7780 / 60, "1928-06-30T21:50:19+00:00 should be -7780 / 60 minutes offset in LMT"); - t.equal(moment("1928-06-30T21:50:20+00:00").tz("Africa/Kampala").zone(), -180, "1928-06-30T21:50:20+00:00 should be -180 minutes offset in EAT"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-12-31T20:59:59+00:00").tz("Africa/Kampala").format("HH:mm:ss"), "23:59:59", "1929-12-31T20:59:59+00:00 should be 23:59:59 EAT"); - t.equal(moment("1929-12-31T21:00:00+00:00").tz("Africa/Kampala").format("HH:mm:ss"), "23:30:00", "1929-12-31T21:00:00+00:00 should be 23:30:00 BEAT"); - - t.equal(moment("1929-12-31T20:59:59+00:00").tz("Africa/Kampala").zone(), -180, "1929-12-31T20:59:59+00:00 should be -180 minutes offset in EAT"); - t.equal(moment("1929-12-31T21:00:00+00:00").tz("Africa/Kampala").zone(), -150, "1929-12-31T21:00:00+00:00 should be -150 minutes offset in BEAT"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-12-31T21:29:59+00:00").tz("Africa/Kampala").format("HH:mm:ss"), "23:59:59", "1947-12-31T21:29:59+00:00 should be 23:59:59 BEAT"); - t.equal(moment("1947-12-31T21:30:00+00:00").tz("Africa/Kampala").format("HH:mm:ss"), "00:15:00", "1947-12-31T21:30:00+00:00 should be 00:15:00 BEAUT"); - - t.equal(moment("1947-12-31T21:29:59+00:00").tz("Africa/Kampala").zone(), -150, "1947-12-31T21:29:59+00:00 should be -150 minutes offset in BEAT"); - t.equal(moment("1947-12-31T21:30:00+00:00").tz("Africa/Kampala").zone(), -165, "1947-12-31T21:30:00+00:00 should be -165 minutes offset in BEAUT"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-12-31T21:14:59+00:00").tz("Africa/Kampala").format("HH:mm:ss"), "23:59:59", "1956-12-31T21:14:59+00:00 should be 23:59:59 BEAUT"); - t.equal(moment("1956-12-31T21:15:00+00:00").tz("Africa/Kampala").format("HH:mm:ss"), "00:15:00", "1956-12-31T21:15:00+00:00 should be 00:15:00 EAT"); - - t.equal(moment("1956-12-31T21:14:59+00:00").tz("Africa/Kampala").zone(), -165, "1956-12-31T21:14:59+00:00 should be -165 minutes offset in BEAUT"); - t.equal(moment("1956-12-31T21:15:00+00:00").tz("Africa/Kampala").zone(), -180, "1956-12-31T21:15:00+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/khartoum.js b/tests/africa/khartoum.js deleted file mode 100644 index b27fa21a..00000000 --- a/tests/africa/khartoum.js +++ /dev/null @@ -1,248 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Khartoum"] = { - - "1930" : function (t) { - t.equal(moment("1930-12-31T21:49:51+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1930-12-31T21:49:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1930-12-31T21:49:52+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:49:52", "1930-12-31T21:49:52+00:00 should be 23:49:52 CAT"); - - t.equal(moment("1930-12-31T21:49:51+00:00").tz("Africa/Khartoum").zone(), -7808 / 60, "1930-12-31T21:49:51+00:00 should be -7808 / 60 minutes offset in LMT"); - t.equal(moment("1930-12-31T21:49:52+00:00").tz("Africa/Khartoum").zone(), -120, "1930-12-31T21:49:52+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-30T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1970-04-30T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1970-04-30T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1970-04-30T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1970-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1970-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1970-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1970-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1970-04-30T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1970-04-30T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1970-04-30T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1970-04-30T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1970-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1970-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1970-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1970-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-29T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1971-04-29T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1971-04-29T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1971-04-29T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1971-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1971-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1971-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1971-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1971-04-29T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1971-04-29T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1971-04-29T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1971-04-29T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1971-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1971-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1971-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1971-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-29T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1972-04-29T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1972-04-29T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1972-04-29T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1972-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1972-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1972-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1972-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1972-04-29T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1972-04-29T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1972-04-29T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1972-04-29T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1972-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1972-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1972-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1972-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-28T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1973-04-28T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1973-04-28T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1973-04-28T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1973-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1973-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1973-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1973-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1973-04-28T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1973-04-28T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1973-04-28T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1973-04-28T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1973-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1973-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1973-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1973-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-27T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1974-04-27T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1974-04-27T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1974-04-27T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1974-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1974-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1974-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1974-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1974-04-27T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1974-04-27T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1974-04-27T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1974-04-27T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1974-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1974-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1974-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1974-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-26T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1975-04-26T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1975-04-26T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1975-04-26T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1975-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1975-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1975-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1975-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1975-04-26T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1975-04-26T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1975-04-26T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1975-04-26T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1975-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1975-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1975-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1975-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-24T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1976-04-24T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1976-04-24T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1976-04-24T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1976-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1976-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1976-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1976-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1976-04-24T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1976-04-24T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1976-04-24T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1976-04-24T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1976-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1976-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1976-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1976-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-23T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1977-04-23T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1977-04-23T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1977-04-23T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1977-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1977-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1977-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1977-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1977-04-23T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1977-04-23T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1977-04-23T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1977-04-23T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1977-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1977-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1977-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1977-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-29T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1978-04-29T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1978-04-29T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1978-04-29T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1978-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1978-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1978-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1978-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1978-04-29T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1978-04-29T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1978-04-29T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1978-04-29T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1978-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1978-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1978-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1978-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-28T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1979-04-28T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1979-04-28T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1979-04-28T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1979-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1979-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1979-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1979-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1979-04-28T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1979-04-28T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1979-04-28T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1979-04-28T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1979-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1979-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1979-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1979-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-26T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1980-04-26T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1980-04-26T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1980-04-26T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1980-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1980-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1980-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1980-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1980-04-26T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1980-04-26T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1980-04-26T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1980-04-26T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1980-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1980-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1980-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1980-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-25T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1981-04-25T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1981-04-25T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1981-04-25T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1981-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1981-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1981-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1981-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1981-04-25T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1981-04-25T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1981-04-25T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1981-04-25T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1981-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1981-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1981-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1981-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-24T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1982-04-24T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1982-04-24T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1982-04-24T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1982-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1982-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1982-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1982-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1982-04-24T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1982-04-24T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1982-04-24T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1982-04-24T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1982-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1982-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1982-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1982-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-23T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1983-04-23T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1983-04-23T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1983-04-23T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1983-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1983-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1983-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1983-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1983-04-23T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1983-04-23T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1983-04-23T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1983-04-23T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1983-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1983-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1983-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1983-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-28T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1984-04-28T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1984-04-28T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1984-04-28T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1984-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1984-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1984-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1984-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1984-04-28T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1984-04-28T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1984-04-28T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1984-04-28T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1984-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1984-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1984-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1984-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-27T21:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1985-04-27T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1985-04-27T22:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "01:00:00", "1985-04-27T22:00:00+00:00 should be 01:00:00 CAST"); - t.equal(moment("1985-10-14T20:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:59:59", "1985-10-14T20:59:59+00:00 should be 23:59:59 CAST"); - t.equal(moment("1985-10-14T21:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "23:00:00", "1985-10-14T21:00:00+00:00 should be 23:00:00 CAT"); - - t.equal(moment("1985-04-27T21:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "1985-04-27T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1985-04-27T22:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "1985-04-27T22:00:00+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1985-10-14T20:59:59+00:00").tz("Africa/Khartoum").zone(), -180, "1985-10-14T20:59:59+00:00 should be -180 minutes offset in CAST"); - t.equal(moment("1985-10-14T21:00:00+00:00").tz("Africa/Khartoum").zone(), -120, "1985-10-14T21:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-01-15T09:59:59+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "11:59:59", "2000-01-15T09:59:59+00:00 should be 11:59:59 CAT"); - t.equal(moment("2000-01-15T10:00:00+00:00").tz("Africa/Khartoum").format("HH:mm:ss"), "13:00:00", "2000-01-15T10:00:00+00:00 should be 13:00:00 EAT"); - - t.equal(moment("2000-01-15T09:59:59+00:00").tz("Africa/Khartoum").zone(), -120, "2000-01-15T09:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("2000-01-15T10:00:00+00:00").tz("Africa/Khartoum").zone(), -180, "2000-01-15T10:00:00+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/kigali.js b/tests/africa/kigali.js deleted file mode 100644 index db6f76c9..00000000 --- a/tests/africa/kigali.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Kigali"] = { - - "1935" : function (t) { - t.equal(moment("1935-05-31T21:59:43+00:00").tz("Africa/Kigali").format("HH:mm:ss"), "23:59:59", "1935-05-31T21:59:43+00:00 should be 23:59:59 LMT"); - t.equal(moment("1935-05-31T21:59:44+00:00").tz("Africa/Kigali").format("HH:mm:ss"), "23:59:44", "1935-05-31T21:59:44+00:00 should be 23:59:44 CAT"); - - t.equal(moment("1935-05-31T21:59:43+00:00").tz("Africa/Kigali").zone(), -7216 / 60, "1935-05-31T21:59:43+00:00 should be -7216 / 60 minutes offset in LMT"); - t.equal(moment("1935-05-31T21:59:44+00:00").tz("Africa/Kigali").zone(), -120, "1935-05-31T21:59:44+00:00 should be -120 minutes offset in CAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/kinshasa.js b/tests/africa/kinshasa.js deleted file mode 100644 index b3e8e2e5..00000000 --- a/tests/africa/kinshasa.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Kinshasa"] = { - - -}; \ No newline at end of file diff --git a/tests/africa/lagos.js b/tests/africa/lagos.js deleted file mode 100644 index f4bf2fa6..00000000 --- a/tests/africa/lagos.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Lagos"] = { - - "1919" : function (t) { - t.equal(moment("1919-08-31T23:46:23+00:00").tz("Africa/Lagos").format("HH:mm:ss"), "23:59:59", "1919-08-31T23:46:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-08-31T23:46:24+00:00").tz("Africa/Lagos").format("HH:mm:ss"), "00:46:24", "1919-08-31T23:46:24+00:00 should be 00:46:24 WAT"); - - t.equal(moment("1919-08-31T23:46:23+00:00").tz("Africa/Lagos").zone(), -816 / 60, "1919-08-31T23:46:23+00:00 should be -816 / 60 minutes offset in LMT"); - t.equal(moment("1919-08-31T23:46:24+00:00").tz("Africa/Lagos").zone(), -60, "1919-08-31T23:46:24+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/libreville.js b/tests/africa/libreville.js deleted file mode 100644 index 5bd028a8..00000000 --- a/tests/africa/libreville.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Libreville"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T23:22:11+00:00").tz("Africa/Libreville").format("HH:mm:ss"), "23:59:59", "1911-12-31T23:22:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T23:22:12+00:00").tz("Africa/Libreville").format("HH:mm:ss"), "00:22:12", "1911-12-31T23:22:12+00:00 should be 00:22:12 WAT"); - - t.equal(moment("1911-12-31T23:22:11+00:00").tz("Africa/Libreville").zone(), -2268 / 60, "1911-12-31T23:22:11+00:00 should be -2268 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T23:22:12+00:00").tz("Africa/Libreville").zone(), -60, "1911-12-31T23:22:12+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/lome.js b/tests/africa/lome.js deleted file mode 100644 index 1085d9ee..00000000 --- a/tests/africa/lome.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Lome"] = { - - -}; \ No newline at end of file diff --git a/tests/africa/luanda.js b/tests/africa/luanda.js deleted file mode 100644 index 7ebd95f6..00000000 --- a/tests/africa/luanda.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Luanda"] = { - - "1911" : function (t) { - t.equal(moment("1911-05-25T23:07:55+00:00").tz("Africa/Luanda").format("HH:mm:ss"), "23:59:59", "1911-05-25T23:07:55+00:00 should be 23:59:59 AOT"); - t.equal(moment("1911-05-25T23:07:56+00:00").tz("Africa/Luanda").format("HH:mm:ss"), "00:07:56", "1911-05-25T23:07:56+00:00 should be 00:07:56 WAT"); - - t.equal(moment("1911-05-25T23:07:55+00:00").tz("Africa/Luanda").zone(), -3124 / 60, "1911-05-25T23:07:55+00:00 should be -3124 / 60 minutes offset in AOT"); - t.equal(moment("1911-05-25T23:07:56+00:00").tz("Africa/Luanda").zone(), -60, "1911-05-25T23:07:56+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/lubumbashi.js b/tests/africa/lubumbashi.js deleted file mode 100644 index e1da7211..00000000 --- a/tests/africa/lubumbashi.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Lubumbashi"] = { - - -}; \ No newline at end of file diff --git a/tests/africa/lusaka.js b/tests/africa/lusaka.js deleted file mode 100644 index 51e67f54..00000000 --- a/tests/africa/lusaka.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Lusaka"] = { - - "1903" : function (t) { - t.equal(moment("1903-02-28T22:06:51+00:00").tz("Africa/Lusaka").format("HH:mm:ss"), "23:59:59", "1903-02-28T22:06:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1903-02-28T22:06:52+00:00").tz("Africa/Lusaka").format("HH:mm:ss"), "00:06:52", "1903-02-28T22:06:52+00:00 should be 00:06:52 CAT"); - - t.equal(moment("1903-02-28T22:06:51+00:00").tz("Africa/Lusaka").zone(), -6788 / 60, "1903-02-28T22:06:51+00:00 should be -6788 / 60 minutes offset in LMT"); - t.equal(moment("1903-02-28T22:06:52+00:00").tz("Africa/Lusaka").zone(), -120, "1903-02-28T22:06:52+00:00 should be -120 minutes offset in CAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/malabo.js b/tests/africa/malabo.js deleted file mode 100644 index be3b59ea..00000000 --- a/tests/africa/malabo.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Malabo"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T23:24:51+00:00").tz("Africa/Malabo").format("HH:mm:ss"), "23:59:59", "1911-12-31T23:24:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T23:24:52+00:00").tz("Africa/Malabo").format("HH:mm:ss"), "23:24:52", "1911-12-31T23:24:52+00:00 should be 23:24:52 GMT"); - - t.equal(moment("1911-12-31T23:24:51+00:00").tz("Africa/Malabo").zone(), -2108 / 60, "1911-12-31T23:24:51+00:00 should be -2108 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T23:24:52+00:00").tz("Africa/Malabo").zone(), 0, "1911-12-31T23:24:52+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-14T23:59:59+00:00").tz("Africa/Malabo").format("HH:mm:ss"), "23:59:59", "1963-12-14T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1963-12-15T00:00:00+00:00").tz("Africa/Malabo").format("HH:mm:ss"), "01:00:00", "1963-12-15T00:00:00+00:00 should be 01:00:00 WAT"); - - t.equal(moment("1963-12-14T23:59:59+00:00").tz("Africa/Malabo").zone(), 0, "1963-12-14T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1963-12-15T00:00:00+00:00").tz("Africa/Malabo").zone(), -60, "1963-12-15T00:00:00+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/maputo.js b/tests/africa/maputo.js deleted file mode 100644 index a3b47c6c..00000000 --- a/tests/africa/maputo.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Maputo"] = { - - "1903" : function (t) { - t.equal(moment("1903-02-28T21:49:39+00:00").tz("Africa/Maputo").format("HH:mm:ss"), "23:59:59", "1903-02-28T21:49:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1903-02-28T21:49:40+00:00").tz("Africa/Maputo").format("HH:mm:ss"), "23:49:40", "1903-02-28T21:49:40+00:00 should be 23:49:40 CAT"); - - t.equal(moment("1903-02-28T21:49:39+00:00").tz("Africa/Maputo").zone(), -7820 / 60, "1903-02-28T21:49:39+00:00 should be -7820 / 60 minutes offset in LMT"); - t.equal(moment("1903-02-28T21:49:40+00:00").tz("Africa/Maputo").zone(), -120, "1903-02-28T21:49:40+00:00 should be -120 minutes offset in CAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/maseru.js b/tests/africa/maseru.js deleted file mode 100644 index a1d6ba1f..00000000 --- a/tests/africa/maseru.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Maseru"] = { - - "1903" : function (t) { - t.equal(moment("1903-02-28T22:09:59+00:00").tz("Africa/Maseru").format("HH:mm:ss"), "23:59:59", "1903-02-28T22:09:59+00:00 should be 23:59:59 LMT"); - t.equal(moment("1903-02-28T22:10:00+00:00").tz("Africa/Maseru").format("HH:mm:ss"), "00:10:00", "1903-02-28T22:10:00+00:00 should be 00:10:00 SAST"); - - t.equal(moment("1903-02-28T22:09:59+00:00").tz("Africa/Maseru").zone(), -110, "1903-02-28T22:09:59+00:00 should be -110 minutes offset in LMT"); - t.equal(moment("1903-02-28T22:10:00+00:00").tz("Africa/Maseru").zone(), -120, "1903-02-28T22:10:00+00:00 should be -120 minutes offset in SAST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-09-18T23:59:59+00:00").tz("Africa/Maseru").format("HH:mm:ss"), "01:59:59", "1943-09-18T23:59:59+00:00 should be 01:59:59 SAST"); - t.equal(moment("1943-09-19T00:00:00+00:00").tz("Africa/Maseru").format("HH:mm:ss"), "03:00:00", "1943-09-19T00:00:00+00:00 should be 03:00:00 SAST"); - - t.equal(moment("1943-09-18T23:59:59+00:00").tz("Africa/Maseru").zone(), -120, "1943-09-18T23:59:59+00:00 should be -120 minutes offset in SAST"); - t.equal(moment("1943-09-19T00:00:00+00:00").tz("Africa/Maseru").zone(), -180, "1943-09-19T00:00:00+00:00 should be -180 minutes offset in SAST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-18T22:59:59+00:00").tz("Africa/Maseru").format("HH:mm:ss"), "01:59:59", "1944-03-18T22:59:59+00:00 should be 01:59:59 SAST"); - t.equal(moment("1944-03-18T23:00:00+00:00").tz("Africa/Maseru").format("HH:mm:ss"), "01:00:00", "1944-03-18T23:00:00+00:00 should be 01:00:00 SAST"); - - t.equal(moment("1944-03-18T22:59:59+00:00").tz("Africa/Maseru").zone(), -180, "1944-03-18T22:59:59+00:00 should be -180 minutes offset in SAST"); - t.equal(moment("1944-03-18T23:00:00+00:00").tz("Africa/Maseru").zone(), -120, "1944-03-18T23:00:00+00:00 should be -120 minutes offset in SAST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/mbabane.js b/tests/africa/mbabane.js deleted file mode 100644 index fa26328a..00000000 --- a/tests/africa/mbabane.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Mbabane"] = { - - "1903" : function (t) { - t.equal(moment("1903-02-28T21:55:35+00:00").tz("Africa/Mbabane").format("HH:mm:ss"), "23:59:59", "1903-02-28T21:55:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1903-02-28T21:55:36+00:00").tz("Africa/Mbabane").format("HH:mm:ss"), "23:55:36", "1903-02-28T21:55:36+00:00 should be 23:55:36 SAST"); - - t.equal(moment("1903-02-28T21:55:35+00:00").tz("Africa/Mbabane").zone(), -7464 / 60, "1903-02-28T21:55:35+00:00 should be -7464 / 60 minutes offset in LMT"); - t.equal(moment("1903-02-28T21:55:36+00:00").tz("Africa/Mbabane").zone(), -120, "1903-02-28T21:55:36+00:00 should be -120 minutes offset in SAST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/mogadishu.js b/tests/africa/mogadishu.js deleted file mode 100644 index 927b1d23..00000000 --- a/tests/africa/mogadishu.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Mogadishu"] = { - - "1930" : function (t) { - t.equal(moment("1930-12-31T20:59:59+00:00").tz("Africa/Mogadishu").format("HH:mm:ss"), "23:59:59", "1930-12-31T20:59:59+00:00 should be 23:59:59 EAT"); - t.equal(moment("1930-12-31T21:00:00+00:00").tz("Africa/Mogadishu").format("HH:mm:ss"), "23:30:00", "1930-12-31T21:00:00+00:00 should be 23:30:00 BEAT"); - - t.equal(moment("1930-12-31T20:59:59+00:00").tz("Africa/Mogadishu").zone(), -180, "1930-12-31T20:59:59+00:00 should be -180 minutes offset in EAT"); - t.equal(moment("1930-12-31T21:00:00+00:00").tz("Africa/Mogadishu").zone(), -150, "1930-12-31T21:00:00+00:00 should be -150 minutes offset in BEAT"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-12-31T21:29:59+00:00").tz("Africa/Mogadishu").format("HH:mm:ss"), "23:59:59", "1956-12-31T21:29:59+00:00 should be 23:59:59 BEAT"); - t.equal(moment("1956-12-31T21:30:00+00:00").tz("Africa/Mogadishu").format("HH:mm:ss"), "00:30:00", "1956-12-31T21:30:00+00:00 should be 00:30:00 EAT"); - - t.equal(moment("1956-12-31T21:29:59+00:00").tz("Africa/Mogadishu").zone(), -150, "1956-12-31T21:29:59+00:00 should be -150 minutes offset in BEAT"); - t.equal(moment("1956-12-31T21:30:00+00:00").tz("Africa/Mogadishu").zone(), -180, "1956-12-31T21:30:00+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/monrovia.js b/tests/africa/monrovia.js deleted file mode 100644 index 4f93d2dd..00000000 --- a/tests/africa/monrovia.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Monrovia"] = { - - "1919" : function (t) { - t.equal(moment("1919-03-01T00:43:07+00:00").tz("Africa/Monrovia").format("HH:mm:ss"), "23:59:59", "1919-03-01T00:43:07+00:00 should be 23:59:59 MMT"); - t.equal(moment("1919-03-01T00:43:08+00:00").tz("Africa/Monrovia").format("HH:mm:ss"), "23:58:38", "1919-03-01T00:43:08+00:00 should be 23:58:38 LRT"); - - t.equal(moment("1919-03-01T00:43:07+00:00").tz("Africa/Monrovia").zone(), 2588 / 60, "1919-03-01T00:43:07+00:00 should be 2588 / 60 minutes offset in MMT"); - t.equal(moment("1919-03-01T00:43:08+00:00").tz("Africa/Monrovia").zone(), 2670 / 60, "1919-03-01T00:43:08+00:00 should be 2670 / 60 minutes offset in LRT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-05-01T00:44:29+00:00").tz("Africa/Monrovia").format("HH:mm:ss"), "23:59:59", "1972-05-01T00:44:29+00:00 should be 23:59:59 LRT"); - t.equal(moment("1972-05-01T00:44:30+00:00").tz("Africa/Monrovia").format("HH:mm:ss"), "00:44:30", "1972-05-01T00:44:30+00:00 should be 00:44:30 GMT"); - - t.equal(moment("1972-05-01T00:44:29+00:00").tz("Africa/Monrovia").zone(), 2670 / 60, "1972-05-01T00:44:29+00:00 should be 2670 / 60 minutes offset in LRT"); - t.equal(moment("1972-05-01T00:44:30+00:00").tz("Africa/Monrovia").zone(), 0, "1972-05-01T00:44:30+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/nairobi.js b/tests/africa/nairobi.js deleted file mode 100644 index f2edbaf3..00000000 --- a/tests/africa/nairobi.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Nairobi"] = { - - "1928" : function (t) { - t.equal(moment("1928-06-30T21:32:43+00:00").tz("Africa/Nairobi").format("HH:mm:ss"), "23:59:59", "1928-06-30T21:32:43+00:00 should be 23:59:59 LMT"); - t.equal(moment("1928-06-30T21:32:44+00:00").tz("Africa/Nairobi").format("HH:mm:ss"), "00:32:44", "1928-06-30T21:32:44+00:00 should be 00:32:44 EAT"); - - t.equal(moment("1928-06-30T21:32:43+00:00").tz("Africa/Nairobi").zone(), -8836 / 60, "1928-06-30T21:32:43+00:00 should be -8836 / 60 minutes offset in LMT"); - t.equal(moment("1928-06-30T21:32:44+00:00").tz("Africa/Nairobi").zone(), -180, "1928-06-30T21:32:44+00:00 should be -180 minutes offset in EAT"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-12-31T20:59:59+00:00").tz("Africa/Nairobi").format("HH:mm:ss"), "23:59:59", "1929-12-31T20:59:59+00:00 should be 23:59:59 EAT"); - t.equal(moment("1929-12-31T21:00:00+00:00").tz("Africa/Nairobi").format("HH:mm:ss"), "23:30:00", "1929-12-31T21:00:00+00:00 should be 23:30:00 BEAT"); - - t.equal(moment("1929-12-31T20:59:59+00:00").tz("Africa/Nairobi").zone(), -180, "1929-12-31T20:59:59+00:00 should be -180 minutes offset in EAT"); - t.equal(moment("1929-12-31T21:00:00+00:00").tz("Africa/Nairobi").zone(), -150, "1929-12-31T21:00:00+00:00 should be -150 minutes offset in BEAT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-12-31T21:29:59+00:00").tz("Africa/Nairobi").format("HH:mm:ss"), "23:59:59", "1939-12-31T21:29:59+00:00 should be 23:59:59 BEAT"); - t.equal(moment("1939-12-31T21:30:00+00:00").tz("Africa/Nairobi").format("HH:mm:ss"), "00:15:00", "1939-12-31T21:30:00+00:00 should be 00:15:00 BEAUT"); - - t.equal(moment("1939-12-31T21:29:59+00:00").tz("Africa/Nairobi").zone(), -150, "1939-12-31T21:29:59+00:00 should be -150 minutes offset in BEAT"); - t.equal(moment("1939-12-31T21:30:00+00:00").tz("Africa/Nairobi").zone(), -165, "1939-12-31T21:30:00+00:00 should be -165 minutes offset in BEAUT"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-12-31T21:14:59+00:00").tz("Africa/Nairobi").format("HH:mm:ss"), "23:59:59", "1959-12-31T21:14:59+00:00 should be 23:59:59 BEAUT"); - t.equal(moment("1959-12-31T21:15:00+00:00").tz("Africa/Nairobi").format("HH:mm:ss"), "00:15:00", "1959-12-31T21:15:00+00:00 should be 00:15:00 EAT"); - - t.equal(moment("1959-12-31T21:14:59+00:00").tz("Africa/Nairobi").zone(), -165, "1959-12-31T21:14:59+00:00 should be -165 minutes offset in BEAUT"); - t.equal(moment("1959-12-31T21:15:00+00:00").tz("Africa/Nairobi").zone(), -180, "1959-12-31T21:15:00+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/ndjamena.js b/tests/africa/ndjamena.js deleted file mode 100644 index 0d1e4e9c..00000000 --- a/tests/africa/ndjamena.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Ndjamena"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T22:59:47+00:00").tz("Africa/Ndjamena").format("HH:mm:ss"), "23:59:59", "1911-12-31T22:59:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T22:59:48+00:00").tz("Africa/Ndjamena").format("HH:mm:ss"), "23:59:48", "1911-12-31T22:59:48+00:00 should be 23:59:48 WAT"); - - t.equal(moment("1911-12-31T22:59:47+00:00").tz("Africa/Ndjamena").zone(), -3612 / 60, "1911-12-31T22:59:47+00:00 should be -3612 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T22:59:48+00:00").tz("Africa/Ndjamena").zone(), -60, "1911-12-31T22:59:48+00:00 should be -60 minutes offset in WAT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-10-13T22:59:59+00:00").tz("Africa/Ndjamena").format("HH:mm:ss"), "23:59:59", "1979-10-13T22:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1979-10-13T23:00:00+00:00").tz("Africa/Ndjamena").format("HH:mm:ss"), "01:00:00", "1979-10-13T23:00:00+00:00 should be 01:00:00 WAST"); - - t.equal(moment("1979-10-13T22:59:59+00:00").tz("Africa/Ndjamena").zone(), -60, "1979-10-13T22:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1979-10-13T23:00:00+00:00").tz("Africa/Ndjamena").zone(), -120, "1979-10-13T23:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-07T21:59:59+00:00").tz("Africa/Ndjamena").format("HH:mm:ss"), "23:59:59", "1980-03-07T21:59:59+00:00 should be 23:59:59 WAST"); - t.equal(moment("1980-03-07T22:00:00+00:00").tz("Africa/Ndjamena").format("HH:mm:ss"), "23:00:00", "1980-03-07T22:00:00+00:00 should be 23:00:00 WAT"); - - t.equal(moment("1980-03-07T21:59:59+00:00").tz("Africa/Ndjamena").zone(), -120, "1980-03-07T21:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("1980-03-07T22:00:00+00:00").tz("Africa/Ndjamena").zone(), -60, "1980-03-07T22:00:00+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/niamey.js b/tests/africa/niamey.js deleted file mode 100644 index 846d0e68..00000000 --- a/tests/africa/niamey.js +++ /dev/null @@ -1,40 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Niamey"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T23:51:31+00:00").tz("Africa/Niamey").format("HH:mm:ss"), "23:59:59", "1911-12-31T23:51:31+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T23:51:32+00:00").tz("Africa/Niamey").format("HH:mm:ss"), "22:51:32", "1911-12-31T23:51:32+00:00 should be 22:51:32 WAT"); - - t.equal(moment("1911-12-31T23:51:31+00:00").tz("Africa/Niamey").zone(), -508 / 60, "1911-12-31T23:51:31+00:00 should be -508 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T23:51:32+00:00").tz("Africa/Niamey").zone(), 60, "1911-12-31T23:51:32+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-02-26T00:59:59+00:00").tz("Africa/Niamey").format("HH:mm:ss"), "23:59:59", "1934-02-26T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1934-02-26T01:00:00+00:00").tz("Africa/Niamey").format("HH:mm:ss"), "01:00:00", "1934-02-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1934-02-26T00:59:59+00:00").tz("Africa/Niamey").zone(), 60, "1934-02-26T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1934-02-26T01:00:00+00:00").tz("Africa/Niamey").zone(), 0, "1934-02-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-12-31T23:59:59+00:00").tz("Africa/Niamey").format("HH:mm:ss"), "23:59:59", "1959-12-31T23:59:59+00:00 should be 23:59:59 GMT"); - - t.equal(moment("1959-12-31T23:59:59+00:00").tz("Africa/Niamey").zone(), 0, "1959-12-31T23:59:59+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-01-01T00:00:00+00:00").tz("Africa/Niamey").format("HH:mm:ss"), "01:00:00", "1960-01-01T00:00:00+00:00 should be 01:00:00 WAT"); - - t.equal(moment("1960-01-01T00:00:00+00:00").tz("Africa/Niamey").zone(), -60, "1960-01-01T00:00:00+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/nouakchott.js b/tests/africa/nouakchott.js deleted file mode 100644 index a96083b2..00000000 --- a/tests/africa/nouakchott.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Nouakchott"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T01:03:47+00:00").tz("Africa/Nouakchott").format("HH:mm:ss"), "23:59:59", "1912-01-01T01:03:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-01T01:03:48+00:00").tz("Africa/Nouakchott").format("HH:mm:ss"), "01:03:48", "1912-01-01T01:03:48+00:00 should be 01:03:48 GMT"); - - t.equal(moment("1912-01-01T01:03:47+00:00").tz("Africa/Nouakchott").zone(), 3828 / 60, "1912-01-01T01:03:47+00:00 should be 3828 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-01T01:03:48+00:00").tz("Africa/Nouakchott").zone(), 0, "1912-01-01T01:03:48+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-02-25T23:59:59+00:00").tz("Africa/Nouakchott").format("HH:mm:ss"), "23:59:59", "1934-02-25T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1934-02-26T00:00:00+00:00").tz("Africa/Nouakchott").format("HH:mm:ss"), "23:00:00", "1934-02-26T00:00:00+00:00 should be 23:00:00 WAT"); - - t.equal(moment("1934-02-25T23:59:59+00:00").tz("Africa/Nouakchott").zone(), 0, "1934-02-25T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1934-02-26T00:00:00+00:00").tz("Africa/Nouakchott").zone(), 60, "1934-02-26T00:00:00+00:00 should be 60 minutes offset in WAT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-11-28T00:59:59+00:00").tz("Africa/Nouakchott").format("HH:mm:ss"), "23:59:59", "1960-11-28T00:59:59+00:00 should be 23:59:59 WAT"); - t.equal(moment("1960-11-28T01:00:00+00:00").tz("Africa/Nouakchott").format("HH:mm:ss"), "01:00:00", "1960-11-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1960-11-28T00:59:59+00:00").tz("Africa/Nouakchott").zone(), 60, "1960-11-28T00:59:59+00:00 should be 60 minutes offset in WAT"); - t.equal(moment("1960-11-28T01:00:00+00:00").tz("Africa/Nouakchott").zone(), 0, "1960-11-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/ouagadougou.js b/tests/africa/ouagadougou.js deleted file mode 100644 index 98c47f9c..00000000 --- a/tests/africa/ouagadougou.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Ouagadougou"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T00:06:03+00:00").tz("Africa/Ouagadougou").format("HH:mm:ss"), "23:59:59", "1912-01-01T00:06:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-01T00:06:04+00:00").tz("Africa/Ouagadougou").format("HH:mm:ss"), "00:06:04", "1912-01-01T00:06:04+00:00 should be 00:06:04 GMT"); - - t.equal(moment("1912-01-01T00:06:03+00:00").tz("Africa/Ouagadougou").zone(), 364 / 60, "1912-01-01T00:06:03+00:00 should be 364 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-01T00:06:04+00:00").tz("Africa/Ouagadougou").zone(), 0, "1912-01-01T00:06:04+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/porto-novo.js b/tests/africa/porto-novo.js deleted file mode 100644 index 2df61551..00000000 --- a/tests/africa/porto-novo.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Porto-Novo"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T23:49:31+00:00").tz("Africa/Porto-Novo").format("HH:mm:ss"), "23:59:59", "1911-12-31T23:49:31+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T23:49:32+00:00").tz("Africa/Porto-Novo").format("HH:mm:ss"), "23:49:32", "1911-12-31T23:49:32+00:00 should be 23:49:32 GMT"); - - t.equal(moment("1911-12-31T23:49:31+00:00").tz("Africa/Porto-Novo").zone(), -628 / 60, "1911-12-31T23:49:31+00:00 should be -628 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T23:49:32+00:00").tz("Africa/Porto-Novo").zone(), 0, "1911-12-31T23:49:32+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-02-25T23:59:59+00:00").tz("Africa/Porto-Novo").format("HH:mm:ss"), "23:59:59", "1934-02-25T23:59:59+00:00 should be 23:59:59 GMT"); - t.equal(moment("1934-02-26T00:00:00+00:00").tz("Africa/Porto-Novo").format("HH:mm:ss"), "01:00:00", "1934-02-26T00:00:00+00:00 should be 01:00:00 WAT"); - - t.equal(moment("1934-02-25T23:59:59+00:00").tz("Africa/Porto-Novo").zone(), 0, "1934-02-25T23:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1934-02-26T00:00:00+00:00").tz("Africa/Porto-Novo").zone(), -60, "1934-02-26T00:00:00+00:00 should be -60 minutes offset in WAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/sao_tome.js b/tests/africa/sao_tome.js deleted file mode 100644 index 6486295a..00000000 --- a/tests/africa/sao_tome.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Sao_Tome"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T00:36:31+00:00").tz("Africa/Sao_Tome").format("HH:mm:ss"), "23:59:59", "1912-01-01T00:36:31+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-01T00:36:32+00:00").tz("Africa/Sao_Tome").format("HH:mm:ss"), "00:36:32", "1912-01-01T00:36:32+00:00 should be 00:36:32 GMT"); - - t.equal(moment("1912-01-01T00:36:31+00:00").tz("Africa/Sao_Tome").zone(), 2192 / 60, "1912-01-01T00:36:31+00:00 should be 2192 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-01T00:36:32+00:00").tz("Africa/Sao_Tome").zone(), 0, "1912-01-01T00:36:32+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/tripoli.js b/tests/africa/tripoli.js deleted file mode 100644 index dd64cb9d..00000000 --- a/tests/africa/tripoli.js +++ /dev/null @@ -1,582 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Tripoli"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T23:07:15+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1919-12-31T23:07:15+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-31T23:07:16+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:07:16", "1919-12-31T23:07:16+00:00 should be 00:07:16 CET"); - - t.equal(moment("1919-12-31T23:07:15+00:00").tz("Africa/Tripoli").zone(), -3164 / 60, "1919-12-31T23:07:15+00:00 should be -3164 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-31T23:07:16+00:00").tz("Africa/Tripoli").zone(), -60, "1919-12-31T23:07:16+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-10-14T00:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "1951-10-14T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1951-10-14T01:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "03:00:00", "1951-10-14T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1951-12-31T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1951-12-31T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1951-12-31T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1951-12-31T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1951-10-14T00:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1951-10-14T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1951-10-14T01:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1951-10-14T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1951-12-31T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1951-12-31T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1951-12-31T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1951-12-31T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-10-09T00:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "1953-10-09T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1953-10-09T01:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "03:00:00", "1953-10-09T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1953-12-31T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1953-12-31T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1953-12-31T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1953-12-31T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1953-10-09T00:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1953-10-09T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1953-10-09T01:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1953-10-09T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1953-12-31T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1953-12-31T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1953-12-31T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1953-12-31T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-09-29T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1955-09-29T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1955-09-29T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1955-09-29T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1955-12-31T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1955-12-31T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1955-12-31T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1955-12-31T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1955-09-29T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1955-09-29T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1955-09-29T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1955-09-29T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1955-12-31T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1955-12-31T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1955-12-31T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1955-12-31T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-12-31T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1958-12-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1958-12-31T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1958-12-31T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1958-12-31T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1958-12-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1958-12-31T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1958-12-31T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-12-31T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1981-12-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1981-12-31T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1981-12-31T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1981-12-31T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1981-12-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1981-12-31T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1981-12-31T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1982-03-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1982-03-31T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1982-03-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1982-09-30T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1982-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1982-09-30T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1982-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1982-03-31T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1982-03-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-31T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1982-03-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-30T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1982-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-30T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1982-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1983-03-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1983-03-31T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1983-03-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1983-09-30T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1983-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1983-09-30T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1983-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1983-03-31T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1983-03-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-31T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1983-03-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-30T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1983-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-30T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1983-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1984-03-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1984-03-31T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1984-03-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1984-09-30T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1984-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1984-09-30T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1984-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1984-03-31T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1984-03-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-31T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1984-03-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1984-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1984-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-05T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1985-04-05T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1985-04-05T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1985-04-05T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1985-09-30T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1985-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1985-09-30T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1985-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1985-04-05T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1985-04-05T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-04-05T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1985-04-05T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-30T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1985-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-30T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1985-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-03T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1986-04-03T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1986-04-03T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1986-04-03T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1986-10-02T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1986-10-02T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1986-10-02T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1986-10-02T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1986-04-03T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1986-04-03T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-04-03T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1986-04-03T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-10-02T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1986-10-02T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-10-02T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1986-10-02T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-31T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1987-03-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1987-03-31T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1987-03-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1987-09-30T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1987-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1987-09-30T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1987-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1987-03-31T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1987-03-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-31T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1987-03-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-30T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1987-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-30T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1987-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-31T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1988-03-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1988-03-31T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1988-03-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1988-09-30T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1988-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1988-09-30T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1988-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1988-03-31T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1988-03-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-31T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1988-03-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-30T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1988-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-30T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1988-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-31T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1989-03-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1989-03-31T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1989-03-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1989-09-30T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1989-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1989-09-30T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1989-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1989-03-31T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1989-03-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-31T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1989-03-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-30T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1989-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-30T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1989-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-05-03T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1990-05-03T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1990-05-03T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1990-05-03T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1990-05-03T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1990-05-03T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-05-03T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1990-05-03T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-09-29T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1996-09-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-09-29T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:00:00", "1996-09-29T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1996-09-29T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1996-09-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-09-29T22:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "1996-09-29T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-03T22:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1997-04-03T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1997-04-03T23:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "1997-04-03T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1997-10-03T21:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "23:59:59", "1997-10-03T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1997-10-03T22:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:00:00", "1997-10-03T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1997-04-03T22:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "1997-04-03T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-04-03T23:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1997-04-03T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-03T21:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "1997-10-03T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-03T22:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "1997-10-03T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-11-09T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2012-11-09T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2012-11-10T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2012-11-10T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2012-11-09T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2012-11-09T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-11-10T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2012-11-10T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-28T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2013-03-28T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2013-03-29T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2013-03-29T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2013-10-24T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2013-10-24T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2013-10-25T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2013-10-25T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2013-03-28T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2013-03-28T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-29T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2013-03-29T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-24T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2013-10-24T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-25T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2013-10-25T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-27T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2014-03-27T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2014-03-28T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2014-03-28T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2014-10-30T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2014-10-30T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2014-10-31T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2014-10-31T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2014-03-27T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2014-03-27T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-28T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2014-03-28T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-30T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2014-10-30T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-31T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2014-10-31T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-26T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2015-03-26T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2015-03-27T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2015-03-27T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2015-10-29T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2015-10-29T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2015-10-30T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2015-10-30T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2015-03-26T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2015-03-26T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-27T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2015-03-27T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-29T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2015-10-29T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-30T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2015-10-30T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-24T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2016-03-24T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2016-03-25T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2016-03-25T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2016-10-27T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2016-10-27T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2016-10-28T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2016-10-28T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2016-03-24T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2016-03-24T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-25T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2016-03-25T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-27T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2016-10-27T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-28T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2016-10-28T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-30T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2017-03-30T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2017-03-31T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2017-03-31T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2017-10-26T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2017-10-26T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2017-10-27T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2017-10-27T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2017-03-30T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2017-03-30T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-31T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2017-03-31T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-26T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2017-10-26T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-27T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2017-10-27T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-29T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2018-03-29T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2018-03-30T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2018-03-30T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2018-10-25T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2018-10-25T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2018-10-26T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2018-10-26T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2018-03-29T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2018-03-29T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-30T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2018-03-30T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-25T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2018-10-25T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-26T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2018-10-26T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-28T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2019-03-28T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2019-03-29T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2019-03-29T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2019-10-24T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2019-10-24T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2019-10-25T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2019-10-25T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2019-03-28T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2019-03-28T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-29T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2019-03-29T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-24T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2019-10-24T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-25T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2019-10-25T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-26T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2020-03-26T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2020-03-27T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2020-03-27T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2020-10-29T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2020-10-29T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2020-10-30T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2020-10-30T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2020-03-26T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2020-03-26T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-27T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2020-03-27T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-29T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2020-10-29T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-30T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2020-10-30T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-25T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2021-03-25T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2021-03-26T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2021-03-26T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2021-10-28T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2021-10-28T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2021-10-29T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2021-10-29T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2021-03-25T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2021-03-25T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-26T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2021-03-26T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-28T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2021-10-28T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-29T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2021-10-29T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-24T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2022-03-24T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2022-03-25T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2022-03-25T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2022-10-27T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2022-10-27T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2022-10-28T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2022-10-28T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2022-03-24T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2022-03-24T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-25T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2022-03-25T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-27T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2022-10-27T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-28T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2022-10-28T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-30T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2023-03-30T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2023-03-31T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2023-03-31T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2023-10-26T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2023-10-26T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2023-10-27T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2023-10-27T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2023-03-30T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2023-03-30T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-31T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2023-03-31T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-26T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2023-10-26T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-27T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2023-10-27T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-28T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2024-03-28T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2024-03-29T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2024-03-29T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2024-10-24T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2024-10-24T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2024-10-25T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2024-10-25T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2024-03-28T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2024-03-28T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-29T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2024-03-29T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-24T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2024-10-24T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-25T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2024-10-25T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-27T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2025-03-27T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2025-03-28T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2025-03-28T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2025-10-30T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2025-10-30T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2025-10-31T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2025-10-31T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2025-03-27T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2025-03-27T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-28T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2025-03-28T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-30T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2025-10-30T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-31T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2025-10-31T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-26T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2026-03-26T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2026-03-27T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2026-03-27T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2026-10-29T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2026-10-29T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2026-10-30T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2026-10-30T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2026-03-26T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2026-03-26T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-27T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2026-03-27T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-29T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2026-10-29T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-30T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2026-10-30T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-25T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2027-03-25T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2027-03-26T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2027-03-26T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2027-10-28T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2027-10-28T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2027-10-29T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2027-10-29T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2027-03-25T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2027-03-25T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-26T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2027-03-26T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-28T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2027-10-28T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-29T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2027-10-29T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-30T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2028-03-30T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2028-03-31T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2028-03-31T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2028-10-26T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2028-10-26T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2028-10-27T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2028-10-27T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2028-03-30T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2028-03-30T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-31T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2028-03-31T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-26T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2028-10-26T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-27T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2028-10-27T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-29T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2029-03-29T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2029-03-30T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2029-03-30T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2029-10-25T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2029-10-25T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2029-10-26T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2029-10-26T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2029-03-29T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2029-03-29T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-30T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2029-03-30T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-25T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2029-10-25T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-26T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2029-10-26T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-28T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2030-03-28T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2030-03-29T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2030-03-29T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2030-10-24T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2030-10-24T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2030-10-25T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2030-10-25T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2030-03-28T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2030-03-28T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-29T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2030-03-29T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-24T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2030-10-24T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-25T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2030-10-25T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-27T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2031-03-27T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2031-03-28T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2031-03-28T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2031-10-30T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2031-10-30T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2031-10-31T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2031-10-31T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2031-03-27T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2031-03-27T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-28T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2031-03-28T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-30T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2031-10-30T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-31T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2031-10-31T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-25T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2032-03-25T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2032-03-26T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2032-03-26T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2032-10-28T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2032-10-28T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2032-10-29T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2032-10-29T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2032-03-25T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2032-03-25T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-26T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2032-03-26T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-28T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2032-10-28T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-29T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2032-10-29T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-24T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2033-03-24T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2033-03-25T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2033-03-25T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2033-10-27T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2033-10-27T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2033-10-28T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2033-10-28T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2033-03-24T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2033-03-24T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-25T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2033-03-25T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-27T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2033-10-27T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-28T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2033-10-28T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-30T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2034-03-30T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2034-03-31T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2034-03-31T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2034-10-26T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2034-10-26T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2034-10-27T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2034-10-27T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2034-03-30T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2034-03-30T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-31T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2034-03-31T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-26T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2034-10-26T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-27T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2034-10-27T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-29T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2035-03-29T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2035-03-30T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2035-03-30T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2035-10-25T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2035-10-25T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2035-10-26T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2035-10-26T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2035-03-29T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2035-03-29T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-30T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2035-03-30T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-25T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2035-10-25T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-26T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2035-10-26T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-27T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2036-03-27T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2036-03-28T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2036-03-28T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2036-10-30T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2036-10-30T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2036-10-31T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2036-10-31T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2036-03-27T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2036-03-27T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-28T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2036-03-28T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-30T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2036-10-30T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-31T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2036-10-31T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-26T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "00:59:59", "2037-03-26T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("2037-03-27T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "02:00:00", "2037-03-27T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("2037-10-29T23:59:59+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:59:59", "2037-10-29T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2037-10-30T00:00:00+00:00").tz("Africa/Tripoli").format("HH:mm:ss"), "01:00:00", "2037-10-30T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2037-03-26T23:59:59+00:00").tz("Africa/Tripoli").zone(), -60, "2037-03-26T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-27T00:00:00+00:00").tz("Africa/Tripoli").zone(), -120, "2037-03-27T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-29T23:59:59+00:00").tz("Africa/Tripoli").zone(), -120, "2037-10-29T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-30T00:00:00+00:00").tz("Africa/Tripoli").zone(), -60, "2037-10-30T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/tunis.js b/tests/africa/tunis.js deleted file mode 100644 index 6c0f5008..00000000 --- a/tests/africa/tunis.js +++ /dev/null @@ -1,238 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Tunis"] = { - - "1911" : function (t) { - t.equal(moment("1911-03-10T23:50:38+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1911-03-10T23:50:38+00:00 should be 23:59:59 PMT"); - t.equal(moment("1911-03-10T23:50:39+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:50:39", "1911-03-10T23:50:39+00:00 should be 00:50:39 CET"); - - t.equal(moment("1911-03-10T23:50:38+00:00").tz("Africa/Tunis").zone(), -561 / 60, "1911-03-10T23:50:38+00:00 should be -561 / 60 minutes offset in PMT"); - t.equal(moment("1911-03-10T23:50:39+00:00").tz("Africa/Tunis").zone(), -60, "1911-03-10T23:50:39+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-15T21:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "22:59:59", "1939-04-15T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1939-04-15T22:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:00:00", "1939-04-15T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1939-11-18T21:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1939-11-18T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1939-11-18T22:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:00:00", "1939-11-18T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1939-04-15T21:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1939-04-15T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1939-04-15T22:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1939-04-15T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1939-11-18T21:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1939-11-18T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1939-11-18T22:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1939-11-18T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T21:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "22:59:59", "1940-02-25T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1940-02-25T22:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:00:00", "1940-02-25T22:00:00+00:00 should be 00:00:00 CEST"); - - t.equal(moment("1940-02-25T21:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1940-02-25T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-02-25T22:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1940-02-25T22:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-10-05T21:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1941-10-05T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1941-10-05T22:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:00:00", "1941-10-05T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1941-10-05T21:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1941-10-05T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1941-10-05T22:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1941-10-05T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-08T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1942-03-08T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1942-03-08T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "1942-03-08T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-03-08T22:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1942-03-08T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1942-03-08T23:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1942-03-08T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-04-16T23:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "1943-04-16T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1943-04-17T00:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "1943-04-17T00:00:00+00:00 should be 01:00:00 CET"); - t.equal(moment("1943-04-25T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "1943-04-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-04-25T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "03:00:00", "1943-04-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-03T23:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "1943-10-03T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1943-10-04T00:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "1943-10-04T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-04-16T23:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1943-04-16T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-04-17T00:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1943-04-17T00:00:00+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-04-25T00:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1943-04-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-04-25T01:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1943-04-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-03T23:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1943-10-03T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1943-10-04T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-07T21:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1944-10-07T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1944-10-07T22:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:00:00", "1944-10-07T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-07T21:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1944-10-07T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-07T22:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1944-10-07T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-09-15T21:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1945-09-15T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1945-09-15T22:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:00:00", "1945-09-15T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-15T21:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1945-09-15T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-15T22:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1945-09-15T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-29T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1977-04-29T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1977-04-29T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "1977-04-29T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1977-09-23T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:59:59", "1977-09-23T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1977-09-23T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:00:00", "1977-09-23T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1977-04-29T22:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1977-04-29T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-29T23:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1977-04-29T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-23T22:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1977-09-23T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-23T23:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1977-09-23T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1978-04-30T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1978-04-30T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "1978-04-30T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1978-09-30T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:59:59", "1978-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1978-09-30T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:00:00", "1978-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1978-04-30T22:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1978-04-30T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-30T23:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1978-04-30T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-30T22:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1978-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-30T23:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1978-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-05-31T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1988-05-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1988-05-31T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "1988-05-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:59:59", "1988-09-24T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:00:00", "1988-09-24T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1988-05-31T22:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1988-05-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-05-31T23:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1988-05-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1988-09-24T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1988-09-24T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1989-03-25T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "1989-03-25T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:59:59", "1989-09-23T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:00:00", "1989-09-23T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1989-03-25T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1989-03-25T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1989-09-23T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1989-09-23T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-30T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "1990-04-30T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1990-04-30T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "1990-04-30T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:59:59", "1990-09-29T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "00:00:00", "1990-09-29T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1990-04-30T22:59:59+00:00").tz("Africa/Tunis").zone(), -60, "1990-04-30T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-04-30T23:00:00+00:00").tz("Africa/Tunis").zone(), -120, "1990-04-30T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Africa/Tunis").zone(), -120, "1990-09-29T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Africa/Tunis").zone(), -60, "1990-09-29T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-30T22:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "23:59:59", "2005-04-30T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("2005-04-30T23:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "2005-04-30T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("2005-09-29T23:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "2005-09-29T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("2005-09-30T00:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:00:00", "2005-09-30T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("2005-04-30T22:59:59+00:00").tz("Africa/Tunis").zone(), -60, "2005-04-30T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-04-30T23:00:00+00:00").tz("Africa/Tunis").zone(), -120, "2005-04-30T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-09-29T23:59:59+00:00").tz("Africa/Tunis").zone(), -120, "2005-09-29T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-09-30T00:00:00+00:00").tz("Africa/Tunis").zone(), -60, "2005-09-30T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Africa/Tunis").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Africa/Tunis").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Africa/Tunis").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Africa/Tunis").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Africa/Tunis").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Africa/Tunis").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Africa/Tunis").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Africa/Tunis").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Africa/Tunis").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Africa/Tunis").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Africa/Tunis").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Africa/Tunis").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Africa/Tunis").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/africa/windhoek.js b/tests/africa/windhoek.js deleted file mode 100644 index 7e95b1dd..00000000 --- a/tests/africa/windhoek.js +++ /dev/null @@ -1,660 +0,0 @@ -var moment = require("../../index"); - -exports["Africa/Windhoek"] = { - - "1903" : function (t) { - t.equal(moment("1903-02-28T22:29:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "23:59:59", "1903-02-28T22:29:59+00:00 should be 23:59:59 SWAT"); - t.equal(moment("1903-02-28T22:30:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "00:30:00", "1903-02-28T22:30:00+00:00 should be 00:30:00 SAST"); - - t.equal(moment("1903-02-28T22:29:59+00:00").tz("Africa/Windhoek").zone(), -90, "1903-02-28T22:29:59+00:00 should be -90 minutes offset in SWAT"); - t.equal(moment("1903-02-28T22:30:00+00:00").tz("Africa/Windhoek").zone(), -120, "1903-02-28T22:30:00+00:00 should be -120 minutes offset in SAST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-09-19T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1942-09-19T23:59:59+00:00 should be 01:59:59 SAST"); - t.equal(moment("1942-09-20T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "1942-09-20T00:00:00+00:00 should be 03:00:00 SAST"); - - t.equal(moment("1942-09-19T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "1942-09-19T23:59:59+00:00 should be -120 minutes offset in SAST"); - t.equal(moment("1942-09-20T00:00:00+00:00").tz("Africa/Windhoek").zone(), -180, "1942-09-20T00:00:00+00:00 should be -180 minutes offset in SAST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-20T22:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1943-03-20T22:59:59+00:00 should be 01:59:59 SAST"); - t.equal(moment("1943-03-20T23:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "1943-03-20T23:00:00+00:00 should be 01:00:00 SAST"); - - t.equal(moment("1943-03-20T22:59:59+00:00").tz("Africa/Windhoek").zone(), -180, "1943-03-20T22:59:59+00:00 should be -180 minutes offset in SAST"); - t.equal(moment("1943-03-20T23:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "1943-03-20T23:00:00+00:00 should be -120 minutes offset in SAST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-20T21:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "23:59:59", "1990-03-20T21:59:59+00:00 should be 23:59:59 SAST"); - t.equal(moment("1990-03-20T22:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "00:00:00", "1990-03-20T22:00:00+00:00 should be 00:00:00 CAT"); - - t.equal(moment("1990-03-20T21:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "1990-03-20T21:59:59+00:00 should be -120 minutes offset in SAST"); - t.equal(moment("1990-03-20T22:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "1990-03-20T22:00:00+00:00 should be -120 minutes offset in CAT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-02T21:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "23:59:59", "1994-04-02T21:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1994-04-02T22:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "23:00:00", "1994-04-02T22:00:00+00:00 should be 23:00:00 WAT"); - t.equal(moment("1994-09-04T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1994-09-04T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("1994-09-04T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "1994-09-04T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("1994-04-02T21:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "1994-04-02T21:59:59+00:00 should be -120 minutes offset in CAT"); - t.equal(moment("1994-04-02T22:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "1994-04-02T22:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1994-09-04T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "1994-09-04T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1994-09-04T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "1994-09-04T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-01T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1995-04-01T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("1995-04-02T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "1995-04-02T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("1995-09-03T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1995-09-03T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("1995-09-03T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "1995-09-03T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("1995-04-01T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "1995-04-01T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("1995-04-02T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "1995-04-02T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1995-09-03T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "1995-09-03T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1995-09-03T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "1995-09-03T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-06T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1996-04-06T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("1996-04-07T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "1996-04-07T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("1996-09-01T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1996-09-01T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("1996-09-01T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "1996-09-01T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("1996-04-06T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "1996-04-06T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("1996-04-07T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "1996-04-07T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1996-09-01T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "1996-09-01T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1996-09-01T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "1996-09-01T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-05T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1997-04-05T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("1997-04-06T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "1997-04-06T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("1997-09-07T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1997-09-07T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("1997-09-07T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "1997-09-07T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("1997-04-05T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "1997-04-05T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("1997-04-06T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "1997-04-06T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1997-09-07T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "1997-09-07T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1997-09-07T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "1997-09-07T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-04T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1998-04-04T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("1998-04-05T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "1998-04-05T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("1998-09-06T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1998-09-06T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("1998-09-06T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "1998-09-06T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("1998-04-04T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "1998-04-04T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("1998-04-05T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "1998-04-05T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1998-09-06T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "1998-09-06T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1998-09-06T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "1998-09-06T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-03T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1999-04-03T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("1999-04-04T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "1999-04-04T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("1999-09-05T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "1999-09-05T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("1999-09-05T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "1999-09-05T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("1999-04-03T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "1999-04-03T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("1999-04-04T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "1999-04-04T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1999-09-05T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "1999-09-05T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("1999-09-05T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "1999-09-05T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-01T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2000-04-01T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2000-04-02T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2000-04-02T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2000-09-03T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2000-09-03T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2000-09-03T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2000-09-03T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2000-04-01T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2000-04-01T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2000-04-02T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2000-04-02T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2000-09-03T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2000-09-03T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2000-09-03T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2000-09-03T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-31T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2001-03-31T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2001-04-01T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2001-04-01T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2001-09-02T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2001-09-02T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2001-09-02T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2001-09-02T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2001-03-31T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2001-03-31T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2001-04-01T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2001-04-01T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2001-09-02T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2001-09-02T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2001-09-02T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2001-09-02T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-06T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2002-04-06T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2002-04-07T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2002-04-07T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2002-09-01T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2002-09-01T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2002-09-01T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2002-09-01T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2002-04-06T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2002-04-06T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2002-04-07T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2002-04-07T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2002-09-01T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2002-09-01T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2002-09-01T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2002-09-01T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-05T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2003-04-05T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2003-04-06T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2003-04-06T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2003-09-07T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2003-09-07T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2003-09-07T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2003-09-07T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2003-04-05T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2003-04-05T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2003-04-06T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2003-04-06T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2003-09-07T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2003-09-07T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2003-09-07T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2003-09-07T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-03T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2004-04-03T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2004-04-04T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2004-04-04T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2004-09-05T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2004-09-05T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2004-09-05T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2004-09-05T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2004-04-03T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2004-04-03T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2004-04-04T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2004-04-04T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2004-09-05T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2004-09-05T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2004-09-05T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2004-09-05T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-02T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2005-04-02T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2005-04-03T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2005-04-03T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2005-09-04T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2005-09-04T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2005-09-04T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2005-09-04T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2005-04-02T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2005-04-02T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2005-04-03T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2005-04-03T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2005-09-04T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2005-09-04T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2005-09-04T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2005-09-04T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-01T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2006-04-01T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2006-04-02T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2006-04-02T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2006-09-03T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2006-09-03T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2006-09-03T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2006-09-03T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2006-04-01T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2006-04-01T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2006-04-02T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2006-04-02T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2006-09-03T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2006-09-03T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2006-09-03T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2006-09-03T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-31T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2007-03-31T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2007-04-01T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2007-04-01T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2007-09-02T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2007-09-02T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2007-09-02T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2007-09-02T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2007-03-31T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2007-03-31T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2007-04-01T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2007-04-01T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2007-09-02T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2007-09-02T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2007-09-02T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2007-09-02T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2008-04-05T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2008-04-06T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2008-04-06T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2008-09-07T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2008-09-07T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2008-09-07T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2008-09-07T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2008-04-05T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2008-04-05T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2008-04-06T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2008-04-06T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2008-09-07T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2008-09-07T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2008-09-07T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2008-09-07T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2009-04-04T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2009-04-05T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2009-04-05T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2009-09-06T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2009-09-06T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2009-09-06T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2009-09-06T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2009-04-04T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2009-04-04T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2009-04-05T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2009-04-05T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2009-09-06T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2009-09-06T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2009-09-06T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2009-09-06T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2010-04-03T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2010-04-04T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2010-04-04T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2010-09-05T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2010-09-05T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2010-09-05T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2010-09-05T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2010-04-03T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2010-04-03T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2010-04-04T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2010-04-04T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2010-09-05T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2010-09-05T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2010-09-05T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2010-09-05T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2011-04-02T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2011-04-03T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2011-04-03T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2011-09-04T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2011-09-04T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2011-09-04T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2011-09-04T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2011-04-02T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2011-04-02T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2011-04-03T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2011-04-03T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2011-09-04T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2011-09-04T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2011-09-04T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2011-09-04T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2012-03-31T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2012-04-01T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2012-04-01T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2012-09-02T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2012-09-02T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2012-09-02T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2012-09-02T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2012-03-31T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2012-03-31T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2012-04-01T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2012-04-01T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2012-09-02T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2012-09-02T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2012-09-02T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2012-09-02T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2013-04-06T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2013-04-07T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2013-04-07T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2013-09-01T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2013-09-01T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2013-09-01T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2013-09-01T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2013-04-06T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2013-04-06T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2013-04-07T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2013-04-07T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2013-09-01T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2013-09-01T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2013-09-01T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2013-09-01T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2014-04-05T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2014-04-06T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2014-04-06T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2014-09-07T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2014-09-07T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2014-09-07T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2014-09-07T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2014-04-05T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2014-04-05T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2014-04-06T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2014-04-06T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2014-09-07T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2014-09-07T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2014-09-07T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2014-09-07T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2015-04-04T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2015-04-05T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2015-04-05T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2015-09-06T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2015-09-06T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2015-09-06T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2015-09-06T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2015-04-04T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2015-04-04T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2015-04-05T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2015-04-05T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2015-09-06T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2015-09-06T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2015-09-06T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2015-09-06T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2016-04-02T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2016-04-03T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2016-04-03T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2016-09-04T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2016-09-04T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2016-09-04T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2016-09-04T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2016-04-02T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2016-04-02T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2016-04-03T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2016-04-03T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2016-09-04T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2016-09-04T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2016-09-04T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2016-09-04T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2017-04-01T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2017-04-02T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2017-04-02T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2017-09-03T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2017-09-03T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2017-09-03T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2017-09-03T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2017-04-01T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2017-04-01T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2017-04-02T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2017-04-02T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2017-09-03T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2017-09-03T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2017-09-03T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2017-09-03T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2018-03-31T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2018-04-01T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2018-04-01T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2018-09-02T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2018-09-02T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2018-09-02T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2018-09-02T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2018-03-31T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2018-03-31T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2018-04-01T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2018-04-01T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2018-09-02T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2018-09-02T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2018-09-02T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2018-09-02T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2019-04-06T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2019-04-07T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2019-04-07T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2019-09-01T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2019-09-01T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2019-09-01T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2019-09-01T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2019-04-06T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2019-04-06T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2019-04-07T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2019-04-07T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2019-09-01T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2019-09-01T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2019-09-01T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2019-09-01T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2020-04-04T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2020-04-05T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2020-04-05T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2020-09-06T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2020-09-06T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2020-09-06T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2020-09-06T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2020-04-04T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2020-04-04T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2020-04-05T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2020-04-05T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2020-09-06T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2020-09-06T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2020-09-06T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2020-09-06T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2021-04-03T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2021-04-04T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2021-04-04T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2021-09-05T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2021-09-05T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2021-09-05T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2021-09-05T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2021-04-03T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2021-04-03T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2021-04-04T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2021-04-04T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2021-09-05T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2021-09-05T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2021-09-05T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2021-09-05T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2022-04-02T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2022-04-03T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2022-04-03T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2022-09-04T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2022-09-04T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2022-09-04T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2022-09-04T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2022-04-02T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2022-04-02T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2022-04-03T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2022-04-03T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2022-09-04T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2022-09-04T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2022-09-04T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2022-09-04T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2023-04-01T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2023-04-02T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2023-04-02T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2023-09-03T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2023-09-03T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2023-09-03T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2023-09-03T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2023-04-01T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2023-04-01T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2023-04-02T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2023-04-02T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2023-09-03T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2023-09-03T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2023-09-03T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2023-09-03T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2024-04-06T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2024-04-07T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2024-04-07T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2024-09-01T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2024-09-01T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2024-09-01T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2024-09-01T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2024-04-06T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2024-04-06T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2024-04-07T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2024-04-07T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2024-09-01T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2024-09-01T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2024-09-01T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2024-09-01T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2025-04-05T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2025-04-06T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2025-04-06T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2025-09-07T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2025-09-07T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2025-09-07T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2025-09-07T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2025-04-05T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2025-04-05T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2025-04-06T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2025-04-06T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2025-09-07T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2025-09-07T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2025-09-07T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2025-09-07T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2026-04-04T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2026-04-05T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2026-04-05T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2026-09-06T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2026-09-06T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2026-09-06T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2026-09-06T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2026-04-04T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2026-04-04T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2026-04-05T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2026-04-05T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2026-09-06T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2026-09-06T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2026-09-06T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2026-09-06T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2027-04-03T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2027-04-04T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2027-04-04T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2027-09-05T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2027-09-05T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2027-09-05T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2027-09-05T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2027-04-03T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2027-04-03T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2027-04-04T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2027-04-04T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2027-09-05T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2027-09-05T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2027-09-05T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2027-09-05T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2028-04-01T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2028-04-02T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2028-04-02T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2028-09-03T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2028-09-03T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2028-09-03T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2028-09-03T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2028-04-01T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2028-04-01T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2028-04-02T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2028-04-02T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2028-09-03T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2028-09-03T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2028-09-03T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2028-09-03T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2029-03-31T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2029-04-01T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2029-04-01T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2029-09-02T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2029-09-02T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2029-09-02T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2029-09-02T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2029-03-31T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2029-03-31T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2029-04-01T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2029-04-01T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2029-09-02T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2029-09-02T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2029-09-02T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2029-09-02T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2030-04-06T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2030-04-07T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2030-04-07T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2030-09-01T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2030-09-01T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2030-09-01T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2030-09-01T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2030-04-06T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2030-04-06T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2030-04-07T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2030-04-07T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2030-09-01T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2030-09-01T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2030-09-01T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2030-09-01T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2031-04-05T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2031-04-06T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2031-04-06T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2031-09-07T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2031-09-07T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2031-09-07T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2031-09-07T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2031-04-05T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2031-04-05T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2031-04-06T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2031-04-06T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2031-09-07T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2031-09-07T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2031-09-07T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2031-09-07T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2032-04-03T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2032-04-04T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2032-04-04T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2032-09-05T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2032-09-05T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2032-09-05T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2032-09-05T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2032-04-03T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2032-04-03T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2032-04-04T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2032-04-04T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2032-09-05T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2032-09-05T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2032-09-05T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2032-09-05T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2033-04-02T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2033-04-03T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2033-04-03T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2033-09-04T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2033-09-04T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2033-09-04T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2033-09-04T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2033-04-02T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2033-04-02T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2033-04-03T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2033-04-03T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2033-09-04T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2033-09-04T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2033-09-04T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2033-09-04T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2034-04-01T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2034-04-02T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2034-04-02T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2034-09-03T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2034-09-03T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2034-09-03T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2034-09-03T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2034-04-01T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2034-04-01T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2034-04-02T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2034-04-02T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2034-09-03T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2034-09-03T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2034-09-03T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2034-09-03T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2035-03-31T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2035-04-01T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2035-04-01T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2035-09-02T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2035-09-02T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2035-09-02T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2035-09-02T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2035-03-31T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2035-03-31T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2035-04-01T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2035-04-01T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2035-09-02T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2035-09-02T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2035-09-02T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2035-09-02T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2036-04-05T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2036-04-06T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2036-04-06T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2036-09-07T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2036-09-07T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2036-09-07T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2036-09-07T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2036-04-05T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2036-04-05T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2036-04-06T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2036-04-06T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2036-09-07T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2036-09-07T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2036-09-07T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2036-09-07T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T23:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2037-04-04T23:59:59+00:00 should be 01:59:59 WAST"); - t.equal(moment("2037-04-05T00:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:00:00", "2037-04-05T00:00:00+00:00 should be 01:00:00 WAT"); - t.equal(moment("2037-09-06T00:59:59+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "01:59:59", "2037-09-06T00:59:59+00:00 should be 01:59:59 WAT"); - t.equal(moment("2037-09-06T01:00:00+00:00").tz("Africa/Windhoek").format("HH:mm:ss"), "03:00:00", "2037-09-06T01:00:00+00:00 should be 03:00:00 WAST"); - - t.equal(moment("2037-04-04T23:59:59+00:00").tz("Africa/Windhoek").zone(), -120, "2037-04-04T23:59:59+00:00 should be -120 minutes offset in WAST"); - t.equal(moment("2037-04-05T00:00:00+00:00").tz("Africa/Windhoek").zone(), -60, "2037-04-05T00:00:00+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2037-09-06T00:59:59+00:00").tz("Africa/Windhoek").zone(), -60, "2037-09-06T00:59:59+00:00 should be -60 minutes offset in WAT"); - t.equal(moment("2037-09-06T01:00:00+00:00").tz("Africa/Windhoek").zone(), -120, "2037-09-06T01:00:00+00:00 should be -120 minutes offset in WAST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/adak.js b/tests/america/adak.js deleted file mode 100644 index 6aa4977f..00000000 --- a/tests/america/adak.js +++ /dev/null @@ -1,1008 +0,0 @@ -var moment = require("../../index"); - -exports["America/Adak"] = { - - "1942" : function (t) { - t.equal(moment("1942-02-09T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1942-02-09T12:59:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1942-02-09T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1942-02-09T13:00:00+00:00 should be 03:00:00 NWT"); - - t.equal(moment("1942-02-09T12:59:59+00:00").tz("America/Adak").zone(), 660, "1942-02-09T12:59:59+00:00 should be 660 minutes offset in NST"); - t.equal(moment("1942-02-09T13:00:00+00:00").tz("America/Adak").zone(), 600, "1942-02-09T13:00:00+00:00 should be 600 minutes offset in NWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "12:59:59", "1945-08-14T22:59:59+00:00 should be 12:59:59 NWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "13:00:00", "1945-08-14T23:00:00+00:00 should be 13:00:00 NPT"); - t.equal(moment("1945-09-30T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1945-09-30T11:59:59+00:00 should be 01:59:59 NPT"); - t.equal(moment("1945-09-30T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1945-09-30T12:00:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Adak").zone(), 600, "1945-08-14T22:59:59+00:00 should be 600 minutes offset in NWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Adak").zone(), 600, "1945-08-14T23:00:00+00:00 should be 600 minutes offset in NPT"); - t.equal(moment("1945-09-30T11:59:59+00:00").tz("America/Adak").zone(), 600, "1945-09-30T11:59:59+00:00 should be 600 minutes offset in NPT"); - t.equal(moment("1945-09-30T12:00:00+00:00").tz("America/Adak").zone(), 660, "1945-09-30T12:00:00+00:00 should be 660 minutes offset in NST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-01T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "23:59:59", "1967-04-01T10:59:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1967-04-01T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "00:00:00", "1967-04-01T11:00:00+00:00 should be 00:00:00 BST"); - - t.equal(moment("1967-04-01T10:59:59+00:00").tz("America/Adak").zone(), 660, "1967-04-01T10:59:59+00:00 should be 660 minutes offset in NST"); - t.equal(moment("1967-04-01T11:00:00+00:00").tz("America/Adak").zone(), 660, "1967-04-01T11:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1969-04-27T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1969-04-27T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1969-04-27T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1969-10-26T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1969-10-26T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1969-10-26T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1969-10-26T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1969-04-27T12:59:59+00:00").tz("America/Adak").zone(), 660, "1969-04-27T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1969-04-27T13:00:00+00:00").tz("America/Adak").zone(), 600, "1969-04-27T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1969-10-26T11:59:59+00:00").tz("America/Adak").zone(), 600, "1969-10-26T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1969-10-26T12:00:00+00:00").tz("America/Adak").zone(), 660, "1969-10-26T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1970-04-26T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1970-04-26T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1970-04-26T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1970-10-25T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1970-10-25T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1970-10-25T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1970-10-25T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1970-04-26T12:59:59+00:00").tz("America/Adak").zone(), 660, "1970-04-26T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1970-04-26T13:00:00+00:00").tz("America/Adak").zone(), 600, "1970-04-26T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1970-10-25T11:59:59+00:00").tz("America/Adak").zone(), 600, "1970-10-25T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1970-10-25T12:00:00+00:00").tz("America/Adak").zone(), 660, "1970-10-25T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1971-04-25T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1971-04-25T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1971-04-25T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1971-10-31T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1971-10-31T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1971-10-31T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1971-10-31T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1971-04-25T12:59:59+00:00").tz("America/Adak").zone(), 660, "1971-04-25T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1971-04-25T13:00:00+00:00").tz("America/Adak").zone(), 600, "1971-04-25T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1971-10-31T11:59:59+00:00").tz("America/Adak").zone(), 600, "1971-10-31T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1971-10-31T12:00:00+00:00").tz("America/Adak").zone(), 660, "1971-10-31T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1972-04-30T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1972-04-30T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1972-04-30T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1972-10-29T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1972-10-29T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1972-10-29T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1972-10-29T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1972-04-30T12:59:59+00:00").tz("America/Adak").zone(), 660, "1972-04-30T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1972-04-30T13:00:00+00:00").tz("America/Adak").zone(), 600, "1972-04-30T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1972-10-29T11:59:59+00:00").tz("America/Adak").zone(), 600, "1972-10-29T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1972-10-29T12:00:00+00:00").tz("America/Adak").zone(), 660, "1972-10-29T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1973-04-29T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1973-04-29T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1973-04-29T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1973-10-28T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1973-10-28T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1973-10-28T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1973-10-28T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1973-04-29T12:59:59+00:00").tz("America/Adak").zone(), 660, "1973-04-29T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1973-04-29T13:00:00+00:00").tz("America/Adak").zone(), 600, "1973-04-29T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1973-10-28T11:59:59+00:00").tz("America/Adak").zone(), 600, "1973-10-28T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1973-10-28T12:00:00+00:00").tz("America/Adak").zone(), 660, "1973-10-28T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1974-01-06T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1974-01-06T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1974-01-06T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1974-10-27T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1974-10-27T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1974-10-27T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1974-10-27T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1974-01-06T12:59:59+00:00").tz("America/Adak").zone(), 660, "1974-01-06T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1974-01-06T13:00:00+00:00").tz("America/Adak").zone(), 600, "1974-01-06T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1974-10-27T11:59:59+00:00").tz("America/Adak").zone(), 600, "1974-10-27T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1974-10-27T12:00:00+00:00").tz("America/Adak").zone(), 660, "1974-10-27T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1975-02-23T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1975-02-23T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1975-02-23T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1975-10-26T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1975-10-26T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1975-10-26T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1975-10-26T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1975-02-23T12:59:59+00:00").tz("America/Adak").zone(), 660, "1975-02-23T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1975-02-23T13:00:00+00:00").tz("America/Adak").zone(), 600, "1975-02-23T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1975-10-26T11:59:59+00:00").tz("America/Adak").zone(), 600, "1975-10-26T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1975-10-26T12:00:00+00:00").tz("America/Adak").zone(), 660, "1975-10-26T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1976-04-25T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1976-04-25T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1976-04-25T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1976-10-31T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1976-10-31T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1976-10-31T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1976-10-31T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1976-04-25T12:59:59+00:00").tz("America/Adak").zone(), 660, "1976-04-25T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1976-04-25T13:00:00+00:00").tz("America/Adak").zone(), 600, "1976-04-25T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1976-10-31T11:59:59+00:00").tz("America/Adak").zone(), 600, "1976-10-31T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1976-10-31T12:00:00+00:00").tz("America/Adak").zone(), 660, "1976-10-31T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1977-04-24T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1977-04-24T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1977-04-24T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1977-10-30T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1977-10-30T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1977-10-30T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1977-10-30T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1977-04-24T12:59:59+00:00").tz("America/Adak").zone(), 660, "1977-04-24T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1977-04-24T13:00:00+00:00").tz("America/Adak").zone(), 600, "1977-04-24T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1977-10-30T11:59:59+00:00").tz("America/Adak").zone(), 600, "1977-10-30T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1977-10-30T12:00:00+00:00").tz("America/Adak").zone(), 660, "1977-10-30T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1978-04-30T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1978-04-30T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1978-04-30T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1978-10-29T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1978-10-29T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1978-10-29T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1978-10-29T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1978-04-30T12:59:59+00:00").tz("America/Adak").zone(), 660, "1978-04-30T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1978-04-30T13:00:00+00:00").tz("America/Adak").zone(), 600, "1978-04-30T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1978-10-29T11:59:59+00:00").tz("America/Adak").zone(), 600, "1978-10-29T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1978-10-29T12:00:00+00:00").tz("America/Adak").zone(), 660, "1978-10-29T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1979-04-29T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1979-04-29T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1979-04-29T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1979-10-28T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1979-10-28T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1979-10-28T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1979-10-28T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1979-04-29T12:59:59+00:00").tz("America/Adak").zone(), 660, "1979-04-29T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1979-04-29T13:00:00+00:00").tz("America/Adak").zone(), 600, "1979-04-29T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1979-10-28T11:59:59+00:00").tz("America/Adak").zone(), 600, "1979-10-28T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1979-10-28T12:00:00+00:00").tz("America/Adak").zone(), 660, "1979-10-28T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1980-04-27T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1980-04-27T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1980-04-27T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1980-10-26T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1980-10-26T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1980-10-26T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1980-10-26T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1980-04-27T12:59:59+00:00").tz("America/Adak").zone(), 660, "1980-04-27T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1980-04-27T13:00:00+00:00").tz("America/Adak").zone(), 600, "1980-04-27T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1980-10-26T11:59:59+00:00").tz("America/Adak").zone(), 600, "1980-10-26T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1980-10-26T12:00:00+00:00").tz("America/Adak").zone(), 660, "1980-10-26T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1981-04-26T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1981-04-26T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1981-04-26T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1981-10-25T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1981-10-25T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1981-10-25T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1981-10-25T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1981-04-26T12:59:59+00:00").tz("America/Adak").zone(), 660, "1981-04-26T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1981-04-26T13:00:00+00:00").tz("America/Adak").zone(), 600, "1981-04-26T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1981-10-25T11:59:59+00:00").tz("America/Adak").zone(), 600, "1981-10-25T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1981-10-25T12:00:00+00:00").tz("America/Adak").zone(), 660, "1981-10-25T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1982-04-25T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1982-04-25T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1982-04-25T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1982-10-31T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1982-10-31T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1982-10-31T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1982-10-31T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1982-04-25T12:59:59+00:00").tz("America/Adak").zone(), 660, "1982-04-25T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1982-04-25T13:00:00+00:00").tz("America/Adak").zone(), 600, "1982-04-25T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1982-10-31T11:59:59+00:00").tz("America/Adak").zone(), 600, "1982-10-31T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1982-10-31T12:00:00+00:00").tz("America/Adak").zone(), 660, "1982-10-31T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T12:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1983-04-24T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1983-04-24T13:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1983-04-24T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1983-10-30T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1983-10-30T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1983-10-30T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "02:00:00", "1983-10-30T12:00:00+00:00 should be 02:00:00 AHST"); - t.equal(moment("1983-11-30T09:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "23:59:59", "1983-11-30T09:59:59+00:00 should be 23:59:59 AHST"); - t.equal(moment("1983-11-30T10:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "00:00:00", "1983-11-30T10:00:00+00:00 should be 00:00:00 HAST"); - - t.equal(moment("1983-04-24T12:59:59+00:00").tz("America/Adak").zone(), 660, "1983-04-24T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1983-04-24T13:00:00+00:00").tz("America/Adak").zone(), 600, "1983-04-24T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1983-10-30T11:59:59+00:00").tz("America/Adak").zone(), 600, "1983-10-30T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1983-10-30T12:00:00+00:00").tz("America/Adak").zone(), 600, "1983-10-30T12:00:00+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1983-11-30T09:59:59+00:00").tz("America/Adak").zone(), 600, "1983-11-30T09:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1983-11-30T10:00:00+00:00").tz("America/Adak").zone(), 600, "1983-11-30T10:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1984-04-29T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1984-04-29T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1984-04-29T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1984-10-28T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1984-10-28T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1984-10-28T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1984-10-28T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1984-04-29T11:59:59+00:00").tz("America/Adak").zone(), 600, "1984-04-29T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1984-04-29T12:00:00+00:00").tz("America/Adak").zone(), 540, "1984-04-29T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1984-10-28T10:59:59+00:00").tz("America/Adak").zone(), 540, "1984-10-28T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1984-10-28T11:00:00+00:00").tz("America/Adak").zone(), 600, "1984-10-28T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1985-04-28T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1985-04-28T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1985-04-28T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1985-10-27T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1985-10-27T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1985-10-27T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1985-10-27T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1985-04-28T11:59:59+00:00").tz("America/Adak").zone(), 600, "1985-04-28T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1985-04-28T12:00:00+00:00").tz("America/Adak").zone(), 540, "1985-04-28T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1985-10-27T10:59:59+00:00").tz("America/Adak").zone(), 540, "1985-10-27T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1985-10-27T11:00:00+00:00").tz("America/Adak").zone(), 600, "1985-10-27T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1986-04-27T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1986-04-27T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1986-04-27T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1986-10-26T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1986-10-26T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1986-10-26T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1986-10-26T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1986-04-27T11:59:59+00:00").tz("America/Adak").zone(), 600, "1986-04-27T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1986-04-27T12:00:00+00:00").tz("America/Adak").zone(), 540, "1986-04-27T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1986-10-26T10:59:59+00:00").tz("America/Adak").zone(), 540, "1986-10-26T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1986-10-26T11:00:00+00:00").tz("America/Adak").zone(), 600, "1986-10-26T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1987-04-05T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1987-04-05T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1987-04-05T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1987-10-25T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1987-10-25T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1987-10-25T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1987-10-25T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1987-04-05T11:59:59+00:00").tz("America/Adak").zone(), 600, "1987-04-05T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1987-04-05T12:00:00+00:00").tz("America/Adak").zone(), 540, "1987-04-05T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1987-10-25T10:59:59+00:00").tz("America/Adak").zone(), 540, "1987-10-25T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1987-10-25T11:00:00+00:00").tz("America/Adak").zone(), 600, "1987-10-25T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1988-04-03T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1988-04-03T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1988-04-03T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1988-10-30T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1988-10-30T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1988-10-30T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1988-10-30T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1988-04-03T11:59:59+00:00").tz("America/Adak").zone(), 600, "1988-04-03T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1988-04-03T12:00:00+00:00").tz("America/Adak").zone(), 540, "1988-04-03T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1988-10-30T10:59:59+00:00").tz("America/Adak").zone(), 540, "1988-10-30T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1988-10-30T11:00:00+00:00").tz("America/Adak").zone(), 600, "1988-10-30T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1989-04-02T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1989-04-02T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1989-04-02T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1989-10-29T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1989-10-29T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1989-10-29T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1989-10-29T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1989-04-02T11:59:59+00:00").tz("America/Adak").zone(), 600, "1989-04-02T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1989-04-02T12:00:00+00:00").tz("America/Adak").zone(), 540, "1989-04-02T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1989-10-29T10:59:59+00:00").tz("America/Adak").zone(), 540, "1989-10-29T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1989-10-29T11:00:00+00:00").tz("America/Adak").zone(), 600, "1989-10-29T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1990-04-01T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1990-04-01T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1990-04-01T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1990-10-28T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1990-10-28T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1990-10-28T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1990-10-28T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1990-04-01T11:59:59+00:00").tz("America/Adak").zone(), 600, "1990-04-01T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1990-04-01T12:00:00+00:00").tz("America/Adak").zone(), 540, "1990-04-01T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1990-10-28T10:59:59+00:00").tz("America/Adak").zone(), 540, "1990-10-28T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1990-10-28T11:00:00+00:00").tz("America/Adak").zone(), 600, "1990-10-28T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1991-04-07T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1991-04-07T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1991-04-07T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1991-10-27T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1991-10-27T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1991-10-27T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1991-10-27T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1991-04-07T11:59:59+00:00").tz("America/Adak").zone(), 600, "1991-04-07T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1991-04-07T12:00:00+00:00").tz("America/Adak").zone(), 540, "1991-04-07T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1991-10-27T10:59:59+00:00").tz("America/Adak").zone(), 540, "1991-10-27T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1991-10-27T11:00:00+00:00").tz("America/Adak").zone(), 600, "1991-10-27T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1992-04-05T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1992-04-05T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1992-04-05T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1992-10-25T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1992-10-25T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1992-10-25T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1992-10-25T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1992-04-05T11:59:59+00:00").tz("America/Adak").zone(), 600, "1992-04-05T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1992-04-05T12:00:00+00:00").tz("America/Adak").zone(), 540, "1992-04-05T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1992-10-25T10:59:59+00:00").tz("America/Adak").zone(), 540, "1992-10-25T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1992-10-25T11:00:00+00:00").tz("America/Adak").zone(), 600, "1992-10-25T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1993-04-04T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1993-04-04T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1993-04-04T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1993-10-31T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1993-10-31T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1993-10-31T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1993-10-31T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1993-04-04T11:59:59+00:00").tz("America/Adak").zone(), 600, "1993-04-04T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1993-04-04T12:00:00+00:00").tz("America/Adak").zone(), 540, "1993-04-04T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1993-10-31T10:59:59+00:00").tz("America/Adak").zone(), 540, "1993-10-31T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1993-10-31T11:00:00+00:00").tz("America/Adak").zone(), 600, "1993-10-31T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1994-04-03T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1994-04-03T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1994-04-03T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1994-10-30T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1994-10-30T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1994-10-30T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1994-10-30T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1994-04-03T11:59:59+00:00").tz("America/Adak").zone(), 600, "1994-04-03T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1994-04-03T12:00:00+00:00").tz("America/Adak").zone(), 540, "1994-04-03T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1994-10-30T10:59:59+00:00").tz("America/Adak").zone(), 540, "1994-10-30T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1994-10-30T11:00:00+00:00").tz("America/Adak").zone(), 600, "1994-10-30T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1995-04-02T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1995-04-02T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1995-04-02T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1995-10-29T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1995-10-29T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1995-10-29T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1995-10-29T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1995-04-02T11:59:59+00:00").tz("America/Adak").zone(), 600, "1995-04-02T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1995-04-02T12:00:00+00:00").tz("America/Adak").zone(), 540, "1995-04-02T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1995-10-29T10:59:59+00:00").tz("America/Adak").zone(), 540, "1995-10-29T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1995-10-29T11:00:00+00:00").tz("America/Adak").zone(), 600, "1995-10-29T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1996-04-07T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1996-04-07T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1996-04-07T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1996-10-27T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1996-10-27T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1996-10-27T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1996-10-27T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1996-04-07T11:59:59+00:00").tz("America/Adak").zone(), 600, "1996-04-07T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1996-04-07T12:00:00+00:00").tz("America/Adak").zone(), 540, "1996-04-07T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1996-10-27T10:59:59+00:00").tz("America/Adak").zone(), 540, "1996-10-27T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1996-10-27T11:00:00+00:00").tz("America/Adak").zone(), 600, "1996-10-27T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1997-04-06T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1997-04-06T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1997-04-06T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1997-10-26T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1997-10-26T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1997-10-26T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1997-10-26T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1997-04-06T11:59:59+00:00").tz("America/Adak").zone(), 600, "1997-04-06T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1997-04-06T12:00:00+00:00").tz("America/Adak").zone(), 540, "1997-04-06T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1997-10-26T10:59:59+00:00").tz("America/Adak").zone(), 540, "1997-10-26T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1997-10-26T11:00:00+00:00").tz("America/Adak").zone(), 600, "1997-10-26T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1998-04-05T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1998-04-05T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1998-04-05T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1998-10-25T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1998-10-25T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1998-10-25T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1998-10-25T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1998-04-05T11:59:59+00:00").tz("America/Adak").zone(), 600, "1998-04-05T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1998-04-05T12:00:00+00:00").tz("America/Adak").zone(), 540, "1998-04-05T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1998-10-25T10:59:59+00:00").tz("America/Adak").zone(), 540, "1998-10-25T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1998-10-25T11:00:00+00:00").tz("America/Adak").zone(), 600, "1998-10-25T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1999-04-04T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("1999-04-04T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "1999-04-04T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("1999-10-31T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "1999-10-31T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("1999-10-31T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "1999-10-31T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("1999-04-04T11:59:59+00:00").tz("America/Adak").zone(), 600, "1999-04-04T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("1999-04-04T12:00:00+00:00").tz("America/Adak").zone(), 540, "1999-04-04T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1999-10-31T10:59:59+00:00").tz("America/Adak").zone(), 540, "1999-10-31T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("1999-10-31T11:00:00+00:00").tz("America/Adak").zone(), 600, "1999-10-31T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2000-04-02T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2000-04-02T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2000-04-02T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2000-10-29T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2000-10-29T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2000-10-29T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2000-10-29T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2000-04-02T11:59:59+00:00").tz("America/Adak").zone(), 600, "2000-04-02T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2000-04-02T12:00:00+00:00").tz("America/Adak").zone(), 540, "2000-04-02T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2000-10-29T10:59:59+00:00").tz("America/Adak").zone(), 540, "2000-10-29T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2000-10-29T11:00:00+00:00").tz("America/Adak").zone(), 600, "2000-10-29T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2001-04-01T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2001-04-01T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2001-04-01T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2001-10-28T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2001-10-28T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2001-10-28T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2001-10-28T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2001-04-01T11:59:59+00:00").tz("America/Adak").zone(), 600, "2001-04-01T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2001-04-01T12:00:00+00:00").tz("America/Adak").zone(), 540, "2001-04-01T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2001-10-28T10:59:59+00:00").tz("America/Adak").zone(), 540, "2001-10-28T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2001-10-28T11:00:00+00:00").tz("America/Adak").zone(), 600, "2001-10-28T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2002-04-07T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2002-04-07T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2002-04-07T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2002-10-27T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2002-10-27T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2002-10-27T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2002-10-27T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2002-04-07T11:59:59+00:00").tz("America/Adak").zone(), 600, "2002-04-07T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2002-04-07T12:00:00+00:00").tz("America/Adak").zone(), 540, "2002-04-07T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2002-10-27T10:59:59+00:00").tz("America/Adak").zone(), 540, "2002-10-27T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2002-10-27T11:00:00+00:00").tz("America/Adak").zone(), 600, "2002-10-27T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2003-04-06T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2003-04-06T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2003-04-06T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2003-10-26T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2003-10-26T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2003-10-26T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2003-10-26T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2003-04-06T11:59:59+00:00").tz("America/Adak").zone(), 600, "2003-04-06T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2003-04-06T12:00:00+00:00").tz("America/Adak").zone(), 540, "2003-04-06T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2003-10-26T10:59:59+00:00").tz("America/Adak").zone(), 540, "2003-10-26T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2003-10-26T11:00:00+00:00").tz("America/Adak").zone(), 600, "2003-10-26T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2004-04-04T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2004-04-04T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2004-04-04T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2004-10-31T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2004-10-31T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2004-10-31T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2004-10-31T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2004-04-04T11:59:59+00:00").tz("America/Adak").zone(), 600, "2004-04-04T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2004-04-04T12:00:00+00:00").tz("America/Adak").zone(), 540, "2004-04-04T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2004-10-31T10:59:59+00:00").tz("America/Adak").zone(), 540, "2004-10-31T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2004-10-31T11:00:00+00:00").tz("America/Adak").zone(), 600, "2004-10-31T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2005-04-03T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2005-04-03T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2005-04-03T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2005-10-30T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2005-10-30T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2005-10-30T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2005-10-30T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2005-04-03T11:59:59+00:00").tz("America/Adak").zone(), 600, "2005-04-03T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2005-04-03T12:00:00+00:00").tz("America/Adak").zone(), 540, "2005-04-03T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2005-10-30T10:59:59+00:00").tz("America/Adak").zone(), 540, "2005-10-30T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2005-10-30T11:00:00+00:00").tz("America/Adak").zone(), 600, "2005-10-30T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2006-04-02T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2006-04-02T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2006-04-02T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2006-10-29T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2006-10-29T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2006-10-29T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2006-10-29T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2006-04-02T11:59:59+00:00").tz("America/Adak").zone(), 600, "2006-04-02T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2006-04-02T12:00:00+00:00").tz("America/Adak").zone(), 540, "2006-04-02T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2006-10-29T10:59:59+00:00").tz("America/Adak").zone(), 540, "2006-10-29T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2006-10-29T11:00:00+00:00").tz("America/Adak").zone(), 600, "2006-10-29T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2007-03-11T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2007-03-11T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2007-03-11T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2007-11-04T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2007-11-04T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2007-11-04T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2007-11-04T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2007-03-11T11:59:59+00:00").tz("America/Adak").zone(), 600, "2007-03-11T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2007-03-11T12:00:00+00:00").tz("America/Adak").zone(), 540, "2007-03-11T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2007-11-04T10:59:59+00:00").tz("America/Adak").zone(), 540, "2007-11-04T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2007-11-04T11:00:00+00:00").tz("America/Adak").zone(), 600, "2007-11-04T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2008-03-09T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2008-03-09T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2008-03-09T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2008-11-02T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2008-11-02T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2008-11-02T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2008-11-02T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2008-03-09T11:59:59+00:00").tz("America/Adak").zone(), 600, "2008-03-09T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2008-03-09T12:00:00+00:00").tz("America/Adak").zone(), 540, "2008-03-09T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2008-11-02T10:59:59+00:00").tz("America/Adak").zone(), 540, "2008-11-02T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2008-11-02T11:00:00+00:00").tz("America/Adak").zone(), 600, "2008-11-02T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2009-03-08T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2009-03-08T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2009-03-08T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2009-11-01T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2009-11-01T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2009-11-01T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2009-11-01T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2009-03-08T11:59:59+00:00").tz("America/Adak").zone(), 600, "2009-03-08T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2009-03-08T12:00:00+00:00").tz("America/Adak").zone(), 540, "2009-03-08T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2009-11-01T10:59:59+00:00").tz("America/Adak").zone(), 540, "2009-11-01T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2009-11-01T11:00:00+00:00").tz("America/Adak").zone(), 600, "2009-11-01T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2010-03-14T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2010-03-14T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2010-03-14T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2010-11-07T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2010-11-07T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2010-11-07T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2010-11-07T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2010-03-14T11:59:59+00:00").tz("America/Adak").zone(), 600, "2010-03-14T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2010-03-14T12:00:00+00:00").tz("America/Adak").zone(), 540, "2010-03-14T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2010-11-07T10:59:59+00:00").tz("America/Adak").zone(), 540, "2010-11-07T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2010-11-07T11:00:00+00:00").tz("America/Adak").zone(), 600, "2010-11-07T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2011-03-13T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2011-03-13T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2011-03-13T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2011-11-06T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2011-11-06T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2011-11-06T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2011-11-06T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2011-03-13T11:59:59+00:00").tz("America/Adak").zone(), 600, "2011-03-13T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2011-03-13T12:00:00+00:00").tz("America/Adak").zone(), 540, "2011-03-13T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2011-11-06T10:59:59+00:00").tz("America/Adak").zone(), 540, "2011-11-06T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2011-11-06T11:00:00+00:00").tz("America/Adak").zone(), 600, "2011-11-06T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2012-03-11T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2012-03-11T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2012-03-11T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2012-11-04T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2012-11-04T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2012-11-04T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2012-11-04T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2012-03-11T11:59:59+00:00").tz("America/Adak").zone(), 600, "2012-03-11T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2012-03-11T12:00:00+00:00").tz("America/Adak").zone(), 540, "2012-03-11T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2012-11-04T10:59:59+00:00").tz("America/Adak").zone(), 540, "2012-11-04T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2012-11-04T11:00:00+00:00").tz("America/Adak").zone(), 600, "2012-11-04T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2013-03-10T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2013-03-10T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2013-03-10T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2013-11-03T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2013-11-03T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2013-11-03T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2013-11-03T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2013-03-10T11:59:59+00:00").tz("America/Adak").zone(), 600, "2013-03-10T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2013-03-10T12:00:00+00:00").tz("America/Adak").zone(), 540, "2013-03-10T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2013-11-03T10:59:59+00:00").tz("America/Adak").zone(), 540, "2013-11-03T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2013-11-03T11:00:00+00:00").tz("America/Adak").zone(), 600, "2013-11-03T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2014-03-09T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2014-03-09T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2014-03-09T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2014-11-02T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2014-11-02T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2014-11-02T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2014-11-02T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2014-03-09T11:59:59+00:00").tz("America/Adak").zone(), 600, "2014-03-09T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2014-03-09T12:00:00+00:00").tz("America/Adak").zone(), 540, "2014-03-09T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2014-11-02T10:59:59+00:00").tz("America/Adak").zone(), 540, "2014-11-02T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2014-11-02T11:00:00+00:00").tz("America/Adak").zone(), 600, "2014-11-02T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2015-03-08T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2015-03-08T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2015-03-08T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2015-11-01T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2015-11-01T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2015-11-01T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2015-11-01T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2015-03-08T11:59:59+00:00").tz("America/Adak").zone(), 600, "2015-03-08T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2015-03-08T12:00:00+00:00").tz("America/Adak").zone(), 540, "2015-03-08T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2015-11-01T10:59:59+00:00").tz("America/Adak").zone(), 540, "2015-11-01T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2015-11-01T11:00:00+00:00").tz("America/Adak").zone(), 600, "2015-11-01T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2016-03-13T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2016-03-13T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2016-03-13T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2016-11-06T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2016-11-06T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2016-11-06T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2016-11-06T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2016-03-13T11:59:59+00:00").tz("America/Adak").zone(), 600, "2016-03-13T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2016-03-13T12:00:00+00:00").tz("America/Adak").zone(), 540, "2016-03-13T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2016-11-06T10:59:59+00:00").tz("America/Adak").zone(), 540, "2016-11-06T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2016-11-06T11:00:00+00:00").tz("America/Adak").zone(), 600, "2016-11-06T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2017-03-12T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2017-03-12T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2017-03-12T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2017-11-05T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2017-11-05T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2017-11-05T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2017-11-05T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2017-03-12T11:59:59+00:00").tz("America/Adak").zone(), 600, "2017-03-12T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2017-03-12T12:00:00+00:00").tz("America/Adak").zone(), 540, "2017-03-12T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2017-11-05T10:59:59+00:00").tz("America/Adak").zone(), 540, "2017-11-05T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2017-11-05T11:00:00+00:00").tz("America/Adak").zone(), 600, "2017-11-05T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2018-03-11T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2018-03-11T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2018-03-11T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2018-11-04T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2018-11-04T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2018-11-04T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2018-11-04T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2018-03-11T11:59:59+00:00").tz("America/Adak").zone(), 600, "2018-03-11T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2018-03-11T12:00:00+00:00").tz("America/Adak").zone(), 540, "2018-03-11T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2018-11-04T10:59:59+00:00").tz("America/Adak").zone(), 540, "2018-11-04T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2018-11-04T11:00:00+00:00").tz("America/Adak").zone(), 600, "2018-11-04T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2019-03-10T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2019-03-10T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2019-03-10T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2019-11-03T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2019-11-03T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2019-11-03T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2019-11-03T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2019-03-10T11:59:59+00:00").tz("America/Adak").zone(), 600, "2019-03-10T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2019-03-10T12:00:00+00:00").tz("America/Adak").zone(), 540, "2019-03-10T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2019-11-03T10:59:59+00:00").tz("America/Adak").zone(), 540, "2019-11-03T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2019-11-03T11:00:00+00:00").tz("America/Adak").zone(), 600, "2019-11-03T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2020-03-08T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2020-03-08T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2020-03-08T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2020-11-01T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2020-11-01T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2020-11-01T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2020-11-01T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2020-03-08T11:59:59+00:00").tz("America/Adak").zone(), 600, "2020-03-08T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2020-03-08T12:00:00+00:00").tz("America/Adak").zone(), 540, "2020-03-08T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2020-11-01T10:59:59+00:00").tz("America/Adak").zone(), 540, "2020-11-01T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2020-11-01T11:00:00+00:00").tz("America/Adak").zone(), 600, "2020-11-01T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2021-03-14T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2021-03-14T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2021-03-14T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2021-11-07T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2021-11-07T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2021-11-07T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2021-11-07T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2021-03-14T11:59:59+00:00").tz("America/Adak").zone(), 600, "2021-03-14T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2021-03-14T12:00:00+00:00").tz("America/Adak").zone(), 540, "2021-03-14T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2021-11-07T10:59:59+00:00").tz("America/Adak").zone(), 540, "2021-11-07T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2021-11-07T11:00:00+00:00").tz("America/Adak").zone(), 600, "2021-11-07T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2022-03-13T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2022-03-13T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2022-03-13T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2022-11-06T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2022-11-06T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2022-11-06T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2022-11-06T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2022-03-13T11:59:59+00:00").tz("America/Adak").zone(), 600, "2022-03-13T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2022-03-13T12:00:00+00:00").tz("America/Adak").zone(), 540, "2022-03-13T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2022-11-06T10:59:59+00:00").tz("America/Adak").zone(), 540, "2022-11-06T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2022-11-06T11:00:00+00:00").tz("America/Adak").zone(), 600, "2022-11-06T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2023-03-12T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2023-03-12T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2023-03-12T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2023-11-05T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2023-11-05T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2023-11-05T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2023-11-05T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2023-03-12T11:59:59+00:00").tz("America/Adak").zone(), 600, "2023-03-12T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2023-03-12T12:00:00+00:00").tz("America/Adak").zone(), 540, "2023-03-12T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2023-11-05T10:59:59+00:00").tz("America/Adak").zone(), 540, "2023-11-05T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2023-11-05T11:00:00+00:00").tz("America/Adak").zone(), 600, "2023-11-05T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2024-03-10T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2024-03-10T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2024-03-10T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2024-11-03T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2024-11-03T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2024-11-03T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2024-11-03T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2024-03-10T11:59:59+00:00").tz("America/Adak").zone(), 600, "2024-03-10T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2024-03-10T12:00:00+00:00").tz("America/Adak").zone(), 540, "2024-03-10T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2024-11-03T10:59:59+00:00").tz("America/Adak").zone(), 540, "2024-11-03T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2024-11-03T11:00:00+00:00").tz("America/Adak").zone(), 600, "2024-11-03T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2025-03-09T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2025-03-09T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2025-03-09T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2025-11-02T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2025-11-02T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2025-11-02T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2025-11-02T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2025-03-09T11:59:59+00:00").tz("America/Adak").zone(), 600, "2025-03-09T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2025-03-09T12:00:00+00:00").tz("America/Adak").zone(), 540, "2025-03-09T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2025-11-02T10:59:59+00:00").tz("America/Adak").zone(), 540, "2025-11-02T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2025-11-02T11:00:00+00:00").tz("America/Adak").zone(), 600, "2025-11-02T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2026-03-08T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2026-03-08T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2026-03-08T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2026-11-01T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2026-11-01T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2026-11-01T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2026-11-01T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2026-03-08T11:59:59+00:00").tz("America/Adak").zone(), 600, "2026-03-08T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2026-03-08T12:00:00+00:00").tz("America/Adak").zone(), 540, "2026-03-08T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2026-11-01T10:59:59+00:00").tz("America/Adak").zone(), 540, "2026-11-01T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2026-11-01T11:00:00+00:00").tz("America/Adak").zone(), 600, "2026-11-01T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2027-03-14T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2027-03-14T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2027-03-14T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2027-11-07T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2027-11-07T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2027-11-07T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2027-11-07T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2027-03-14T11:59:59+00:00").tz("America/Adak").zone(), 600, "2027-03-14T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2027-03-14T12:00:00+00:00").tz("America/Adak").zone(), 540, "2027-03-14T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2027-11-07T10:59:59+00:00").tz("America/Adak").zone(), 540, "2027-11-07T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2027-11-07T11:00:00+00:00").tz("America/Adak").zone(), 600, "2027-11-07T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2028-03-12T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2028-03-12T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2028-03-12T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2028-11-05T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2028-11-05T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2028-11-05T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2028-11-05T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2028-03-12T11:59:59+00:00").tz("America/Adak").zone(), 600, "2028-03-12T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2028-03-12T12:00:00+00:00").tz("America/Adak").zone(), 540, "2028-03-12T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2028-11-05T10:59:59+00:00").tz("America/Adak").zone(), 540, "2028-11-05T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2028-11-05T11:00:00+00:00").tz("America/Adak").zone(), 600, "2028-11-05T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2029-03-11T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2029-03-11T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2029-03-11T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2029-11-04T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2029-11-04T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2029-11-04T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2029-11-04T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2029-03-11T11:59:59+00:00").tz("America/Adak").zone(), 600, "2029-03-11T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2029-03-11T12:00:00+00:00").tz("America/Adak").zone(), 540, "2029-03-11T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2029-11-04T10:59:59+00:00").tz("America/Adak").zone(), 540, "2029-11-04T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2029-11-04T11:00:00+00:00").tz("America/Adak").zone(), 600, "2029-11-04T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2030-03-10T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2030-03-10T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2030-03-10T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2030-11-03T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2030-11-03T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2030-11-03T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2030-11-03T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2030-03-10T11:59:59+00:00").tz("America/Adak").zone(), 600, "2030-03-10T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2030-03-10T12:00:00+00:00").tz("America/Adak").zone(), 540, "2030-03-10T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2030-11-03T10:59:59+00:00").tz("America/Adak").zone(), 540, "2030-11-03T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2030-11-03T11:00:00+00:00").tz("America/Adak").zone(), 600, "2030-11-03T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2031-03-09T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2031-03-09T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2031-03-09T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2031-11-02T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2031-11-02T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2031-11-02T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2031-11-02T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2031-03-09T11:59:59+00:00").tz("America/Adak").zone(), 600, "2031-03-09T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2031-03-09T12:00:00+00:00").tz("America/Adak").zone(), 540, "2031-03-09T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2031-11-02T10:59:59+00:00").tz("America/Adak").zone(), 540, "2031-11-02T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2031-11-02T11:00:00+00:00").tz("America/Adak").zone(), 600, "2031-11-02T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2032-03-14T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2032-03-14T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2032-03-14T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2032-11-07T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2032-11-07T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2032-11-07T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2032-11-07T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2032-03-14T11:59:59+00:00").tz("America/Adak").zone(), 600, "2032-03-14T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2032-03-14T12:00:00+00:00").tz("America/Adak").zone(), 540, "2032-03-14T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2032-11-07T10:59:59+00:00").tz("America/Adak").zone(), 540, "2032-11-07T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2032-11-07T11:00:00+00:00").tz("America/Adak").zone(), 600, "2032-11-07T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2033-03-13T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2033-03-13T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2033-03-13T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2033-11-06T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2033-11-06T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2033-11-06T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2033-11-06T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2033-03-13T11:59:59+00:00").tz("America/Adak").zone(), 600, "2033-03-13T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2033-03-13T12:00:00+00:00").tz("America/Adak").zone(), 540, "2033-03-13T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2033-11-06T10:59:59+00:00").tz("America/Adak").zone(), 540, "2033-11-06T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2033-11-06T11:00:00+00:00").tz("America/Adak").zone(), 600, "2033-11-06T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2034-03-12T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2034-03-12T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2034-03-12T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2034-11-05T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2034-11-05T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2034-11-05T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2034-11-05T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2034-03-12T11:59:59+00:00").tz("America/Adak").zone(), 600, "2034-03-12T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2034-03-12T12:00:00+00:00").tz("America/Adak").zone(), 540, "2034-03-12T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2034-11-05T10:59:59+00:00").tz("America/Adak").zone(), 540, "2034-11-05T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2034-11-05T11:00:00+00:00").tz("America/Adak").zone(), 600, "2034-11-05T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2035-03-11T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2035-03-11T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2035-03-11T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2035-11-04T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2035-11-04T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2035-11-04T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2035-11-04T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2035-03-11T11:59:59+00:00").tz("America/Adak").zone(), 600, "2035-03-11T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2035-03-11T12:00:00+00:00").tz("America/Adak").zone(), 540, "2035-03-11T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2035-11-04T10:59:59+00:00").tz("America/Adak").zone(), 540, "2035-11-04T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2035-11-04T11:00:00+00:00").tz("America/Adak").zone(), 600, "2035-11-04T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2036-03-09T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2036-03-09T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2036-03-09T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2036-11-02T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2036-11-02T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2036-11-02T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2036-11-02T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2036-03-09T11:59:59+00:00").tz("America/Adak").zone(), 600, "2036-03-09T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2036-03-09T12:00:00+00:00").tz("America/Adak").zone(), 540, "2036-03-09T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2036-11-02T10:59:59+00:00").tz("America/Adak").zone(), 540, "2036-11-02T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2036-11-02T11:00:00+00:00").tz("America/Adak").zone(), 600, "2036-11-02T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T11:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2037-03-08T11:59:59+00:00 should be 01:59:59 HAST"); - t.equal(moment("2037-03-08T12:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "03:00:00", "2037-03-08T12:00:00+00:00 should be 03:00:00 HADT"); - t.equal(moment("2037-11-01T10:59:59+00:00").tz("America/Adak").format("HH:mm:ss"), "01:59:59", "2037-11-01T10:59:59+00:00 should be 01:59:59 HADT"); - t.equal(moment("2037-11-01T11:00:00+00:00").tz("America/Adak").format("HH:mm:ss"), "01:00:00", "2037-11-01T11:00:00+00:00 should be 01:00:00 HAST"); - - t.equal(moment("2037-03-08T11:59:59+00:00").tz("America/Adak").zone(), 600, "2037-03-08T11:59:59+00:00 should be 600 minutes offset in HAST"); - t.equal(moment("2037-03-08T12:00:00+00:00").tz("America/Adak").zone(), 540, "2037-03-08T12:00:00+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2037-11-01T10:59:59+00:00").tz("America/Adak").zone(), 540, "2037-11-01T10:59:59+00:00 should be 540 minutes offset in HADT"); - t.equal(moment("2037-11-01T11:00:00+00:00").tz("America/Adak").zone(), 600, "2037-11-01T11:00:00+00:00 should be 600 minutes offset in HAST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/anchorage.js b/tests/america/anchorage.js deleted file mode 100644 index 2f98dd99..00000000 --- a/tests/america/anchorage.js +++ /dev/null @@ -1,1008 +0,0 @@ -var moment = require("../../index"); - -exports["America/Anchorage"] = { - - "1942" : function (t) { - t.equal(moment("1942-02-09T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1942-02-09T11:59:59+00:00 should be 01:59:59 CAT"); - t.equal(moment("1942-02-09T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1942-02-09T12:00:00+00:00 should be 03:00:00 CAWT"); - - t.equal(moment("1942-02-09T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1942-02-09T11:59:59+00:00 should be 600 minutes offset in CAT"); - t.equal(moment("1942-02-09T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1942-02-09T12:00:00+00:00 should be 540 minutes offset in CAWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "13:59:59", "1945-08-14T22:59:59+00:00 should be 13:59:59 CAWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "14:00:00", "1945-08-14T23:00:00+00:00 should be 14:00:00 CAPT"); - t.equal(moment("1945-09-30T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1945-09-30T10:59:59+00:00 should be 01:59:59 CAPT"); - t.equal(moment("1945-09-30T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1945-09-30T11:00:00+00:00 should be 01:00:00 CAT"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Anchorage").zone(), 540, "1945-08-14T22:59:59+00:00 should be 540 minutes offset in CAWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Anchorage").zone(), 540, "1945-08-14T23:00:00+00:00 should be 540 minutes offset in CAPT"); - t.equal(moment("1945-09-30T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1945-09-30T10:59:59+00:00 should be 540 minutes offset in CAPT"); - t.equal(moment("1945-09-30T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1945-09-30T11:00:00+00:00 should be 600 minutes offset in CAT"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-01T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "23:59:59", "1967-04-01T09:59:59+00:00 should be 23:59:59 CAT"); - t.equal(moment("1967-04-01T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "00:00:00", "1967-04-01T10:00:00+00:00 should be 00:00:00 AHST"); - - t.equal(moment("1967-04-01T09:59:59+00:00").tz("America/Anchorage").zone(), 600, "1967-04-01T09:59:59+00:00 should be 600 minutes offset in CAT"); - t.equal(moment("1967-04-01T10:00:00+00:00").tz("America/Anchorage").zone(), 600, "1967-04-01T10:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1969-04-27T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1969-04-27T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1969-04-27T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1969-10-26T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1969-10-26T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1969-10-26T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1969-10-26T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1969-04-27T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1969-04-27T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1969-04-27T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1969-04-27T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1969-10-26T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1969-10-26T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1969-10-26T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1969-10-26T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1970-04-26T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1970-04-26T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1970-04-26T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1970-10-25T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1970-10-25T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1970-10-25T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1970-10-25T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1970-04-26T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1970-04-26T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1970-04-26T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1970-04-26T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1970-10-25T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1970-10-25T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1970-10-25T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1970-10-25T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1971-04-25T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1971-04-25T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1971-04-25T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1971-10-31T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1971-10-31T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1971-10-31T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1971-10-31T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1971-04-25T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1971-04-25T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1971-04-25T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1971-04-25T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1971-10-31T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1971-10-31T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1971-10-31T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1971-10-31T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1972-04-30T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1972-04-30T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1972-04-30T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1972-10-29T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1972-10-29T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1972-10-29T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1972-10-29T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1972-04-30T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1972-04-30T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1972-04-30T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1972-04-30T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1972-10-29T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1972-10-29T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1972-10-29T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1972-10-29T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1973-04-29T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1973-04-29T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1973-04-29T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1973-10-28T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1973-10-28T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1973-10-28T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1973-10-28T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1973-04-29T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1973-04-29T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1973-04-29T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1973-04-29T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1973-10-28T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1973-10-28T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1973-10-28T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1973-10-28T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1974-01-06T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1974-01-06T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1974-01-06T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1974-10-27T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1974-10-27T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1974-10-27T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1974-10-27T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1974-01-06T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1974-01-06T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1974-01-06T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1974-01-06T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1974-10-27T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1974-10-27T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1974-10-27T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1974-10-27T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1975-02-23T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1975-02-23T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1975-02-23T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1975-10-26T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1975-10-26T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1975-10-26T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1975-10-26T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1975-02-23T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1975-02-23T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1975-02-23T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1975-02-23T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1975-10-26T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1975-10-26T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1975-10-26T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1975-10-26T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1976-04-25T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1976-04-25T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1976-04-25T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1976-10-31T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1976-10-31T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1976-10-31T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1976-10-31T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1976-04-25T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1976-04-25T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1976-04-25T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1976-04-25T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1976-10-31T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1976-10-31T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1976-10-31T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1976-10-31T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1977-04-24T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1977-04-24T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1977-04-24T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1977-10-30T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1977-10-30T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1977-10-30T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1977-10-30T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1977-04-24T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1977-04-24T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1977-04-24T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1977-04-24T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1977-10-30T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1977-10-30T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1977-10-30T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1977-10-30T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1978-04-30T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1978-04-30T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1978-04-30T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1978-10-29T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1978-10-29T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1978-10-29T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1978-10-29T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1978-04-30T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1978-04-30T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1978-04-30T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1978-04-30T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1978-10-29T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1978-10-29T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1978-10-29T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1978-10-29T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1979-04-29T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1979-04-29T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1979-04-29T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1979-10-28T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1979-10-28T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1979-10-28T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1979-10-28T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1979-04-29T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1979-04-29T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1979-04-29T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1979-04-29T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1979-10-28T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1979-10-28T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1979-10-28T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1979-10-28T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1980-04-27T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1980-04-27T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1980-04-27T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1980-10-26T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1980-10-26T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1980-10-26T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1980-10-26T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1980-04-27T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1980-04-27T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1980-04-27T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1980-04-27T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1980-10-26T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1980-10-26T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1980-10-26T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1980-10-26T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1981-04-26T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1981-04-26T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1981-04-26T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1981-10-25T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1981-10-25T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1981-10-25T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1981-10-25T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1981-04-26T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1981-04-26T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1981-04-26T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1981-04-26T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1981-10-25T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1981-10-25T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1981-10-25T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1981-10-25T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1982-04-25T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1982-04-25T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1982-04-25T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1982-10-31T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1982-10-31T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1982-10-31T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1982-10-31T11:00:00+00:00 should be 01:00:00 AHST"); - - t.equal(moment("1982-04-25T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1982-04-25T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1982-04-25T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1982-04-25T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1982-10-31T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1982-10-31T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1982-10-31T11:00:00+00:00").tz("America/Anchorage").zone(), 600, "1982-10-31T11:00:00+00:00 should be 600 minutes offset in AHST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T11:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1983-04-24T11:59:59+00:00 should be 01:59:59 AHST"); - t.equal(moment("1983-04-24T12:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1983-04-24T12:00:00+00:00 should be 03:00:00 AHDT"); - t.equal(moment("1983-10-30T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1983-10-30T10:59:59+00:00 should be 01:59:59 AHDT"); - t.equal(moment("1983-10-30T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "02:00:00", "1983-10-30T11:00:00+00:00 should be 02:00:00 YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "23:59:59", "1983-11-30T08:59:59+00:00 should be 23:59:59 YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "00:00:00", "1983-11-30T09:00:00+00:00 should be 00:00:00 AKST"); - - t.equal(moment("1983-04-24T11:59:59+00:00").tz("America/Anchorage").zone(), 600, "1983-04-24T11:59:59+00:00 should be 600 minutes offset in AHST"); - t.equal(moment("1983-04-24T12:00:00+00:00").tz("America/Anchorage").zone(), 540, "1983-04-24T12:00:00+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1983-10-30T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1983-10-30T10:59:59+00:00 should be 540 minutes offset in AHDT"); - t.equal(moment("1983-10-30T11:00:00+00:00").tz("America/Anchorage").zone(), 540, "1983-10-30T11:00:00+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Anchorage").zone(), 540, "1983-11-30T08:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Anchorage").zone(), 540, "1983-11-30T09:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1984-04-29T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1984-04-29T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1984-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1984-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1984-04-29T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1984-04-29T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1984-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1984-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1985-04-28T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1985-04-28T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1985-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1985-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1985-04-28T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1985-04-28T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1985-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1985-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1986-04-27T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1986-04-27T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1986-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1986-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1986-04-27T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1986-04-27T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1986-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1986-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1987-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1987-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1987-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1987-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1987-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1987-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1987-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1987-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1988-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1988-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1988-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1988-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1988-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1988-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1988-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1988-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1989-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1989-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1989-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1989-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1989-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1989-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1989-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1989-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1990-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1990-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1990-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1990-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1990-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1990-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1990-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1990-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1991-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1991-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1991-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1991-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1991-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1991-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1991-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1991-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1992-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1992-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1992-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1992-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1992-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1992-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1992-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1992-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1993-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1993-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1993-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1993-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1993-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1993-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1993-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1993-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1994-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1994-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1994-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1994-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1994-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1994-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1994-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1994-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1995-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1995-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1995-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1995-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1995-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1995-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1995-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1995-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1996-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1996-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1996-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1996-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1996-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1996-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1996-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1996-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1997-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1997-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1997-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1997-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1997-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1997-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1997-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1997-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1998-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1998-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1998-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1998-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1998-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1998-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1998-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1998-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1999-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "1999-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "1999-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "1999-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "1999-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "1999-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "1999-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "1999-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2000-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2000-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2000-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2000-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2000-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2000-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2000-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2000-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2001-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2001-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2001-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2001-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2001-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2001-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2001-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2001-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2002-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2002-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2002-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2002-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2002-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2002-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2002-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2002-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2003-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2003-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2003-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2003-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2003-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2003-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2003-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2003-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2004-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2004-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2004-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2004-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2004-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2004-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2004-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2004-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2005-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2005-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2005-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2005-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2005-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2005-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2005-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2005-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2006-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2006-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2006-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2006-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2006-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2006-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2006-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2006-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2007-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2007-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2007-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2007-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2007-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2007-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2007-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2007-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2008-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2008-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2008-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2008-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2008-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2008-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2008-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2008-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2009-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2009-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2009-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2009-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2009-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2009-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2009-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2009-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2010-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2010-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2010-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2010-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2010-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2010-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2010-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2010-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2011-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2011-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2011-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2011-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2011-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2011-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2011-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2011-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2012-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2012-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2012-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2012-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2012-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2012-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2012-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2012-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2013-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2013-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2013-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2013-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2013-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2013-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2013-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2013-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2014-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2014-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2014-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2014-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2014-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2014-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2014-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2014-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2015-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2015-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2015-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2015-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2015-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2015-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2015-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2015-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2016-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2016-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2016-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2016-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2016-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2016-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2016-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2016-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2017-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2017-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2017-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2017-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2017-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2017-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2017-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2017-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2018-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2018-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2018-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2018-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2018-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2018-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2018-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2018-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2019-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2019-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2019-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2019-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2019-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2019-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2019-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2019-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2020-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2020-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2020-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2020-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2020-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2020-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2020-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2020-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2021-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2021-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2021-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2021-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2021-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2021-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2021-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2021-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2022-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2022-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2022-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2022-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2022-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2022-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2022-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2022-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2023-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2023-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2023-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2023-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2023-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2023-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2023-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2023-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2024-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2024-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2024-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2024-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2024-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2024-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2024-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2024-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2025-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2025-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2025-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2025-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2025-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2025-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2025-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2025-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2026-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2026-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2026-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2026-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2026-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2026-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2026-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2026-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2027-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2027-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2027-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2027-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2027-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2027-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2027-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2027-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2028-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2028-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2028-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2028-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2028-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2028-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2028-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2028-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2029-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2029-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2029-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2029-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2029-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2029-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2029-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2029-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2030-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2030-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2030-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2030-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2030-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2030-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2030-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2030-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2031-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2031-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2031-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2031-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2031-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2031-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2031-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2031-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2032-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2032-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2032-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2032-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2032-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2032-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2032-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2032-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2033-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2033-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2033-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2033-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2033-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2033-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2033-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2033-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2034-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2034-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2034-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2034-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2034-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2034-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2034-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2034-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2035-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2035-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2035-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2035-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2035-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2035-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2035-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2035-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2036-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2036-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2036-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2036-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2036-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2036-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2036-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2036-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2037-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "03:00:00", "2037-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:59:59", "2037-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Anchorage").format("HH:mm:ss"), "01:00:00", "2037-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Anchorage").zone(), 540, "2037-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Anchorage").zone(), 480, "2037-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Anchorage").zone(), 480, "2037-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Anchorage").zone(), 540, "2037-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/anguilla.js b/tests/america/anguilla.js deleted file mode 100644 index 71439693..00000000 --- a/tests/america/anguilla.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Anguilla"] = { - - "1912" : function (t) { - t.equal(moment("1912-03-02T04:12:15+00:00").tz("America/Anguilla").format("HH:mm:ss"), "23:59:59", "1912-03-02T04:12:15+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-03-02T04:12:16+00:00").tz("America/Anguilla").format("HH:mm:ss"), "00:12:16", "1912-03-02T04:12:16+00:00 should be 00:12:16 AST"); - - t.equal(moment("1912-03-02T04:12:15+00:00").tz("America/Anguilla").zone(), 15136 / 60, "1912-03-02T04:12:15+00:00 should be 15136 / 60 minutes offset in LMT"); - t.equal(moment("1912-03-02T04:12:16+00:00").tz("America/Anguilla").zone(), 240, "1912-03-02T04:12:16+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/antigua.js b/tests/america/antigua.js deleted file mode 100644 index bb05ba67..00000000 --- a/tests/america/antigua.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["America/Antigua"] = { - - "1912" : function (t) { - t.equal(moment("1912-03-02T04:07:11+00:00").tz("America/Antigua").format("HH:mm:ss"), "23:59:59", "1912-03-02T04:07:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-03-02T04:07:12+00:00").tz("America/Antigua").format("HH:mm:ss"), "23:07:12", "1912-03-02T04:07:12+00:00 should be 23:07:12 EST"); - - t.equal(moment("1912-03-02T04:07:11+00:00").tz("America/Antigua").zone(), 14832 / 60, "1912-03-02T04:07:11+00:00 should be 14832 / 60 minutes offset in LMT"); - t.equal(moment("1912-03-02T04:07:12+00:00").tz("America/Antigua").zone(), 300, "1912-03-02T04:07:12+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-01-01T04:59:59+00:00").tz("America/Antigua").format("HH:mm:ss"), "23:59:59", "1951-01-01T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1951-01-01T05:00:00+00:00").tz("America/Antigua").format("HH:mm:ss"), "01:00:00", "1951-01-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1951-01-01T04:59:59+00:00").tz("America/Antigua").zone(), 300, "1951-01-01T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1951-01-01T05:00:00+00:00").tz("America/Antigua").zone(), 240, "1951-01-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/araguaina.js b/tests/america/araguaina.js deleted file mode 100644 index b55293b8..00000000 --- a/tests/america/araguaina.js +++ /dev/null @@ -1,740 +0,0 @@ -var moment = require("../../index"); - -exports["America/Araguaina"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T03:12:47+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1914-01-01T03:12:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T03:12:48+00:00").tz("America/Araguaina").format("HH:mm:ss"), "00:12:48", "1914-01-01T03:12:48+00:00 should be 00:12:48 BRT"); - - t.equal(moment("1914-01-01T03:12:47+00:00").tz("America/Araguaina").zone(), 11568 / 60, "1914-01-01T03:12:47+00:00 should be 11568 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T03:12:48+00:00").tz("America/Araguaina").zone(), 180, "1914-01-01T03:12:48+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "10:59:59", "1931-10-03T13:59:59+00:00 should be 10:59:59 BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "12:00:00", "1931-10-03T14:00:00+00:00 should be 12:00:00 BRST"); - - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Araguaina").zone(), 180, "1931-10-03T13:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Araguaina").zone(), 120, "1931-10-03T14:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1932-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1932-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1932-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1932-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1932-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1932-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1932-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1932-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1933-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1933-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1933-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1933-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1949-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1949-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1949-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1949-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "00:59:59", "1950-04-16T02:59:59+00:00 should be 00:59:59 BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "00:00:00", "1950-04-16T03:00:00+00:00 should be 00:00:00 BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1950-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1950-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Araguaina").zone(), 120, "1950-04-16T02:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Araguaina").zone(), 180, "1950-04-16T03:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1950-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1950-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1951-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1951-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1951-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1951-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1951-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1951-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1951-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1951-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1952-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1952-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1952-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1952-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1952-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1952-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1952-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1952-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1953-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1953-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1953-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1953-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1963-12-09T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1963-12-09T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1963-12-09T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1963-12-09T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1964-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1964-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1964-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1964-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1965-01-31T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1965-01-31T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1965-03-31T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1965-03-31T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1965-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1965-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1965-01-31T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1965-01-31T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1965-03-31T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1965-03-31T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1965-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1965-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1966-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1966-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1966-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1966-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1966-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1966-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1966-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1966-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1967-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1967-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1967-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1967-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1967-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1967-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1967-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1967-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1968-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1968-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1968-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1968-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1985-11-02T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1985-11-02T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1985-11-02T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1985-11-02T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1986-03-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1986-03-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1986-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1986-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1986-03-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1986-03-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1986-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1986-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1987-02-14T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1987-02-14T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1987-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1987-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1987-02-14T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1987-02-14T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1987-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1987-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1988-02-07T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1988-02-07T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1988-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1988-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1988-02-07T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1988-02-07T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1988-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1988-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1989-01-29T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1989-01-29T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1989-01-29T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1989-01-29T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1990-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1990-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1990-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1990-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-10-15T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1995-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1995-10-15T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1995-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1995-10-15T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1995-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1995-10-15T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1995-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-02-11T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1996-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1996-02-11T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1996-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1996-10-06T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1996-10-06T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1996-10-06T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1996-10-06T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1996-02-11T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1996-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1996-02-11T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1996-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1996-10-06T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1996-10-06T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1996-10-06T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1996-10-06T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-02-16T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1997-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1997-02-16T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1997-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1997-10-06T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1997-10-06T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1997-10-06T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1997-10-06T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1997-02-16T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1997-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1997-02-16T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1997-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1997-10-06T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1997-10-06T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1997-10-06T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1997-10-06T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-01T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1998-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1998-03-01T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1998-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1998-10-11T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1998-10-11T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1998-10-11T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1998-10-11T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1998-03-01T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1998-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1998-03-01T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1998-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1998-10-11T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1998-10-11T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1998-10-11T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1998-10-11T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-02-21T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1999-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1999-02-21T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "1999-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "1999-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1999-02-21T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "1999-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1999-02-21T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "1999-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "1999-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2000-02-27T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2000-02-27T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2000-10-08T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2000-10-08T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2000-02-27T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2000-02-27T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2000-10-08T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2000-10-08T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-02-18T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2001-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2001-02-18T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2001-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2001-10-14T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2001-10-14T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2001-02-18T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2001-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2001-02-18T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2001-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2001-10-14T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2001-10-14T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2002-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2002-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2002-11-03T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2002-11-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2002-11-03T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2002-11-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2002-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2002-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2002-11-03T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2002-11-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2002-11-03T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2002-11-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-02-16T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2003-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2003-02-16T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2003-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("2003-02-16T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2003-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2003-02-16T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2003-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-10-21T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2012-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2012-10-21T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2012-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2012-10-21T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2012-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2012-10-21T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2012-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-02-17T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2013-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2013-02-17T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2013-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2013-10-20T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2013-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2013-10-20T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2013-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2013-02-17T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2013-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2013-02-17T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2013-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2013-10-20T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2013-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2013-10-20T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2013-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-02-16T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2014-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2014-02-16T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2014-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2014-10-19T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2014-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2014-10-19T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2014-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2014-02-16T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2014-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2014-02-16T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2014-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2014-10-19T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2014-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2014-10-19T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2014-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-02-22T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2015-02-22T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2015-02-22T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2015-02-22T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2015-10-18T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2015-10-18T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2015-10-18T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2015-10-18T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2015-02-22T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2015-02-22T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2015-02-22T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2015-02-22T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2015-10-18T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2015-10-18T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2015-10-18T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2015-10-18T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-02-21T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2016-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2016-02-21T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2016-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2016-10-16T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2016-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2016-10-16T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2016-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2016-02-21T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2016-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2016-02-21T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2016-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2016-10-16T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2016-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2016-10-16T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2016-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-02-19T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2017-02-19T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2017-02-19T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2017-02-19T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2017-10-15T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2017-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2017-10-15T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2017-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2017-02-19T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2017-02-19T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2017-02-19T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2017-02-19T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2017-10-15T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2017-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2017-10-15T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2017-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-02-18T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2018-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2018-02-18T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2018-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2018-10-21T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2018-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2018-10-21T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2018-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2018-02-18T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2018-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2018-02-18T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2018-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2018-10-21T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2018-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2018-10-21T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2018-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-02-17T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2019-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2019-02-17T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2019-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2019-10-20T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2019-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2019-10-20T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2019-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2019-02-17T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2019-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2019-02-17T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2019-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2019-10-20T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2019-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2019-10-20T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2019-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-02-16T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2020-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2020-02-16T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2020-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2020-10-18T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2020-10-18T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2020-10-18T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2020-10-18T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2020-02-16T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2020-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2020-02-16T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2020-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2020-10-18T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2020-10-18T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2020-10-18T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2020-10-18T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-02-21T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2021-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2021-02-21T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2021-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2021-10-17T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2021-10-17T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2021-10-17T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2021-10-17T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2021-02-21T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2021-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2021-02-21T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2021-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2021-10-17T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2021-10-17T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2021-10-17T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2021-10-17T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-02-20T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2022-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2022-02-20T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2022-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2022-10-16T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2022-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2022-10-16T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2022-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2022-02-20T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2022-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2022-02-20T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2022-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2022-10-16T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2022-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2022-10-16T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2022-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-02-26T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2023-02-26T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2023-02-26T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2023-02-26T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2023-10-15T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2023-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2023-10-15T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2023-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2023-02-26T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2023-02-26T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2023-02-26T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2023-02-26T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2023-10-15T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2023-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2023-10-15T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2023-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-02-18T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2024-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2024-02-18T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2024-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2024-10-20T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2024-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2024-10-20T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2024-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2024-02-18T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2024-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2024-02-18T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2024-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2024-10-20T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2024-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2024-10-20T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2024-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-02-16T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2025-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2025-02-16T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2025-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2025-10-19T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2025-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2025-10-19T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2025-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2025-02-16T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2025-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2025-02-16T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2025-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2025-10-19T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2025-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2025-10-19T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2025-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-02-22T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2026-02-22T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2026-02-22T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2026-02-22T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2026-10-18T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2026-10-18T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2026-10-18T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2026-10-18T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2026-02-22T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2026-02-22T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2026-02-22T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2026-02-22T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2026-10-18T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2026-10-18T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2026-10-18T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2026-10-18T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-02-21T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2027-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2027-02-21T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2027-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2027-10-17T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2027-10-17T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2027-10-17T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2027-10-17T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2027-02-21T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2027-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2027-02-21T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2027-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2027-10-17T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2027-10-17T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2027-10-17T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2027-10-17T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-02-20T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2028-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2028-02-20T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2028-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2028-10-15T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2028-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2028-10-15T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2028-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2028-02-20T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2028-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2028-02-20T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2028-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2028-10-15T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2028-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2028-10-15T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2028-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-02-18T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2029-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2029-02-18T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2029-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2029-10-21T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2029-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2029-10-21T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2029-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2029-02-18T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2029-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2029-02-18T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2029-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2029-10-21T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2029-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2029-10-21T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2029-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-02-17T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2030-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2030-02-17T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2030-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2030-10-20T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2030-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2030-10-20T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2030-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2030-02-17T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2030-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2030-02-17T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2030-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2030-10-20T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2030-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2030-10-20T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2030-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-02-16T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2031-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2031-02-16T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2031-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2031-10-19T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2031-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2031-10-19T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2031-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2031-02-16T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2031-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2031-02-16T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2031-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2031-10-19T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2031-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2031-10-19T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2031-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-02-15T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2032-02-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2032-02-15T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2032-02-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2032-10-17T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2032-10-17T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2032-10-17T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2032-10-17T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2032-02-15T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2032-02-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2032-02-15T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2032-02-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2032-10-17T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2032-10-17T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2032-10-17T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2032-10-17T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-02-20T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2033-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2033-02-20T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2033-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2033-10-16T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2033-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2033-10-16T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2033-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2033-02-20T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2033-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2033-02-20T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2033-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2033-10-16T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2033-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2033-10-16T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2033-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-02-26T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2034-02-26T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2034-02-26T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2034-02-26T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2034-10-15T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2034-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2034-10-15T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2034-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2034-02-26T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2034-02-26T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2034-02-26T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2034-02-26T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2034-10-15T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2034-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2034-10-15T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2034-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-02-18T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2035-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2035-02-18T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2035-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2035-10-21T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2035-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2035-10-21T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2035-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2035-02-18T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2035-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2035-02-18T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2035-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2035-10-21T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2035-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2035-10-21T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2035-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-02-17T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2036-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2036-02-17T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2036-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2036-10-19T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2036-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2036-10-19T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2036-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2036-02-17T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2036-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2036-02-17T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2036-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2036-10-19T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2036-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2036-10-19T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2036-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-02-22T01:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2037-02-22T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2037-02-22T02:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:00:00", "2037-02-22T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2037-10-18T02:59:59+00:00").tz("America/Araguaina").format("HH:mm:ss"), "23:59:59", "2037-10-18T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2037-10-18T03:00:00+00:00").tz("America/Araguaina").format("HH:mm:ss"), "01:00:00", "2037-10-18T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2037-02-22T01:59:59+00:00").tz("America/Araguaina").zone(), 120, "2037-02-22T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2037-02-22T02:00:00+00:00").tz("America/Araguaina").zone(), 180, "2037-02-22T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2037-10-18T02:59:59+00:00").tz("America/Araguaina").zone(), 180, "2037-10-18T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2037-10-18T03:00:00+00:00").tz("America/Araguaina").zone(), 120, "2037-10-18T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/buenos_aires.js b/tests/america/argentina/buenos_aires.js deleted file mode 100644 index c9e2845c..00000000 --- a/tests/america/argentina/buenos_aires.js +++ /dev/null @@ -1,448 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/Buenos_Aires"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Buenos_Aires").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1991-03-03T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1991-03-03T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1991-10-20T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1991-10-20T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1991-03-03T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1991-03-03T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1991-10-20T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1991-10-20T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("2008-10-19T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "2008-10-19T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2008-10-19T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "01:00:00", "2008-10-19T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2008-10-19T02:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "2008-10-19T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2008-10-19T03:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "2008-10-19T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-15T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:59:59", "2009-03-15T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2009-03-15T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").format("HH:mm:ss"), "23:00:00", "2009-03-15T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2009-03-15T01:59:59+00:00").tz("America/Argentina/Buenos_Aires").zone(), 120, "2009-03-15T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2009-03-15T02:00:00+00:00").tz("America/Argentina/Buenos_Aires").zone(), 180, "2009-03-15T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/catamarca.js b/tests/america/argentina/catamarca.js deleted file mode 100644 index 1764fa50..00000000 --- a/tests/america/argentina/catamarca.js +++ /dev/null @@ -1,448 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/Catamarca"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Catamarca").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1991-03-03T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "22:00:00", "1991-03-03T02:00:00+00:00 should be 22:00:00 WART"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1991-10-20T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "02:00:00", "1991-10-20T04:00:00+00:00 should be 02:00:00 ARST"); - - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1991-03-03T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1991-03-03T02:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "1991-10-20T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1991-10-20T04:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-06-01T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "2004-06-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2004-06-01T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "2004-06-01T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2004-06-20T03:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "2004-06-20T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2004-06-20T04:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "2004-06-20T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("2004-06-01T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "2004-06-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2004-06-01T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 240, "2004-06-01T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-20T03:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 240, "2004-06-20T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-20T04:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "2004-06-20T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Catamarca").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Catamarca").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Catamarca").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/cordoba.js b/tests/america/argentina/cordoba.js deleted file mode 100644 index e0b0ff06..00000000 --- a/tests/america/argentina/cordoba.js +++ /dev/null @@ -1,448 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/Cordoba"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Cordoba").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1991-03-03T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "22:00:00", "1991-03-03T02:00:00+00:00 should be 22:00:00 WART"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1991-10-20T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "02:00:00", "1991-10-20T04:00:00+00:00 should be 02:00:00 ARST"); - - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1991-03-03T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1991-03-03T02:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 240, "1991-10-20T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1991-10-20T04:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("2008-10-19T02:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "2008-10-19T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2008-10-19T03:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "01:00:00", "2008-10-19T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2008-10-19T02:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 180, "2008-10-19T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2008-10-19T03:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 120, "2008-10-19T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-15T01:59:59+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:59:59", "2009-03-15T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2009-03-15T02:00:00+00:00").tz("America/Argentina/Cordoba").format("HH:mm:ss"), "23:00:00", "2009-03-15T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2009-03-15T01:59:59+00:00").tz("America/Argentina/Cordoba").zone(), 120, "2009-03-15T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2009-03-15T02:00:00+00:00").tz("America/Argentina/Cordoba").zone(), 180, "2009-03-15T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/jujuy.js b/tests/america/argentina/jujuy.js deleted file mode 100644 index af5a172a..00000000 --- a/tests/america/argentina/jujuy.js +++ /dev/null @@ -1,434 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/Jujuy"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Jujuy").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "22:00:00", "1990-03-04T02:00:00+00:00 should be 22:00:00 WART"); - t.equal(moment("1990-10-28T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1990-10-28T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1990-10-28T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1990-10-28T04:00:00+00:00 should be 01:00:00 WARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1990-03-04T02:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1990-10-28T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1990-10-28T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1990-10-28T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1990-10-28T04:00:00+00:00 should be 180 minutes offset in WARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-17T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1991-03-17T02:59:59+00:00 should be 23:59:59 WARST"); - t.equal(moment("1991-03-17T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1991-03-17T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("1991-10-06T03:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1991-10-06T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1991-10-06T04:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "02:00:00", "1991-10-06T04:00:00+00:00 should be 02:00:00 ARST"); - - t.equal(moment("1991-03-17T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1991-03-17T02:59:59+00:00 should be 180 minutes offset in WARST"); - t.equal(moment("1991-03-17T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1991-03-17T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-06T03:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 240, "1991-10-06T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-06T04:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1991-10-06T04:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Jujuy").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Jujuy").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Jujuy").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/la_rioja.js b/tests/america/argentina/la_rioja.js deleted file mode 100644 index 8ba67509..00000000 --- a/tests/america/argentina/la_rioja.js +++ /dev/null @@ -1,452 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/La_Rioja"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/La_Rioja").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-01T01:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1991-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1991-03-01T02:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "22:00:00", "1991-03-01T02:00:00+00:00 should be 22:00:00 WART"); - t.equal(moment("1991-05-07T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1991-05-07T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1991-05-07T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1991-05-07T04:00:00+00:00 should be 01:00:00 ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1991-10-20T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1991-10-20T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1991-03-01T01:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1991-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1991-03-01T02:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1991-03-01T02:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-05-07T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "1991-05-07T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-05-07T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1991-05-07T04:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1991-10-20T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1991-10-20T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-06-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "2004-06-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2004-06-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "2004-06-01T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2004-06-20T03:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "2004-06-20T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2004-06-20T04:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "2004-06-20T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("2004-06-01T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "2004-06-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2004-06-01T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "2004-06-01T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-20T03:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 240, "2004-06-20T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-20T04:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "2004-06-20T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/La_Rioja").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/La_Rioja").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/La_Rioja").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/mendoza.js b/tests/america/argentina/mendoza.js deleted file mode 100644 index 9e3af7a6..00000000 --- a/tests/america/argentina/mendoza.js +++ /dev/null @@ -1,448 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/Mendoza"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Mendoza").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "22:00:00", "1990-03-04T02:00:00+00:00 should be 22:00:00 WART"); - t.equal(moment("1990-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1990-10-15T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1990-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1990-10-15T04:00:00+00:00 should be 01:00:00 WARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1990-03-04T02:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1990-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1990-10-15T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1990-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1990-10-15T04:00:00+00:00 should be 180 minutes offset in WARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1991-03-01T02:59:59+00:00 should be 23:59:59 WARST"); - t.equal(moment("1991-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1991-03-01T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("1991-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1991-10-15T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1991-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "1991-10-15T04:00:00+00:00 should be 01:00:00 WARST"); - - t.equal(moment("1991-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1991-03-01T02:59:59+00:00 should be 180 minutes offset in WARST"); - t.equal(moment("1991-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1991-03-01T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-15T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1991-10-15T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-15T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1991-10-15T04:00:00+00:00 should be 180 minutes offset in WARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1992-03-01T02:59:59+00:00 should be 23:59:59 WARST"); - t.equal(moment("1992-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1992-03-01T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("1992-10-18T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1992-10-18T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1992-10-18T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "02:00:00", "1992-10-18T04:00:00+00:00 should be 02:00:00 ARST"); - - t.equal(moment("1992-03-01T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1992-03-01T02:59:59+00:00 should be 180 minutes offset in WARST"); - t.equal(moment("1992-03-01T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1992-03-01T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1992-10-18T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "1992-10-18T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1992-10-18T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 120, "1992-10-18T04:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-05-23T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "2004-05-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2004-05-23T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "2004-05-23T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2004-09-26T03:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "2004-09-26T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2004-09-26T04:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "2004-09-26T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("2004-05-23T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "2004-05-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2004-05-23T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 240, "2004-05-23T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-09-26T03:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 240, "2004-09-26T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-09-26T04:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "2004-09-26T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Mendoza").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Mendoza").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Mendoza").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/rio_gallegos.js b/tests/america/argentina/rio_gallegos.js deleted file mode 100644 index 35d55aa5..00000000 --- a/tests/america/argentina/rio_gallegos.js +++ /dev/null @@ -1,448 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/Rio_Gallegos"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1991-03-03T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1991-03-03T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1991-10-20T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1991-10-20T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1991-03-03T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1991-03-03T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1991-10-20T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1991-10-20T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-06-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "2004-06-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2004-06-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "2004-06-01T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2004-06-20T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "2004-06-20T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2004-06-20T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "2004-06-20T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("2004-06-01T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "2004-06-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2004-06-01T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "2004-06-01T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-20T03:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 240, "2004-06-20T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-20T04:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "2004-06-20T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Rio_Gallegos").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/salta.js b/tests/america/argentina/salta.js deleted file mode 100644 index 7c8e6797..00000000 --- a/tests/america/argentina/salta.js +++ /dev/null @@ -1,434 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/Salta"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Salta").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Salta").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Salta").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Salta").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Salta").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1991-03-03T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "22:00:00", "1991-03-03T02:00:00+00:00 should be 22:00:00 WART"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1991-10-20T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "02:00:00", "1991-10-20T04:00:00+00:00 should be 02:00:00 ARST"); - - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Salta").zone(), 120, "1991-03-03T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Salta").zone(), 240, "1991-03-03T02:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Argentina/Salta").zone(), 240, "1991-10-20T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Argentina/Salta").zone(), 120, "1991-10-20T04:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Salta").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Salta").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Salta").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Salta").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Salta").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Salta").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Salta").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/san_juan.js b/tests/america/argentina/san_juan.js deleted file mode 100644 index 52101b19..00000000 --- a/tests/america/argentina/san_juan.js +++ /dev/null @@ -1,452 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/San_Juan"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/San_Juan").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-01T01:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1991-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1991-03-01T02:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "22:00:00", "1991-03-01T02:00:00+00:00 should be 22:00:00 WART"); - t.equal(moment("1991-05-07T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1991-05-07T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1991-05-07T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1991-05-07T04:00:00+00:00 should be 01:00:00 ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1991-10-20T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1991-10-20T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1991-03-01T01:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1991-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1991-03-01T02:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1991-03-01T02:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-05-07T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "1991-05-07T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-05-07T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1991-05-07T04:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1991-10-20T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1991-10-20T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-05-31T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "2004-05-31T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2004-05-31T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "2004-05-31T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2004-07-25T03:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "2004-07-25T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2004-07-25T04:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "2004-07-25T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("2004-05-31T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "2004-05-31T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2004-05-31T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 240, "2004-05-31T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-07-25T03:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 240, "2004-07-25T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-07-25T04:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "2004-07-25T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/San_Juan").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/San_Juan").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/San_Juan").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/san_luis.js b/tests/america/argentina/san_luis.js deleted file mode 100644 index 231bad79..00000000 --- a/tests/america/argentina/san_luis.js +++ /dev/null @@ -1,446 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/San_Luis"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/San_Luis").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-14T01:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1990-03-14T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-14T02:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "22:00:00", "1990-03-14T02:00:00+00:00 should be 22:00:00 WART"); - t.equal(moment("1990-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1990-10-15T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1990-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1990-10-15T04:00:00+00:00 should be 01:00:00 WARST"); - - t.equal(moment("1990-03-14T01:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 120, "1990-03-14T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-14T02:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1990-03-14T02:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1990-10-15T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1990-10-15T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1990-10-15T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1990-10-15T04:00:00+00:00 should be 180 minutes offset in WARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1991-03-01T02:59:59+00:00 should be 23:59:59 WARST"); - t.equal(moment("1991-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "1991-03-01T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("1991-06-01T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1991-06-01T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1991-06-01T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "1991-06-01T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1991-03-01T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1991-03-01T02:59:59+00:00 should be 180 minutes offset in WARST"); - t.equal(moment("1991-03-01T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1991-03-01T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-06-01T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "1991-06-01T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-06-01T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1991-06-01T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 WARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in WARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 WARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in WARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-05-31T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "2004-05-31T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2004-05-31T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "2004-05-31T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2004-07-25T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "2004-07-25T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2004-07-25T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "2004-07-25T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("2004-05-31T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2004-05-31T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2004-05-31T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "2004-05-31T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-07-25T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "2004-07-25T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-07-25T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2004-07-25T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-01-21T01:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "2008-01-21T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-01-21T02:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "2008-01-21T02:00:00+00:00 should be 23:00:00 WARST"); - t.equal(moment("2008-03-09T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "2008-03-09T02:59:59+00:00 should be 23:59:59 WARST"); - t.equal(moment("2008-03-09T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "2008-03-09T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2008-10-12T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "2008-10-12T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2008-10-12T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "2008-10-12T04:00:00+00:00 should be 01:00:00 WARST"); - - t.equal(moment("2008-01-21T01:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 120, "2008-01-21T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-01-21T02:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2008-01-21T02:00:00+00:00 should be 180 minutes offset in WARST"); - t.equal(moment("2008-03-09T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2008-03-09T02:59:59+00:00 should be 180 minutes offset in WARST"); - t.equal(moment("2008-03-09T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "2008-03-09T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2008-10-12T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "2008-10-12T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2008-10-12T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2008-10-12T04:00:00+00:00 should be 180 minutes offset in WARST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T02:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "2009-03-08T02:59:59+00:00 should be 23:59:59 WARST"); - t.equal(moment("2009-03-08T03:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:00:00", "2009-03-08T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2009-10-11T03:59:59+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "23:59:59", "2009-10-11T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2009-10-11T04:00:00+00:00").tz("America/Argentina/San_Luis").format("HH:mm:ss"), "01:00:00", "2009-10-11T04:00:00+00:00 should be 01:00:00 WARST"); - - t.equal(moment("2009-03-08T02:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2009-03-08T02:59:59+00:00 should be 180 minutes offset in WARST"); - t.equal(moment("2009-03-08T03:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 240, "2009-03-08T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2009-10-11T03:59:59+00:00").tz("America/Argentina/San_Luis").zone(), 240, "2009-10-11T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2009-10-11T04:00:00+00:00").tz("America/Argentina/San_Luis").zone(), 180, "2009-10-11T04:00:00+00:00 should be 180 minutes offset in WARST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/tucuman.js b/tests/america/argentina/tucuman.js deleted file mode 100644 index 2ef67037..00000000 --- a/tests/america/argentina/tucuman.js +++ /dev/null @@ -1,462 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/Tucuman"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Tucuman").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1991-03-03T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "22:00:00", "1991-03-03T02:00:00+00:00 should be 22:00:00 WART"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1991-10-20T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "02:00:00", "1991-10-20T04:00:00+00:00 should be 02:00:00 ARST"); - - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1991-03-03T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1991-03-03T02:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "1991-10-20T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1991-10-20T04:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-06-01T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "2004-06-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2004-06-01T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "2004-06-01T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2004-06-13T03:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "2004-06-13T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2004-06-13T04:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "2004-06-13T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("2004-06-01T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "2004-06-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2004-06-01T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 240, "2004-06-01T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-13T03:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 240, "2004-06-13T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-13T04:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "2004-06-13T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("2008-10-19T02:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "2008-10-19T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2008-10-19T03:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "01:00:00", "2008-10-19T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2008-10-19T02:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 180, "2008-10-19T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2008-10-19T03:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 120, "2008-10-19T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-15T01:59:59+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:59:59", "2009-03-15T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2009-03-15T02:00:00+00:00").tz("America/Argentina/Tucuman").format("HH:mm:ss"), "23:00:00", "2009-03-15T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2009-03-15T01:59:59+00:00").tz("America/Argentina/Tucuman").zone(), 120, "2009-03-15T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2009-03-15T02:00:00+00:00").tz("America/Argentina/Tucuman").zone(), 180, "2009-03-15T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/argentina/ushuaia.js b/tests/america/argentina/ushuaia.js deleted file mode 100644 index 1e7b0988..00000000 --- a/tests/america/argentina/ushuaia.js +++ /dev/null @@ -1,448 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Argentina/Ushuaia"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1920-05-01T04:16:47+00:00 should be 23:59:59 CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "00:16:48", "1920-05-01T04:16:48+00:00 should be 00:16:48 ART"); - - t.equal(moment("1920-05-01T04:16:47+00:00").tz("America/Argentina/Ushuaia").zone(), 15408 / 60, "1920-05-01T04:16:47+00:00 should be 15408 / 60 minutes offset in CMT"); - t.equal(moment("1920-05-01T04:16:48+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1920-05-01T04:16:48+00:00 should be 240 minutes offset in ART"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1930-12-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1930-12-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1930-12-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1930-12-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1930-12-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1930-12-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1931-04-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1931-04-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1931-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1931-04-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1931-04-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1931-04-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1931-04-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1931-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1931-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1931-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1932-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1932-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1932-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1932-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1932-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1932-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1932-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1932-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1932-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1932-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1932-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1933-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1933-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1933-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1933-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1933-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1933-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1933-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1933-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1933-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1933-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1933-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1934-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1934-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1934-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1934-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1934-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1934-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1934-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1934-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1934-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1934-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1934-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1935-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1935-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1935-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1935-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1935-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1935-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1935-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1935-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1935-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1935-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1935-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1936-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1936-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1936-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1936-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1936-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1936-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1936-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1936-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1936-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1936-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1937-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1937-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1937-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1937-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1937-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1937-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1937-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1937-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1937-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1937-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1937-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1938-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1938-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1938-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1938-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1938-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1938-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1938-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1938-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1938-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1938-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1938-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1939-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1939-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1939-11-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1939-11-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1939-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1939-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1939-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1939-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1939-11-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1939-11-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1939-11-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1940-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1940-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1940-07-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1940-07-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1940-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1940-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1940-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1940-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1940-07-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1940-07-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1940-07-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1941-06-15T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1941-06-15T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1941-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1941-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1941-06-15T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1941-06-15T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1941-06-15T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1941-06-15T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1941-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1941-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1941-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1943-08-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1943-08-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1943-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1943-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1943-08-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1943-08-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1943-08-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1943-08-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1943-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1943-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1943-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1946-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1946-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1946-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1946-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1946-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1946-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1946-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1946-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1946-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1946-10-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1946-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1963-10-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1963-10-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1963-12-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1963-12-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1963-10-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1963-10-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1963-10-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1963-10-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1963-12-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1963-12-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1963-12-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1964-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1964-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1964-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1964-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1964-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1988-12-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1988-12-01T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1988-12-01T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1988-12-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1988-12-01T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1988-12-01T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1989-03-05T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1989-03-05T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1989-03-05T01:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1989-03-05T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1989-03-05T02:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1989-03-05T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1991-03-03T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1991-03-03T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1991-10-20T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1991-10-20T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1991-03-03T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1991-03-03T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1991-10-20T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1991-10-20T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1993-03-07T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "1993-03-07T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1993-03-07T01:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "1993-03-07T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1993-03-07T02:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1993-03-07T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "00:00:00", "1999-10-03T03:00:00+00:00 should be 00:00:00 ARST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "1999-10-03T03:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "2000-03-03T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "00:00:00", "2000-03-03T03:00:00+00:00 should be 00:00:00 ART"); - - t.equal(moment("2000-03-03T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "2000-03-03T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("2000-03-03T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "2000-03-03T03:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-05-30T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "2004-05-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2004-05-30T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "2004-05-30T03:00:00+00:00 should be 23:00:00 WART"); - t.equal(moment("2004-06-20T03:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "2004-06-20T03:59:59+00:00 should be 23:59:59 WART"); - t.equal(moment("2004-06-20T04:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "2004-06-20T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("2004-05-30T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "2004-05-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2004-05-30T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "2004-05-30T03:00:00+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-20T03:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 240, "2004-06-20T03:59:59+00:00 should be 240 minutes offset in WART"); - t.equal(moment("2004-06-20T04:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "2004-06-20T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "2007-12-30T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "01:00:00", "2007-12-30T03:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("2007-12-30T02:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "2007-12-30T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("2007-12-30T03:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "2007-12-30T03:00:00+00:00 should be 120 minutes offset in ARST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:59:59", "2008-03-16T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Ushuaia").format("HH:mm:ss"), "23:00:00", "2008-03-16T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("2008-03-16T01:59:59+00:00").tz("America/Argentina/Ushuaia").zone(), 120, "2008-03-16T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("2008-03-16T02:00:00+00:00").tz("America/Argentina/Ushuaia").zone(), 180, "2008-03-16T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/aruba.js b/tests/america/aruba.js deleted file mode 100644 index 18d25548..00000000 --- a/tests/america/aruba.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["America/Aruba"] = { - - "1912" : function (t) { - t.equal(moment("1912-02-12T04:40:23+00:00").tz("America/Aruba").format("HH:mm:ss"), "23:59:59", "1912-02-12T04:40:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-02-12T04:40:24+00:00").tz("America/Aruba").format("HH:mm:ss"), "00:10:24", "1912-02-12T04:40:24+00:00 should be 00:10:24 ANT"); - - t.equal(moment("1912-02-12T04:40:23+00:00").tz("America/Aruba").zone(), 16824 / 60, "1912-02-12T04:40:23+00:00 should be 16824 / 60 minutes offset in LMT"); - t.equal(moment("1912-02-12T04:40:24+00:00").tz("America/Aruba").zone(), 270, "1912-02-12T04:40:24+00:00 should be 270 minutes offset in ANT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-01T04:29:59+00:00").tz("America/Aruba").format("HH:mm:ss"), "23:59:59", "1965-01-01T04:29:59+00:00 should be 23:59:59 ANT"); - t.equal(moment("1965-01-01T04:30:00+00:00").tz("America/Aruba").format("HH:mm:ss"), "00:30:00", "1965-01-01T04:30:00+00:00 should be 00:30:00 AST"); - - t.equal(moment("1965-01-01T04:29:59+00:00").tz("America/Aruba").zone(), 270, "1965-01-01T04:29:59+00:00 should be 270 minutes offset in ANT"); - t.equal(moment("1965-01-01T04:30:00+00:00").tz("America/Aruba").zone(), 240, "1965-01-01T04:30:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/asuncion.js b/tests/america/asuncion.js deleted file mode 100644 index 03cad252..00000000 --- a/tests/america/asuncion.js +++ /dev/null @@ -1,912 +0,0 @@ -var moment = require("../../index"); - -exports["America/Asuncion"] = { - - "1931" : function (t) { - t.equal(moment("1931-10-10T03:50:39+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1931-10-10T03:50:39+00:00 should be 23:59:59 AMT"); - t.equal(moment("1931-10-10T03:50:40+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:50:40", "1931-10-10T03:50:40+00:00 should be 23:50:40 PYT"); - - t.equal(moment("1931-10-10T03:50:39+00:00").tz("America/Asuncion").zone(), 13840 / 60, "1931-10-10T03:50:39+00:00 should be 13840 / 60 minutes offset in AMT"); - t.equal(moment("1931-10-10T03:50:40+00:00").tz("America/Asuncion").zone(), 240, "1931-10-10T03:50:40+00:00 should be 240 minutes offset in PYT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1972-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1972-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1972-10-01T04:00:00+00:00 should be 01:00:00 PYT"); - - t.equal(moment("1972-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1972-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1972-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1972-10-01T04:00:00+00:00 should be 180 minutes offset in PYT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1974-04-01T02:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1974-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1974-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - - t.equal(moment("1974-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1974-04-01T02:59:59+00:00 should be 180 minutes offset in PYT"); - t.equal(moment("1974-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1974-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1975-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1975-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1975-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1975-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1975-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1975-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1975-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1976-03-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1976-03-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1976-03-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1976-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1976-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1976-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1976-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1976-03-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1976-03-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1976-03-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1976-03-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1976-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1976-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1976-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1976-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1977-03-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1977-03-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1977-03-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1977-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1977-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1977-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1977-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1977-03-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1977-03-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1977-03-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1977-03-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1977-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1977-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1977-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1977-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1978-03-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1978-03-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1978-03-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1978-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1978-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1978-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1978-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1978-03-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1978-03-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1978-03-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1978-03-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1978-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1978-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1978-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1978-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1979-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1979-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1979-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1979-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1979-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1979-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1979-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1979-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1979-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1979-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1979-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1979-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1979-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1979-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1979-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1980-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1980-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1980-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1980-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1980-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1980-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1980-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1980-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1980-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1980-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1980-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1980-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1980-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1980-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1980-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1981-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1981-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1981-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1981-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1981-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1981-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1981-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1981-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1981-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1981-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1981-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1981-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1981-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1981-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1981-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1982-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1982-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1982-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1982-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1982-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1982-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1982-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1982-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1982-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1982-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1982-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1982-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1982-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1982-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1982-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1983-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1983-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1983-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1983-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1983-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1983-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1983-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1983-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1983-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1983-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1983-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1983-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1983-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1983-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1983-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1984-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1984-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1984-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1984-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1984-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1984-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1984-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1984-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1984-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1984-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1984-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1984-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1984-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1984-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1984-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1985-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1985-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1985-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1985-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1985-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1985-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1985-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1985-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1985-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1985-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1985-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1985-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1985-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1985-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1985-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1986-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1986-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1986-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1986-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1986-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1986-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1986-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1986-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1986-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1986-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1986-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1986-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1986-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1986-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1986-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1987-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1987-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1987-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1987-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1987-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1987-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1987-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1987-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1987-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1987-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1987-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1987-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1987-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1987-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1987-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1988-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1988-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1988-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1988-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1988-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1988-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1988-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1988-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1988-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1988-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1988-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1988-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1988-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1988-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1988-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1989-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1989-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1989-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1989-10-22T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1989-10-22T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1989-10-22T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1989-10-22T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1989-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1989-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1989-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1989-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1989-10-22T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1989-10-22T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1989-10-22T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1989-10-22T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1990-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1990-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1990-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1990-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1990-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1990-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1990-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1990-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1990-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1990-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1990-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1990-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1990-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1990-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1990-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1991-04-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1991-04-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1991-04-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1991-10-06T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1991-10-06T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1991-10-06T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1991-10-06T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1991-04-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1991-04-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1991-04-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1991-04-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1991-10-06T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1991-10-06T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1991-10-06T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1991-10-06T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1992-03-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1992-03-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1992-03-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1992-10-05T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1992-10-05T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1992-10-05T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1992-10-05T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1992-03-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1992-03-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1992-03-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1992-03-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1992-10-05T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1992-10-05T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1992-10-05T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1992-10-05T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-31T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1993-03-31T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1993-03-31T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1993-03-31T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1993-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1993-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1993-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1993-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1993-03-31T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1993-03-31T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1993-03-31T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1993-03-31T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1993-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1993-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1993-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1993-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-02-27T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1994-02-27T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1994-02-27T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1994-02-27T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1994-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1994-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1994-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1994-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1994-02-27T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1994-02-27T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1994-02-27T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1994-02-27T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1994-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1994-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1994-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1994-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-02-26T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1995-02-26T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1995-02-26T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1995-02-26T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1995-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1995-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1995-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1995-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1995-02-26T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1995-02-26T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1995-02-26T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1995-02-26T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1995-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1995-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1995-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1995-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1996-03-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1996-03-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1996-03-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1996-10-06T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1996-10-06T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1996-10-06T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1996-10-06T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1996-03-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1996-03-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1996-03-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1996-03-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1996-10-06T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1996-10-06T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1996-10-06T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1996-10-06T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-02-23T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1997-02-23T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1997-02-23T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1997-02-23T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1997-10-05T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1997-10-05T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1997-10-05T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1997-10-05T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1997-02-23T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1997-02-23T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1997-02-23T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1997-02-23T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1997-10-05T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1997-10-05T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1997-10-05T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1997-10-05T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-01T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1998-03-01T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1998-03-01T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1998-03-01T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1998-10-04T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1998-10-04T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1998-10-04T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1998-10-04T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1998-03-01T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1998-03-01T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1998-03-01T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1998-03-01T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1998-10-04T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1998-10-04T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1998-10-04T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1998-10-04T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-07T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1999-03-07T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("1999-03-07T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "1999-03-07T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("1999-10-03T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "1999-10-03T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("1999-10-03T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "1999-10-03T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("1999-03-07T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "1999-03-07T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("1999-03-07T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "1999-03-07T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1999-10-03T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "1999-10-03T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("1999-10-03T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "1999-10-03T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-05T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2000-03-05T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2000-03-05T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2000-03-05T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2000-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2000-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2000-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2000-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2000-03-05T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2000-03-05T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2000-03-05T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2000-03-05T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2000-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2000-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2000-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2000-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-04T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2001-03-04T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2001-03-04T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2001-03-04T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2001-10-07T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2001-10-07T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2001-10-07T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2001-10-07T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2001-03-04T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2001-03-04T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2001-03-04T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2001-03-04T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2001-10-07T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2001-10-07T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2001-10-07T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2001-10-07T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2002-04-07T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2002-04-07T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2002-04-07T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2002-09-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2002-09-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2002-09-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2002-09-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2002-04-07T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2002-04-07T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2002-04-07T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2002-04-07T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2002-09-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2002-09-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2002-09-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2002-09-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2003-04-06T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2003-04-06T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2003-04-06T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2003-09-07T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2003-09-07T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2003-09-07T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2003-09-07T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2003-04-06T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2003-04-06T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2003-04-06T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2003-04-06T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2003-09-07T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2003-09-07T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2003-09-07T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2003-09-07T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2004-04-04T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2004-04-04T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2004-04-04T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2004-10-17T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2004-10-17T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2004-10-17T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2004-10-17T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2004-04-04T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2004-04-04T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2004-04-04T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2004-04-04T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2004-10-17T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2004-10-17T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2004-10-17T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2004-10-17T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-13T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2005-03-13T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2005-03-13T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2005-03-13T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2005-10-16T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2005-10-16T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2005-10-16T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2005-10-16T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2005-03-13T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2005-03-13T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2005-03-13T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2005-03-13T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2005-10-16T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2005-10-16T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2005-10-16T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2005-10-16T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-12T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2006-03-12T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2006-03-12T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2006-03-12T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2006-10-15T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2006-10-15T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2006-10-15T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2006-10-15T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2006-03-12T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2006-03-12T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2006-03-12T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2006-03-12T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2006-10-15T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2006-10-15T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2006-10-15T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2006-10-15T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2007-03-11T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2007-03-11T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2007-03-11T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2007-10-21T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2007-10-21T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2007-10-21T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2007-10-21T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2007-03-11T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2007-03-11T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2007-03-11T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2007-03-11T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2007-10-21T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2007-10-21T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2007-10-21T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2007-10-21T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2008-03-09T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2008-03-09T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2008-03-09T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2008-10-19T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2008-10-19T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2008-10-19T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2008-10-19T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2008-03-09T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2008-03-09T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2008-03-09T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2008-03-09T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2008-10-19T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2008-10-19T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2008-10-19T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2008-10-19T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2009-03-08T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2009-03-08T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2009-03-08T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2009-10-18T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2009-10-18T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2009-10-18T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2009-10-18T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2009-03-08T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2009-03-08T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2009-03-08T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2009-03-08T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2009-10-18T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2009-10-18T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2009-10-18T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2009-10-18T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-11T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2010-04-11T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2010-04-11T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2010-04-11T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2010-10-03T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2010-10-03T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2010-10-03T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2010-10-03T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2010-04-11T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2010-04-11T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2010-04-11T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2010-04-11T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2010-10-03T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2010-10-03T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2010-10-03T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2010-10-03T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-10T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2011-04-10T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2011-04-10T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2011-04-10T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2011-10-02T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2011-10-02T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2011-10-02T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2011-10-02T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2011-04-10T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2011-04-10T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2011-04-10T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2011-04-10T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2011-10-02T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2011-10-02T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2011-10-02T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2011-10-02T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-08T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2012-04-08T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2012-04-08T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2012-04-08T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2012-10-07T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2012-10-07T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2012-10-07T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2012-10-07T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2012-04-08T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2012-04-08T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2012-04-08T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2012-04-08T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2012-10-07T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2012-10-07T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2012-10-07T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2012-10-07T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-24T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2013-03-24T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2013-03-24T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2013-03-24T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2013-10-06T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2013-10-06T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2013-10-06T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2013-10-06T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2013-03-24T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2013-03-24T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2013-03-24T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2013-03-24T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2013-10-06T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2013-10-06T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2013-10-06T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2013-10-06T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-23T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2014-03-23T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2014-03-23T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2014-03-23T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2014-10-05T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2014-10-05T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2014-10-05T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2014-10-05T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2014-03-23T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2014-03-23T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2014-03-23T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2014-03-23T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2014-10-05T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2014-10-05T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2014-10-05T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2014-10-05T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-22T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2015-03-22T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2015-03-22T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2015-03-22T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2015-10-04T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2015-10-04T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2015-10-04T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2015-10-04T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2015-03-22T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2015-03-22T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2015-03-22T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2015-03-22T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2015-10-04T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2015-10-04T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2015-10-04T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2015-10-04T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2016-03-27T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2016-03-27T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2016-03-27T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2016-10-02T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2016-10-02T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2016-10-02T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2016-10-02T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2016-03-27T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2016-03-27T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2016-03-27T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2016-03-27T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2016-10-02T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2016-10-02T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2016-10-02T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2016-10-02T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2017-03-26T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2017-03-26T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2017-03-26T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2017-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2017-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2017-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2017-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2017-03-26T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2017-03-26T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2017-03-26T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2017-03-26T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2017-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2017-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2017-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2017-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2018-03-25T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2018-03-25T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2018-03-25T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2018-10-07T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2018-10-07T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2018-10-07T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2018-10-07T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2018-03-25T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2018-03-25T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2018-03-25T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2018-03-25T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2018-10-07T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2018-10-07T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2018-10-07T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2018-10-07T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-24T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2019-03-24T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2019-03-24T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2019-03-24T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2019-10-06T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2019-10-06T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2019-10-06T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2019-10-06T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2019-03-24T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2019-03-24T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2019-03-24T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2019-03-24T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2019-10-06T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2019-10-06T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2019-10-06T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2019-10-06T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-22T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2020-03-22T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2020-03-22T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2020-03-22T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2020-10-04T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2020-10-04T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2020-10-04T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2020-10-04T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2020-03-22T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2020-03-22T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2020-03-22T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2020-03-22T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2020-10-04T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2020-10-04T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2020-10-04T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2020-10-04T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2021-03-28T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2021-03-28T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2021-03-28T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2021-10-03T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2021-10-03T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2021-10-03T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2021-10-03T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2021-03-28T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2021-03-28T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2021-03-28T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2021-03-28T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2021-10-03T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2021-10-03T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2021-10-03T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2021-10-03T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2022-03-27T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2022-03-27T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2022-03-27T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2022-10-02T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2022-10-02T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2022-10-02T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2022-10-02T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2022-03-27T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2022-03-27T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2022-03-27T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2022-03-27T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2022-10-02T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2022-10-02T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2022-10-02T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2022-10-02T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2023-03-26T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2023-03-26T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2023-03-26T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2023-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2023-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2023-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2023-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2023-03-26T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2023-03-26T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2023-03-26T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2023-03-26T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2023-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2023-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2023-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2023-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-24T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2024-03-24T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2024-03-24T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2024-03-24T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2024-10-06T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2024-10-06T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2024-10-06T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2024-10-06T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2024-03-24T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2024-03-24T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2024-03-24T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2024-03-24T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2024-10-06T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2024-10-06T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2024-10-06T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2024-10-06T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-23T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2025-03-23T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2025-03-23T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2025-03-23T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2025-10-05T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2025-10-05T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2025-10-05T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2025-10-05T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2025-03-23T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2025-03-23T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2025-03-23T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2025-03-23T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2025-10-05T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2025-10-05T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2025-10-05T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2025-10-05T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-22T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2026-03-22T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2026-03-22T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2026-03-22T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2026-10-04T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2026-10-04T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2026-10-04T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2026-10-04T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2026-03-22T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2026-03-22T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2026-03-22T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2026-03-22T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2026-10-04T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2026-10-04T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2026-10-04T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2026-10-04T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2027-03-28T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2027-03-28T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2027-03-28T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2027-10-03T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2027-10-03T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2027-10-03T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2027-10-03T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2027-03-28T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2027-03-28T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2027-03-28T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2027-03-28T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2027-10-03T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2027-10-03T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2027-10-03T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2027-10-03T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2028-03-26T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2028-03-26T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2028-03-26T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2028-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2028-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2028-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2028-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2028-03-26T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2028-03-26T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2028-03-26T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2028-03-26T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2028-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2028-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2028-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2028-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2029-03-25T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2029-03-25T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2029-03-25T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2029-10-07T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2029-10-07T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2029-10-07T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2029-10-07T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2029-03-25T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2029-03-25T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2029-03-25T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2029-03-25T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2029-10-07T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2029-10-07T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2029-10-07T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2029-10-07T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-24T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2030-03-24T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2030-03-24T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2030-03-24T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2030-10-06T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2030-10-06T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2030-10-06T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2030-10-06T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2030-03-24T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2030-03-24T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2030-03-24T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2030-03-24T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2030-10-06T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2030-10-06T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2030-10-06T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2030-10-06T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-23T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2031-03-23T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2031-03-23T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2031-03-23T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2031-10-05T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2031-10-05T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2031-10-05T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2031-10-05T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2031-03-23T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2031-03-23T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2031-03-23T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2031-03-23T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2031-10-05T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2031-10-05T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2031-10-05T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2031-10-05T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2032-03-28T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2032-03-28T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2032-03-28T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2032-10-03T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2032-10-03T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2032-10-03T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2032-10-03T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2032-03-28T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2032-03-28T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2032-03-28T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2032-03-28T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2032-10-03T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2032-10-03T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2032-10-03T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2032-10-03T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2033-03-27T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2033-03-27T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2033-03-27T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2033-10-02T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2033-10-02T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2033-10-02T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2033-10-02T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2033-03-27T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2033-03-27T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2033-03-27T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2033-03-27T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2033-10-02T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2033-10-02T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2033-10-02T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2033-10-02T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2034-03-26T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2034-03-26T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2034-03-26T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2034-10-01T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2034-10-01T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2034-10-01T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2034-10-01T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2034-03-26T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2034-03-26T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2034-03-26T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2034-03-26T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2034-10-01T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2034-10-01T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2034-10-01T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2034-10-01T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2035-03-25T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2035-03-25T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2035-03-25T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2035-10-07T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2035-10-07T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2035-10-07T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2035-10-07T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2035-03-25T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2035-03-25T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2035-03-25T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2035-03-25T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2035-10-07T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2035-10-07T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2035-10-07T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2035-10-07T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-23T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2036-03-23T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2036-03-23T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2036-03-23T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2036-10-05T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2036-10-05T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2036-10-05T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2036-10-05T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2036-03-23T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2036-03-23T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2036-03-23T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2036-03-23T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2036-10-05T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2036-10-05T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2036-10-05T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2036-10-05T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-22T02:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2037-03-22T02:59:59+00:00 should be 23:59:59 PYST"); - t.equal(moment("2037-03-22T03:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:00:00", "2037-03-22T03:00:00+00:00 should be 23:00:00 PYT"); - t.equal(moment("2037-10-04T03:59:59+00:00").tz("America/Asuncion").format("HH:mm:ss"), "23:59:59", "2037-10-04T03:59:59+00:00 should be 23:59:59 PYT"); - t.equal(moment("2037-10-04T04:00:00+00:00").tz("America/Asuncion").format("HH:mm:ss"), "01:00:00", "2037-10-04T04:00:00+00:00 should be 01:00:00 PYST"); - - t.equal(moment("2037-03-22T02:59:59+00:00").tz("America/Asuncion").zone(), 180, "2037-03-22T02:59:59+00:00 should be 180 minutes offset in PYST"); - t.equal(moment("2037-03-22T03:00:00+00:00").tz("America/Asuncion").zone(), 240, "2037-03-22T03:00:00+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2037-10-04T03:59:59+00:00").tz("America/Asuncion").zone(), 240, "2037-10-04T03:59:59+00:00 should be 240 minutes offset in PYT"); - t.equal(moment("2037-10-04T04:00:00+00:00").tz("America/Asuncion").zone(), 180, "2037-10-04T04:00:00+00:00 should be 180 minutes offset in PYST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/atikokan.js b/tests/america/atikokan.js deleted file mode 100644 index 0b4cefbd..00000000 --- a/tests/america/atikokan.js +++ /dev/null @@ -1,52 +0,0 @@ -var moment = require("../../index"); - -exports["America/Atikokan"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T07:59:59+00:00").tz("America/Atikokan").format("HH:mm:ss"), "01:59:59", "1918-04-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-04-14T08:00:00+00:00").tz("America/Atikokan").format("HH:mm:ss"), "03:00:00", "1918-04-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Atikokan").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Atikokan").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-04-14T07:59:59+00:00").tz("America/Atikokan").zone(), 360, "1918-04-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-04-14T08:00:00+00:00").tz("America/Atikokan").zone(), 300, "1918-04-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Atikokan").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Atikokan").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-09-29T05:59:59+00:00").tz("America/Atikokan").format("HH:mm:ss"), "23:59:59", "1940-09-29T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1940-09-29T06:00:00+00:00").tz("America/Atikokan").format("HH:mm:ss"), "01:00:00", "1940-09-29T06:00:00+00:00 should be 01:00:00 CDT"); - - t.equal(moment("1940-09-29T05:59:59+00:00").tz("America/Atikokan").zone(), 360, "1940-09-29T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1940-09-29T06:00:00+00:00").tz("America/Atikokan").zone(), 300, "1940-09-29T06:00:00+00:00 should be 300 minutes offset in CDT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Atikokan").format("HH:mm:ss"), "02:59:59", "1942-02-09T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Atikokan").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Atikokan").zone(), 300, "1942-02-09T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Atikokan").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Atikokan").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Atikokan").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Atikokan").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Atikokan").format("HH:mm:ss"), "02:00:00", "1945-09-30T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Atikokan").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Atikokan").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Atikokan").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Atikokan").zone(), 300, "1945-09-30T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/bahia.js b/tests/america/bahia.js deleted file mode 100644 index 4a036cf8..00000000 --- a/tests/america/bahia.js +++ /dev/null @@ -1,464 +0,0 @@ -var moment = require("../../index"); - -exports["America/Bahia"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T02:34:03+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1914-01-01T02:34:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T02:34:04+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:34:04", "1914-01-01T02:34:04+00:00 should be 23:34:04 BRT"); - - t.equal(moment("1914-01-01T02:34:03+00:00").tz("America/Bahia").zone(), 9244 / 60, "1914-01-01T02:34:03+00:00 should be 9244 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T02:34:04+00:00").tz("America/Bahia").zone(), 180, "1914-01-01T02:34:04+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "10:59:59", "1931-10-03T13:59:59+00:00 should be 10:59:59 BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "12:00:00", "1931-10-03T14:00:00+00:00 should be 12:00:00 BRST"); - - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Bahia").zone(), 180, "1931-10-03T13:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Bahia").zone(), 120, "1931-10-03T14:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1932-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1932-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1932-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1932-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1932-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1932-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1932-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1932-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1933-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1933-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1933-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1933-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1949-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1949-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1949-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1949-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "00:59:59", "1950-04-16T02:59:59+00:00 should be 00:59:59 BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "00:00:00", "1950-04-16T03:00:00+00:00 should be 00:00:00 BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1950-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1950-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Bahia").zone(), 120, "1950-04-16T02:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Bahia").zone(), 180, "1950-04-16T03:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1950-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1950-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1951-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1951-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1951-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1951-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1951-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1951-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1951-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1951-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1952-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1952-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1952-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1952-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1952-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1952-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1952-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1952-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1953-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1953-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1953-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1953-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1963-12-09T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1963-12-09T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1963-12-09T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1963-12-09T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1964-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1964-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1964-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1964-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1965-01-31T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1965-01-31T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1965-03-31T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1965-03-31T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1965-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1965-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1965-01-31T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1965-01-31T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1965-03-31T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1965-03-31T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1965-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1965-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1966-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1966-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1966-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1966-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1966-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1966-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1966-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1966-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1967-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1967-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1967-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1967-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1967-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1967-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1967-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1967-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1968-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1968-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1968-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1968-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1985-11-02T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1985-11-02T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1985-11-02T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1985-11-02T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1986-03-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1986-03-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1986-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1986-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1986-03-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1986-03-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1986-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1986-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1987-02-14T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1987-02-14T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1987-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1987-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1987-02-14T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1987-02-14T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1987-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1987-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1988-02-07T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1988-02-07T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1988-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1988-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1988-02-07T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1988-02-07T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1988-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1988-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1989-01-29T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1989-01-29T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1989-01-29T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1989-01-29T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1990-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1990-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1990-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1990-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-02-17T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1991-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1991-02-17T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1991-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1991-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1991-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1991-02-17T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1991-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1991-02-17T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1991-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1991-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1991-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-09T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1992-02-09T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1992-02-09T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1992-02-09T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1992-10-25T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1992-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1992-10-25T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1992-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1992-02-09T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1992-02-09T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1992-02-09T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1992-02-09T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1992-10-25T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1992-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1992-10-25T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1992-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-01-31T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1993-01-31T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1993-01-31T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1993-01-31T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1993-10-17T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1993-10-17T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1993-10-17T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1993-10-17T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1993-01-31T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1993-01-31T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1993-01-31T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1993-01-31T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1993-10-17T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1993-10-17T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1993-10-17T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1993-10-17T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-02-20T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1994-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1994-02-20T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1994-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1994-10-16T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1994-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1994-10-16T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1994-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1994-02-20T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1994-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1994-02-20T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1994-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1994-10-16T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1994-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1994-10-16T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1994-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-02-19T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1995-02-19T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1995-02-19T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1995-02-19T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1995-10-15T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1995-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1995-10-15T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1995-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1995-02-19T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1995-02-19T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1995-02-19T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1995-02-19T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1995-10-15T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1995-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1995-10-15T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1995-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-02-11T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1996-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1996-02-11T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1996-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1996-10-06T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1996-10-06T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1996-10-06T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1996-10-06T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1996-02-11T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1996-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1996-02-11T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1996-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1996-10-06T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1996-10-06T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1996-10-06T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1996-10-06T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-02-16T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1997-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1997-02-16T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1997-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1997-10-06T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1997-10-06T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1997-10-06T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1997-10-06T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1997-02-16T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1997-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1997-02-16T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1997-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1997-10-06T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1997-10-06T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1997-10-06T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1997-10-06T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-01T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1998-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1998-03-01T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1998-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1998-10-11T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1998-10-11T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1998-10-11T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1998-10-11T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1998-03-01T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1998-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1998-03-01T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1998-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1998-10-11T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1998-10-11T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1998-10-11T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1998-10-11T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-02-21T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1999-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1999-02-21T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "1999-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "1999-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1999-02-21T01:59:59+00:00").tz("America/Bahia").zone(), 120, "1999-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1999-02-21T02:00:00+00:00").tz("America/Bahia").zone(), 180, "1999-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Bahia").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Bahia").zone(), 120, "1999-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "2000-02-27T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "2000-02-27T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "2000-10-08T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "2000-10-08T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Bahia").zone(), 120, "2000-02-27T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Bahia").zone(), 180, "2000-02-27T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Bahia").zone(), 180, "2000-10-08T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Bahia").zone(), 120, "2000-10-08T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-02-18T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "2001-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2001-02-18T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "2001-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "2001-10-14T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "2001-10-14T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2001-02-18T01:59:59+00:00").tz("America/Bahia").zone(), 120, "2001-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2001-02-18T02:00:00+00:00").tz("America/Bahia").zone(), 180, "2001-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Bahia").zone(), 180, "2001-10-14T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Bahia").zone(), 120, "2001-10-14T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "2002-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "2002-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2002-11-03T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "2002-11-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2002-11-03T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "2002-11-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Bahia").zone(), 120, "2002-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Bahia").zone(), 180, "2002-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2002-11-03T02:59:59+00:00").tz("America/Bahia").zone(), 180, "2002-11-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2002-11-03T03:00:00+00:00").tz("America/Bahia").zone(), 120, "2002-11-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-02-16T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "2003-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2003-02-16T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "2003-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("2003-02-16T01:59:59+00:00").tz("America/Bahia").zone(), 120, "2003-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2003-02-16T02:00:00+00:00").tz("America/Bahia").zone(), 180, "2003-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-10-16T02:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "2011-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2011-10-16T03:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "01:00:00", "2011-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2011-10-16T02:59:59+00:00").tz("America/Bahia").zone(), 180, "2011-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2011-10-16T03:00:00+00:00").tz("America/Bahia").zone(), 120, "2011-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-02-26T01:59:59+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:59:59", "2012-02-26T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2012-02-26T02:00:00+00:00").tz("America/Bahia").format("HH:mm:ss"), "23:00:00", "2012-02-26T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("2012-02-26T01:59:59+00:00").tz("America/Bahia").zone(), 120, "2012-02-26T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2012-02-26T02:00:00+00:00").tz("America/Bahia").zone(), 180, "2012-02-26T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/bahia_banderas.js b/tests/america/bahia_banderas.js deleted file mode 100644 index 4748c51f..00000000 --- a/tests/america/bahia_banderas.js +++ /dev/null @@ -1,676 +0,0 @@ -var moment = require("../../index"); - -exports["America/Bahia_Banderas"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:58:59", "1922-01-01T06:59:59+00:00 should be 23:58:59 LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "00:00:00", "1922-01-01T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 421, "1922-01-01T06:59:59+00:00 should be 421 minutes offset in LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "1922-01-01T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "22:59:59", "1927-06-11T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "00:00:00", "1927-06-11T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "1927-06-11T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "1927-06-11T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:59:59", "1930-11-15T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:00:00", "1930-11-15T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "1930-11-15T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "1930-11-15T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "22:59:59", "1931-05-02T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "00:00:00", "1931-05-02T06:00:00+00:00 should be 00:00:00 CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:59:59", "1931-10-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:00:00", "1931-10-01T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "1931-05-02T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "1931-05-02T06:00:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "1931-10-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "1931-10-01T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:59:59", "1932-04-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "1932-04-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "1932-04-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "1932-04-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-24T05:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:59:59", "1942-04-24T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1942-04-24T06:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:00:00", "1942-04-24T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1942-04-24T05:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "1942-04-24T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-04-24T06:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "1942-04-24T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:59:59", "1949-01-14T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:00:00", "1949-01-14T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "1949-01-14T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 480, "1949-01-14T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-01-01T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "23:59:59", "1970-01-01T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1970-01-01T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "1970-01-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1970-01-01T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 480, "1970-01-01T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-01-01T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "1970-01-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-05-06T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2001-05-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-05-06T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2001-05-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-09-30T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2001-09-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-09-30T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2001-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-05-06T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2001-05-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-05-06T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2001-05-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-09-30T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2001-09-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-09-30T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2001-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2007-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-04-01T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2007-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-10-28T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2007-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-10-28T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2007-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-04-01T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2007-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-04-01T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2007-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-10-28T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2007-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-10-28T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2007-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2008-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-04-06T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2008-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-10-26T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2008-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-10-26T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2008-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-04-06T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2008-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-04-06T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2008-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-10-26T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2008-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-10-26T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2008-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2009-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-04-05T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2009-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-10-25T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2009-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-10-25T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2009-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-04-05T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2009-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-04-05T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2009-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-10-25T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2009-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-10-25T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 420, "2009-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T08:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2010-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-04-04T09:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "04:00:00", "2010-04-04T09:00:00+00:00 should be 04:00:00 CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2010-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2010-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-04-04T08:59:59+00:00").tz("America/Bahia_Banderas").zone(), 420, "2010-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-04-04T09:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2010-04-04T09:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2010-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2010-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2011-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2011-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2011-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2011-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2011-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2011-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2011-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2011-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2012-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2012-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2012-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2012-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2012-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2012-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2012-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2012-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2013-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2013-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2013-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2013-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2013-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2013-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2013-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2013-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2014-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2014-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2014-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2014-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2014-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2014-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2014-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2014-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2015-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2015-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2015-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2015-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2015-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2015-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2015-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2015-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2016-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2016-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2016-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2016-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2016-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2016-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2016-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2016-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2017-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2017-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2017-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2017-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2017-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2017-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2017-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2017-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2018-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2018-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2018-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2018-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2018-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2018-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2018-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2018-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2019-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2019-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2019-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2019-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2019-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2019-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2019-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2019-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2020-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2020-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2020-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2020-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2020-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2020-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2020-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2020-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2021-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2021-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2021-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2021-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2021-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2021-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2021-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2021-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2022-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2022-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2022-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2022-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2022-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2022-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2022-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2022-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2023-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2023-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2023-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2023-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2023-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2023-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2023-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2023-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2024-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2024-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2024-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2024-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2024-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2024-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2024-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2024-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2025-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2025-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2025-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2025-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2025-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2025-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2025-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2025-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2026-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2026-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2026-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2026-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2026-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2026-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2026-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2026-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2027-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2027-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2027-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2027-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2027-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2027-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2027-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2027-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2028-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2028-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2028-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2028-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2028-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2028-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2028-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2028-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2029-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2029-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2029-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2029-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2029-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2029-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2029-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2029-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2030-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2030-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2030-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2030-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2030-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2030-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2030-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2030-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2031-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2031-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2031-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2031-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2031-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2031-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2031-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2031-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2032-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2032-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2032-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2032-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2032-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2032-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2032-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2032-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2033-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2033-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2033-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2033-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2033-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2033-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2033-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2033-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2034-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2034-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2034-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2034-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2034-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2034-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2034-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2034-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2035-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2035-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2035-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2035-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2035-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2035-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2035-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2035-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2036-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2036-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2036-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2036-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2036-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2036-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2036-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2036-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2037-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "03:00:00", "2037-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:59:59", "2037-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Bahia_Banderas").format("HH:mm:ss"), "01:00:00", "2037-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Bahia_Banderas").zone(), 360, "2037-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Bahia_Banderas").zone(), 300, "2037-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Bahia_Banderas").zone(), 300, "2037-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Bahia_Banderas").zone(), 360, "2037-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/barbados.js b/tests/america/barbados.js deleted file mode 100644 index b3398239..00000000 --- a/tests/america/barbados.js +++ /dev/null @@ -1,80 +0,0 @@ -var moment = require("../../index"); - -exports["America/Barbados"] = { - - "1924" : function (t) { - t.equal(moment("1924-01-01T03:58:28+00:00").tz("America/Barbados").format("HH:mm:ss"), "23:59:59", "1924-01-01T03:58:28+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-01-01T03:58:29+00:00").tz("America/Barbados").format("HH:mm:ss"), "00:00:00", "1924-01-01T03:58:29+00:00 should be 00:00:00 BMT"); - - t.equal(moment("1924-01-01T03:58:28+00:00").tz("America/Barbados").zone(), 14309 / 60, "1924-01-01T03:58:28+00:00 should be 14309 / 60 minutes offset in LMT"); - t.equal(moment("1924-01-01T03:58:29+00:00").tz("America/Barbados").zone(), 14309 / 60, "1924-01-01T03:58:29+00:00 should be 14309 / 60 minutes offset in BMT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-01-01T03:58:28+00:00").tz("America/Barbados").format("HH:mm:ss"), "23:59:59", "1932-01-01T03:58:28+00:00 should be 23:59:59 BMT"); - t.equal(moment("1932-01-01T03:58:29+00:00").tz("America/Barbados").format("HH:mm:ss"), "23:58:29", "1932-01-01T03:58:29+00:00 should be 23:58:29 AST"); - - t.equal(moment("1932-01-01T03:58:28+00:00").tz("America/Barbados").zone(), 14309 / 60, "1932-01-01T03:58:28+00:00 should be 14309 / 60 minutes offset in BMT"); - t.equal(moment("1932-01-01T03:58:29+00:00").tz("America/Barbados").zone(), 240, "1932-01-01T03:58:29+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-06-12T05:59:59+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:59:59", "1977-06-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1977-06-12T06:00:00+00:00").tz("America/Barbados").format("HH:mm:ss"), "03:00:00", "1977-06-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1977-10-02T04:59:59+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:59:59", "1977-10-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1977-10-02T05:00:00+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:00:00", "1977-10-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1977-06-12T05:59:59+00:00").tz("America/Barbados").zone(), 240, "1977-06-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1977-06-12T06:00:00+00:00").tz("America/Barbados").zone(), 180, "1977-06-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-02T04:59:59+00:00").tz("America/Barbados").zone(), 180, "1977-10-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-02T05:00:00+00:00").tz("America/Barbados").zone(), 240, "1977-10-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-16T05:59:59+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:59:59", "1978-04-16T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1978-04-16T06:00:00+00:00").tz("America/Barbados").format("HH:mm:ss"), "03:00:00", "1978-04-16T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1978-10-01T04:59:59+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:59:59", "1978-10-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1978-10-01T05:00:00+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:00:00", "1978-10-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1978-04-16T05:59:59+00:00").tz("America/Barbados").zone(), 240, "1978-04-16T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1978-04-16T06:00:00+00:00").tz("America/Barbados").zone(), 180, "1978-04-16T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-01T04:59:59+00:00").tz("America/Barbados").zone(), 180, "1978-10-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-01T05:00:00+00:00").tz("America/Barbados").zone(), 240, "1978-10-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-15T05:59:59+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:59:59", "1979-04-15T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1979-04-15T06:00:00+00:00").tz("America/Barbados").format("HH:mm:ss"), "03:00:00", "1979-04-15T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1979-09-30T04:59:59+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:59:59", "1979-09-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1979-09-30T05:00:00+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:00:00", "1979-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1979-04-15T05:59:59+00:00").tz("America/Barbados").zone(), 240, "1979-04-15T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1979-04-15T06:00:00+00:00").tz("America/Barbados").zone(), 180, "1979-04-15T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-09-30T04:59:59+00:00").tz("America/Barbados").zone(), 180, "1979-09-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-09-30T05:00:00+00:00").tz("America/Barbados").zone(), 240, "1979-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-20T05:59:59+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:59:59", "1980-04-20T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1980-04-20T06:00:00+00:00").tz("America/Barbados").format("HH:mm:ss"), "03:00:00", "1980-04-20T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1980-09-25T04:59:59+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:59:59", "1980-09-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1980-09-25T05:00:00+00:00").tz("America/Barbados").format("HH:mm:ss"), "01:00:00", "1980-09-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1980-04-20T05:59:59+00:00").tz("America/Barbados").zone(), 240, "1980-04-20T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1980-04-20T06:00:00+00:00").tz("America/Barbados").zone(), 180, "1980-04-20T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-09-25T04:59:59+00:00").tz("America/Barbados").zone(), 180, "1980-09-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-09-25T05:00:00+00:00").tz("America/Barbados").zone(), 240, "1980-09-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/belem.js b/tests/america/belem.js deleted file mode 100644 index 5dfaa324..00000000 --- a/tests/america/belem.js +++ /dev/null @@ -1,234 +0,0 @@ -var moment = require("../../index"); - -exports["America/Belem"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T03:13:55+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1914-01-01T03:13:55+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T03:13:56+00:00").tz("America/Belem").format("HH:mm:ss"), "00:13:56", "1914-01-01T03:13:56+00:00 should be 00:13:56 BRT"); - - t.equal(moment("1914-01-01T03:13:55+00:00").tz("America/Belem").zone(), 11636 / 60, "1914-01-01T03:13:55+00:00 should be 11636 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T03:13:56+00:00").tz("America/Belem").zone(), 180, "1914-01-01T03:13:56+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "10:59:59", "1931-10-03T13:59:59+00:00 should be 10:59:59 BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "12:00:00", "1931-10-03T14:00:00+00:00 should be 12:00:00 BRST"); - - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Belem").zone(), 180, "1931-10-03T13:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Belem").zone(), 120, "1931-10-03T14:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1932-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1932-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1932-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1932-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Belem").zone(), 120, "1932-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Belem").zone(), 180, "1932-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Belem").zone(), 180, "1932-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Belem").zone(), 120, "1932-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1933-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1933-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Belem").zone(), 120, "1933-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Belem").zone(), 180, "1933-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1949-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1949-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Belem").zone(), 180, "1949-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Belem").zone(), 120, "1949-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "00:59:59", "1950-04-16T02:59:59+00:00 should be 00:59:59 BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "00:00:00", "1950-04-16T03:00:00+00:00 should be 00:00:00 BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1950-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1950-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Belem").zone(), 120, "1950-04-16T02:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Belem").zone(), 180, "1950-04-16T03:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Belem").zone(), 180, "1950-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Belem").zone(), 120, "1950-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1951-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1951-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1951-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1951-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Belem").zone(), 120, "1951-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Belem").zone(), 180, "1951-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Belem").zone(), 180, "1951-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Belem").zone(), 120, "1951-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1952-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1952-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1952-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1952-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Belem").zone(), 120, "1952-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Belem").zone(), 180, "1952-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Belem").zone(), 180, "1952-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Belem").zone(), 120, "1952-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1953-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1953-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Belem").zone(), 120, "1953-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Belem").zone(), 180, "1953-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1963-12-09T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1963-12-09T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Belem").zone(), 180, "1963-12-09T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Belem").zone(), 120, "1963-12-09T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1964-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1964-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Belem").zone(), 120, "1964-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Belem").zone(), 180, "1964-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1965-01-31T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1965-01-31T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1965-03-31T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1965-03-31T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1965-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1965-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Belem").zone(), 180, "1965-01-31T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Belem").zone(), 120, "1965-01-31T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Belem").zone(), 120, "1965-03-31T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Belem").zone(), 180, "1965-03-31T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Belem").zone(), 180, "1965-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Belem").zone(), 120, "1965-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1966-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1966-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1966-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1966-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Belem").zone(), 120, "1966-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Belem").zone(), 180, "1966-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Belem").zone(), 180, "1966-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Belem").zone(), 120, "1966-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1967-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1967-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1967-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1967-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Belem").zone(), 120, "1967-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Belem").zone(), 180, "1967-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Belem").zone(), 180, "1967-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Belem").zone(), 120, "1967-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1968-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1968-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Belem").zone(), 120, "1968-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Belem").zone(), 180, "1968-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1985-11-02T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1985-11-02T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Belem").zone(), 180, "1985-11-02T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Belem").zone(), 120, "1985-11-02T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1986-03-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1986-03-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1986-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1986-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Belem").zone(), 120, "1986-03-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Belem").zone(), 180, "1986-03-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Belem").zone(), 180, "1986-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Belem").zone(), 120, "1986-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1987-02-14T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1987-02-14T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1987-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "01:00:00", "1987-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Belem").zone(), 120, "1987-02-14T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Belem").zone(), 180, "1987-02-14T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Belem").zone(), 180, "1987-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Belem").zone(), 120, "1987-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Belem").format("HH:mm:ss"), "23:59:59", "1988-02-07T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Belem").format("HH:mm:ss"), "23:00:00", "1988-02-07T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Belem").zone(), 120, "1988-02-07T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Belem").zone(), 180, "1988-02-07T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/belize.js b/tests/america/belize.js deleted file mode 100644 index babcb1da..00000000 --- a/tests/america/belize.js +++ /dev/null @@ -1,410 +0,0 @@ -var moment = require("../../index"); - -exports["America/Belize"] = { - - "1912" : function (t) { - t.equal(moment("1912-04-01T05:52:47+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1912-04-01T05:52:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-04-01T05:52:48+00:00").tz("America/Belize").format("HH:mm:ss"), "23:52:48", "1912-04-01T05:52:48+00:00 should be 23:52:48 CST"); - - t.equal(moment("1912-04-01T05:52:47+00:00").tz("America/Belize").zone(), 21168 / 60, "1912-04-01T05:52:47+00:00 should be 21168 / 60 minutes offset in LMT"); - t.equal(moment("1912-04-01T05:52:48+00:00").tz("America/Belize").zone(), 360, "1912-04-01T05:52:48+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-10-06T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1918-10-06T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1918-10-06T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1918-10-06T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1918-10-06T05:59:59+00:00").tz("America/Belize").zone(), 360, "1918-10-06T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-10-06T06:00:00+00:00").tz("America/Belize").zone(), 330, "1918-10-06T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-02-09T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1919-02-09T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1919-02-09T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1919-02-09T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1919-10-05T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1919-10-05T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1919-10-05T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1919-10-05T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1919-02-09T05:29:59+00:00").tz("America/Belize").zone(), 330, "1919-02-09T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1919-02-09T05:30:00+00:00").tz("America/Belize").zone(), 360, "1919-02-09T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-10-05T05:59:59+00:00").tz("America/Belize").zone(), 360, "1919-10-05T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-10-05T06:00:00+00:00").tz("America/Belize").zone(), 330, "1919-10-05T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-02-15T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1920-02-15T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1920-02-15T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1920-02-15T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1920-10-03T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1920-10-03T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1920-10-03T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1920-10-03T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1920-02-15T05:29:59+00:00").tz("America/Belize").zone(), 330, "1920-02-15T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1920-02-15T05:30:00+00:00").tz("America/Belize").zone(), 360, "1920-02-15T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1920-10-03T05:59:59+00:00").tz("America/Belize").zone(), 360, "1920-10-03T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1920-10-03T06:00:00+00:00").tz("America/Belize").zone(), 330, "1920-10-03T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-02-13T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1921-02-13T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1921-02-13T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1921-02-13T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1921-10-02T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1921-10-02T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1921-10-02T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1921-10-02T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1921-02-13T05:29:59+00:00").tz("America/Belize").zone(), 330, "1921-02-13T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1921-02-13T05:30:00+00:00").tz("America/Belize").zone(), 360, "1921-02-13T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1921-10-02T05:59:59+00:00").tz("America/Belize").zone(), 360, "1921-10-02T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1921-10-02T06:00:00+00:00").tz("America/Belize").zone(), 330, "1921-10-02T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-02-12T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1922-02-12T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1922-02-12T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1922-02-12T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1922-10-08T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1922-10-08T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1922-10-08T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1922-10-08T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1922-02-12T05:29:59+00:00").tz("America/Belize").zone(), 330, "1922-02-12T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1922-02-12T05:30:00+00:00").tz("America/Belize").zone(), 360, "1922-02-12T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1922-10-08T05:59:59+00:00").tz("America/Belize").zone(), 360, "1922-10-08T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1922-10-08T06:00:00+00:00").tz("America/Belize").zone(), 330, "1922-10-08T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-02-11T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1923-02-11T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1923-02-11T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1923-02-11T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1923-10-07T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1923-10-07T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1923-10-07T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1923-10-07T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1923-02-11T05:29:59+00:00").tz("America/Belize").zone(), 330, "1923-02-11T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1923-02-11T05:30:00+00:00").tz("America/Belize").zone(), 360, "1923-02-11T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1923-10-07T05:59:59+00:00").tz("America/Belize").zone(), 360, "1923-10-07T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1923-10-07T06:00:00+00:00").tz("America/Belize").zone(), 330, "1923-10-07T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-02-10T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1924-02-10T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1924-02-10T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1924-02-10T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1924-10-05T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1924-10-05T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1924-10-05T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1924-10-05T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1924-02-10T05:29:59+00:00").tz("America/Belize").zone(), 330, "1924-02-10T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1924-02-10T05:30:00+00:00").tz("America/Belize").zone(), 360, "1924-02-10T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1924-10-05T05:59:59+00:00").tz("America/Belize").zone(), 360, "1924-10-05T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1924-10-05T06:00:00+00:00").tz("America/Belize").zone(), 330, "1924-10-05T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-02-15T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1925-02-15T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1925-02-15T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1925-02-15T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1925-10-04T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1925-10-04T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1925-10-04T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1925-10-04T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1925-02-15T05:29:59+00:00").tz("America/Belize").zone(), 330, "1925-02-15T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1925-02-15T05:30:00+00:00").tz("America/Belize").zone(), 360, "1925-02-15T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1925-10-04T05:59:59+00:00").tz("America/Belize").zone(), 360, "1925-10-04T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1925-10-04T06:00:00+00:00").tz("America/Belize").zone(), 330, "1925-10-04T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-02-14T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1926-02-14T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1926-02-14T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1926-02-14T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1926-10-03T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1926-10-03T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1926-10-03T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1926-10-03T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1926-02-14T05:29:59+00:00").tz("America/Belize").zone(), 330, "1926-02-14T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1926-02-14T05:30:00+00:00").tz("America/Belize").zone(), 360, "1926-02-14T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1926-10-03T05:59:59+00:00").tz("America/Belize").zone(), 360, "1926-10-03T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1926-10-03T06:00:00+00:00").tz("America/Belize").zone(), 330, "1926-10-03T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-02-13T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1927-02-13T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1927-02-13T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1927-02-13T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1927-10-02T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1927-10-02T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1927-10-02T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1927-10-02T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1927-02-13T05:29:59+00:00").tz("America/Belize").zone(), 330, "1927-02-13T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1927-02-13T05:30:00+00:00").tz("America/Belize").zone(), 360, "1927-02-13T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1927-10-02T05:59:59+00:00").tz("America/Belize").zone(), 360, "1927-10-02T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1927-10-02T06:00:00+00:00").tz("America/Belize").zone(), 330, "1927-10-02T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-02-12T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1928-02-12T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1928-02-12T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1928-02-12T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1928-10-07T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1928-10-07T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1928-10-07T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1928-10-07T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1928-02-12T05:29:59+00:00").tz("America/Belize").zone(), 330, "1928-02-12T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1928-02-12T05:30:00+00:00").tz("America/Belize").zone(), 360, "1928-02-12T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1928-10-07T05:59:59+00:00").tz("America/Belize").zone(), 360, "1928-10-07T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1928-10-07T06:00:00+00:00").tz("America/Belize").zone(), 330, "1928-10-07T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-02-10T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1929-02-10T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1929-02-10T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1929-02-10T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1929-10-06T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1929-10-06T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1929-10-06T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1929-10-06T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1929-02-10T05:29:59+00:00").tz("America/Belize").zone(), 330, "1929-02-10T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1929-02-10T05:30:00+00:00").tz("America/Belize").zone(), 360, "1929-02-10T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1929-10-06T05:59:59+00:00").tz("America/Belize").zone(), 360, "1929-10-06T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1929-10-06T06:00:00+00:00").tz("America/Belize").zone(), 330, "1929-10-06T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-02-09T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1930-02-09T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1930-02-09T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1930-02-09T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1930-10-05T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1930-10-05T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1930-10-05T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1930-10-05T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1930-02-09T05:29:59+00:00").tz("America/Belize").zone(), 330, "1930-02-09T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1930-02-09T05:30:00+00:00").tz("America/Belize").zone(), 360, "1930-02-09T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1930-10-05T05:59:59+00:00").tz("America/Belize").zone(), 360, "1930-10-05T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1930-10-05T06:00:00+00:00").tz("America/Belize").zone(), 330, "1930-10-05T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-02-15T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1931-02-15T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1931-02-15T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1931-02-15T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1931-10-04T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1931-10-04T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1931-10-04T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1931-10-04T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1931-02-15T05:29:59+00:00").tz("America/Belize").zone(), 330, "1931-02-15T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1931-02-15T05:30:00+00:00").tz("America/Belize").zone(), 360, "1931-02-15T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-04T05:59:59+00:00").tz("America/Belize").zone(), 360, "1931-10-04T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-04T06:00:00+00:00").tz("America/Belize").zone(), 330, "1931-10-04T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-02-14T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1932-02-14T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1932-02-14T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1932-02-14T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1932-10-02T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1932-10-02T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1932-10-02T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1932-10-02T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1932-02-14T05:29:59+00:00").tz("America/Belize").zone(), 330, "1932-02-14T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1932-02-14T05:30:00+00:00").tz("America/Belize").zone(), 360, "1932-02-14T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1932-10-02T05:59:59+00:00").tz("America/Belize").zone(), 360, "1932-10-02T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1932-10-02T06:00:00+00:00").tz("America/Belize").zone(), 330, "1932-10-02T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-02-12T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1933-02-12T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1933-02-12T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1933-02-12T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1933-10-08T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1933-10-08T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1933-10-08T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1933-10-08T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1933-02-12T05:29:59+00:00").tz("America/Belize").zone(), 330, "1933-02-12T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1933-02-12T05:30:00+00:00").tz("America/Belize").zone(), 360, "1933-02-12T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1933-10-08T05:59:59+00:00").tz("America/Belize").zone(), 360, "1933-10-08T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1933-10-08T06:00:00+00:00").tz("America/Belize").zone(), 330, "1933-10-08T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-02-11T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1934-02-11T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1934-02-11T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1934-02-11T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1934-10-07T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1934-10-07T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1934-10-07T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1934-10-07T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1934-02-11T05:29:59+00:00").tz("America/Belize").zone(), 330, "1934-02-11T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1934-02-11T05:30:00+00:00").tz("America/Belize").zone(), 360, "1934-02-11T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1934-10-07T05:59:59+00:00").tz("America/Belize").zone(), 360, "1934-10-07T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1934-10-07T06:00:00+00:00").tz("America/Belize").zone(), 330, "1934-10-07T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-02-10T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1935-02-10T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1935-02-10T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1935-02-10T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1935-10-06T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1935-10-06T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1935-10-06T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1935-10-06T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1935-02-10T05:29:59+00:00").tz("America/Belize").zone(), 330, "1935-02-10T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1935-02-10T05:30:00+00:00").tz("America/Belize").zone(), 360, "1935-02-10T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1935-10-06T05:59:59+00:00").tz("America/Belize").zone(), 360, "1935-10-06T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1935-10-06T06:00:00+00:00").tz("America/Belize").zone(), 330, "1935-10-06T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-02-09T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1936-02-09T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1936-02-09T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1936-02-09T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1936-10-04T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1936-10-04T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1936-10-04T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1936-10-04T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1936-02-09T05:29:59+00:00").tz("America/Belize").zone(), 330, "1936-02-09T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1936-02-09T05:30:00+00:00").tz("America/Belize").zone(), 360, "1936-02-09T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1936-10-04T05:59:59+00:00").tz("America/Belize").zone(), 360, "1936-10-04T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1936-10-04T06:00:00+00:00").tz("America/Belize").zone(), 330, "1936-10-04T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-02-14T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1937-02-14T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1937-02-14T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1937-02-14T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1937-10-03T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1937-10-03T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1937-10-03T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1937-10-03T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1937-02-14T05:29:59+00:00").tz("America/Belize").zone(), 330, "1937-02-14T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1937-02-14T05:30:00+00:00").tz("America/Belize").zone(), 360, "1937-02-14T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1937-10-03T05:59:59+00:00").tz("America/Belize").zone(), 360, "1937-10-03T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1937-10-03T06:00:00+00:00").tz("America/Belize").zone(), 330, "1937-10-03T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-02-13T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1938-02-13T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1938-02-13T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1938-02-13T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1938-10-02T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1938-10-02T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1938-10-02T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1938-10-02T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1938-02-13T05:29:59+00:00").tz("America/Belize").zone(), 330, "1938-02-13T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1938-02-13T05:30:00+00:00").tz("America/Belize").zone(), 360, "1938-02-13T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1938-10-02T05:59:59+00:00").tz("America/Belize").zone(), 360, "1938-10-02T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1938-10-02T06:00:00+00:00").tz("America/Belize").zone(), 330, "1938-10-02T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-02-12T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1939-02-12T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1939-02-12T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1939-02-12T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1939-10-08T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1939-10-08T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1939-10-08T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1939-10-08T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1939-02-12T05:29:59+00:00").tz("America/Belize").zone(), 330, "1939-02-12T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1939-02-12T05:30:00+00:00").tz("America/Belize").zone(), 360, "1939-02-12T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1939-10-08T05:59:59+00:00").tz("America/Belize").zone(), 360, "1939-10-08T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1939-10-08T06:00:00+00:00").tz("America/Belize").zone(), 330, "1939-10-08T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-11T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1940-02-11T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1940-02-11T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1940-02-11T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1940-10-06T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1940-10-06T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1940-10-06T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1940-10-06T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1940-02-11T05:29:59+00:00").tz("America/Belize").zone(), 330, "1940-02-11T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1940-02-11T05:30:00+00:00").tz("America/Belize").zone(), 360, "1940-02-11T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1940-10-06T05:59:59+00:00").tz("America/Belize").zone(), 360, "1940-10-06T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1940-10-06T06:00:00+00:00").tz("America/Belize").zone(), 330, "1940-10-06T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-02-09T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1941-02-09T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1941-02-09T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1941-02-09T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1941-10-05T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1941-10-05T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1941-10-05T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1941-10-05T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1941-02-09T05:29:59+00:00").tz("America/Belize").zone(), 330, "1941-02-09T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1941-02-09T05:30:00+00:00").tz("America/Belize").zone(), 360, "1941-02-09T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1941-10-05T05:59:59+00:00").tz("America/Belize").zone(), 360, "1941-10-05T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1941-10-05T06:00:00+00:00").tz("America/Belize").zone(), 330, "1941-10-05T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-15T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1942-02-15T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1942-02-15T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1942-02-15T05:30:00+00:00 should be 23:30:00 CST"); - t.equal(moment("1942-10-04T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1942-10-04T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1942-10-04T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "00:30:00", "1942-10-04T06:00:00+00:00 should be 00:30:00 CHDT"); - - t.equal(moment("1942-02-15T05:29:59+00:00").tz("America/Belize").zone(), 330, "1942-02-15T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1942-02-15T05:30:00+00:00").tz("America/Belize").zone(), 360, "1942-02-15T05:30:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-10-04T05:59:59+00:00").tz("America/Belize").zone(), 360, "1942-10-04T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-10-04T06:00:00+00:00").tz("America/Belize").zone(), 330, "1942-10-04T06:00:00+00:00 should be 330 minutes offset in CHDT"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-02-14T05:29:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1943-02-14T05:29:59+00:00 should be 23:59:59 CHDT"); - t.equal(moment("1943-02-14T05:30:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:30:00", "1943-02-14T05:30:00+00:00 should be 23:30:00 CST"); - - t.equal(moment("1943-02-14T05:29:59+00:00").tz("America/Belize").zone(), 330, "1943-02-14T05:29:59+00:00 should be 330 minutes offset in CHDT"); - t.equal(moment("1943-02-14T05:30:00+00:00").tz("America/Belize").zone(), 360, "1943-02-14T05:30:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-12-05T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1973-12-05T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1973-12-05T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "01:00:00", "1973-12-05T06:00:00+00:00 should be 01:00:00 CDT"); - - t.equal(moment("1973-12-05T05:59:59+00:00").tz("America/Belize").zone(), 360, "1973-12-05T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1973-12-05T06:00:00+00:00").tz("America/Belize").zone(), 300, "1973-12-05T06:00:00+00:00 should be 300 minutes offset in CDT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-02-09T04:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1974-02-09T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1974-02-09T05:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:00:00", "1974-02-09T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1974-02-09T04:59:59+00:00").tz("America/Belize").zone(), 300, "1974-02-09T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-02-09T05:00:00+00:00").tz("America/Belize").zone(), 360, "1974-02-09T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-12-18T05:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1982-12-18T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1982-12-18T06:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "01:00:00", "1982-12-18T06:00:00+00:00 should be 01:00:00 CDT"); - - t.equal(moment("1982-12-18T05:59:59+00:00").tz("America/Belize").zone(), 360, "1982-12-18T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-12-18T06:00:00+00:00").tz("America/Belize").zone(), 300, "1982-12-18T06:00:00+00:00 should be 300 minutes offset in CDT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-02-12T04:59:59+00:00").tz("America/Belize").format("HH:mm:ss"), "23:59:59", "1983-02-12T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1983-02-12T05:00:00+00:00").tz("America/Belize").format("HH:mm:ss"), "23:00:00", "1983-02-12T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1983-02-12T04:59:59+00:00").tz("America/Belize").zone(), 300, "1983-02-12T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-02-12T05:00:00+00:00").tz("America/Belize").zone(), 360, "1983-02-12T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/blanc-sablon.js b/tests/america/blanc-sablon.js deleted file mode 100644 index f740022f..00000000 --- a/tests/america/blanc-sablon.js +++ /dev/null @@ -1,42 +0,0 @@ -var moment = require("../../index"); - -exports["America/Blanc-Sablon"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T05:59:59+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "01:59:59", "1918-04-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1918-04-14T06:00:00+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "03:00:00", "1918-04-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1918-10-27T04:59:59+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "01:59:59", "1918-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1918-10-27T05:00:00+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "01:00:00", "1918-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1918-04-14T05:59:59+00:00").tz("America/Blanc-Sablon").zone(), 240, "1918-04-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1918-04-14T06:00:00+00:00").tz("America/Blanc-Sablon").zone(), 180, "1918-04-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1918-10-27T04:59:59+00:00").tz("America/Blanc-Sablon").zone(), 180, "1918-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1918-10-27T05:00:00+00:00").tz("America/Blanc-Sablon").zone(), 240, "1918-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "01:59:59", "1942-02-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "03:00:00", "1942-02-09T06:00:00+00:00 should be 03:00:00 AWT"); - - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Blanc-Sablon").zone(), 240, "1942-02-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Blanc-Sablon").zone(), 180, "1942-02-09T06:00:00+00:00 should be 180 minutes offset in AWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "19:59:59", "1945-08-14T22:59:59+00:00 should be 19:59:59 AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "20:00:00", "1945-08-14T23:00:00+00:00 should be 20:00:00 APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "01:59:59", "1945-09-30T04:59:59+00:00 should be 01:59:59 APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Blanc-Sablon").format("HH:mm:ss"), "01:00:00", "1945-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Blanc-Sablon").zone(), 180, "1945-08-14T22:59:59+00:00 should be 180 minutes offset in AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Blanc-Sablon").zone(), 180, "1945-08-14T23:00:00+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Blanc-Sablon").zone(), 180, "1945-09-30T04:59:59+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Blanc-Sablon").zone(), 240, "1945-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/boa_vista.js b/tests/america/boa_vista.js deleted file mode 100644 index e32b3479..00000000 --- a/tests/america/boa_vista.js +++ /dev/null @@ -1,262 +0,0 @@ -var moment = require("../../index"); - -exports["America/Boa_Vista"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T04:02:39+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1914-01-01T04:02:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T04:02:40+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "00:02:40", "1914-01-01T04:02:40+00:00 should be 00:02:40 AMT"); - - t.equal(moment("1914-01-01T04:02:39+00:00").tz("America/Boa_Vista").zone(), 14560 / 60, "1914-01-01T04:02:39+00:00 should be 14560 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T04:02:40+00:00").tz("America/Boa_Vista").zone(), 240, "1914-01-01T04:02:40+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "10:59:59", "1931-10-03T14:59:59+00:00 should be 10:59:59 AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "12:00:00", "1931-10-03T15:00:00+00:00 should be 12:00:00 AMST"); - - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1931-10-03T14:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1931-10-03T15:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1932-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1932-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1932-10-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1932-10-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1932-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1932-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1932-10-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1932-10-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1933-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1933-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1933-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1933-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1949-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1949-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1949-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1949-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "00:59:59", "1950-04-16T03:59:59+00:00 should be 00:59:59 AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "00:00:00", "1950-04-16T04:00:00+00:00 should be 00:00:00 AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1950-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1950-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1950-04-16T03:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1950-04-16T04:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1950-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1950-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1951-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1951-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1951-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1951-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1951-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1951-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1951-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1951-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1952-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1952-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1952-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1952-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1952-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1952-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1952-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1952-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1953-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1953-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1953-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1953-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1963-12-09T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1963-12-09T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1963-12-09T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1963-12-09T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1965-01-31T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1965-01-31T04:00:00+00:00 should be 01:00:00 AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1965-03-31T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1965-03-31T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1965-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1965-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1965-01-31T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1965-01-31T04:00:00+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1965-03-31T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1965-03-31T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1965-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1965-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1966-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1966-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1966-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1966-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1967-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1967-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1967-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1967-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1967-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1967-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1967-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1967-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1968-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1968-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1968-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1968-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1985-11-02T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1985-11-02T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1985-11-02T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1985-11-02T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1986-03-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1986-03-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1986-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1986-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1986-03-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1986-03-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1986-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1986-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1987-02-14T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1987-02-14T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1987-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1987-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1987-02-14T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1987-02-14T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1987-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1987-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1988-02-07T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "1988-02-07T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "1988-02-07T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "1988-02-07T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "1999-10-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1999-10-03T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "1999-10-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1999-10-03T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "1999-10-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1999-10-03T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "1999-10-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "2000-02-27T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2000-02-27T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "2000-02-27T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2000-10-08T03:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "2000-10-08T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2000-10-08T04:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "01:00:00", "2000-10-08T04:00:00+00:00 should be 01:00:00 AMST"); - t.equal(moment("2000-10-15T02:59:59+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:59:59", "2000-10-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2000-10-15T03:00:00+00:00").tz("America/Boa_Vista").format("HH:mm:ss"), "23:00:00", "2000-10-15T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("2000-02-27T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "2000-02-27T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2000-02-27T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "2000-02-27T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2000-10-08T03:59:59+00:00").tz("America/Boa_Vista").zone(), 240, "2000-10-08T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2000-10-08T04:00:00+00:00").tz("America/Boa_Vista").zone(), 180, "2000-10-08T04:00:00+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2000-10-15T02:59:59+00:00").tz("America/Boa_Vista").zone(), 180, "2000-10-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2000-10-15T03:00:00+00:00").tz("America/Boa_Vista").zone(), 240, "2000-10-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/bogota.js b/tests/america/bogota.js deleted file mode 100644 index 5a89c0a8..00000000 --- a/tests/america/bogota.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["America/Bogota"] = { - - "1914" : function (t) { - t.equal(moment("1914-11-23T04:56:15+00:00").tz("America/Bogota").format("HH:mm:ss"), "23:59:59", "1914-11-23T04:56:15+00:00 should be 23:59:59 BMT"); - t.equal(moment("1914-11-23T04:56:16+00:00").tz("America/Bogota").format("HH:mm:ss"), "23:56:16", "1914-11-23T04:56:16+00:00 should be 23:56:16 COT"); - - t.equal(moment("1914-11-23T04:56:15+00:00").tz("America/Bogota").zone(), 17776 / 60, "1914-11-23T04:56:15+00:00 should be 17776 / 60 minutes offset in BMT"); - t.equal(moment("1914-11-23T04:56:16+00:00").tz("America/Bogota").zone(), 300, "1914-11-23T04:56:16+00:00 should be 300 minutes offset in COT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-05-03T04:59:59+00:00").tz("America/Bogota").format("HH:mm:ss"), "23:59:59", "1992-05-03T04:59:59+00:00 should be 23:59:59 COT"); - t.equal(moment("1992-05-03T05:00:00+00:00").tz("America/Bogota").format("HH:mm:ss"), "01:00:00", "1992-05-03T05:00:00+00:00 should be 01:00:00 COST"); - - t.equal(moment("1992-05-03T04:59:59+00:00").tz("America/Bogota").zone(), 300, "1992-05-03T04:59:59+00:00 should be 300 minutes offset in COT"); - t.equal(moment("1992-05-03T05:00:00+00:00").tz("America/Bogota").zone(), 240, "1992-05-03T05:00:00+00:00 should be 240 minutes offset in COST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T03:59:59+00:00").tz("America/Bogota").format("HH:mm:ss"), "23:59:59", "1993-04-04T03:59:59+00:00 should be 23:59:59 COST"); - t.equal(moment("1993-04-04T04:00:00+00:00").tz("America/Bogota").format("HH:mm:ss"), "23:00:00", "1993-04-04T04:00:00+00:00 should be 23:00:00 COT"); - - t.equal(moment("1993-04-04T03:59:59+00:00").tz("America/Bogota").zone(), 240, "1993-04-04T03:59:59+00:00 should be 240 minutes offset in COST"); - t.equal(moment("1993-04-04T04:00:00+00:00").tz("America/Bogota").zone(), 300, "1993-04-04T04:00:00+00:00 should be 300 minutes offset in COT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/boise.js b/tests/america/boise.js deleted file mode 100644 index a124e7d3..00000000 --- a/tests/america/boise.js +++ /dev/null @@ -1,1060 +0,0 @@ -var moment = require("../../index"); - -exports["America/Boise"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T09:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1918-03-31T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1918-03-31T10:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1918-03-31T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1918-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1918-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1918-03-31T09:59:59+00:00").tz("America/Boise").zone(), 480, "1918-03-31T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1918-03-31T10:00:00+00:00").tz("America/Boise").zone(), 420, "1918-03-31T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("America/Boise").zone(), 420, "1918-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("America/Boise").zone(), 480, "1918-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T09:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1919-03-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1919-03-30T10:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1919-03-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1919-10-26T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1919-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1919-10-26T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1919-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1919-03-30T09:59:59+00:00").tz("America/Boise").zone(), 480, "1919-03-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1919-03-30T10:00:00+00:00").tz("America/Boise").zone(), 420, "1919-03-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1919-10-26T08:59:59+00:00").tz("America/Boise").zone(), 420, "1919-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1919-10-26T09:00:00+00:00").tz("America/Boise").zone(), 480, "1919-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-05-13T09:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1923-05-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1923-05-13T10:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1923-05-13T10:00:00+00:00 should be 03:00:00 MST"); - - t.equal(moment("1923-05-13T09:59:59+00:00").tz("America/Boise").zone(), 480, "1923-05-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1923-05-13T10:00:00+00:00").tz("America/Boise").zone(), 420, "1923-05-13T10:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Boise").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Boise").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Boise").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Boise").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Boise").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Boise").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1967-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1967-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1967-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1967-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/Boise").zone(), 420, "1967-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/Boise").zone(), 360, "1967-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Boise").zone(), 360, "1967-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Boise").zone(), 420, "1967-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1968-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1968-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1968-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1968-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/Boise").zone(), 420, "1968-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/Boise").zone(), 360, "1968-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/Boise").zone(), 360, "1968-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/Boise").zone(), 420, "1968-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1969-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1969-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1969-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1969-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/Boise").zone(), 420, "1969-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/Boise").zone(), 360, "1969-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Boise").zone(), 360, "1969-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Boise").zone(), 420, "1969-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1970-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1970-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1970-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1970-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/Boise").zone(), 420, "1970-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/Boise").zone(), 360, "1970-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/Boise").zone(), 360, "1970-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/Boise").zone(), 420, "1970-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1971-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1971-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1971-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1971-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/Boise").zone(), 420, "1971-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/Boise").zone(), 360, "1971-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/Boise").zone(), 360, "1971-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/Boise").zone(), 420, "1971-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1972-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1972-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1972-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1972-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/Boise").zone(), 420, "1972-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/Boise").zone(), 360, "1972-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Boise").zone(), 360, "1972-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Boise").zone(), 420, "1972-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1973-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1973-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1973-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1973-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/Boise").zone(), 420, "1973-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/Boise").zone(), 360, "1973-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Boise").zone(), 360, "1973-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Boise").zone(), 420, "1973-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-02-03T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1974-02-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1974-02-03T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1974-02-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1974-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1974-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1974-02-03T08:59:59+00:00").tz("America/Boise").zone(), 420, "1974-02-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1974-02-03T09:00:00+00:00").tz("America/Boise").zone(), 360, "1974-02-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Boise").zone(), 360, "1974-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Boise").zone(), 420, "1974-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1975-02-23T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1975-02-23T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1975-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1975-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/Boise").zone(), 420, "1975-02-23T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/Boise").zone(), 360, "1975-02-23T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Boise").zone(), 360, "1975-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Boise").zone(), 420, "1975-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1976-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1976-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1976-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1976-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/Boise").zone(), 420, "1976-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/Boise").zone(), 360, "1976-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Boise").zone(), 360, "1976-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Boise").zone(), 420, "1976-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1977-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1977-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1977-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1977-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/Boise").zone(), 420, "1977-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/Boise").zone(), 360, "1977-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Boise").zone(), 360, "1977-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Boise").zone(), 420, "1977-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1978-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1978-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1978-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1978-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/Boise").zone(), 420, "1978-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/Boise").zone(), 360, "1978-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Boise").zone(), 360, "1978-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Boise").zone(), 420, "1978-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1979-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1979-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1979-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1979-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/Boise").zone(), 420, "1979-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/Boise").zone(), 360, "1979-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Boise").zone(), 360, "1979-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Boise").zone(), 420, "1979-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Boise").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Boise").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Boise").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Boise").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Boise").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Boise").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Boise").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Boise").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Boise").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Boise").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Boise").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Boise").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Boise").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Boise").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Boise").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Boise").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Boise").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Boise").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Boise").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Boise").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Boise").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Boise").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Boise").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Boise").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Boise").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Boise").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Boise").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Boise").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Boise").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Boise").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Boise").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Boise").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Boise").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Boise").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Boise").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Boise").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Boise").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Boise").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Boise").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Boise").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Boise").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Boise").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Boise").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Boise").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Boise").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Boise").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Boise").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Boise").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1992-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Boise").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Boise").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Boise").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Boise").zone(), 420, "1992-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1993-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1993-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1993-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1993-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Boise").zone(), 420, "1993-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Boise").zone(), 360, "1993-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Boise").zone(), 360, "1993-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Boise").zone(), 420, "1993-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1994-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1994-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1994-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1994-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Boise").zone(), 420, "1994-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Boise").zone(), 360, "1994-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Boise").zone(), 360, "1994-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Boise").zone(), 420, "1994-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1995-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1995-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1995-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1995-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Boise").zone(), 420, "1995-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Boise").zone(), 360, "1995-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Boise").zone(), 360, "1995-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Boise").zone(), 420, "1995-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Boise").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Boise").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Boise").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Boise").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Boise").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Boise").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Boise").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Boise").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Boise").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Boise").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Boise").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Boise").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Boise").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Boise").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Boise").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Boise").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Boise").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Boise").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Boise").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Boise").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2001-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2001-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2001-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2001-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Boise").zone(), 420, "2001-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Boise").zone(), 360, "2001-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Boise").zone(), 360, "2001-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Boise").zone(), 420, "2001-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Boise").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Boise").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Boise").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Boise").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Boise").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Boise").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Boise").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Boise").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Boise").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Boise").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Boise").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Boise").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Boise").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Boise").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Boise").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Boise").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Boise").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Boise").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Boise").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Boise").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2007-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2007-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2007-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2007-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Boise").zone(), 420, "2007-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Boise").zone(), 360, "2007-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Boise").zone(), 360, "2007-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Boise").zone(), 420, "2007-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2008-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2008-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2008-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2008-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Boise").zone(), 420, "2008-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Boise").zone(), 360, "2008-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Boise").zone(), 360, "2008-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Boise").zone(), 420, "2008-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2009-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2009-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2009-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2009-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Boise").zone(), 420, "2009-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Boise").zone(), 360, "2009-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Boise").zone(), 360, "2009-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Boise").zone(), 420, "2009-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2010-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2010-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2010-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2010-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Boise").zone(), 420, "2010-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Boise").zone(), 360, "2010-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Boise").zone(), 360, "2010-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Boise").zone(), 420, "2010-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2011-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2011-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2011-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2011-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Boise").zone(), 420, "2011-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Boise").zone(), 360, "2011-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Boise").zone(), 360, "2011-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Boise").zone(), 420, "2011-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2012-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2012-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2012-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2012-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Boise").zone(), 420, "2012-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Boise").zone(), 360, "2012-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Boise").zone(), 360, "2012-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Boise").zone(), 420, "2012-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2013-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2013-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2013-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2013-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Boise").zone(), 420, "2013-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Boise").zone(), 360, "2013-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Boise").zone(), 360, "2013-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Boise").zone(), 420, "2013-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2014-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2014-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2014-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2014-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Boise").zone(), 420, "2014-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Boise").zone(), 360, "2014-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Boise").zone(), 360, "2014-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Boise").zone(), 420, "2014-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2015-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2015-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2015-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2015-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Boise").zone(), 420, "2015-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Boise").zone(), 360, "2015-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Boise").zone(), 360, "2015-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Boise").zone(), 420, "2015-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2016-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2016-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2016-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2016-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Boise").zone(), 420, "2016-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Boise").zone(), 360, "2016-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Boise").zone(), 360, "2016-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Boise").zone(), 420, "2016-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2017-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2017-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2017-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2017-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Boise").zone(), 420, "2017-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Boise").zone(), 360, "2017-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Boise").zone(), 360, "2017-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Boise").zone(), 420, "2017-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2018-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2018-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2018-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2018-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Boise").zone(), 420, "2018-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Boise").zone(), 360, "2018-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Boise").zone(), 360, "2018-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Boise").zone(), 420, "2018-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2019-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2019-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2019-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2019-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Boise").zone(), 420, "2019-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Boise").zone(), 360, "2019-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Boise").zone(), 360, "2019-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Boise").zone(), 420, "2019-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2020-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2020-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2020-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2020-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Boise").zone(), 420, "2020-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Boise").zone(), 360, "2020-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Boise").zone(), 360, "2020-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Boise").zone(), 420, "2020-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2021-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2021-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2021-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2021-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Boise").zone(), 420, "2021-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Boise").zone(), 360, "2021-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Boise").zone(), 360, "2021-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Boise").zone(), 420, "2021-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2022-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2022-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2022-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2022-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Boise").zone(), 420, "2022-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Boise").zone(), 360, "2022-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Boise").zone(), 360, "2022-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Boise").zone(), 420, "2022-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2023-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2023-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2023-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2023-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Boise").zone(), 420, "2023-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Boise").zone(), 360, "2023-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Boise").zone(), 360, "2023-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Boise").zone(), 420, "2023-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2024-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2024-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2024-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2024-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Boise").zone(), 420, "2024-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Boise").zone(), 360, "2024-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Boise").zone(), 360, "2024-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Boise").zone(), 420, "2024-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2025-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2025-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2025-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2025-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Boise").zone(), 420, "2025-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Boise").zone(), 360, "2025-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Boise").zone(), 360, "2025-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Boise").zone(), 420, "2025-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2026-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2026-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2026-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2026-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Boise").zone(), 420, "2026-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Boise").zone(), 360, "2026-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Boise").zone(), 360, "2026-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Boise").zone(), 420, "2026-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2027-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2027-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2027-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2027-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Boise").zone(), 420, "2027-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Boise").zone(), 360, "2027-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Boise").zone(), 360, "2027-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Boise").zone(), 420, "2027-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2028-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2028-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2028-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2028-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Boise").zone(), 420, "2028-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Boise").zone(), 360, "2028-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Boise").zone(), 360, "2028-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Boise").zone(), 420, "2028-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2029-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2029-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2029-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2029-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Boise").zone(), 420, "2029-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Boise").zone(), 360, "2029-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Boise").zone(), 360, "2029-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Boise").zone(), 420, "2029-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2030-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2030-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2030-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2030-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Boise").zone(), 420, "2030-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Boise").zone(), 360, "2030-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Boise").zone(), 360, "2030-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Boise").zone(), 420, "2030-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2031-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2031-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2031-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2031-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Boise").zone(), 420, "2031-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Boise").zone(), 360, "2031-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Boise").zone(), 360, "2031-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Boise").zone(), 420, "2031-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2032-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2032-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2032-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2032-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Boise").zone(), 420, "2032-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Boise").zone(), 360, "2032-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Boise").zone(), 360, "2032-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Boise").zone(), 420, "2032-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2033-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2033-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2033-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2033-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Boise").zone(), 420, "2033-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Boise").zone(), 360, "2033-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Boise").zone(), 360, "2033-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Boise").zone(), 420, "2033-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2034-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2034-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2034-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2034-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Boise").zone(), 420, "2034-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Boise").zone(), 360, "2034-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Boise").zone(), 360, "2034-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Boise").zone(), 420, "2034-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2035-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2035-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2035-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2035-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Boise").zone(), 420, "2035-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Boise").zone(), 360, "2035-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Boise").zone(), 360, "2035-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Boise").zone(), 420, "2035-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2036-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2036-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2036-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2036-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Boise").zone(), 420, "2036-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Boise").zone(), 360, "2036-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Boise").zone(), 360, "2036-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Boise").zone(), 420, "2036-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2037-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "03:00:00", "2037-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Boise").format("HH:mm:ss"), "01:59:59", "2037-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Boise").format("HH:mm:ss"), "01:00:00", "2037-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Boise").zone(), 420, "2037-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Boise").zone(), 360, "2037-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Boise").zone(), 360, "2037-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Boise").zone(), 420, "2037-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/cambridge_bay.js b/tests/america/cambridge_bay.js deleted file mode 100644 index 1b0bd574..00000000 --- a/tests/america/cambridge_bay.js +++ /dev/null @@ -1,874 +0,0 @@ -var moment = require("../../index"); - -exports["America/Cambridge_Bay"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T23:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "23:59:59", "1919-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1919-12-31T23:59:59+00:00").tz("America/Cambridge_Bay").zone(), 0, "1919-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-01-01T00:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "17:00:00", "1920-01-01T00:00:00+00:00 should be 17:00:00 MST"); - - t.equal(moment("1920-01-01T00:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1920-01-01T00:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "23:59:59", "1965-04-25T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "02:00:00", "1965-04-25T07:00:00+00:00 should be 02:00:00 MDDT"); - t.equal(moment("1965-10-31T06:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1965-10-31T06:59:59+00:00 should be 01:59:59 MDDT"); - t.equal(moment("1965-10-31T07:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "00:00:00", "1965-10-31T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1965-04-25T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Cambridge_Bay").zone(), 300, "1965-04-25T07:00:00+00:00 should be 300 minutes offset in MDDT"); - t.equal(moment("1965-10-31T06:59:59+00:00").tz("America/Cambridge_Bay").zone(), 300, "1965-10-31T06:59:59+00:00 should be 300 minutes offset in MDDT"); - t.equal(moment("1965-10-31T07:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1965-10-31T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1992-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1992-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1993-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1993-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1993-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1993-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1993-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1993-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1993-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1993-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1994-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1994-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1994-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1994-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1994-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1994-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1994-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1994-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1995-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1995-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1995-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1995-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1995-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1995-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1995-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1995-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "02:00:00", "1999-10-31T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "1999-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "02:00:00", "2000-10-29T07:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2000-11-05T04:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "23:59:59", "2000-11-05T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("2000-11-05T05:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "23:00:00", "2000-11-05T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Cambridge_Bay").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Cambridge_Bay").zone(), 300, "2000-10-29T07:00:00+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-11-05T04:59:59+00:00").tz("America/Cambridge_Bay").zone(), 300, "2000-11-05T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-11-05T05:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2000-11-05T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "02:59:59", "2001-04-01T08:59:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2001-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2001-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2001-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2001-04-01T08:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2001-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2001-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2001-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2007-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2007-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2007-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2007-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2007-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2007-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2007-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2007-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2008-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2008-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2008-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2008-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2008-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2008-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2008-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2008-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2009-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2009-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2009-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2009-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2009-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2009-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2009-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2009-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2010-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2010-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2010-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2010-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2010-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2010-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2010-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2010-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2011-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2011-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2011-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2011-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2011-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2011-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2011-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2011-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2012-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2012-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2012-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2012-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2012-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2012-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2012-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2012-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2013-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2013-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2013-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2013-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2013-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2013-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2013-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2013-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2014-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2014-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2014-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2014-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2014-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2014-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2014-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2014-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2015-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2015-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2015-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2015-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2015-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2015-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2015-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2015-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2016-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2016-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2016-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2016-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2016-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2016-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2016-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2016-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2017-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2017-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2017-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2017-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2017-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2017-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2017-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2017-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2018-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2018-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2018-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2018-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2018-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2018-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2018-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2018-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2019-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2019-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2019-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2019-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2019-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2019-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2019-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2019-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2020-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2020-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2020-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2020-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2020-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2020-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2020-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2020-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2021-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2021-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2021-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2021-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2021-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2021-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2021-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2021-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2022-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2022-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2022-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2022-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2022-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2022-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2022-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2022-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2023-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2023-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2023-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2023-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2023-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2023-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2023-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2023-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2024-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2024-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2024-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2024-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2024-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2024-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2024-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2024-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2025-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2025-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2025-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2025-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2025-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2025-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2025-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2025-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2026-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2026-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2026-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2026-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2026-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2026-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2026-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2026-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2027-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2027-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2027-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2027-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2027-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2027-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2027-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2027-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2028-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2028-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2028-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2028-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2028-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2028-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2028-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2028-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2029-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2029-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2029-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2029-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2029-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2029-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2029-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2029-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2030-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2030-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2030-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2030-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2030-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2030-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2030-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2030-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2031-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2031-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2031-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2031-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2031-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2031-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2031-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2031-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2032-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2032-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2032-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2032-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2032-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2032-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2032-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2032-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2033-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2033-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2033-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2033-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2033-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2033-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2033-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2033-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2034-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2034-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2034-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2034-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2034-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2034-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2034-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2034-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2035-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2035-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2035-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2035-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2035-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2035-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2035-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2035-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2036-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2036-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2036-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2036-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2036-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2036-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2036-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2036-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2037-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "03:00:00", "2037-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:59:59", "2037-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").format("HH:mm:ss"), "01:00:00", "2037-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Cambridge_Bay").zone(), 420, "2037-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Cambridge_Bay").zone(), 360, "2037-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Cambridge_Bay").zone(), 360, "2037-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Cambridge_Bay").zone(), 420, "2037-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/campo_grande.js b/tests/america/campo_grande.js deleted file mode 100644 index 13d6230e..00000000 --- a/tests/america/campo_grande.js +++ /dev/null @@ -1,924 +0,0 @@ -var moment = require("../../index"); - -exports["America/Campo_Grande"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T03:38:27+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1914-01-01T03:38:27+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T03:38:28+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:38:28", "1914-01-01T03:38:28+00:00 should be 23:38:28 AMT"); - - t.equal(moment("1914-01-01T03:38:27+00:00").tz("America/Campo_Grande").zone(), 13108 / 60, "1914-01-01T03:38:27+00:00 should be 13108 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T03:38:28+00:00").tz("America/Campo_Grande").zone(), 240, "1914-01-01T03:38:28+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "10:59:59", "1931-10-03T14:59:59+00:00 should be 10:59:59 AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "12:00:00", "1931-10-03T15:00:00+00:00 should be 12:00:00 AMST"); - - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1931-10-03T14:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1931-10-03T15:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1932-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1932-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1932-10-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1932-10-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1932-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1932-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1932-10-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1932-10-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1933-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1933-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1933-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1933-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1949-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1949-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1949-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1949-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "00:59:59", "1950-04-16T03:59:59+00:00 should be 00:59:59 AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "00:00:00", "1950-04-16T04:00:00+00:00 should be 00:00:00 AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1950-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1950-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1950-04-16T03:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1950-04-16T04:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1950-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1950-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1951-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1951-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1951-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1951-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1951-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1951-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1951-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1951-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1952-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1952-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1952-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1952-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1952-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1952-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1952-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1952-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1953-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1953-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1953-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1953-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1963-12-09T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1963-12-09T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1963-12-09T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1963-12-09T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1965-01-31T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1965-01-31T04:00:00+00:00 should be 01:00:00 AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1965-03-31T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1965-03-31T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1965-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1965-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1965-01-31T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1965-01-31T04:00:00+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1965-03-31T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1965-03-31T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1965-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1965-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1966-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1966-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1966-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1966-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1967-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1967-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1967-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1967-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1967-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1967-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1967-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1967-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1968-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1968-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1968-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1968-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1985-11-02T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1985-11-02T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1985-11-02T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1985-11-02T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1986-03-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1986-03-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1986-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1986-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1986-03-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1986-03-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1986-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1986-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1987-02-14T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1987-02-14T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1987-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1987-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1987-02-14T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1987-02-14T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1987-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1987-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1988-02-07T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1988-02-07T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1988-10-16T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1988-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1988-10-16T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1988-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1988-02-07T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1988-02-07T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1988-10-16T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1988-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1988-10-16T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1988-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-01-29T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1989-01-29T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1989-01-29T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1989-01-29T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1989-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1989-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1989-01-29T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1989-01-29T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1989-01-29T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1989-01-29T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1989-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1989-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-02-11T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1990-02-11T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1990-02-11T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1990-02-11T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1990-10-21T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1990-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1990-10-21T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1990-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1990-02-11T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1990-02-11T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1990-02-11T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1990-02-11T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1990-10-21T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1990-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1990-10-21T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1990-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-02-17T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1991-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1991-02-17T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1991-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1991-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1991-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1991-02-17T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1991-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1991-02-17T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1991-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1991-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1991-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-09T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1992-02-09T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1992-02-09T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1992-02-09T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1992-10-25T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1992-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1992-10-25T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1992-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1992-02-09T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1992-02-09T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1992-02-09T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1992-02-09T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1992-10-25T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1992-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1992-10-25T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1992-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-01-31T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1993-01-31T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1993-01-31T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1993-01-31T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1993-10-17T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1993-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1993-10-17T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1993-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1993-01-31T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1993-01-31T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1993-01-31T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1993-01-31T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1993-10-17T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1993-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1993-10-17T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1993-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-02-20T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1994-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1994-02-20T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1994-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1994-10-16T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1994-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1994-10-16T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1994-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1994-02-20T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1994-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1994-02-20T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1994-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1994-10-16T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1994-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1994-10-16T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1994-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-02-19T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1995-02-19T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1995-02-19T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1995-02-19T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1995-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1995-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1995-02-19T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1995-02-19T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1995-02-19T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1995-02-19T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1995-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1995-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-02-11T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1996-02-11T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1996-02-11T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1996-02-11T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1996-10-06T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1996-10-06T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1996-10-06T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1996-10-06T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1996-02-11T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1996-02-11T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1996-02-11T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1996-02-11T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1996-10-06T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1996-10-06T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1996-10-06T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1996-10-06T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-02-16T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1997-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1997-02-16T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1997-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1997-10-06T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1997-10-06T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1997-10-06T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1997-10-06T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1997-02-16T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1997-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1997-02-16T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1997-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1997-10-06T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1997-10-06T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1997-10-06T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1997-10-06T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-01T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1998-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1998-03-01T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1998-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1998-10-11T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1998-10-11T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1998-10-11T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1998-10-11T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1998-03-01T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1998-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1998-03-01T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1998-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1998-10-11T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1998-10-11T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1998-10-11T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1998-10-11T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-02-21T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1999-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1999-02-21T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "1999-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1999-10-03T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "1999-10-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1999-10-03T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "1999-10-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1999-02-21T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "1999-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1999-02-21T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "1999-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1999-10-03T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "1999-10-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1999-10-03T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "1999-10-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2000-02-27T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2000-02-27T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2000-02-27T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2000-10-08T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2000-10-08T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2000-10-08T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2000-10-08T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2000-02-27T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2000-02-27T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2000-02-27T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2000-02-27T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2000-10-08T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2000-10-08T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2000-10-08T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2000-10-08T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-02-18T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2001-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2001-02-18T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2001-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2001-10-14T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2001-10-14T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2001-02-18T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2001-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2001-02-18T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2001-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2001-10-14T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2001-10-14T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-02-17T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2002-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2002-02-17T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2002-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2002-11-03T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2002-11-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2002-11-03T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2002-11-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2002-02-17T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2002-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2002-02-17T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2002-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2002-11-03T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2002-11-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2002-11-03T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2002-11-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-02-16T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2003-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2003-02-16T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2003-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2003-10-19T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2003-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2003-10-19T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2003-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2003-02-16T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2003-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2003-02-16T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2003-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2003-10-19T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2003-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2003-10-19T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2003-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-02-15T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2004-02-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2004-02-15T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2004-02-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2004-11-02T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2004-11-02T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2004-11-02T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2004-11-02T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2004-02-15T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2004-02-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2004-02-15T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2004-02-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2004-11-02T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2004-11-02T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2004-11-02T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2004-11-02T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-02-20T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2005-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2005-02-20T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2005-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2005-10-16T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2005-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2005-10-16T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2005-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2005-02-20T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2005-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2005-02-20T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2005-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2005-10-16T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2005-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2005-10-16T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2005-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-02-19T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2006-02-19T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2006-02-19T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2006-02-19T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2006-11-05T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2006-11-05T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2006-11-05T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2006-11-05T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2006-02-19T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2006-02-19T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2006-02-19T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2006-02-19T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2006-11-05T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2006-11-05T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2006-11-05T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2006-11-05T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-02-25T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2007-02-25T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2007-02-25T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2007-02-25T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2007-10-14T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2007-10-14T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2007-02-25T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2007-02-25T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2007-02-25T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2007-02-25T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2007-10-14T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2007-10-14T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-02-17T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2008-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2008-02-17T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2008-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2008-10-19T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2008-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2008-10-19T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2008-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2008-02-17T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2008-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2008-02-17T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2008-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2008-10-19T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2008-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2008-10-19T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2008-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-02-15T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2009-02-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2009-02-15T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2009-02-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2009-10-18T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2009-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2009-10-18T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2009-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2009-02-15T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2009-02-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2009-02-15T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2009-02-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2009-10-18T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2009-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2009-10-18T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2009-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-02-21T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2010-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2010-02-21T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2010-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2010-10-17T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2010-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2010-10-17T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2010-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2010-02-21T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2010-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2010-02-21T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2010-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2010-10-17T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2010-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2010-10-17T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2010-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-02-20T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2011-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2011-02-20T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2011-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2011-10-16T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2011-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2011-10-16T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2011-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2011-02-20T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2011-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2011-02-20T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2011-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2011-10-16T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2011-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2011-10-16T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2011-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-02-26T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2012-02-26T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2012-02-26T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2012-02-26T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2012-10-21T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2012-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2012-10-21T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2012-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2012-02-26T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2012-02-26T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2012-02-26T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2012-02-26T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2012-10-21T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2012-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2012-10-21T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2012-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-02-17T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2013-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2013-02-17T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2013-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2013-10-20T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2013-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2013-10-20T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2013-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2013-02-17T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2013-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2013-02-17T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2013-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2013-10-20T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2013-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2013-10-20T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2013-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-02-16T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2014-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2014-02-16T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2014-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2014-10-19T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2014-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2014-10-19T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2014-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2014-02-16T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2014-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2014-02-16T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2014-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2014-10-19T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2014-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2014-10-19T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2014-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-02-22T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2015-02-22T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2015-02-22T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2015-02-22T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2015-10-18T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2015-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2015-10-18T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2015-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2015-02-22T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2015-02-22T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2015-02-22T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2015-02-22T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2015-10-18T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2015-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2015-10-18T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2015-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-02-21T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2016-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2016-02-21T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2016-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2016-10-16T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2016-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2016-10-16T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2016-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2016-02-21T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2016-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2016-02-21T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2016-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2016-10-16T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2016-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2016-10-16T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2016-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-02-19T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2017-02-19T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2017-02-19T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2017-02-19T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2017-10-15T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2017-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2017-10-15T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2017-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2017-02-19T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2017-02-19T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2017-02-19T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2017-02-19T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2017-10-15T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2017-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2017-10-15T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2017-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-02-18T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2018-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2018-02-18T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2018-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2018-10-21T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2018-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2018-10-21T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2018-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2018-02-18T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2018-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2018-02-18T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2018-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2018-10-21T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2018-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2018-10-21T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2018-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-02-17T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2019-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2019-02-17T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2019-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2019-10-20T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2019-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2019-10-20T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2019-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2019-02-17T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2019-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2019-02-17T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2019-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2019-10-20T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2019-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2019-10-20T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2019-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-02-16T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2020-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2020-02-16T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2020-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2020-10-18T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2020-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2020-10-18T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2020-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2020-02-16T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2020-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2020-02-16T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2020-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2020-10-18T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2020-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2020-10-18T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2020-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-02-21T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2021-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2021-02-21T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2021-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2021-10-17T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2021-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2021-10-17T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2021-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2021-02-21T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2021-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2021-02-21T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2021-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2021-10-17T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2021-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2021-10-17T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2021-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-02-20T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2022-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2022-02-20T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2022-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2022-10-16T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2022-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2022-10-16T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2022-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2022-02-20T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2022-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2022-02-20T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2022-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2022-10-16T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2022-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2022-10-16T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2022-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-02-26T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2023-02-26T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2023-02-26T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2023-02-26T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2023-10-15T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2023-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2023-10-15T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2023-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2023-02-26T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2023-02-26T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2023-02-26T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2023-02-26T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2023-10-15T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2023-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2023-10-15T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2023-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-02-18T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2024-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2024-02-18T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2024-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2024-10-20T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2024-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2024-10-20T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2024-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2024-02-18T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2024-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2024-02-18T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2024-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2024-10-20T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2024-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2024-10-20T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2024-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-02-16T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2025-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2025-02-16T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2025-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2025-10-19T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2025-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2025-10-19T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2025-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2025-02-16T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2025-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2025-02-16T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2025-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2025-10-19T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2025-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2025-10-19T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2025-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-02-22T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2026-02-22T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2026-02-22T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2026-02-22T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2026-10-18T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2026-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2026-10-18T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2026-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2026-02-22T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2026-02-22T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2026-02-22T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2026-02-22T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2026-10-18T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2026-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2026-10-18T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2026-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-02-21T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2027-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2027-02-21T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2027-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2027-10-17T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2027-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2027-10-17T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2027-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2027-02-21T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2027-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2027-02-21T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2027-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2027-10-17T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2027-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2027-10-17T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2027-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-02-20T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2028-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2028-02-20T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2028-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2028-10-15T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2028-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2028-10-15T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2028-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2028-02-20T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2028-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2028-02-20T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2028-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2028-10-15T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2028-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2028-10-15T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2028-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-02-18T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2029-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2029-02-18T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2029-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2029-10-21T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2029-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2029-10-21T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2029-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2029-02-18T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2029-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2029-02-18T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2029-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2029-10-21T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2029-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2029-10-21T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2029-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-02-17T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2030-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2030-02-17T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2030-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2030-10-20T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2030-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2030-10-20T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2030-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2030-02-17T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2030-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2030-02-17T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2030-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2030-10-20T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2030-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2030-10-20T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2030-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-02-16T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2031-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2031-02-16T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2031-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2031-10-19T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2031-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2031-10-19T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2031-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2031-02-16T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2031-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2031-02-16T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2031-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2031-10-19T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2031-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2031-10-19T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2031-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-02-15T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2032-02-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2032-02-15T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2032-02-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2032-10-17T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2032-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2032-10-17T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2032-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2032-02-15T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2032-02-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2032-02-15T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2032-02-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2032-10-17T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2032-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2032-10-17T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2032-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-02-20T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2033-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2033-02-20T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2033-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2033-10-16T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2033-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2033-10-16T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2033-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2033-02-20T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2033-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2033-02-20T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2033-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2033-10-16T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2033-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2033-10-16T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2033-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-02-26T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2034-02-26T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2034-02-26T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2034-02-26T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2034-10-15T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2034-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2034-10-15T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2034-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2034-02-26T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2034-02-26T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2034-02-26T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2034-02-26T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2034-10-15T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2034-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2034-10-15T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2034-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-02-18T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2035-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2035-02-18T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2035-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2035-10-21T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2035-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2035-10-21T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2035-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2035-02-18T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2035-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2035-02-18T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2035-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2035-10-21T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2035-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2035-10-21T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2035-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-02-17T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2036-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2036-02-17T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2036-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2036-10-19T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2036-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2036-10-19T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2036-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2036-02-17T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2036-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2036-02-17T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2036-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2036-10-19T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2036-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2036-10-19T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2036-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-02-22T02:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2037-02-22T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2037-02-22T03:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:00:00", "2037-02-22T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2037-10-18T03:59:59+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "23:59:59", "2037-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2037-10-18T04:00:00+00:00").tz("America/Campo_Grande").format("HH:mm:ss"), "01:00:00", "2037-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2037-02-22T02:59:59+00:00").tz("America/Campo_Grande").zone(), 180, "2037-02-22T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2037-02-22T03:00:00+00:00").tz("America/Campo_Grande").zone(), 240, "2037-02-22T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2037-10-18T03:59:59+00:00").tz("America/Campo_Grande").zone(), 240, "2037-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2037-10-18T04:00:00+00:00").tz("America/Campo_Grande").zone(), 180, "2037-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/cancun.js b/tests/america/cancun.js deleted file mode 100644 index 8fbeac51..00000000 --- a/tests/america/cancun.js +++ /dev/null @@ -1,616 +0,0 @@ -var moment = require("../../index"); - -exports["America/Cancun"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "00:12:55", "1922-01-01T05:59:59+00:00 should be 00:12:55 LMT"); - t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "00:00:00", "1922-01-01T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Cancun").zone(), 20824 / 60, "1922-01-01T05:59:59+00:00 should be 20824 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Cancun").zone(), 360, "1922-01-01T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-12-23T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "23:59:59", "1981-12-23T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1981-12-23T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1981-12-23T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-12-23T05:59:59+00:00").tz("America/Cancun").zone(), 360, "1981-12-23T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-12-23T06:00:00+00:00").tz("America/Cancun").zone(), 300, "1981-12-23T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Cancun").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Cancun").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Cancun").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Cancun").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Cancun").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Cancun").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-08-02T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1998-08-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-08-02T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1998-08-02T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Cancun").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-08-02T05:59:59+00:00").tz("America/Cancun").zone(), 240, "1998-08-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-08-02T06:00:00+00:00").tz("America/Cancun").zone(), 300, "1998-08-02T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2001-05-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2001-05-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2001-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2001-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2001-05-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2001-05-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2001-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2001-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2007-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2007-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2007-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2007-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2007-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2007-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2007-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2007-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2008-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2008-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2008-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2008-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2008-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2008-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2008-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2008-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2009-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2009-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2009-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2009-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2009-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2009-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2009-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2009-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2010-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2010-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2010-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2010-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2010-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2010-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2010-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2010-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2011-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2011-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2011-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2011-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2011-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2011-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2011-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2011-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2012-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2012-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2012-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2012-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2012-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2012-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2012-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2012-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2013-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2013-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2013-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2013-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2013-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2013-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2013-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2013-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2014-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2014-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2014-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2014-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2014-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2014-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2014-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2014-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2015-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2015-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2015-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2015-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2015-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2015-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2015-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2015-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2016-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2016-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2016-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2016-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2016-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2016-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2016-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2016-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2017-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2017-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2017-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2017-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2017-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2017-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2017-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2017-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2018-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2018-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2018-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2018-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2018-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2018-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2018-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2018-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2019-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2019-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2019-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2019-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2019-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2019-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2019-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2019-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2020-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2020-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2020-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2020-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2020-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2020-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2020-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2020-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2021-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2021-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2021-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2021-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2021-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2021-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2021-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2021-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2022-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2022-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2022-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2022-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2022-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2022-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2022-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2022-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2023-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2023-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2023-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2023-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2023-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2023-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2023-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2023-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2024-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2024-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2024-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2024-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2024-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2024-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2024-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2024-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2025-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2025-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2025-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2025-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2025-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2025-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2025-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2025-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2026-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2026-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2026-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2026-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2026-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2026-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2026-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2026-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2027-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2027-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2027-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2027-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2027-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2027-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2027-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2027-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2028-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2028-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2028-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2028-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2028-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2028-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2028-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2028-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2029-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2029-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2029-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2029-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2029-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2029-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2029-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2029-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2030-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2030-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2030-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2030-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2030-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2030-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2030-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2030-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2031-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2031-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2031-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2031-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2031-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2031-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2031-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2031-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2032-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2032-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2032-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2032-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2032-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2032-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2032-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2032-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2033-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2033-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2033-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2033-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2033-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2033-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2033-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2033-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2034-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2034-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2034-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2034-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2034-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2034-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2034-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2034-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2035-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2035-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2035-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2035-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2035-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2035-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2035-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2035-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2036-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2036-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2036-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2036-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2036-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2036-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2036-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2036-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2037-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2037-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2037-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2037-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2037-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2037-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2037-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2037-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/caracas.js b/tests/america/caracas.js deleted file mode 100644 index e4ecae5f..00000000 --- a/tests/america/caracas.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["America/Caracas"] = { - - "1912" : function (t) { - t.equal(moment("1912-02-12T04:27:39+00:00").tz("America/Caracas").format("HH:mm:ss"), "23:59:59", "1912-02-12T04:27:39+00:00 should be 23:59:59 CMT"); - t.equal(moment("1912-02-12T04:27:40+00:00").tz("America/Caracas").format("HH:mm:ss"), "23:57:40", "1912-02-12T04:27:40+00:00 should be 23:57:40 VET"); - - t.equal(moment("1912-02-12T04:27:39+00:00").tz("America/Caracas").zone(), 16060 / 60, "1912-02-12T04:27:39+00:00 should be 16060 / 60 minutes offset in CMT"); - t.equal(moment("1912-02-12T04:27:40+00:00").tz("America/Caracas").zone(), 270, "1912-02-12T04:27:40+00:00 should be 270 minutes offset in VET"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-01T04:29:59+00:00").tz("America/Caracas").format("HH:mm:ss"), "23:59:59", "1965-01-01T04:29:59+00:00 should be 23:59:59 VET"); - t.equal(moment("1965-01-01T04:30:00+00:00").tz("America/Caracas").format("HH:mm:ss"), "00:30:00", "1965-01-01T04:30:00+00:00 should be 00:30:00 VET"); - - t.equal(moment("1965-01-01T04:29:59+00:00").tz("America/Caracas").zone(), 270, "1965-01-01T04:29:59+00:00 should be 270 minutes offset in VET"); - t.equal(moment("1965-01-01T04:30:00+00:00").tz("America/Caracas").zone(), 240, "1965-01-01T04:30:00+00:00 should be 240 minutes offset in VET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-12-09T06:59:59+00:00").tz("America/Caracas").format("HH:mm:ss"), "02:59:59", "2007-12-09T06:59:59+00:00 should be 02:59:59 VET"); - t.equal(moment("2007-12-09T07:00:00+00:00").tz("America/Caracas").format("HH:mm:ss"), "02:30:00", "2007-12-09T07:00:00+00:00 should be 02:30:00 VET"); - - t.equal(moment("2007-12-09T06:59:59+00:00").tz("America/Caracas").zone(), 240, "2007-12-09T06:59:59+00:00 should be 240 minutes offset in VET"); - t.equal(moment("2007-12-09T07:00:00+00:00").tz("America/Caracas").zone(), 270, "2007-12-09T07:00:00+00:00 should be 270 minutes offset in VET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/cayenne.js b/tests/america/cayenne.js deleted file mode 100644 index fc543799..00000000 --- a/tests/america/cayenne.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["America/Cayenne"] = { - - "1911" : function (t) { - t.equal(moment("1911-07-01T03:29:19+00:00").tz("America/Cayenne").format("HH:mm:ss"), "23:59:59", "1911-07-01T03:29:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-07-01T03:29:20+00:00").tz("America/Cayenne").format("HH:mm:ss"), "23:29:20", "1911-07-01T03:29:20+00:00 should be 23:29:20 GFT"); - - t.equal(moment("1911-07-01T03:29:19+00:00").tz("America/Cayenne").zone(), 12560 / 60, "1911-07-01T03:29:19+00:00 should be 12560 / 60 minutes offset in LMT"); - t.equal(moment("1911-07-01T03:29:20+00:00").tz("America/Cayenne").zone(), 240, "1911-07-01T03:29:20+00:00 should be 240 minutes offset in GFT"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Cayenne").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 GFT"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Cayenne").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 GFT"); - - t.equal(moment("1967-10-01T03:59:59+00:00").tz("America/Cayenne").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in GFT"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("America/Cayenne").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in GFT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/cayman.js b/tests/america/cayman.js deleted file mode 100644 index aa1abab9..00000000 --- a/tests/america/cayman.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Cayman"] = { - - "1912" : function (t) { - t.equal(moment("1912-02-01T05:07:11+00:00").tz("America/Cayman").format("HH:mm:ss"), "23:59:59", "1912-02-01T05:07:11+00:00 should be 23:59:59 KMT"); - t.equal(moment("1912-02-01T05:07:12+00:00").tz("America/Cayman").format("HH:mm:ss"), "00:07:12", "1912-02-01T05:07:12+00:00 should be 00:07:12 EST"); - - t.equal(moment("1912-02-01T05:07:11+00:00").tz("America/Cayman").zone(), 18432 / 60, "1912-02-01T05:07:11+00:00 should be 18432 / 60 minutes offset in KMT"); - t.equal(moment("1912-02-01T05:07:12+00:00").tz("America/Cayman").zone(), 300, "1912-02-01T05:07:12+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/chicago.js b/tests/america/chicago.js deleted file mode 100644 index af7d5e2e..00000000 --- a/tests/america/chicago.js +++ /dev/null @@ -1,1652 +0,0 @@ -var moment = require("../../index"); - -exports["America/Chicago"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-06-13T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1920-06-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1920-06-13T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1920-06-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1920-10-31T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1920-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1920-10-31T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1920-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1920-06-13T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1920-06-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1920-06-13T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1920-06-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1920-10-31T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1920-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1920-10-31T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1920-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-03-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1921-03-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1921-03-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1921-03-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1921-10-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1921-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1921-10-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1921-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1921-03-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1921-03-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1921-03-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1921-03-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1921-10-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1921-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1921-10-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1921-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-04-30T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1922-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1922-04-30T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1922-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1922-09-24T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1922-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1922-09-24T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1922-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1922-04-30T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1922-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1922-04-30T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1922-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1922-09-24T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1922-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1922-09-24T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1922-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-29T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1923-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1923-04-29T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1923-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1923-09-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1923-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1923-09-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1923-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1923-04-29T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1923-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1923-04-29T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1923-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1923-09-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1923-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1923-09-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1923-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1924-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1924-04-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1924-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1924-09-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1924-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1924-09-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1924-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1924-04-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1924-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1924-04-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1924-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1924-09-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1924-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1924-09-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1924-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-26T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1925-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1925-04-26T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1925-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1925-09-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1925-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1925-09-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1925-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1925-04-26T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1925-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1925-04-26T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1925-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1925-09-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1925-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1925-09-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1925-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-25T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1926-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1926-04-25T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1926-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1926-09-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1926-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1926-09-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1926-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1926-04-25T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1926-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1926-04-25T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1926-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1926-09-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1926-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1926-09-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1926-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-24T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1927-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1927-04-24T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1927-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1927-09-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1927-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1927-09-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1927-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1927-04-24T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1927-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1927-04-24T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1927-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1927-09-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1927-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1927-09-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1927-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-29T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1928-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1928-04-29T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1928-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1928-09-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1928-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1928-09-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1928-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1928-04-29T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1928-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1928-04-29T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1928-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1928-09-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1928-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1928-09-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1928-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-28T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1929-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1929-04-28T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1929-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1929-09-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1929-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1929-09-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1929-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1929-04-28T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1929-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1929-04-28T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1929-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1929-09-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1929-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1929-09-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1929-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1930-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1930-04-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1930-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1930-09-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1930-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1930-09-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1930-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1930-04-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1930-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1930-04-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1930-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1930-09-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1930-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1930-09-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1930-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-26T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1931-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1931-04-26T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1931-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1931-09-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1931-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1931-09-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1931-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1931-04-26T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1931-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-04-26T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1931-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1931-09-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1931-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1931-09-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1931-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-24T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1932-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1932-04-24T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1932-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1932-09-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1932-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1932-09-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1932-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1932-04-24T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1932-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1932-04-24T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1932-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1932-09-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1932-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1932-09-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1932-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-30T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1933-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1933-04-30T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1933-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1933-09-24T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1933-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1933-09-24T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1933-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1933-04-30T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1933-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1933-04-30T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1933-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1933-09-24T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1933-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1933-09-24T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1933-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-29T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1934-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1934-04-29T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1934-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1934-09-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1934-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1934-09-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1934-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1934-04-29T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1934-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1934-04-29T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1934-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1934-09-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1934-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1934-09-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1934-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-28T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1935-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1935-04-28T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1935-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1935-09-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1935-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1935-09-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1935-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1935-04-28T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1935-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1935-04-28T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1935-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1935-09-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1935-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1935-09-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1935-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-01T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1936-03-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1936-03-01T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1936-03-01T08:00:00+00:00 should be 03:00:00 EST"); - t.equal(moment("1936-11-15T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1936-11-15T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1936-11-15T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1936-11-15T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1936-03-01T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1936-03-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1936-03-01T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1936-03-01T08:00:00+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1936-11-15T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1936-11-15T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1936-11-15T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1936-11-15T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-25T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1937-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1937-04-25T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1937-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1937-09-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1937-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1937-09-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1937-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1937-04-25T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1937-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1937-04-25T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1937-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1937-09-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1937-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1937-09-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1937-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-24T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1938-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1938-04-24T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1938-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1938-09-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1938-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1938-09-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1938-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1938-04-24T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1938-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1938-04-24T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1938-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1938-09-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1938-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1938-09-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1938-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-30T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1939-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1939-04-30T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1939-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1939-09-24T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1939-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1939-09-24T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1939-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1939-04-30T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1939-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1939-04-30T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1939-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1939-09-24T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1939-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1939-09-24T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1939-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-28T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1940-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1940-04-28T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1940-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1940-09-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1940-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1940-09-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1940-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1940-04-28T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1940-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1940-04-28T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1940-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1940-09-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1940-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1940-09-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1940-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1941-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1941-04-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1941-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1941-09-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1941-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1941-09-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1941-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1941-04-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1941-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1941-04-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1941-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1941-09-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1941-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1941-09-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1941-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Chicago").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Chicago").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1946-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1946-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1946-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1946-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1946-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1946-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1946-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1946-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1947-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1947-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1947-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1947-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1947-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1947-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1947-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1947-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1948-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1948-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1948-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1948-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1948-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1948-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1948-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1948-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1949-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1949-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1949-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1949-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1949-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1949-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1949-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1949-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1950-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1950-04-30T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1950-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1950-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1950-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1950-04-30T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1950-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1950-04-30T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1950-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1950-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1950-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1951-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1951-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1951-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1951-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1951-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1951-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1951-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1951-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1952-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1952-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1952-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1952-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1952-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1952-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1952-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1952-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1955-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1955-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1955-10-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1955-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1955-10-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1955-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1955-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1955-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-10-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1955-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-10-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1955-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1956-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1956-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1956-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1956-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1957-10-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1957-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1957-10-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1957-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-10-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1957-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-10-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1957-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1958-10-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1958-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1958-10-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1958-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-10-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1958-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-10-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1958-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1959-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1959-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1959-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1959-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1960-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1960-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1960-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1960-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1961-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1961-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1961-10-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1961-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1961-10-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1961-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1961-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1961-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-10-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1961-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-10-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1961-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1962-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1962-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1962-10-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1962-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1962-10-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1962-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1962-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1962-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1962-10-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1962-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1962-10-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1962-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1963-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1963-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1963-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1963-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1963-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1963-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1963-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1963-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1964-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1964-04-26T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1964-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1964-10-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1964-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1964-10-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1964-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1964-04-26T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1964-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1964-04-26T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1964-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1964-10-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1964-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1964-10-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1964-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1965-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1965-04-25T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1965-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1965-10-31T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1965-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1965-10-31T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1965-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1965-04-25T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1965-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1965-04-25T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1965-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1965-10-31T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1965-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1965-10-31T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1965-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1966-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1966-04-24T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1966-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1966-10-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1966-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1966-10-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1966-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1966-04-24T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1966-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1966-04-24T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1966-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1966-10-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1966-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1966-10-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1966-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1967-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1967-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1967-10-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1967-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1967-10-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1967-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1967-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1967-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1967-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1967-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1968-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1968-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1968-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1968-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1968-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1968-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1968-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1968-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1969-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1969-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1969-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1969-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1969-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1969-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1969-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1969-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1970-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1970-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1970-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1970-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1970-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1970-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1970-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1970-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1971-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1971-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1971-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1971-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1971-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1971-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1971-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1971-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1972-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1972-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1972-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1972-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1972-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1972-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1972-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1972-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1973-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1973-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1973-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1973-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1973-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1973-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1973-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1973-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1974-01-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1974-01-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1974-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1974-01-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1974-01-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1974-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1975-02-23T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1975-02-23T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1975-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1975-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1975-02-23T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1975-02-23T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1975-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1975-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1976-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1976-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1976-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1976-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1976-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1976-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1976-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1976-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1977-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1977-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1977-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1977-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1977-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1977-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1977-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1977-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1978-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1978-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1978-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1978-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1978-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1978-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1978-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1978-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1979-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1979-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1979-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1979-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1979-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1979-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1979-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1979-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1980-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1980-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1980-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1980-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1981-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1981-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1981-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1981-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1982-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1982-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1982-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1982-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1983-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1983-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1983-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1983-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1984-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1984-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1984-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1984-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1985-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1985-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1985-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1985-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1985-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1985-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1986-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1986-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1986-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1986-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1986-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1986-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1986-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1986-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1987-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1987-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1987-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1987-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1987-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1987-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1987-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1987-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1989-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1989-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1989-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1989-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1989-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1989-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1989-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1989-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1990-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1990-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1990-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1990-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1990-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1990-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1990-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1990-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1991-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1991-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1991-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1991-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1991-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1991-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1991-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1991-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1992-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1992-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1992-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1992-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1992-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1992-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1992-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1992-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1993-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1993-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1993-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1993-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1993-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1993-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1993-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1993-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1994-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1994-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1994-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1994-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1994-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1994-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1994-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1994-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1995-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1995-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1995-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1995-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1995-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1995-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1995-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1995-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Chicago").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Chicago").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Chicago").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Chicago").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2001-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2001-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2001-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2001-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2001-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2001-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2001-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2001-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Chicago").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Chicago").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Chicago").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Chicago").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Chicago").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/chihuahua.js b/tests/america/chihuahua.js deleted file mode 100644 index 697661e2..00000000 --- a/tests/america/chihuahua.js +++ /dev/null @@ -1,646 +0,0 @@ -var moment = require("../../index"); - -exports["America/Chihuahua"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "23:55:39", "1922-01-01T06:59:59+00:00 should be 23:55:39 LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "00:00:00", "1922-01-01T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Chihuahua").zone(), 25460 / 60, "1922-01-01T06:59:59+00:00 should be 25460 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Chihuahua").zone(), 420, "1922-01-01T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "22:59:59", "1927-06-11T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "00:00:00", "1927-06-11T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Chihuahua").zone(), 420, "1927-06-11T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Chihuahua").zone(), 360, "1927-06-11T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "23:59:59", "1930-11-15T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "23:00:00", "1930-11-15T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Chihuahua").zone(), 360, "1930-11-15T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Chihuahua").zone(), 420, "1930-11-15T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "22:59:59", "1931-05-02T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "00:00:00", "1931-05-02T06:00:00+00:00 should be 00:00:00 CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "23:59:59", "1931-10-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "23:00:00", "1931-10-01T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Chihuahua").zone(), 420, "1931-05-02T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Chihuahua").zone(), 360, "1931-05-02T06:00:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Chihuahua").zone(), 360, "1931-10-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Chihuahua").zone(), 420, "1931-10-01T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "23:59:59", "1932-04-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "1932-04-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Chihuahua").zone(), 420, "1932-04-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Chihuahua").zone(), 360, "1932-04-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Chihuahua").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Chihuahua").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Chihuahua").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Chihuahua").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Chihuahua").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Chihuahua").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "02:59:59", "1998-04-05T08:59:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Chihuahua").zone(), 360, "1998-04-05T08:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-05-06T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2001-05-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-05-06T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2001-05-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-09-30T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2001-09-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-09-30T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2001-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-05-06T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2001-05-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-05-06T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2001-05-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-09-30T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2001-09-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-09-30T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2001-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2007-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-04-01T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2007-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-10-28T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2007-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-10-28T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2007-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-04-01T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2007-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-04-01T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2007-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-10-28T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2007-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-10-28T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2007-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2008-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-04-06T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2008-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-10-26T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2008-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-10-26T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2008-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-04-06T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2008-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-04-06T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2008-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-10-26T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2008-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-10-26T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2008-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2009-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-04-05T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2009-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-10-25T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2009-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-10-25T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2009-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-04-05T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2009-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-04-05T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2009-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-10-25T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2009-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-10-25T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2009-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2010-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-04-04T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2010-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-10-31T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2010-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-10-31T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2010-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-04-04T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2010-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-04-04T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2010-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-10-31T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2010-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-10-31T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2010-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-03T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2011-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-04-03T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2011-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-10-30T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2011-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-10-30T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2011-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-04-03T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2011-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-04-03T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2011-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-10-30T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2011-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-10-30T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2011-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-01T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2012-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-04-01T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2012-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-10-28T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2012-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-10-28T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2012-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-04-01T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2012-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-04-01T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2012-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-10-28T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2012-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-10-28T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2012-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-07T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2013-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-04-07T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2013-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-10-27T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2013-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-10-27T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2013-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-04-07T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2013-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-04-07T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2013-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-10-27T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2013-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-10-27T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2013-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-06T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2014-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-04-06T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2014-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-10-26T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2014-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-10-26T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2014-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-04-06T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2014-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-04-06T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2014-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-10-26T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2014-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-10-26T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2014-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-05T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2015-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-04-05T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2015-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-10-25T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2015-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-10-25T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2015-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-04-05T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2015-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-04-05T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2015-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-10-25T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2015-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-10-25T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2015-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-03T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2016-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-04-03T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2016-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-10-30T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2016-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-10-30T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2016-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-04-03T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2016-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-04-03T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2016-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-10-30T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2016-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-10-30T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2016-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-02T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2017-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-04-02T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2017-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-10-29T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2017-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-10-29T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2017-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-04-02T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2017-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-04-02T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2017-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-10-29T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2017-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-10-29T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2017-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-01T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2018-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-04-01T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2018-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-10-28T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2018-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-10-28T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2018-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-04-01T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2018-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-04-01T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2018-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-10-28T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2018-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-10-28T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2018-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-07T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2019-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-04-07T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2019-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-10-27T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2019-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-10-27T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2019-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-04-07T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2019-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-04-07T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2019-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-10-27T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2019-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-10-27T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2019-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-05T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2020-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-04-05T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2020-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-10-25T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2020-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-10-25T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2020-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-04-05T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2020-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-04-05T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2020-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-10-25T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2020-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-10-25T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2020-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-04T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2021-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-04-04T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2021-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-10-31T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2021-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-10-31T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2021-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-04-04T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2021-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-04-04T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2021-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-10-31T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2021-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-10-31T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2021-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-03T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2022-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-04-03T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2022-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-10-30T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2022-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-10-30T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2022-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-04-03T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2022-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-04-03T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2022-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-10-30T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2022-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-10-30T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2022-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-02T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2023-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-04-02T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2023-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-10-29T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2023-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-10-29T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2023-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-04-02T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2023-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-04-02T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2023-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-10-29T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2023-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-10-29T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2023-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-07T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2024-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-04-07T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2024-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-10-27T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2024-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-10-27T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2024-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-04-07T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2024-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-04-07T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2024-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-10-27T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2024-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-10-27T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2024-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-06T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2025-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-04-06T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2025-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-10-26T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2025-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-10-26T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2025-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-04-06T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2025-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-04-06T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2025-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-10-26T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2025-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-10-26T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2025-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-05T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2026-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-04-05T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2026-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-10-25T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2026-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-10-25T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2026-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-04-05T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2026-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-04-05T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2026-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-10-25T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2026-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-10-25T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2026-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-04T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2027-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-04-04T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2027-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-10-31T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2027-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-10-31T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2027-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-04-04T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2027-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-04-04T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2027-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-10-31T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2027-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-10-31T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2027-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-02T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2028-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-04-02T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2028-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-10-29T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2028-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-10-29T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2028-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-04-02T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2028-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-04-02T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2028-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-10-29T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2028-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-10-29T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2028-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-01T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2029-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-04-01T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2029-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-10-28T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2029-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-10-28T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2029-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-04-01T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2029-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-04-01T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2029-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-10-28T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2029-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-10-28T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2029-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-07T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2030-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-04-07T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2030-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-10-27T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2030-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-10-27T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2030-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-04-07T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2030-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-04-07T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2030-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-10-27T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2030-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-10-27T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2030-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-06T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2031-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-04-06T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2031-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-10-26T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2031-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-10-26T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2031-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-04-06T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2031-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-04-06T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2031-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-10-26T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2031-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-10-26T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2031-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-04T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2032-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-04-04T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2032-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-10-31T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2032-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-10-31T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2032-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-04-04T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2032-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-04-04T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2032-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-10-31T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2032-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-10-31T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2032-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-03T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2033-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-04-03T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2033-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-10-30T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2033-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-10-30T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2033-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-04-03T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2033-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-04-03T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2033-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-10-30T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2033-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-10-30T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2033-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-02T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2034-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-04-02T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2034-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-10-29T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2034-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-10-29T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2034-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-04-02T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2034-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-04-02T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2034-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-10-29T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2034-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-10-29T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2034-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-01T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2035-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-04-01T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2035-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-10-28T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2035-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-10-28T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2035-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-04-01T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2035-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-04-01T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2035-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-10-28T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2035-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-10-28T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2035-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-06T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2036-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-04-06T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2036-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-10-26T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2036-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-10-26T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2036-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-04-06T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2036-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-04-06T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2036-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-10-26T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2036-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-10-26T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2036-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-05T08:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2037-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-04-05T09:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "03:00:00", "2037-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-10-25T07:59:59+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:59:59", "2037-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-10-25T08:00:00+00:00").tz("America/Chihuahua").format("HH:mm:ss"), "01:00:00", "2037-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-04-05T08:59:59+00:00").tz("America/Chihuahua").zone(), 420, "2037-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-04-05T09:00:00+00:00").tz("America/Chihuahua").zone(), 360, "2037-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-10-25T07:59:59+00:00").tz("America/Chihuahua").zone(), 360, "2037-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-10-25T08:00:00+00:00").tz("America/Chihuahua").zone(), 420, "2037-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/costa_rica.js b/tests/america/costa_rica.js deleted file mode 100644 index ed2cca63..00000000 --- a/tests/america/costa_rica.js +++ /dev/null @@ -1,70 +0,0 @@ -var moment = require("../../index"); - -exports["America/Costa_Rica"] = { - - "1921" : function (t) { - t.equal(moment("1921-01-15T05:36:12+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:59:59", "1921-01-15T05:36:12+00:00 should be 23:59:59 SJMT"); - t.equal(moment("1921-01-15T05:36:13+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:36:13", "1921-01-15T05:36:13+00:00 should be 23:36:13 CST"); - - t.equal(moment("1921-01-15T05:36:12+00:00").tz("America/Costa_Rica").zone(), 20173 / 60, "1921-01-15T05:36:12+00:00 should be 20173 / 60 minutes offset in SJMT"); - t.equal(moment("1921-01-15T05:36:13+00:00").tz("America/Costa_Rica").zone(), 360, "1921-01-15T05:36:13+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-02-25T05:59:59+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:59:59", "1979-02-25T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1979-02-25T06:00:00+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "01:00:00", "1979-02-25T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1979-06-03T04:59:59+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:59:59", "1979-06-03T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1979-06-03T05:00:00+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:00:00", "1979-06-03T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1979-02-25T05:59:59+00:00").tz("America/Costa_Rica").zone(), 360, "1979-02-25T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1979-02-25T06:00:00+00:00").tz("America/Costa_Rica").zone(), 300, "1979-02-25T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-06-03T04:59:59+00:00").tz("America/Costa_Rica").zone(), 300, "1979-06-03T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-06-03T05:00:00+00:00").tz("America/Costa_Rica").zone(), 360, "1979-06-03T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-02-24T05:59:59+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:59:59", "1980-02-24T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1980-02-24T06:00:00+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "01:00:00", "1980-02-24T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1980-06-01T04:59:59+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:59:59", "1980-06-01T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1980-06-01T05:00:00+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:00:00", "1980-06-01T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1980-02-24T05:59:59+00:00").tz("America/Costa_Rica").zone(), 360, "1980-02-24T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-02-24T06:00:00+00:00").tz("America/Costa_Rica").zone(), 300, "1980-02-24T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-06-01T04:59:59+00:00").tz("America/Costa_Rica").zone(), 300, "1980-06-01T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-06-01T05:00:00+00:00").tz("America/Costa_Rica").zone(), 360, "1980-06-01T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-01-19T05:59:59+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:59:59", "1991-01-19T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1991-01-19T06:00:00+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "01:00:00", "1991-01-19T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1991-07-01T04:59:59+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:59:59", "1991-07-01T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1991-07-01T05:00:00+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:00:00", "1991-07-01T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1991-01-19T05:59:59+00:00").tz("America/Costa_Rica").zone(), 360, "1991-01-19T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-01-19T06:00:00+00:00").tz("America/Costa_Rica").zone(), 300, "1991-01-19T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-07-01T04:59:59+00:00").tz("America/Costa_Rica").zone(), 300, "1991-07-01T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-07-01T05:00:00+00:00").tz("America/Costa_Rica").zone(), 360, "1991-07-01T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T05:59:59+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:59:59", "1992-01-18T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1992-01-18T06:00:00+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "01:00:00", "1992-01-18T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1992-03-15T04:59:59+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:59:59", "1992-03-15T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1992-03-15T05:00:00+00:00").tz("America/Costa_Rica").format("HH:mm:ss"), "23:00:00", "1992-03-15T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1992-01-18T05:59:59+00:00").tz("America/Costa_Rica").zone(), 360, "1992-01-18T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-01-18T06:00:00+00:00").tz("America/Costa_Rica").zone(), 300, "1992-01-18T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-03-15T04:59:59+00:00").tz("America/Costa_Rica").zone(), 300, "1992-03-15T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-03-15T05:00:00+00:00").tz("America/Costa_Rica").zone(), 360, "1992-03-15T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/creston.js b/tests/america/creston.js deleted file mode 100644 index f5118cc2..00000000 --- a/tests/america/creston.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["America/Creston"] = { - - "1916" : function (t) { - t.equal(moment("1916-10-01T06:59:59+00:00").tz("America/Creston").format("HH:mm:ss"), "23:59:59", "1916-10-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1916-10-01T07:00:00+00:00").tz("America/Creston").format("HH:mm:ss"), "23:00:00", "1916-10-01T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1916-10-01T06:59:59+00:00").tz("America/Creston").zone(), 420, "1916-10-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1916-10-01T07:00:00+00:00").tz("America/Creston").zone(), 480, "1916-10-01T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-06-02T07:59:59+00:00").tz("America/Creston").format("HH:mm:ss"), "23:59:59", "1918-06-02T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1918-06-02T08:00:00+00:00").tz("America/Creston").format("HH:mm:ss"), "01:00:00", "1918-06-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-06-02T07:59:59+00:00").tz("America/Creston").zone(), 480, "1918-06-02T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1918-06-02T08:00:00+00:00").tz("America/Creston").zone(), 420, "1918-06-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/cuiaba.js b/tests/america/cuiaba.js deleted file mode 100644 index ad2142b5..00000000 --- a/tests/america/cuiaba.js +++ /dev/null @@ -1,916 +0,0 @@ -var moment = require("../../index"); - -exports["America/Cuiaba"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T03:44:19+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1914-01-01T03:44:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T03:44:20+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:44:20", "1914-01-01T03:44:20+00:00 should be 23:44:20 AMT"); - - t.equal(moment("1914-01-01T03:44:19+00:00").tz("America/Cuiaba").zone(), 13460 / 60, "1914-01-01T03:44:19+00:00 should be 13460 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T03:44:20+00:00").tz("America/Cuiaba").zone(), 240, "1914-01-01T03:44:20+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "10:59:59", "1931-10-03T14:59:59+00:00 should be 10:59:59 AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "12:00:00", "1931-10-03T15:00:00+00:00 should be 12:00:00 AMST"); - - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1931-10-03T14:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1931-10-03T15:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1932-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1932-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1932-10-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1932-10-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1932-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1932-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1932-10-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1932-10-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1933-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1933-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1933-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1933-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1949-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1949-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1949-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1949-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "00:59:59", "1950-04-16T03:59:59+00:00 should be 00:59:59 AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "00:00:00", "1950-04-16T04:00:00+00:00 should be 00:00:00 AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1950-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1950-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1950-04-16T03:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1950-04-16T04:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1950-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1950-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1951-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1951-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1951-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1951-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1951-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1951-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1951-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1951-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1952-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1952-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1952-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1952-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1952-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1952-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1952-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1952-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1953-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1953-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1953-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1953-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1963-12-09T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1963-12-09T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1963-12-09T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1963-12-09T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1965-01-31T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1965-01-31T04:00:00+00:00 should be 01:00:00 AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1965-03-31T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1965-03-31T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1965-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1965-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1965-01-31T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1965-01-31T04:00:00+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1965-03-31T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1965-03-31T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1965-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1965-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1966-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1966-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1966-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1966-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1967-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1967-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1967-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1967-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1967-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1967-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1967-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1967-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1968-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1968-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1968-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1968-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1985-11-02T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1985-11-02T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1985-11-02T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1985-11-02T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1986-03-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1986-03-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1986-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1986-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1986-03-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1986-03-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1986-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1986-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1987-02-14T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1987-02-14T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1987-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1987-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1987-02-14T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1987-02-14T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1987-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1987-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1988-02-07T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1988-02-07T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1988-10-16T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1988-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1988-10-16T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1988-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1988-02-07T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1988-02-07T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1988-10-16T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1988-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1988-10-16T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1988-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-01-29T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1989-01-29T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1989-01-29T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1989-01-29T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1989-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1989-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1989-01-29T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1989-01-29T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1989-01-29T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1989-01-29T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1989-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1989-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-02-11T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1990-02-11T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1990-02-11T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1990-02-11T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1990-10-21T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1990-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1990-10-21T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1990-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1990-02-11T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1990-02-11T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1990-02-11T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1990-02-11T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1990-10-21T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1990-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1990-10-21T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1990-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-02-17T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1991-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1991-02-17T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1991-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1991-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1991-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1991-02-17T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1991-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1991-02-17T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1991-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1991-10-20T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1991-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1991-10-20T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1991-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-09T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1992-02-09T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1992-02-09T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1992-02-09T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1992-10-25T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1992-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1992-10-25T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1992-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1992-02-09T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1992-02-09T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1992-02-09T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1992-02-09T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1992-10-25T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1992-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1992-10-25T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1992-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-01-31T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1993-01-31T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1993-01-31T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1993-01-31T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1993-10-17T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1993-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1993-10-17T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1993-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1993-01-31T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1993-01-31T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1993-01-31T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1993-01-31T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1993-10-17T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1993-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1993-10-17T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1993-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-02-20T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1994-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1994-02-20T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1994-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1994-10-16T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1994-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1994-10-16T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1994-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1994-02-20T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1994-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1994-02-20T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1994-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1994-10-16T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1994-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1994-10-16T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1994-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-02-19T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1995-02-19T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1995-02-19T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1995-02-19T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1995-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1995-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1995-02-19T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1995-02-19T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1995-02-19T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1995-02-19T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1995-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1995-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-02-11T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1996-02-11T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1996-02-11T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1996-02-11T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1996-10-06T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1996-10-06T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1996-10-06T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1996-10-06T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1996-02-11T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1996-02-11T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1996-02-11T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1996-02-11T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1996-10-06T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1996-10-06T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1996-10-06T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1996-10-06T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-02-16T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1997-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1997-02-16T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1997-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1997-10-06T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1997-10-06T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1997-10-06T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1997-10-06T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1997-02-16T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1997-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1997-02-16T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1997-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1997-10-06T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1997-10-06T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1997-10-06T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1997-10-06T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-01T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1998-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1998-03-01T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1998-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1998-10-11T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1998-10-11T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1998-10-11T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1998-10-11T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1998-03-01T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1998-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1998-03-01T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1998-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1998-10-11T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1998-10-11T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1998-10-11T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1998-10-11T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-02-21T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1999-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1999-02-21T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "1999-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1999-10-03T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "1999-10-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1999-10-03T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "1999-10-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1999-02-21T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "1999-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1999-02-21T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "1999-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1999-10-03T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "1999-10-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1999-10-03T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "1999-10-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2000-02-27T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2000-02-27T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2000-02-27T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2000-10-08T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2000-10-08T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2000-10-08T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2000-10-08T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2000-02-27T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2000-02-27T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2000-02-27T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2000-02-27T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2000-10-08T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2000-10-08T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2000-10-08T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2000-10-08T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-02-18T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2001-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2001-02-18T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2001-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2001-10-14T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2001-10-14T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2001-02-18T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2001-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2001-02-18T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2001-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2001-10-14T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2001-10-14T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-02-17T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2002-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2002-02-17T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2002-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2002-11-03T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2002-11-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2002-11-03T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2002-11-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2002-02-17T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2002-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2002-02-17T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2002-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2002-11-03T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2002-11-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2002-11-03T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2002-11-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-02-16T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2003-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2003-02-16T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2003-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("2003-02-16T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2003-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2003-02-16T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2003-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-11-02T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2004-11-02T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2004-11-02T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2004-11-02T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2004-11-02T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2004-11-02T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2004-11-02T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2004-11-02T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-02-20T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2005-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2005-02-20T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2005-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2005-10-16T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2005-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2005-10-16T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2005-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2005-02-20T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2005-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2005-02-20T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2005-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2005-10-16T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2005-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2005-10-16T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2005-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-02-19T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2006-02-19T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2006-02-19T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2006-02-19T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2006-11-05T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2006-11-05T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2006-11-05T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2006-11-05T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2006-02-19T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2006-02-19T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2006-02-19T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2006-02-19T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2006-11-05T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2006-11-05T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2006-11-05T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2006-11-05T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-02-25T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2007-02-25T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2007-02-25T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2007-02-25T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2007-10-14T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2007-10-14T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2007-02-25T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2007-02-25T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2007-02-25T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2007-02-25T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2007-10-14T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2007-10-14T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-02-17T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2008-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2008-02-17T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2008-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2008-10-19T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2008-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2008-10-19T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2008-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2008-02-17T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2008-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2008-02-17T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2008-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2008-10-19T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2008-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2008-10-19T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2008-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-02-15T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2009-02-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2009-02-15T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2009-02-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2009-10-18T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2009-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2009-10-18T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2009-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2009-02-15T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2009-02-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2009-02-15T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2009-02-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2009-10-18T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2009-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2009-10-18T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2009-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-02-21T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2010-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2010-02-21T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2010-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2010-10-17T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2010-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2010-10-17T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2010-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2010-02-21T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2010-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2010-02-21T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2010-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2010-10-17T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2010-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2010-10-17T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2010-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-02-20T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2011-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2011-02-20T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2011-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2011-10-16T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2011-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2011-10-16T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2011-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2011-02-20T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2011-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2011-02-20T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2011-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2011-10-16T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2011-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2011-10-16T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2011-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-02-26T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2012-02-26T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2012-02-26T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2012-02-26T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2012-10-21T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2012-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2012-10-21T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2012-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2012-02-26T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2012-02-26T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2012-02-26T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2012-02-26T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2012-10-21T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2012-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2012-10-21T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2012-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-02-17T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2013-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2013-02-17T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2013-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2013-10-20T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2013-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2013-10-20T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2013-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2013-02-17T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2013-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2013-02-17T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2013-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2013-10-20T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2013-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2013-10-20T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2013-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-02-16T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2014-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2014-02-16T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2014-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2014-10-19T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2014-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2014-10-19T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2014-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2014-02-16T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2014-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2014-02-16T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2014-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2014-10-19T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2014-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2014-10-19T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2014-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-02-22T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2015-02-22T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2015-02-22T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2015-02-22T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2015-10-18T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2015-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2015-10-18T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2015-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2015-02-22T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2015-02-22T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2015-02-22T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2015-02-22T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2015-10-18T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2015-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2015-10-18T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2015-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-02-21T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2016-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2016-02-21T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2016-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2016-10-16T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2016-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2016-10-16T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2016-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2016-02-21T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2016-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2016-02-21T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2016-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2016-10-16T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2016-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2016-10-16T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2016-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-02-19T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2017-02-19T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2017-02-19T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2017-02-19T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2017-10-15T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2017-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2017-10-15T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2017-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2017-02-19T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2017-02-19T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2017-02-19T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2017-02-19T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2017-10-15T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2017-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2017-10-15T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2017-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-02-18T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2018-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2018-02-18T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2018-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2018-10-21T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2018-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2018-10-21T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2018-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2018-02-18T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2018-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2018-02-18T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2018-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2018-10-21T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2018-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2018-10-21T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2018-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-02-17T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2019-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2019-02-17T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2019-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2019-10-20T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2019-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2019-10-20T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2019-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2019-02-17T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2019-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2019-02-17T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2019-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2019-10-20T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2019-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2019-10-20T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2019-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-02-16T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2020-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2020-02-16T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2020-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2020-10-18T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2020-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2020-10-18T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2020-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2020-02-16T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2020-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2020-02-16T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2020-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2020-10-18T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2020-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2020-10-18T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2020-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-02-21T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2021-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2021-02-21T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2021-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2021-10-17T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2021-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2021-10-17T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2021-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2021-02-21T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2021-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2021-02-21T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2021-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2021-10-17T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2021-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2021-10-17T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2021-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-02-20T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2022-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2022-02-20T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2022-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2022-10-16T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2022-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2022-10-16T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2022-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2022-02-20T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2022-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2022-02-20T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2022-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2022-10-16T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2022-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2022-10-16T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2022-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-02-26T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2023-02-26T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2023-02-26T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2023-02-26T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2023-10-15T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2023-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2023-10-15T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2023-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2023-02-26T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2023-02-26T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2023-02-26T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2023-02-26T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2023-10-15T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2023-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2023-10-15T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2023-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-02-18T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2024-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2024-02-18T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2024-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2024-10-20T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2024-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2024-10-20T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2024-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2024-02-18T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2024-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2024-02-18T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2024-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2024-10-20T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2024-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2024-10-20T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2024-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-02-16T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2025-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2025-02-16T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2025-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2025-10-19T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2025-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2025-10-19T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2025-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2025-02-16T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2025-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2025-02-16T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2025-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2025-10-19T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2025-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2025-10-19T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2025-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-02-22T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2026-02-22T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2026-02-22T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2026-02-22T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2026-10-18T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2026-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2026-10-18T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2026-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2026-02-22T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2026-02-22T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2026-02-22T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2026-02-22T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2026-10-18T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2026-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2026-10-18T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2026-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-02-21T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2027-02-21T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2027-02-21T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2027-02-21T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2027-10-17T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2027-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2027-10-17T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2027-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2027-02-21T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2027-02-21T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2027-02-21T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2027-02-21T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2027-10-17T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2027-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2027-10-17T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2027-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-02-20T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2028-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2028-02-20T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2028-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2028-10-15T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2028-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2028-10-15T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2028-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2028-02-20T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2028-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2028-02-20T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2028-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2028-10-15T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2028-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2028-10-15T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2028-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-02-18T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2029-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2029-02-18T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2029-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2029-10-21T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2029-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2029-10-21T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2029-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2029-02-18T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2029-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2029-02-18T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2029-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2029-10-21T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2029-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2029-10-21T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2029-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-02-17T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2030-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2030-02-17T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2030-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2030-10-20T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2030-10-20T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2030-10-20T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2030-10-20T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2030-02-17T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2030-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2030-02-17T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2030-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2030-10-20T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2030-10-20T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2030-10-20T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2030-10-20T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-02-16T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2031-02-16T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2031-02-16T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2031-02-16T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2031-10-19T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2031-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2031-10-19T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2031-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2031-02-16T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2031-02-16T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2031-02-16T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2031-02-16T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2031-10-19T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2031-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2031-10-19T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2031-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-02-15T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2032-02-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2032-02-15T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2032-02-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2032-10-17T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2032-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2032-10-17T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2032-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2032-02-15T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2032-02-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2032-02-15T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2032-02-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2032-10-17T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2032-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2032-10-17T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2032-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-02-20T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2033-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2033-02-20T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2033-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2033-10-16T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2033-10-16T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2033-10-16T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2033-10-16T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2033-02-20T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2033-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2033-02-20T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2033-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2033-10-16T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2033-10-16T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2033-10-16T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2033-10-16T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-02-26T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2034-02-26T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2034-02-26T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2034-02-26T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2034-10-15T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2034-10-15T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2034-10-15T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2034-10-15T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2034-02-26T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2034-02-26T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2034-02-26T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2034-02-26T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2034-10-15T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2034-10-15T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2034-10-15T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2034-10-15T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-02-18T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2035-02-18T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2035-02-18T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2035-02-18T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2035-10-21T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2035-10-21T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2035-10-21T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2035-10-21T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2035-02-18T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2035-02-18T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2035-02-18T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2035-02-18T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2035-10-21T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2035-10-21T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2035-10-21T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2035-10-21T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-02-17T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2036-02-17T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2036-02-17T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2036-02-17T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2036-10-19T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2036-10-19T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2036-10-19T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2036-10-19T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2036-02-17T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2036-02-17T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2036-02-17T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2036-02-17T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2036-10-19T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2036-10-19T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2036-10-19T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2036-10-19T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-02-22T02:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2037-02-22T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("2037-02-22T03:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:00:00", "2037-02-22T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("2037-10-18T03:59:59+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "23:59:59", "2037-10-18T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2037-10-18T04:00:00+00:00").tz("America/Cuiaba").format("HH:mm:ss"), "01:00:00", "2037-10-18T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("2037-02-22T02:59:59+00:00").tz("America/Cuiaba").zone(), 180, "2037-02-22T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("2037-02-22T03:00:00+00:00").tz("America/Cuiaba").zone(), 240, "2037-02-22T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2037-10-18T03:59:59+00:00").tz("America/Cuiaba").zone(), 240, "2037-10-18T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2037-10-18T04:00:00+00:00").tz("America/Cuiaba").zone(), 180, "2037-10-18T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/curacao.js b/tests/america/curacao.js deleted file mode 100644 index e4f412ee..00000000 --- a/tests/america/curacao.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["America/Curacao"] = { - - "1912" : function (t) { - t.equal(moment("1912-02-12T04:35:46+00:00").tz("America/Curacao").format("HH:mm:ss"), "23:59:59", "1912-02-12T04:35:46+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-02-12T04:35:47+00:00").tz("America/Curacao").format("HH:mm:ss"), "00:05:47", "1912-02-12T04:35:47+00:00 should be 00:05:47 ANT"); - - t.equal(moment("1912-02-12T04:35:46+00:00").tz("America/Curacao").zone(), 16547 / 60, "1912-02-12T04:35:46+00:00 should be 16547 / 60 minutes offset in LMT"); - t.equal(moment("1912-02-12T04:35:47+00:00").tz("America/Curacao").zone(), 270, "1912-02-12T04:35:47+00:00 should be 270 minutes offset in ANT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-01T04:29:59+00:00").tz("America/Curacao").format("HH:mm:ss"), "23:59:59", "1965-01-01T04:29:59+00:00 should be 23:59:59 ANT"); - t.equal(moment("1965-01-01T04:30:00+00:00").tz("America/Curacao").format("HH:mm:ss"), "00:30:00", "1965-01-01T04:30:00+00:00 should be 00:30:00 AST"); - - t.equal(moment("1965-01-01T04:29:59+00:00").tz("America/Curacao").zone(), 270, "1965-01-01T04:29:59+00:00 should be 270 minutes offset in ANT"); - t.equal(moment("1965-01-01T04:30:00+00:00").tz("America/Curacao").zone(), 240, "1965-01-01T04:30:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/danmarkshavn.js b/tests/america/danmarkshavn.js deleted file mode 100644 index 33022378..00000000 --- a/tests/america/danmarkshavn.js +++ /dev/null @@ -1,248 +0,0 @@ -var moment = require("../../index"); - -exports["America/Danmarkshavn"] = { - - "1916" : function (t) { - t.equal(moment("1916-07-28T01:14:39+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:59:59", "1916-07-28T01:14:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1916-07-28T01:14:40+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:14:40", "1916-07-28T01:14:40+00:00 should be 22:14:40 WGT"); - - t.equal(moment("1916-07-28T01:14:39+00:00").tz("America/Danmarkshavn").zone(), 4480 / 60, "1916-07-28T01:14:39+00:00 should be 4480 / 60 minutes offset in LMT"); - t.equal(moment("1916-07-28T01:14:40+00:00").tz("America/Danmarkshavn").zone(), 180, "1916-07-28T01:14:40+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T04:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "01:59:59", "1980-04-06T04:59:59+00:00 should be 01:59:59 WGT"); - t.equal(moment("1980-04-06T05:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "03:00:00", "1980-04-06T05:00:00+00:00 should be 03:00:00 WGST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1980-09-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1980-09-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1980-04-06T04:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1980-04-06T04:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1980-04-06T05:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1980-04-06T05:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1980-09-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1980-09-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1981-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1981-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1981-09-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1981-09-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1981-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1981-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1981-09-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1981-09-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1982-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1982-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1982-09-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1982-09-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1982-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1982-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1982-09-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1982-09-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1983-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1983-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1983-09-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1983-09-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1983-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1983-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1983-09-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1983-09-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1984-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1984-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1984-09-30T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1984-09-30T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1984-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1984-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1984-09-30T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1984-09-30T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1985-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1985-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1985-09-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1985-09-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1985-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1985-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1985-09-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1985-09-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1986-03-30T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1986-03-30T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1986-09-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1986-09-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1986-03-30T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1986-03-30T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1986-09-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1986-09-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1987-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1987-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1987-09-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1987-09-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1987-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1987-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1987-09-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1987-09-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1988-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1988-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1988-09-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1988-09-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1988-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1988-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1988-09-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1988-09-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1989-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1989-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1989-09-24T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1989-09-24T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1989-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1989-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1989-09-24T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1989-09-24T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1990-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1990-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1990-09-30T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1990-09-30T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1990-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1990-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1990-09-30T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1990-09-30T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1991-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1991-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1991-09-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1991-09-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1991-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1991-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1991-09-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1991-09-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1992-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1992-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1992-09-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1992-09-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1992-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1992-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1992-09-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1992-09-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1993-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1993-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1993-09-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1993-09-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1993-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1993-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1993-09-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1993-09-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1994-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1994-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1994-09-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1994-09-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1994-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1994-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1994-09-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1994-09-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "21:59:59", "1995-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:00:00", "1995-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:59:59", "1995-09-24T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "22:00:00", "1995-09-24T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1995-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 120, "1995-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("America/Danmarkshavn").zone(), 120, "1995-09-24T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("America/Danmarkshavn").zone(), 180, "1995-09-24T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-01-01T02:59:59+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "23:59:59", "1996-01-01T02:59:59+00:00 should be 23:59:59 WGT"); - t.equal(moment("1996-01-01T03:00:00+00:00").tz("America/Danmarkshavn").format("HH:mm:ss"), "03:00:00", "1996-01-01T03:00:00+00:00 should be 03:00:00 GMT"); - - t.equal(moment("1996-01-01T02:59:59+00:00").tz("America/Danmarkshavn").zone(), 180, "1996-01-01T02:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1996-01-01T03:00:00+00:00").tz("America/Danmarkshavn").zone(), 0, "1996-01-01T03:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/dawson.js b/tests/america/dawson.js deleted file mode 100644 index 2cbc1096..00000000 --- a/tests/america/dawson.js +++ /dev/null @@ -1,892 +0,0 @@ -var moment = require("../../index"); - -exports["America/Dawson"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T10:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1918-04-14T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1918-04-14T11:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1918-04-14T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1918-10-27T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1918-10-27T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1918-10-27T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1918-10-27T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1918-04-14T10:59:59+00:00").tz("America/Dawson").zone(), 540, "1918-04-14T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1918-04-14T11:00:00+00:00").tz("America/Dawson").zone(), 480, "1918-04-14T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1918-10-27T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1918-10-27T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1918-10-27T10:00:00+00:00").tz("America/Dawson").zone(), 540, "1918-10-27T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-05-25T10:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1919-05-25T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1919-05-25T11:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1919-05-25T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1919-11-01T07:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "23:59:59", "1919-11-01T07:59:59+00:00 should be 23:59:59 YDT"); - t.equal(moment("1919-11-01T08:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "23:00:00", "1919-11-01T08:00:00+00:00 should be 23:00:00 YST"); - - t.equal(moment("1919-05-25T10:59:59+00:00").tz("America/Dawson").zone(), 540, "1919-05-25T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1919-05-25T11:00:00+00:00").tz("America/Dawson").zone(), 480, "1919-05-25T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1919-11-01T07:59:59+00:00").tz("America/Dawson").zone(), 480, "1919-11-01T07:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1919-11-01T08:00:00+00:00").tz("America/Dawson").zone(), 540, "1919-11-01T08:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T10:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1942-02-09T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1942-02-09T11:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1942-02-09T11:00:00+00:00 should be 03:00:00 YWT"); - - t.equal(moment("1942-02-09T10:59:59+00:00").tz("America/Dawson").zone(), 540, "1942-02-09T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1942-02-09T11:00:00+00:00").tz("America/Dawson").zone(), 480, "1942-02-09T11:00:00+00:00 should be 480 minutes offset in YWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "14:59:59", "1945-08-14T22:59:59+00:00 should be 14:59:59 YWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "15:00:00", "1945-08-14T23:00:00+00:00 should be 15:00:00 YPT"); - t.equal(moment("1945-09-30T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1945-09-30T09:59:59+00:00 should be 01:59:59 YPT"); - t.equal(moment("1945-09-30T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1945-09-30T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Dawson").zone(), 480, "1945-08-14T22:59:59+00:00 should be 480 minutes offset in YWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Dawson").zone(), 480, "1945-08-14T23:00:00+00:00 should be 480 minutes offset in YPT"); - t.equal(moment("1945-09-30T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1945-09-30T09:59:59+00:00 should be 480 minutes offset in YPT"); - t.equal(moment("1945-09-30T10:00:00+00:00").tz("America/Dawson").zone(), 540, "1945-09-30T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "23:59:59", "1965-04-25T08:59:59+00:00 should be 23:59:59 YST"); - t.equal(moment("1965-04-25T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "02:00:00", "1965-04-25T09:00:00+00:00 should be 02:00:00 YDDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1965-10-31T08:59:59+00:00 should be 01:59:59 YDDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "00:00:00", "1965-10-31T09:00:00+00:00 should be 00:00:00 YST"); - - t.equal(moment("1965-04-25T08:59:59+00:00").tz("America/Dawson").zone(), 540, "1965-04-25T08:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1965-04-25T09:00:00+00:00").tz("America/Dawson").zone(), 420, "1965-04-25T09:00:00+00:00 should be 420 minutes offset in YDDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1965-10-31T08:59:59+00:00 should be 420 minutes offset in YDDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Dawson").zone(), 540, "1965-10-31T09:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "23:59:59", "1973-10-28T08:59:59+00:00 should be 23:59:59 YST"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1973-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Dawson").zone(), 540, "1973-10-28T08:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1973-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1980-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1980-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1980-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1980-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1980-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1980-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1983-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1983-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1984-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1984-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1984-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1984-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1984-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1984-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1984-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1984-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1985-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1985-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1985-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1985-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1985-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1985-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1985-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1985-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1986-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1986-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1986-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1986-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1986-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1986-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1986-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1986-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1987-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1987-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1987-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1987-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1987-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1987-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1987-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1987-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1988-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1988-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1988-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1988-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1988-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1988-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1988-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1988-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1989-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1989-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1989-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1989-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1989-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1989-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1989-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1989-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1990-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1990-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1990-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1990-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1990-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1990-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1990-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1990-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1991-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1991-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1991-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1991-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1991-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1991-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1991-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1991-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1992-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1992-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1992-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1992-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1992-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1992-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1992-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1992-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1993-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1993-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1993-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1993-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1993-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1993-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1993-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1993-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1994-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1994-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1994-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1994-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1994-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1994-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1994-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1994-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1995-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1995-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1995-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1995-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1995-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1995-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1995-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1995-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1996-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1996-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1996-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1996-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1996-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1996-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1996-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1996-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1997-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1997-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1997-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1997-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1997-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1997-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1997-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1997-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1998-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1998-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1998-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1998-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1998-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1998-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1998-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1998-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1999-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "1999-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "1999-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "1999-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Dawson").zone(), 480, "1999-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Dawson").zone(), 420, "1999-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Dawson").zone(), 420, "1999-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Dawson").zone(), 480, "1999-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2000-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2000-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2000-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2000-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2000-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2000-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2000-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2000-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2001-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2001-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2001-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2001-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2001-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2001-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2001-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2001-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2002-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2002-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2002-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2002-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2002-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2002-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2002-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2002-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2003-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2003-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2003-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2003-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2003-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2003-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2003-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2003-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2004-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2004-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2004-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2004-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2004-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2004-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2004-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2004-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2005-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2005-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2005-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2005-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2005-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2005-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2005-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2005-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2006-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2006-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2006-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2006-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2006-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2006-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2006-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2006-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2007-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2007-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2007-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2007-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2007-03-11T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2007-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2007-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2007-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2007-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2008-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2008-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2008-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2008-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2008-03-09T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2008-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2008-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2008-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2008-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2009-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2009-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2009-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2009-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2009-03-08T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2009-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2009-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2009-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2009-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2010-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2010-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2010-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2010-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2010-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2010-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2010-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2010-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2011-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2011-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2011-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2011-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2011-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2011-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2011-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2011-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2012-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2012-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2012-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2012-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2012-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2012-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2012-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2012-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2013-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2013-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2013-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2013-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2013-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2013-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2013-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2013-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2014-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2014-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2014-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2014-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2014-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2014-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2014-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2014-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2015-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2015-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2015-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2015-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2015-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2015-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2015-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2015-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2016-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2016-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2016-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2016-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2016-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2016-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2016-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2016-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2017-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2017-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2017-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2017-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2017-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2017-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2017-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2017-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2018-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2018-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2018-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2018-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2018-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2018-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2018-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2018-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2019-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2019-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2019-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2019-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2019-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2019-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2019-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2019-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2020-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2020-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2020-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2020-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2020-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2020-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2020-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2020-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2021-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2021-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2021-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2021-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2021-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2021-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2021-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2021-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2022-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2022-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2022-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2022-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2022-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2022-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2022-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2022-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2023-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2023-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2023-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2023-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2023-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2023-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2023-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2023-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2024-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2024-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2024-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2024-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2024-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2024-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2024-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2024-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2025-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2025-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2025-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2025-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2025-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2025-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2025-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2025-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2026-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2026-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2026-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2026-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2026-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2026-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2026-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2026-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2027-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2027-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2027-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2027-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2027-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2027-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2027-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2027-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2028-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2028-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2028-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2028-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2028-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2028-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2028-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2028-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2029-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2029-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2029-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2029-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2029-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2029-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2029-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2029-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2030-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2030-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2030-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2030-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2030-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2030-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2030-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2030-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2031-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2031-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2031-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2031-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2031-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2031-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2031-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2031-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2032-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2032-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2032-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2032-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2032-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2032-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2032-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2032-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2033-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2033-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2033-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2033-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2033-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2033-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2033-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2033-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2034-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2034-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2034-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2034-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2034-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2034-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2034-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2034-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2035-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2035-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2035-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2035-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2035-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2035-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2035-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2035-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2036-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2036-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2036-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2036-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2036-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2036-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2036-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2036-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2037-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "03:00:00", "2037-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:59:59", "2037-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Dawson").format("HH:mm:ss"), "01:00:00", "2037-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Dawson").zone(), 480, "2037-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Dawson").zone(), 420, "2037-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Dawson").zone(), 420, "2037-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Dawson").zone(), 480, "2037-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/dawson_creek.js b/tests/america/dawson_creek.js deleted file mode 100644 index a186030a..00000000 --- a/tests/america/dawson_creek.js +++ /dev/null @@ -1,406 +0,0 @@ -var moment = require("../../index"); - -exports["America/Dawson_Creek"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1918-04-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1918-04-14T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1918-04-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1918-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1918-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1918-04-14T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1918-04-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1918-04-14T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1918-04-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1918-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1918-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1942-02-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1942-02-09T10:00:00+00:00 should be 03:00:00 PWT"); - - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1942-02-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1942-02-09T10:00:00+00:00 should be 420 minutes offset in PWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "15:59:59", "1945-08-14T22:59:59+00:00 should be 15:59:59 PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "16:00:00", "1945-08-14T23:00:00+00:00 should be 16:00:00 PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1945-09-30T08:59:59+00:00 should be 01:59:59 PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1945-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1945-08-14T22:59:59+00:00 should be 420 minutes offset in PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1945-08-14T23:00:00+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1945-09-30T08:59:59+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1945-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1947-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1947-04-27T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1947-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1947-09-28T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1947-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1947-09-28T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1947-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1947-04-27T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1947-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1947-04-27T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1947-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1947-09-28T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1947-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1947-09-28T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1947-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1948-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1948-04-25T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1948-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1948-09-26T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1948-09-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1948-09-26T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1948-09-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1948-04-25T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1948-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1948-04-25T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1948-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1948-09-26T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1948-09-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1948-09-26T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1948-09-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1949-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1949-04-24T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1949-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1949-09-25T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1949-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1949-09-25T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1949-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1949-04-24T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1949-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1949-04-24T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1949-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1949-09-25T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1949-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1949-09-25T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1949-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1950-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1950-04-30T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1950-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1950-09-24T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1950-09-24T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1950-09-24T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1950-09-24T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1950-04-30T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1950-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1950-04-30T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1950-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1950-09-24T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1950-09-24T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1950-09-24T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1950-09-24T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1951-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1951-04-29T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1951-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1951-09-30T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1951-09-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1951-09-30T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1951-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1951-04-29T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1951-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1951-04-29T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1951-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1951-09-30T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1951-09-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1951-09-30T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1951-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1952-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1952-04-27T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1952-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1952-09-28T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1952-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1952-09-28T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1952-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1952-04-27T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1952-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1952-04-27T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1952-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1952-09-28T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1952-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1952-09-28T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1952-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1953-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1953-04-26T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1953-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1953-09-27T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1953-09-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1953-09-27T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1953-09-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1953-04-26T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1953-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1953-04-26T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1953-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1953-09-27T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1953-09-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1953-09-27T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1953-09-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1954-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1954-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1954-09-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1954-09-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1954-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1954-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1954-09-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1954-09-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1955-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1955-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1955-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1955-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1955-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1955-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1955-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1955-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1956-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1956-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1956-09-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1956-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1956-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1956-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1956-09-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1956-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1957-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1957-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1957-09-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1957-09-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1957-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1957-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1957-09-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1957-09-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1958-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1958-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1958-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1958-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1958-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1958-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1958-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1958-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1959-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1959-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1959-09-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1959-09-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1959-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1959-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1959-09-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1959-09-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1960-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1960-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1960-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1960-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1960-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1960-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1960-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1960-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1961-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1961-04-30T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1961-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1961-09-24T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1961-09-24T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1961-09-24T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1961-09-24T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1961-04-30T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1961-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1961-04-30T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1961-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1961-09-24T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1961-09-24T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1961-09-24T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1961-09-24T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1962-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1962-04-29T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1962-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1962-10-28T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1962-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1962-10-28T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1962-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1962-04-29T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1962-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1962-04-29T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1962-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1962-10-28T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1962-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1962-10-28T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1962-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1963-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1963-04-28T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1963-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1963-10-27T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1963-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1963-10-27T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1963-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1963-04-28T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1963-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1963-04-28T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1963-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1963-10-27T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1963-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1963-10-27T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1963-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1964-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1964-04-26T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1964-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1964-10-25T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1964-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1964-10-25T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1964-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1964-04-26T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1964-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1964-04-26T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1964-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1964-10-25T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1964-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1964-10-25T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1964-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1965-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1965-04-25T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1965-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1965-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1965-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1965-04-25T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1965-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1965-04-25T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1965-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1965-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1965-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1966-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1966-04-24T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1966-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1966-10-30T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1966-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1966-10-30T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1966-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1966-04-24T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1966-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1966-04-24T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1966-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1966-10-30T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1966-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1966-10-30T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1966-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1967-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1967-04-30T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1967-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1967-10-29T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1967-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1967-10-29T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1967-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1967-04-30T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1967-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1967-04-30T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1967-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1967-10-29T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1967-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1967-10-29T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1967-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1968-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1968-04-28T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1968-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1968-10-27T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1968-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1968-10-27T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1968-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1968-04-28T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1968-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1968-04-28T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1968-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1968-10-27T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1968-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1968-10-27T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1968-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1969-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1969-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1969-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1969-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1969-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1969-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1969-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1969-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1970-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1970-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1970-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1970-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1970-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1970-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1970-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1970-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1971-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1971-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1971-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:00:00", "1971-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1971-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1971-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1971-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 480, "1971-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1972-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "03:00:00", "1972-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1972-08-30T08:59:59+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "01:59:59", "1972-08-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1972-08-30T09:00:00+00:00").tz("America/Dawson_Creek").format("HH:mm:ss"), "02:00:00", "1972-08-30T09:00:00+00:00 should be 02:00:00 MST"); - - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Dawson_Creek").zone(), 480, "1972-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1972-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-08-30T08:59:59+00:00").tz("America/Dawson_Creek").zone(), 420, "1972-08-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-08-30T09:00:00+00:00").tz("America/Dawson_Creek").zone(), 420, "1972-08-30T09:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/denver.js b/tests/america/denver.js deleted file mode 100644 index 01ce583f..00000000 --- a/tests/america/denver.js +++ /dev/null @@ -1,1106 +0,0 @@ -var moment = require("../../index"); - -exports["America/Denver"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1918-03-31T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1918-03-31T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1918-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1918-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/Denver").zone(), 420, "1918-03-31T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/Denver").zone(), 360, "1918-03-31T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Denver").zone(), 360, "1918-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Denver").zone(), 420, "1918-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1919-03-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1919-03-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1919-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1919-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/Denver").zone(), 420, "1919-03-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/Denver").zone(), 360, "1919-03-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/Denver").zone(), 360, "1919-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/Denver").zone(), 420, "1919-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-03-28T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1920-03-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1920-03-28T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1920-03-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1920-10-31T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1920-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1920-10-31T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1920-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1920-03-28T08:59:59+00:00").tz("America/Denver").zone(), 420, "1920-03-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1920-03-28T09:00:00+00:00").tz("America/Denver").zone(), 360, "1920-03-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1920-10-31T07:59:59+00:00").tz("America/Denver").zone(), 360, "1920-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1920-10-31T08:00:00+00:00").tz("America/Denver").zone(), 420, "1920-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-03-27T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1921-03-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1921-03-27T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1921-03-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1921-05-22T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1921-05-22T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1921-05-22T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1921-05-22T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1921-03-27T08:59:59+00:00").tz("America/Denver").zone(), 420, "1921-03-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1921-03-27T09:00:00+00:00").tz("America/Denver").zone(), 360, "1921-03-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1921-05-22T07:59:59+00:00").tz("America/Denver").zone(), 360, "1921-05-22T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1921-05-22T08:00:00+00:00").tz("America/Denver").zone(), 420, "1921-05-22T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Denver").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Denver").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Denver").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Denver").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Denver").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Denver").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1965-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1965-04-25T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1965-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1965-10-31T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1965-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1965-10-31T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1965-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1965-04-25T08:59:59+00:00").tz("America/Denver").zone(), 420, "1965-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1965-04-25T09:00:00+00:00").tz("America/Denver").zone(), 360, "1965-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1965-10-31T07:59:59+00:00").tz("America/Denver").zone(), 360, "1965-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1965-10-31T08:00:00+00:00").tz("America/Denver").zone(), 420, "1965-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1966-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1966-04-24T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1966-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1966-10-30T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1966-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1966-10-30T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1966-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1966-04-24T08:59:59+00:00").tz("America/Denver").zone(), 420, "1966-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1966-04-24T09:00:00+00:00").tz("America/Denver").zone(), 360, "1966-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1966-10-30T07:59:59+00:00").tz("America/Denver").zone(), 360, "1966-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1966-10-30T08:00:00+00:00").tz("America/Denver").zone(), 420, "1966-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1967-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1967-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1967-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1967-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/Denver").zone(), 420, "1967-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/Denver").zone(), 360, "1967-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Denver").zone(), 360, "1967-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Denver").zone(), 420, "1967-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1968-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1968-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1968-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1968-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/Denver").zone(), 420, "1968-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/Denver").zone(), 360, "1968-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/Denver").zone(), 360, "1968-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/Denver").zone(), 420, "1968-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1969-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1969-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1969-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1969-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/Denver").zone(), 420, "1969-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/Denver").zone(), 360, "1969-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Denver").zone(), 360, "1969-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Denver").zone(), 420, "1969-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1970-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1970-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1970-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1970-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/Denver").zone(), 420, "1970-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/Denver").zone(), 360, "1970-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/Denver").zone(), 360, "1970-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/Denver").zone(), 420, "1970-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1971-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1971-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1971-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1971-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/Denver").zone(), 420, "1971-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/Denver").zone(), 360, "1971-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/Denver").zone(), 360, "1971-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/Denver").zone(), 420, "1971-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1972-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1972-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1972-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1972-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/Denver").zone(), 420, "1972-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/Denver").zone(), 360, "1972-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Denver").zone(), 360, "1972-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Denver").zone(), 420, "1972-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1973-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1973-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1973-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1973-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/Denver").zone(), 420, "1973-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/Denver").zone(), 360, "1973-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Denver").zone(), 360, "1973-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Denver").zone(), 420, "1973-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1974-01-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1974-01-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1974-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1974-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1974-01-06T08:59:59+00:00").tz("America/Denver").zone(), 420, "1974-01-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("America/Denver").zone(), 360, "1974-01-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Denver").zone(), 360, "1974-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Denver").zone(), 420, "1974-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1975-02-23T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1975-02-23T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1975-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1975-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/Denver").zone(), 420, "1975-02-23T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/Denver").zone(), 360, "1975-02-23T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Denver").zone(), 360, "1975-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Denver").zone(), 420, "1975-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1976-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1976-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1976-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1976-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/Denver").zone(), 420, "1976-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/Denver").zone(), 360, "1976-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Denver").zone(), 360, "1976-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Denver").zone(), 420, "1976-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1977-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1977-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1977-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1977-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/Denver").zone(), 420, "1977-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/Denver").zone(), 360, "1977-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Denver").zone(), 360, "1977-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Denver").zone(), 420, "1977-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1978-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1978-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1978-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1978-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/Denver").zone(), 420, "1978-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/Denver").zone(), 360, "1978-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Denver").zone(), 360, "1978-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Denver").zone(), 420, "1978-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1979-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1979-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1979-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1979-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/Denver").zone(), 420, "1979-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/Denver").zone(), 360, "1979-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Denver").zone(), 360, "1979-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Denver").zone(), 420, "1979-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Denver").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Denver").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Denver").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Denver").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Denver").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Denver").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Denver").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Denver").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Denver").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Denver").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Denver").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Denver").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Denver").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Denver").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Denver").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Denver").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Denver").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Denver").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Denver").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Denver").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Denver").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Denver").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Denver").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Denver").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Denver").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Denver").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Denver").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Denver").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Denver").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Denver").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Denver").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Denver").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Denver").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Denver").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Denver").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Denver").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Denver").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Denver").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Denver").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Denver").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Denver").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Denver").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Denver").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Denver").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Denver").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Denver").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Denver").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Denver").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1992-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Denver").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Denver").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Denver").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Denver").zone(), 420, "1992-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1993-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1993-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1993-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1993-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Denver").zone(), 420, "1993-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Denver").zone(), 360, "1993-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Denver").zone(), 360, "1993-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Denver").zone(), 420, "1993-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1994-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1994-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1994-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1994-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Denver").zone(), 420, "1994-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Denver").zone(), 360, "1994-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Denver").zone(), 360, "1994-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Denver").zone(), 420, "1994-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1995-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1995-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1995-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1995-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Denver").zone(), 420, "1995-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Denver").zone(), 360, "1995-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Denver").zone(), 360, "1995-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Denver").zone(), 420, "1995-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Denver").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Denver").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Denver").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Denver").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Denver").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Denver").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Denver").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Denver").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Denver").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Denver").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Denver").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Denver").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Denver").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Denver").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Denver").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Denver").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Denver").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Denver").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Denver").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Denver").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2001-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2001-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2001-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2001-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Denver").zone(), 420, "2001-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Denver").zone(), 360, "2001-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Denver").zone(), 360, "2001-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Denver").zone(), 420, "2001-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Denver").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Denver").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Denver").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Denver").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Denver").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Denver").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Denver").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Denver").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Denver").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Denver").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Denver").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Denver").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Denver").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Denver").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Denver").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Denver").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Denver").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Denver").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Denver").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Denver").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2007-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2007-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2007-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2007-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Denver").zone(), 420, "2007-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Denver").zone(), 360, "2007-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Denver").zone(), 360, "2007-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Denver").zone(), 420, "2007-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2008-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2008-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2008-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2008-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Denver").zone(), 420, "2008-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Denver").zone(), 360, "2008-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Denver").zone(), 360, "2008-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Denver").zone(), 420, "2008-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2009-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2009-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2009-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2009-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Denver").zone(), 420, "2009-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Denver").zone(), 360, "2009-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Denver").zone(), 360, "2009-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Denver").zone(), 420, "2009-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2010-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2010-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2010-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2010-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Denver").zone(), 420, "2010-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Denver").zone(), 360, "2010-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Denver").zone(), 360, "2010-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Denver").zone(), 420, "2010-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2011-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2011-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2011-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2011-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Denver").zone(), 420, "2011-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Denver").zone(), 360, "2011-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Denver").zone(), 360, "2011-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Denver").zone(), 420, "2011-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2012-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2012-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2012-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2012-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Denver").zone(), 420, "2012-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Denver").zone(), 360, "2012-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Denver").zone(), 360, "2012-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Denver").zone(), 420, "2012-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2013-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2013-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2013-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2013-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Denver").zone(), 420, "2013-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Denver").zone(), 360, "2013-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Denver").zone(), 360, "2013-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Denver").zone(), 420, "2013-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2014-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2014-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2014-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2014-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Denver").zone(), 420, "2014-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Denver").zone(), 360, "2014-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Denver").zone(), 360, "2014-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Denver").zone(), 420, "2014-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2015-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2015-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2015-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2015-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Denver").zone(), 420, "2015-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Denver").zone(), 360, "2015-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Denver").zone(), 360, "2015-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Denver").zone(), 420, "2015-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2016-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2016-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2016-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2016-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Denver").zone(), 420, "2016-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Denver").zone(), 360, "2016-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Denver").zone(), 360, "2016-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Denver").zone(), 420, "2016-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2017-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2017-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2017-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2017-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Denver").zone(), 420, "2017-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Denver").zone(), 360, "2017-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Denver").zone(), 360, "2017-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Denver").zone(), 420, "2017-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2018-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2018-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2018-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2018-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Denver").zone(), 420, "2018-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Denver").zone(), 360, "2018-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Denver").zone(), 360, "2018-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Denver").zone(), 420, "2018-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2019-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2019-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2019-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2019-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Denver").zone(), 420, "2019-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Denver").zone(), 360, "2019-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Denver").zone(), 360, "2019-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Denver").zone(), 420, "2019-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2020-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2020-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2020-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2020-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Denver").zone(), 420, "2020-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Denver").zone(), 360, "2020-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Denver").zone(), 360, "2020-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Denver").zone(), 420, "2020-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2021-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2021-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2021-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2021-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Denver").zone(), 420, "2021-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Denver").zone(), 360, "2021-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Denver").zone(), 360, "2021-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Denver").zone(), 420, "2021-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2022-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2022-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2022-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2022-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Denver").zone(), 420, "2022-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Denver").zone(), 360, "2022-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Denver").zone(), 360, "2022-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Denver").zone(), 420, "2022-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2023-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2023-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2023-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2023-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Denver").zone(), 420, "2023-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Denver").zone(), 360, "2023-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Denver").zone(), 360, "2023-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Denver").zone(), 420, "2023-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2024-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2024-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2024-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2024-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Denver").zone(), 420, "2024-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Denver").zone(), 360, "2024-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Denver").zone(), 360, "2024-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Denver").zone(), 420, "2024-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2025-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2025-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2025-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2025-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Denver").zone(), 420, "2025-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Denver").zone(), 360, "2025-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Denver").zone(), 360, "2025-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Denver").zone(), 420, "2025-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2026-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2026-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2026-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2026-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Denver").zone(), 420, "2026-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Denver").zone(), 360, "2026-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Denver").zone(), 360, "2026-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Denver").zone(), 420, "2026-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2027-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2027-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2027-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2027-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Denver").zone(), 420, "2027-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Denver").zone(), 360, "2027-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Denver").zone(), 360, "2027-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Denver").zone(), 420, "2027-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2028-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2028-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2028-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2028-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Denver").zone(), 420, "2028-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Denver").zone(), 360, "2028-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Denver").zone(), 360, "2028-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Denver").zone(), 420, "2028-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2029-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2029-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2029-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2029-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Denver").zone(), 420, "2029-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Denver").zone(), 360, "2029-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Denver").zone(), 360, "2029-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Denver").zone(), 420, "2029-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2030-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2030-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2030-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2030-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Denver").zone(), 420, "2030-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Denver").zone(), 360, "2030-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Denver").zone(), 360, "2030-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Denver").zone(), 420, "2030-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2031-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2031-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2031-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2031-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Denver").zone(), 420, "2031-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Denver").zone(), 360, "2031-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Denver").zone(), 360, "2031-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Denver").zone(), 420, "2031-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2032-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2032-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2032-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2032-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Denver").zone(), 420, "2032-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Denver").zone(), 360, "2032-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Denver").zone(), 360, "2032-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Denver").zone(), 420, "2032-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2033-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2033-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2033-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2033-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Denver").zone(), 420, "2033-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Denver").zone(), 360, "2033-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Denver").zone(), 360, "2033-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Denver").zone(), 420, "2033-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2034-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2034-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2034-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2034-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Denver").zone(), 420, "2034-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Denver").zone(), 360, "2034-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Denver").zone(), 360, "2034-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Denver").zone(), 420, "2034-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2035-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2035-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2035-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2035-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Denver").zone(), 420, "2035-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Denver").zone(), 360, "2035-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Denver").zone(), 360, "2035-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Denver").zone(), 420, "2035-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2036-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2036-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2036-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2036-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Denver").zone(), 420, "2036-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Denver").zone(), 360, "2036-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Denver").zone(), 360, "2036-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Denver").zone(), 420, "2036-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2037-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "03:00:00", "2037-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Denver").format("HH:mm:ss"), "01:59:59", "2037-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Denver").format("HH:mm:ss"), "01:00:00", "2037-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Denver").zone(), 420, "2037-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Denver").zone(), 360, "2037-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Denver").zone(), 360, "2037-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Denver").zone(), 420, "2037-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/detroit.js b/tests/america/detroit.js deleted file mode 100644 index c9711084..00000000 --- a/tests/america/detroit.js +++ /dev/null @@ -1,986 +0,0 @@ -var moment = require("../../index"); - -exports["America/Detroit"] = { - - "1905" : function (t) { - t.equal(moment("1905-01-01T05:32:10+00:00").tz("America/Detroit").format("HH:mm:ss"), "23:59:59", "1905-01-01T05:32:10+00:00 should be 23:59:59 LMT"); - t.equal(moment("1905-01-01T05:32:11+00:00").tz("America/Detroit").format("HH:mm:ss"), "23:32:11", "1905-01-01T05:32:11+00:00 should be 23:32:11 CST"); - - t.equal(moment("1905-01-01T05:32:10+00:00").tz("America/Detroit").zone(), 19931 / 60, "1905-01-01T05:32:10+00:00 should be 19931 / 60 minutes offset in LMT"); - t.equal(moment("1905-01-01T05:32:11+00:00").tz("America/Detroit").zone(), 360, "1905-01-01T05:32:11+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1915" : function (t) { - t.equal(moment("1915-05-15T07:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1915-05-15T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1915-05-15T08:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1915-05-15T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1915-05-15T07:59:59+00:00").tz("America/Detroit").zone(), 360, "1915-05-15T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1915-05-15T08:00:00+00:00").tz("America/Detroit").zone(), 300, "1915-05-15T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1942-02-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1942-02-09T07:00:00+00:00 should be 03:00:00 EWT"); - - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1942-02-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1942-02-09T07:00:00+00:00 should be 240 minutes offset in EWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "18:59:59", "1945-08-14T22:59:59+00:00 should be 18:59:59 EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "19:00:00", "1945-08-14T23:00:00+00:00 should be 19:00:00 EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1945-09-30T05:59:59+00:00 should be 01:59:59 EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1945-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Detroit").zone(), 240, "1945-08-14T22:59:59+00:00 should be 240 minutes offset in EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Detroit").zone(), 240, "1945-08-14T23:00:00+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1945-09-30T05:59:59+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1945-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1948-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1948-04-25T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1948-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1948-09-26T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1948-09-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1948-09-26T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1948-09-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1948-04-25T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1948-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1948-04-25T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1948-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1948-09-26T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1948-09-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1948-09-26T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1948-09-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-06-14T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1967-06-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1967-06-14T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1967-06-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1967-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1967-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1967-06-14T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1967-06-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1967-06-14T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1967-06-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1967-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1967-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1973-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1973-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1973-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1973-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1973-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1973-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1974-01-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1974-01-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1974-01-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1974-01-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1975-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1975-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1975-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1975-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Detroit").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Detroit").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Detroit").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Detroit").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Detroit").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Detroit").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Detroit").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Detroit").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Detroit").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/dominica.js b/tests/america/dominica.js deleted file mode 100644 index 9ba9830a..00000000 --- a/tests/america/dominica.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Dominica"] = { - - "1911" : function (t) { - t.equal(moment("1911-07-01T04:06:35+00:00").tz("America/Dominica").format("HH:mm:ss"), "00:00:59", "1911-07-01T04:06:35+00:00 should be 00:00:59 LMT"); - t.equal(moment("1911-07-01T04:06:36+00:00").tz("America/Dominica").format("HH:mm:ss"), "00:06:36", "1911-07-01T04:06:36+00:00 should be 00:06:36 AST"); - - t.equal(moment("1911-07-01T04:06:35+00:00").tz("America/Dominica").zone(), 14736 / 60, "1911-07-01T04:06:35+00:00 should be 14736 / 60 minutes offset in LMT"); - t.equal(moment("1911-07-01T04:06:36+00:00").tz("America/Dominica").zone(), 240, "1911-07-01T04:06:36+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/edmonton.js b/tests/america/edmonton.js deleted file mode 100644 index a4bbccbd..00000000 --- a/tests/america/edmonton.js +++ /dev/null @@ -1,1088 +0,0 @@ -var moment = require("../../index"); - -exports["America/Edmonton"] = { - - "1906" : function (t) { - t.equal(moment("1906-09-01T07:33:51+00:00").tz("America/Edmonton").format("HH:mm:ss"), "23:59:59", "1906-09-01T07:33:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1906-09-01T07:33:52+00:00").tz("America/Edmonton").format("HH:mm:ss"), "00:33:52", "1906-09-01T07:33:52+00:00 should be 00:33:52 MST"); - - t.equal(moment("1906-09-01T07:33:51+00:00").tz("America/Edmonton").zone(), 27232 / 60, "1906-09-01T07:33:51+00:00 should be 27232 / 60 minutes offset in LMT"); - t.equal(moment("1906-09-01T07:33:52+00:00").tz("America/Edmonton").zone(), 420, "1906-09-01T07:33:52+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-14T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1918-04-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1918-04-14T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1918-04-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1918-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1918-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-04-14T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1918-04-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1918-04-14T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1918-04-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1918-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1918-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-04-13T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1919-04-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1919-04-13T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1919-04-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1919-05-27T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1919-05-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1919-05-27T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1919-05-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1919-04-13T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1919-04-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1919-04-13T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1919-04-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-05-27T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1919-05-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-05-27T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1919-05-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-04-25T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1920-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1920-04-25T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1920-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1920-10-31T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1920-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1920-10-31T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1920-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1920-04-25T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1920-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1920-04-25T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1920-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1920-10-31T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1920-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1920-10-31T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1920-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-24T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1921-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1921-04-24T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1921-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1921-09-25T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1921-09-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1921-09-25T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1921-09-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1921-04-24T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1921-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1921-04-24T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1921-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1921-09-25T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1921-09-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1921-09-25T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1921-09-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-04-30T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1922-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1922-04-30T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1922-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1922-09-24T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1922-09-24T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1922-09-24T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1922-09-24T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1922-04-30T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1922-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1922-04-30T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1922-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1922-09-24T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1922-09-24T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1922-09-24T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1922-09-24T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-29T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1923-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1923-04-29T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1923-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1923-09-30T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1923-09-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1923-09-30T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1923-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1923-04-29T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1923-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1923-04-29T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1923-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1923-09-30T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1923-09-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1923-09-30T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1923-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Edmonton").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Edmonton").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1947-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1947-04-27T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1947-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1947-09-28T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1947-09-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1947-09-28T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1947-09-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1947-04-27T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1947-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1947-04-27T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1947-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1947-09-28T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1947-09-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1947-09-28T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1947-09-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1967-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1967-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1967-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1967-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1967-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1967-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1967-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1967-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1969-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1969-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1969-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1969-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1969-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1969-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1969-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1969-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1972-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1972-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1972-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1972-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1972-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1972-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1972-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1972-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1973-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1973-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1973-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1973-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1973-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1973-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1973-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1973-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1974-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1974-04-28T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1974-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1974-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1974-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1974-04-28T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1974-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1974-04-28T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1974-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1974-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1974-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1975-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1975-04-27T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1975-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1975-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1975-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1975-04-27T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1975-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1975-04-27T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1975-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1975-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1975-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1976-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1976-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1976-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1976-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1976-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1976-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1976-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1976-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1977-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1977-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1977-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1977-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1977-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1977-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1977-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1977-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1978-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1978-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1978-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1978-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1978-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1978-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1978-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1978-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1979-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1979-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1979-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1979-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1979-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1979-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1979-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1979-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1992-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1992-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1993-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1993-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1993-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1993-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1993-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1993-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1993-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1993-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1994-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1994-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1994-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1994-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1994-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1994-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1994-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1994-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1995-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1995-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1995-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1995-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1995-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1995-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1995-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1995-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2001-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2001-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2001-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2001-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2001-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2001-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2001-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2001-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2007-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2007-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2007-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2007-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2007-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2007-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2007-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2007-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2008-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2008-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2008-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2008-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2008-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2008-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2008-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2008-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2009-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2009-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2009-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2009-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2009-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2009-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2009-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2009-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2010-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2010-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2010-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2010-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2010-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2010-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2010-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2010-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2011-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2011-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2011-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2011-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2011-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2011-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2011-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2011-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2012-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2012-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2012-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2012-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2012-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2012-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2012-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2012-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2013-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2013-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2013-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2013-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2013-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2013-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2013-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2013-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2014-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2014-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2014-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2014-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2014-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2014-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2014-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2014-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2015-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2015-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2015-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2015-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2015-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2015-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2015-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2015-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2016-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2016-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2016-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2016-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2016-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2016-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2016-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2016-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2017-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2017-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2017-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2017-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2017-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2017-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2017-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2017-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2018-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2018-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2018-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2018-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2018-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2018-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2018-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2018-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2019-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2019-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2019-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2019-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2019-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2019-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2019-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2019-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2020-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2020-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2020-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2020-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2020-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2020-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2020-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2020-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2021-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2021-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2021-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2021-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2021-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2021-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2021-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2021-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2022-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2022-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2022-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2022-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2022-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2022-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2022-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2022-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2023-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2023-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2023-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2023-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2023-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2023-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2023-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2023-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2024-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2024-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2024-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2024-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2024-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2024-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2024-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2024-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2025-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2025-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2025-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2025-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2025-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2025-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2025-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2025-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2026-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2026-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2026-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2026-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2026-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2026-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2026-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2026-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2027-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2027-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2027-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2027-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2027-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2027-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2027-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2027-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2028-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2028-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2028-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2028-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2028-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2028-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2028-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2028-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2029-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2029-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2029-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2029-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2029-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2029-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2029-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2029-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2030-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2030-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2030-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2030-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2030-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2030-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2030-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2030-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2031-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2031-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2031-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2031-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2031-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2031-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2031-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2031-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2032-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2032-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2032-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2032-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2032-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2032-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2032-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2032-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2033-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2033-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2033-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2033-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2033-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2033-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2033-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2033-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2034-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2034-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2034-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2034-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2034-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2034-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2034-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2034-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2035-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2035-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2035-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2035-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2035-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2035-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2035-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2035-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2036-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2036-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2036-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2036-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2036-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2036-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2036-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2036-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2037-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "03:00:00", "2037-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:59:59", "2037-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Edmonton").format("HH:mm:ss"), "01:00:00", "2037-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Edmonton").zone(), 420, "2037-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Edmonton").zone(), 360, "2037-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Edmonton").zone(), 360, "2037-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Edmonton").zone(), 420, "2037-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/eirunepe.js b/tests/america/eirunepe.js deleted file mode 100644 index af57cc34..00000000 --- a/tests/america/eirunepe.js +++ /dev/null @@ -1,264 +0,0 @@ -var moment = require("../../index"); - -exports["America/Eirunepe"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T04:39:27+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1914-01-01T04:39:27+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T04:39:28+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:39:28", "1914-01-01T04:39:28+00:00 should be 23:39:28 ACT"); - - t.equal(moment("1914-01-01T04:39:27+00:00").tz("America/Eirunepe").zone(), 16768 / 60, "1914-01-01T04:39:27+00:00 should be 16768 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T04:39:28+00:00").tz("America/Eirunepe").zone(), 300, "1914-01-01T04:39:28+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T15:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "10:59:59", "1931-10-03T15:59:59+00:00 should be 10:59:59 ACT"); - t.equal(moment("1931-10-03T16:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "12:00:00", "1931-10-03T16:00:00+00:00 should be 12:00:00 ACST"); - - t.equal(moment("1931-10-03T15:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1931-10-03T15:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1931-10-03T16:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1931-10-03T16:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1932-04-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1932-04-01T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1932-04-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1932-10-03T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1932-10-03T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1932-10-03T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1932-10-03T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1932-04-01T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1932-04-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1932-04-01T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1932-04-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1932-10-03T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1932-10-03T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1932-10-03T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1932-10-03T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1933-04-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1933-04-01T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1933-04-01T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1933-04-01T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1933-04-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1933-04-01T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1933-04-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1949-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1949-12-01T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1949-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1949-12-01T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1949-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1949-12-01T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1949-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "00:59:59", "1950-04-16T04:59:59+00:00 should be 00:59:59 ACST"); - t.equal(moment("1950-04-16T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "00:00:00", "1950-04-16T05:00:00+00:00 should be 00:00:00 ACT"); - t.equal(moment("1950-12-01T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1950-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1950-12-01T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1950-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1950-04-16T04:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1950-04-16T04:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1950-04-16T05:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1950-04-16T05:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1950-12-01T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1950-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1950-12-01T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1950-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1951-04-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1951-04-01T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1951-04-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1951-12-01T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1951-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1951-12-01T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1951-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1951-04-01T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1951-04-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1951-04-01T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1951-04-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1951-12-01T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1951-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1951-12-01T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1951-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1952-04-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1952-04-01T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1952-04-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1952-12-01T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1952-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1952-12-01T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1952-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1952-04-01T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1952-04-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1952-04-01T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1952-04-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1952-12-01T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1952-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1952-12-01T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1952-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1953-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1953-03-01T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1953-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1953-03-01T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1953-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1953-03-01T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1953-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1963-12-09T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1963-12-09T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1963-12-09T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1963-12-09T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1963-12-09T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1963-12-09T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1963-12-09T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1964-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1964-03-01T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1964-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1964-03-01T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1964-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1964-03-01T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1964-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1965-01-31T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1965-01-31T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1965-01-31T05:00:00+00:00 should be 01:00:00 ACST"); - t.equal(moment("1965-03-31T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1965-03-31T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1965-03-31T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1965-03-31T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1965-12-01T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1965-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1965-12-01T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1965-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1965-01-31T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1965-01-31T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1965-01-31T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1965-01-31T05:00:00+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1965-03-31T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1965-03-31T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1965-03-31T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1965-03-31T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1965-12-01T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1965-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1965-12-01T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1965-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1966-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1966-03-01T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1966-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1966-11-01T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1966-11-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1966-11-01T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1966-11-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1966-03-01T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1966-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1966-03-01T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1966-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1966-11-01T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1966-11-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1966-11-01T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1966-11-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1967-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1967-03-01T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1967-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1967-11-01T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1967-11-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1967-11-01T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1967-11-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1967-03-01T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1967-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1967-03-01T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1967-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1967-11-01T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1967-11-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1967-11-01T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1967-11-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1968-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1968-03-01T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1968-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1968-03-01T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1968-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1968-03-01T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1968-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1985-11-02T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1985-11-02T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1985-11-02T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1985-11-02T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1985-11-02T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1985-11-02T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1985-11-02T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1986-03-15T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1986-03-15T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1986-03-15T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1986-10-25T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1986-10-25T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1986-10-25T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1986-10-25T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1986-03-15T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1986-03-15T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1986-03-15T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1986-03-15T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1986-10-25T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1986-10-25T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1986-10-25T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1986-10-25T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1987-02-14T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1987-02-14T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1987-02-14T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1987-10-25T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1987-10-25T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1987-02-14T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1987-02-14T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1987-02-14T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1987-02-14T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1987-10-25T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1987-10-25T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1988-02-07T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1988-02-07T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1988-02-07T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1988-02-07T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1988-02-07T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1988-02-07T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1988-02-07T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-10-17T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1993-10-17T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1993-10-17T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "1993-10-17T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1993-10-17T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "1993-10-17T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1993-10-17T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "1993-10-17T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-02-20T03:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "1994-02-20T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1994-02-20T04:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:00:00", "1994-02-20T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1994-02-20T03:59:59+00:00").tz("America/Eirunepe").zone(), 240, "1994-02-20T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1994-02-20T04:00:00+00:00").tz("America/Eirunepe").zone(), 300, "1994-02-20T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-06-24T04:59:59+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "23:59:59", "2008-06-24T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("2008-06-24T05:00:00+00:00").tz("America/Eirunepe").format("HH:mm:ss"), "01:00:00", "2008-06-24T05:00:00+00:00 should be 01:00:00 AMT"); - - t.equal(moment("2008-06-24T04:59:59+00:00").tz("America/Eirunepe").zone(), 300, "2008-06-24T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("2008-06-24T05:00:00+00:00").tz("America/Eirunepe").zone(), 240, "2008-06-24T05:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/el_salvador.js b/tests/america/el_salvador.js deleted file mode 100644 index ab7d1ee1..00000000 --- a/tests/america/el_salvador.js +++ /dev/null @@ -1,42 +0,0 @@ -var moment = require("../../index"); - -exports["America/El_Salvador"] = { - - "1921" : function (t) { - t.equal(moment("1921-01-01T05:56:47+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "23:59:59", "1921-01-01T05:56:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1921-01-01T05:56:48+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "23:56:48", "1921-01-01T05:56:48+00:00 should be 23:56:48 CST"); - - t.equal(moment("1921-01-01T05:56:47+00:00").tz("America/El_Salvador").zone(), 21408 / 60, "1921-01-01T05:56:47+00:00 should be 21408 / 60 minutes offset in LMT"); - t.equal(moment("1921-01-01T05:56:48+00:00").tz("America/El_Salvador").zone(), 360, "1921-01-01T05:56:48+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-05-03T05:59:59+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "23:59:59", "1987-05-03T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1987-05-03T06:00:00+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "01:00:00", "1987-05-03T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1987-09-27T04:59:59+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "23:59:59", "1987-09-27T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1987-09-27T05:00:00+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "23:00:00", "1987-09-27T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1987-05-03T05:59:59+00:00").tz("America/El_Salvador").zone(), 360, "1987-05-03T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-05-03T06:00:00+00:00").tz("America/El_Salvador").zone(), 300, "1987-05-03T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-09-27T04:59:59+00:00").tz("America/El_Salvador").zone(), 300, "1987-09-27T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-09-27T05:00:00+00:00").tz("America/El_Salvador").zone(), 360, "1987-09-27T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-05-01T05:59:59+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "23:59:59", "1988-05-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1988-05-01T06:00:00+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "01:00:00", "1988-05-01T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1988-09-25T04:59:59+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "23:59:59", "1988-09-25T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1988-09-25T05:00:00+00:00").tz("America/El_Salvador").format("HH:mm:ss"), "23:00:00", "1988-09-25T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1988-05-01T05:59:59+00:00").tz("America/El_Salvador").zone(), 360, "1988-05-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-05-01T06:00:00+00:00").tz("America/El_Salvador").zone(), 300, "1988-05-01T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-09-25T04:59:59+00:00").tz("America/El_Salvador").zone(), 300, "1988-09-25T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-09-25T05:00:00+00:00").tz("America/El_Salvador").zone(), 360, "1988-09-25T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/fortaleza.js b/tests/america/fortaleza.js deleted file mode 100644 index 56eba0ff..00000000 --- a/tests/america/fortaleza.js +++ /dev/null @@ -1,310 +0,0 @@ -var moment = require("../../index"); - -exports["America/Fortaleza"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T02:33:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1914-01-01T02:33:59+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T02:34:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:34:00", "1914-01-01T02:34:00+00:00 should be 23:34:00 BRT"); - - t.equal(moment("1914-01-01T02:33:59+00:00").tz("America/Fortaleza").zone(), 154, "1914-01-01T02:33:59+00:00 should be 154 minutes offset in LMT"); - t.equal(moment("1914-01-01T02:34:00+00:00").tz("America/Fortaleza").zone(), 180, "1914-01-01T02:34:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "10:59:59", "1931-10-03T13:59:59+00:00 should be 10:59:59 BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "12:00:00", "1931-10-03T14:00:00+00:00 should be 12:00:00 BRST"); - - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1931-10-03T13:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1931-10-03T14:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1932-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1932-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1932-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1932-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1932-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1932-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1932-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1932-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1933-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1933-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1933-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1933-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1949-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1949-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1949-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1949-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "00:59:59", "1950-04-16T02:59:59+00:00 should be 00:59:59 BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "00:00:00", "1950-04-16T03:00:00+00:00 should be 00:00:00 BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1950-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1950-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1950-04-16T02:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1950-04-16T03:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1950-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1950-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1951-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1951-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1951-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1951-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1951-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1951-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1951-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1951-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1952-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1952-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1952-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1952-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1952-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1952-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1952-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1952-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1953-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1953-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1953-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1953-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1963-12-09T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1963-12-09T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1963-12-09T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1963-12-09T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1964-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1964-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1964-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1964-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1965-01-31T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1965-01-31T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1965-03-31T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1965-03-31T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1965-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1965-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1965-01-31T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1965-01-31T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1965-03-31T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1965-03-31T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1965-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1965-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1966-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1966-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1966-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1966-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1966-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1966-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1966-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1966-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1967-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1967-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1967-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1967-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1967-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1967-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1967-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1967-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1968-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1968-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1968-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1968-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1985-11-02T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1985-11-02T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1985-11-02T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1985-11-02T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1986-03-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1986-03-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1986-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1986-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1986-03-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1986-03-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1986-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1986-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1987-02-14T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1987-02-14T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1987-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1987-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1987-02-14T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1987-02-14T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1987-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1987-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1988-02-07T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1988-02-07T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1988-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1988-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1988-02-07T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1988-02-07T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1988-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1988-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1989-01-29T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1989-01-29T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1989-01-29T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1989-01-29T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1990-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "1990-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "1990-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "1990-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "1999-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "1999-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "2000-02-27T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "2000-02-27T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "2000-10-08T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "2000-10-08T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("2000-10-22T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "2000-10-22T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2000-10-22T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "2000-10-22T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "2000-02-27T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "2000-02-27T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "2000-10-08T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "2000-10-08T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-10-22T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "2000-10-22T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-10-22T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "2000-10-22T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "2001-10-14T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "01:00:00", "2001-10-14T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Fortaleza").zone(), 180, "2001-10-14T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Fortaleza").zone(), 120, "2001-10-14T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:59:59", "2002-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Fortaleza").format("HH:mm:ss"), "23:00:00", "2002-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Fortaleza").zone(), 120, "2002-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Fortaleza").zone(), 180, "2002-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/glace_bay.js b/tests/america/glace_bay.js deleted file mode 100644 index 1012d926..00000000 --- a/tests/america/glace_bay.js +++ /dev/null @@ -1,990 +0,0 @@ -var moment = require("../../index"); - -exports["America/Glace_Bay"] = { - - "1902" : function (t) { - t.equal(moment("1902-06-15T03:59:47+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "23:59:59", "1902-06-15T03:59:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1902-06-15T03:59:48+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "23:59:48", "1902-06-15T03:59:48+00:00 should be 23:59:48 AST"); - - t.equal(moment("1902-06-15T03:59:47+00:00").tz("America/Glace_Bay").zone(), 14388 / 60, "1902-06-15T03:59:47+00:00 should be 14388 / 60 minutes offset in LMT"); - t.equal(moment("1902-06-15T03:59:48+00:00").tz("America/Glace_Bay").zone(), 240, "1902-06-15T03:59:48+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-14T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1918-04-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1918-04-14T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1918-04-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1918-10-27T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1918-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1918-10-27T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1918-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1918-04-14T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1918-04-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1918-04-14T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1918-04-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1918-10-27T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1918-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1918-10-27T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1918-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1942-02-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1942-02-09T06:00:00+00:00 should be 03:00:00 AWT"); - - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1942-02-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1942-02-09T06:00:00+00:00 should be 180 minutes offset in AWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "19:59:59", "1945-08-14T22:59:59+00:00 should be 19:59:59 AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "20:00:00", "1945-08-14T23:00:00+00:00 should be 20:00:00 APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1945-09-30T04:59:59+00:00 should be 01:59:59 APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1945-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1945-08-14T22:59:59+00:00 should be 180 minutes offset in AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1945-08-14T23:00:00+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1945-09-30T04:59:59+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1945-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1953-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1953-04-26T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1953-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1953-09-27T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1953-09-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1953-09-27T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1953-09-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1953-04-26T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1953-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1953-04-26T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1953-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1953-09-27T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1953-09-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1953-09-27T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1953-09-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1972-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1972-04-30T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1972-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1972-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1972-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1972-04-30T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1972-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1972-04-30T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1972-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1972-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1972-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1973-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1973-04-29T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1973-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1973-10-28T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1973-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1973-10-28T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1973-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1973-04-29T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1973-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1973-04-29T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1973-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1973-10-28T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1973-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1973-10-28T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1973-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1974-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1974-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1974-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1974-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1974-04-28T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1974-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1974-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1974-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1974-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1975-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1975-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1975-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1975-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1975-04-27T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1975-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1975-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1975-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1975-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1976-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1976-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1976-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1976-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1976-04-25T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1976-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1976-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1976-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1976-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1977-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1977-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1977-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1977-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1977-04-24T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1977-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1977-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1977-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1977-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1978-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1978-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1978-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1978-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1978-04-30T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1978-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1978-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1978-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1978-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1979-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1979-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1979-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1979-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1979-04-29T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1979-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1979-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1979-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1979-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1980-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1980-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1980-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1980-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1980-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1980-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1980-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1980-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1981-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1981-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1981-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1981-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1981-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1981-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1981-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1981-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1982-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1982-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1982-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1982-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1982-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1982-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1982-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1982-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1983-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1983-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1983-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1983-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1983-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1983-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1983-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1983-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1984-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1984-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1984-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1984-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1984-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1984-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1984-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1984-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1985-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1985-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1985-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1985-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1985-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1985-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1985-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1985-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1986-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1986-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1986-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1986-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1986-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1986-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1986-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1986-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1987-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1987-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1987-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1987-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1987-04-05T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1987-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1987-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1987-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1987-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1988-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1988-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1988-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1988-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1988-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1988-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1988-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1988-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1989-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1989-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1989-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1989-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1989-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1989-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1989-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1989-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1990-04-01T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1990-04-01T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1990-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1990-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1990-04-01T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1990-04-01T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1990-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1990-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1991-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1991-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1991-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1991-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1991-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1991-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1991-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1991-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1992-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1992-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1992-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1992-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1992-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1992-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1992-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1992-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1993-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1993-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1993-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1993-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1993-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1993-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1993-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1993-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1994-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1994-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1994-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1994-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1994-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1994-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1994-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1994-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1995-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1995-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1995-10-29T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1995-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1995-10-29T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1995-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1995-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1995-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1995-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1995-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1996-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1996-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1996-10-27T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1996-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1996-10-27T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1996-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1996-04-07T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1996-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1996-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1996-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1996-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1997-04-06T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1997-04-06T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1997-10-26T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1997-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1997-10-26T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1997-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1997-04-06T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1997-04-06T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1997-04-06T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1997-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1997-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1998-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1998-04-05T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1998-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1998-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1998-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1998-04-05T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1998-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1998-04-05T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1998-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1998-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1998-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1999-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1999-04-04T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "1999-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "1999-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "1999-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1999-04-04T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "1999-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1999-04-04T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "1999-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "1999-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "1999-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2000-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2000-04-02T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2000-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2000-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2000-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2000-04-02T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2000-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2000-04-02T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2000-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2000-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2000-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2001-04-01T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2001-04-01T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2001-04-01T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2001-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2001-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2001-04-01T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2001-04-01T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2001-04-01T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2001-04-01T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2001-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2001-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2002-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2002-04-07T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2002-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2002-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2002-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2002-04-07T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2002-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2002-04-07T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2002-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2002-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2002-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2003-04-06T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2003-04-06T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2003-04-06T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2003-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2003-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2003-04-06T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2003-04-06T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2003-04-06T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2003-04-06T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2003-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2003-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2004-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2004-04-04T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2004-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2004-10-31T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2004-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2004-10-31T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2004-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2004-04-04T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2004-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2004-04-04T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2004-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2004-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2004-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2005-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2005-04-03T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2005-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2005-10-30T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2005-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2005-10-30T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2005-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2005-04-03T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2005-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2005-04-03T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2005-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2005-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2005-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2006-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2006-04-02T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2006-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2006-10-29T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2006-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2006-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2006-04-02T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2006-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2006-04-02T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2006-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2006-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2006-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2007-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2007-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2007-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2007-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2007-03-11T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2007-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2007-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2007-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2007-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2008-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2008-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2008-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2008-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2008-03-09T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2008-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2008-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2008-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2008-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2009-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2009-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2009-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2009-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2009-03-08T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2009-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2009-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2009-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2009-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2010-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2010-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2010-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2010-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2010-03-14T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2010-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2010-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2010-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2010-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2011-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2011-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2011-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2011-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2011-03-13T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2011-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2011-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2011-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2011-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2012-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2012-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2012-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2012-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2012-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2012-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2012-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2012-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2013-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2013-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2013-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2013-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2013-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2013-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2013-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2013-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2014-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2014-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2014-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2014-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2014-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2014-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2014-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2014-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2015-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2015-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2015-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2015-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2015-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2015-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2015-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2015-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2016-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2016-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2016-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2016-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2016-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2016-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2016-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2016-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2017-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2017-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2017-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2017-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2017-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2017-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2017-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2017-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2018-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2018-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2018-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2018-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2018-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2018-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2018-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2018-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2019-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2019-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2019-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2019-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2019-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2019-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2019-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2019-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2020-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2020-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2020-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2020-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2020-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2020-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2020-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2020-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2021-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2021-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2021-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2021-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2021-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2021-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2021-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2021-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2022-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2022-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2022-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2022-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2022-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2022-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2022-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2022-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2023-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2023-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2023-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2023-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2023-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2023-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2023-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2023-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2024-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2024-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2024-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2024-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2024-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2024-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2024-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2024-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2025-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2025-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2025-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2025-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2025-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2025-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2025-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2025-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2026-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2026-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2026-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2026-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2026-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2026-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2026-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2026-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2027-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2027-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2027-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2027-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2027-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2027-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2027-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2027-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2028-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2028-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2028-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2028-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2028-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2028-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2028-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2028-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2029-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2029-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2029-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2029-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2029-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2029-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2029-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2029-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2030-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2030-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2030-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2030-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2030-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2030-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2030-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2030-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2031-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2031-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2031-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2031-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2031-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2031-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2031-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2031-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2032-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2032-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2032-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2032-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2032-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2032-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2032-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2032-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2033-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2033-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2033-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2033-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2033-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2033-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2033-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2033-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2034-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2034-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2034-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2034-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2034-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2034-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2034-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2034-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2035-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2035-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2035-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2035-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2035-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2035-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2035-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2035-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2036-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2036-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2036-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2036-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2036-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2036-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2036-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2036-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2037-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "03:00:00", "2037-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:59:59", "2037-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Glace_Bay").format("HH:mm:ss"), "01:00:00", "2037-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Glace_Bay").zone(), 240, "2037-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Glace_Bay").zone(), 180, "2037-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Glace_Bay").zone(), 180, "2037-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Glace_Bay").zone(), 240, "2037-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/godthab.js b/tests/america/godthab.js deleted file mode 100644 index d7d1d8dd..00000000 --- a/tests/america/godthab.js +++ /dev/null @@ -1,826 +0,0 @@ -var moment = require("../../index"); - -exports["America/Godthab"] = { - - "1916" : function (t) { - t.equal(moment("1916-07-28T03:26:55+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:59:59", "1916-07-28T03:26:55+00:00 should be 23:59:59 LMT"); - t.equal(moment("1916-07-28T03:26:56+00:00").tz("America/Godthab").format("HH:mm:ss"), "00:26:56", "1916-07-28T03:26:56+00:00 should be 00:26:56 WGT"); - - t.equal(moment("1916-07-28T03:26:55+00:00").tz("America/Godthab").zone(), 12416 / 60, "1916-07-28T03:26:55+00:00 should be 12416 / 60 minutes offset in LMT"); - t.equal(moment("1916-07-28T03:26:56+00:00").tz("America/Godthab").zone(), 180, "1916-07-28T03:26:56+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T04:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "01:59:59", "1980-04-06T04:59:59+00:00 should be 01:59:59 WGT"); - t.equal(moment("1980-04-06T05:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "03:00:00", "1980-04-06T05:00:00+00:00 should be 03:00:00 WGST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1980-09-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1980-09-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1980-04-06T04:59:59+00:00").tz("America/Godthab").zone(), 180, "1980-04-06T04:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1980-04-06T05:00:00+00:00").tz("America/Godthab").zone(), 120, "1980-04-06T05:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1980-09-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1980-09-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1981-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1981-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1981-09-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1981-09-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1981-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1981-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1981-09-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1981-09-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1982-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1982-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1982-09-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1982-09-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1982-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1982-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1982-09-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1982-09-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1983-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1983-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1983-09-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1983-09-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1983-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1983-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1983-09-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1983-09-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1984-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1984-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1984-09-30T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1984-09-30T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1984-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1984-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1984-09-30T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1984-09-30T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1985-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1985-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1985-09-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1985-09-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1985-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1985-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1985-09-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1985-09-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1986-03-30T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1986-03-30T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1986-09-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1986-09-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1986-03-30T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1986-03-30T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1986-09-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1986-09-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1987-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1987-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1987-09-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1987-09-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1987-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1987-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1987-09-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1987-09-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1988-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1988-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1988-09-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1988-09-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1988-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1988-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1988-09-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1988-09-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1989-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1989-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1989-09-24T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1989-09-24T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1989-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1989-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1989-09-24T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1989-09-24T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1990-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1990-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1990-09-30T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1990-09-30T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1990-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1990-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1990-09-30T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1990-09-30T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1991-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1991-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1991-09-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1991-09-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1991-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1991-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1991-09-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1991-09-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1992-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1992-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1992-09-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1992-09-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1992-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1992-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1992-09-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1992-09-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1993-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1993-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1993-09-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1993-09-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1993-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1993-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1993-09-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1993-09-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1994-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1994-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1994-09-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1994-09-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1994-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1994-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1994-09-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1994-09-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1995-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1995-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1995-09-24T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1995-09-24T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1995-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1995-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1995-09-24T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1995-09-24T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1996-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1996-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1996-10-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1996-10-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1996-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1996-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1996-10-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1996-10-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1997-03-30T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1997-03-30T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1997-10-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1997-10-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1997-03-30T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1997-03-30T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1997-10-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1997-10-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1998-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1998-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1998-10-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1998-10-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1998-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1998-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1998-10-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1998-10-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1999-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1999-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1999-10-31T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1999-10-31T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1999-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1999-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1999-10-31T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1999-10-31T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2000-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2000-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2000-10-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2000-10-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2000-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2000-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2000-10-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2000-10-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2001-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2001-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2001-10-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2001-10-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2001-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2001-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2001-10-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2001-10-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2002-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2002-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2002-10-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2002-10-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2002-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2002-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2002-10-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2002-10-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2003-03-30T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2003-03-30T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2003-10-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2003-10-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2003-03-30T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2003-03-30T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2003-10-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2003-10-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2004-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2004-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2004-10-31T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2004-10-31T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2004-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2004-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2004-10-31T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2004-10-31T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2005-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2005-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2005-10-30T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2005-10-30T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2005-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2005-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2005-10-30T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2005-10-30T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2006-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2006-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2006-10-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2006-10-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2006-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2006-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2006-10-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2006-10-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2007-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2007-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2007-10-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2007-10-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2007-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2007-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2007-10-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2007-10-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2008-03-30T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2008-03-30T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2008-10-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2008-10-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2008-03-30T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2008-03-30T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2008-10-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2008-10-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2009-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2009-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2009-10-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2009-10-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2009-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2009-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2009-10-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2009-10-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2010-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2010-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2010-10-31T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2010-10-31T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2010-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2010-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2010-10-31T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2010-10-31T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2011-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2011-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2011-10-30T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2011-10-30T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2011-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2011-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2011-10-30T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2011-10-30T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2012-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2012-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2012-10-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2012-10-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2012-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2012-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2012-10-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2012-10-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2013-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2013-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2013-10-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2013-10-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2013-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2013-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2013-10-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2013-10-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2014-03-30T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2014-03-30T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2014-10-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2014-10-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2014-03-30T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2014-03-30T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2014-10-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2014-10-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2015-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2015-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2015-10-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2015-10-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2015-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2015-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2015-10-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2015-10-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2016-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2016-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2016-10-30T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2016-10-30T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2016-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2016-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2016-10-30T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2016-10-30T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2017-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2017-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2017-10-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2017-10-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2017-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2017-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2017-10-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2017-10-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2018-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2018-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2018-10-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2018-10-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2018-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2018-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2018-10-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2018-10-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2019-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2019-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2019-10-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2019-10-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2019-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2019-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2019-10-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2019-10-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2020-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2020-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2020-10-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2020-10-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2020-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2020-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2020-10-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2020-10-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2021-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2021-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2021-10-31T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2021-10-31T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2021-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2021-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2021-10-31T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2021-10-31T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2022-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2022-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2022-10-30T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2022-10-30T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2022-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2022-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2022-10-30T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2022-10-30T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2023-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2023-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2023-10-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2023-10-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2023-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2023-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2023-10-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2023-10-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2024-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2024-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2024-10-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2024-10-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2024-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2024-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2024-10-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2024-10-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2025-03-30T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2025-03-30T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2025-10-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2025-10-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2025-03-30T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2025-03-30T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2025-10-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2025-10-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2026-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2026-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2026-10-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2026-10-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2026-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2026-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2026-10-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2026-10-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2027-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2027-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2027-10-31T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2027-10-31T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2027-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2027-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2027-10-31T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2027-10-31T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2028-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2028-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2028-10-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2028-10-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2028-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2028-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2028-10-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2028-10-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2029-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2029-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2029-10-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2029-10-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2029-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2029-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2029-10-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2029-10-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2030-03-31T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2030-03-31T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2030-10-27T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2030-10-27T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2030-03-31T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2030-03-31T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2030-10-27T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2030-10-27T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2031-03-30T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2031-03-30T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2031-10-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2031-10-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2031-03-30T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2031-03-30T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2031-10-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2031-10-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2032-03-28T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2032-03-28T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2032-10-31T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2032-10-31T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2032-03-28T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2032-03-28T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2032-10-31T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2032-10-31T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2033-03-27T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2033-03-27T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2033-10-30T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2033-10-30T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2033-03-27T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2033-03-27T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2033-10-30T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2033-10-30T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2034-03-26T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2034-03-26T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2034-10-29T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2034-10-29T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2034-03-26T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2034-03-26T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2034-10-29T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2034-10-29T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2035-03-25T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2035-03-25T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2035-10-28T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2035-10-28T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2035-03-25T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2035-03-25T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2035-10-28T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2035-10-28T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2036-03-30T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2036-03-30T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2036-10-26T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2036-10-26T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2036-03-30T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2036-03-30T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2036-10-26T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2036-10-26T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2037-03-29T00:59:59+00:00 should be 21:59:59 WGT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2037-03-29T01:00:00+00:00 should be 23:00:00 WGST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2037-10-25T00:59:59+00:00 should be 22:59:59 WGST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2037-10-25T01:00:00+00:00 should be 22:00:00 WGT"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2037-03-29T00:59:59+00:00 should be 180 minutes offset in WGT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2037-03-29T01:00:00+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2037-10-25T00:59:59+00:00 should be 120 minutes offset in WGST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2037-10-25T01:00:00+00:00 should be 180 minutes offset in WGT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/goose_bay.js b/tests/america/goose_bay.js deleted file mode 100644 index 0e180c48..00000000 --- a/tests/america/goose_bay.js +++ /dev/null @@ -1,1428 +0,0 @@ -var moment = require("../../index"); - -exports["America/Goose_Bay"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T05:30:51+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1918-04-14T05:30:51+00:00 should be 01:59:59 NST"); - t.equal(moment("1918-04-14T05:30:52+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1918-04-14T05:30:52+00:00 should be 03:00:00 NDT"); - t.equal(moment("1918-10-27T04:30:51+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1918-10-27T04:30:51+00:00 should be 01:59:59 NDT"); - t.equal(moment("1918-10-27T04:30:52+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1918-10-27T04:30:52+00:00 should be 01:00:00 NST"); - - t.equal(moment("1918-04-14T05:30:51+00:00").tz("America/Goose_Bay").zone(), 12652 / 60, "1918-04-14T05:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1918-04-14T05:30:52+00:00").tz("America/Goose_Bay").zone(), 9052 / 60, "1918-04-14T05:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1918-10-27T04:30:51+00:00").tz("America/Goose_Bay").zone(), 9052 / 60, "1918-10-27T04:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1918-10-27T04:30:52+00:00").tz("America/Goose_Bay").zone(), 12652 / 60, "1918-10-27T04:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-30T03:30:51+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1935-03-30T03:30:51+00:00 should be 23:59:59 NST"); - t.equal(moment("1935-03-30T03:30:52+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:52", "1935-03-30T03:30:52+00:00 should be 00:00:52 NST"); - - t.equal(moment("1935-03-30T03:30:51+00:00").tz("America/Goose_Bay").zone(), 12652 / 60, "1935-03-30T03:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1935-03-30T03:30:52+00:00").tz("America/Goose_Bay").zone(), 210, "1935-03-30T03:30:52+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-05-11T03:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1936-05-11T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1936-05-11T03:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1936-05-11T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1936-10-05T02:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1936-10-05T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1936-10-05T02:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:00:00", "1936-10-05T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1936-05-11T03:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1936-05-11T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1936-05-11T03:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1936-05-11T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1936-10-05T02:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1936-10-05T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1936-10-05T02:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1936-10-05T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-05-10T03:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1937-05-10T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1937-05-10T03:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1937-05-10T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1937-10-04T02:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1937-10-04T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1937-10-04T02:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:00:00", "1937-10-04T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1937-05-10T03:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1937-05-10T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1937-05-10T03:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1937-05-10T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1937-10-04T02:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1937-10-04T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1937-10-04T02:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1937-10-04T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-05-09T03:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1938-05-09T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1938-05-09T03:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1938-05-09T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1938-10-03T02:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1938-10-03T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1938-10-03T02:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:00:00", "1938-10-03T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1938-05-09T03:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1938-05-09T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1938-05-09T03:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1938-05-09T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1938-10-03T02:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1938-10-03T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1938-10-03T02:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1938-10-03T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-05-15T03:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1939-05-15T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1939-05-15T03:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1939-05-15T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1939-10-02T02:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1939-10-02T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1939-10-02T02:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:00:00", "1939-10-02T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1939-05-15T03:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1939-05-15T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1939-05-15T03:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1939-05-15T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1939-10-02T02:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1939-10-02T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1939-10-02T02:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1939-10-02T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-05-13T03:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1940-05-13T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1940-05-13T03:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1940-05-13T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1940-10-07T02:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1940-10-07T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1940-10-07T02:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:00:00", "1940-10-07T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1940-05-13T03:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1940-05-13T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1940-05-13T03:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1940-05-13T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1940-10-07T02:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1940-10-07T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1940-10-07T02:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1940-10-07T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-05-12T03:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1941-05-12T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1941-05-12T03:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1941-05-12T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1941-10-06T02:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1941-10-06T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1941-10-06T02:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:00:00", "1941-10-06T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1941-05-12T03:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1941-05-12T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1941-05-12T03:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1941-05-12T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1941-10-06T02:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1941-10-06T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1941-10-06T02:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1941-10-06T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-05-11T03:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:59:59", "1942-05-11T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1942-05-11T03:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1942-05-11T03:30:00+00:00 should be 01:00:00 NWT"); - - t.equal(moment("1942-05-11T03:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1942-05-11T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1942-05-11T03:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1942-05-11T03:30:00+00:00 should be 150 minutes offset in NWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "20:29:59", "1945-08-14T22:59:59+00:00 should be 20:29:59 NWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "20:30:00", "1945-08-14T23:00:00+00:00 should be 20:30:00 NPT"); - t.equal(moment("1945-09-30T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1945-09-30T04:29:59+00:00 should be 01:59:59 NPT"); - t.equal(moment("1945-09-30T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1945-09-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Goose_Bay").zone(), 150, "1945-08-14T22:59:59+00:00 should be 150 minutes offset in NWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Goose_Bay").zone(), 150, "1945-08-14T23:00:00+00:00 should be 150 minutes offset in NPT"); - t.equal(moment("1945-09-30T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1945-09-30T04:29:59+00:00 should be 150 minutes offset in NPT"); - t.equal(moment("1945-09-30T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1945-09-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-05-12T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1946-05-12T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1946-05-12T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1946-05-12T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1946-10-06T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1946-10-06T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1946-10-06T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1946-10-06T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1946-05-12T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1946-05-12T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1946-05-12T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1946-05-12T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1946-10-06T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1946-10-06T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1946-10-06T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1946-10-06T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-05-11T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1947-05-11T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1947-05-11T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1947-05-11T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1947-10-05T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1947-10-05T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1947-10-05T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1947-10-05T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1947-05-11T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1947-05-11T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1947-05-11T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1947-05-11T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1947-10-05T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1947-10-05T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1947-10-05T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1947-10-05T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-05-09T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1948-05-09T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1948-05-09T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1948-05-09T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1948-10-03T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1948-10-03T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1948-10-03T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1948-10-03T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1948-05-09T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1948-05-09T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1948-05-09T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1948-05-09T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1948-10-03T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1948-10-03T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1948-10-03T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1948-10-03T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-05-08T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1949-05-08T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1949-05-08T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1949-05-08T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1949-10-02T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1949-10-02T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1949-10-02T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1949-10-02T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1949-05-08T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1949-05-08T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1949-05-08T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1949-05-08T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1949-10-02T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1949-10-02T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1949-10-02T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1949-10-02T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-05-14T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1950-05-14T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1950-05-14T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1950-05-14T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1950-10-08T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1950-10-08T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1950-10-08T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1950-10-08T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1950-05-14T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1950-05-14T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1950-05-14T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1950-05-14T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1950-10-08T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1950-10-08T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1950-10-08T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1950-10-08T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1951-04-29T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1951-04-29T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1951-04-29T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1951-09-30T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1951-09-30T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1951-09-30T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1951-09-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1951-04-29T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1951-04-29T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1951-04-29T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1951-04-29T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1951-09-30T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1951-09-30T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1951-09-30T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1951-09-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1952-04-27T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1952-04-27T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1952-04-27T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1952-09-28T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1952-09-28T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1952-09-28T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1952-09-28T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1952-04-27T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1952-04-27T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1952-04-27T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1952-04-27T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1952-09-28T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1952-09-28T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1952-09-28T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1952-09-28T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1953-04-26T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1953-04-26T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1953-04-26T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1953-09-27T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1953-09-27T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1953-09-27T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1953-09-27T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1953-04-26T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1953-04-26T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1953-04-26T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1953-04-26T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1953-09-27T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1953-09-27T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1953-09-27T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1953-09-27T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1954-04-25T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1954-04-25T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1954-04-25T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1954-09-26T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1954-09-26T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1954-09-26T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1954-09-26T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1954-04-25T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1954-04-25T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1954-04-25T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1954-04-25T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1954-09-26T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1954-09-26T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1954-09-26T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1954-09-26T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1955-04-24T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1955-04-24T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1955-04-24T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1955-09-25T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1955-09-25T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1955-09-25T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1955-09-25T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1955-04-24T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1955-04-24T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1955-04-24T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1955-04-24T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1955-09-25T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1955-09-25T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1955-09-25T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1955-09-25T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1956-04-29T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1956-04-29T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1956-04-29T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1956-09-30T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1956-09-30T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1956-09-30T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1956-09-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1956-04-29T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1956-04-29T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1956-04-29T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1956-04-29T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1956-09-30T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1956-09-30T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1956-09-30T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1956-09-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1957-04-28T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1957-04-28T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1957-04-28T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1957-09-29T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1957-09-29T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1957-09-29T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1957-09-29T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1957-04-28T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1957-04-28T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1957-04-28T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1957-04-28T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1957-09-29T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1957-09-29T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1957-09-29T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1957-09-29T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1958-04-27T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1958-04-27T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1958-04-27T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1958-09-28T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1958-09-28T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1958-09-28T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1958-09-28T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1958-04-27T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1958-04-27T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1958-04-27T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1958-04-27T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1958-09-28T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1958-09-28T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1958-09-28T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1958-09-28T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1959-04-26T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1959-04-26T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1959-04-26T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1959-09-27T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1959-09-27T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1959-09-27T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1959-09-27T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1959-04-26T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1959-04-26T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1959-04-26T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1959-04-26T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1959-09-27T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1959-09-27T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1959-09-27T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1959-09-27T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1960-04-24T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1960-04-24T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1960-04-24T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1960-10-30T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1960-10-30T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1960-10-30T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1960-10-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1960-04-24T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1960-04-24T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1960-04-24T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1960-04-24T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1960-10-30T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1960-10-30T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1960-10-30T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1960-10-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1961-04-30T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1961-04-30T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1961-04-30T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1961-10-29T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1961-10-29T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1961-10-29T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1961-10-29T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1961-04-30T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1961-04-30T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1961-04-30T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1961-04-30T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1961-10-29T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1961-10-29T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1961-10-29T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1961-10-29T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1962-04-29T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1962-04-29T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1962-04-29T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1962-10-28T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1962-10-28T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1962-10-28T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1962-10-28T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1962-04-29T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1962-04-29T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1962-04-29T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1962-04-29T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1962-10-28T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1962-10-28T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1962-10-28T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1962-10-28T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1963-04-28T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1963-04-28T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1963-04-28T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1963-10-27T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1963-10-27T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1963-10-27T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1963-10-27T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1963-04-28T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1963-04-28T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1963-04-28T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1963-04-28T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1963-10-27T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1963-10-27T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1963-10-27T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1963-10-27T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1964-04-26T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1964-04-26T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1964-04-26T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1964-10-25T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1964-10-25T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1964-10-25T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1964-10-25T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1964-04-26T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1964-04-26T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1964-04-26T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1964-04-26T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1964-10-25T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1964-10-25T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1964-10-25T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1964-10-25T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1965-04-25T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1965-04-25T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1965-04-25T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1965-10-31T04:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1965-10-31T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1965-10-31T04:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1965-10-31T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1965-04-25T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1965-04-25T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1965-04-25T05:30:00+00:00").tz("America/Goose_Bay").zone(), 150, "1965-04-25T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1965-10-31T04:29:59+00:00").tz("America/Goose_Bay").zone(), 150, "1965-10-31T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1965-10-31T04:30:00+00:00").tz("America/Goose_Bay").zone(), 210, "1965-10-31T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-15T05:29:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1966-03-15T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1966-03-15T05:30:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:30:00", "1966-03-15T05:30:00+00:00 should be 01:30:00 AST"); - t.equal(moment("1966-04-24T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1966-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1966-04-24T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1966-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1966-10-30T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1966-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1966-10-30T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1966-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1966-03-15T05:29:59+00:00").tz("America/Goose_Bay").zone(), 210, "1966-03-15T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1966-03-15T05:30:00+00:00").tz("America/Goose_Bay").zone(), 240, "1966-03-15T05:30:00+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1966-04-24T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1966-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1966-04-24T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1966-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1966-10-30T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1966-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1966-10-30T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1966-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1967-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1967-04-30T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1967-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1967-10-29T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1967-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1967-10-29T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1967-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1967-04-30T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1967-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1967-04-30T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1967-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1967-10-29T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1967-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1967-10-29T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1967-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1968-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1968-04-28T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1968-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1968-10-27T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1968-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1968-10-27T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1968-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1968-04-28T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1968-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1968-04-28T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1968-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1968-10-27T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1968-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1968-10-27T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1968-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1969-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1969-04-27T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1969-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1969-10-26T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1969-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1969-10-26T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1969-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1969-04-27T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1969-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1969-04-27T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1969-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1969-10-26T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1969-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1969-10-26T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1969-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1970-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1970-04-26T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1970-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1970-10-25T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1970-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1970-10-25T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1970-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1970-04-26T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1970-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1970-04-26T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1970-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1970-10-25T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1970-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1970-10-25T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1970-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1971-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1971-04-25T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1971-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1971-10-31T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1971-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1971-10-31T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1971-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1971-04-25T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1971-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1971-04-25T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1971-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1971-10-31T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1971-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1971-10-31T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1971-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1972-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1972-04-30T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1972-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1972-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1972-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1972-04-30T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1972-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1972-04-30T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1972-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1972-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1972-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1973-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1973-04-29T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1973-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1973-10-28T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1973-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1973-10-28T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1973-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1973-04-29T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1973-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1973-04-29T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1973-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1973-10-28T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1973-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1973-10-28T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1973-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1974-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1974-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1974-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1974-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1974-04-28T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1974-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1974-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1974-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1974-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1975-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1975-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1975-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1975-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1975-04-27T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1975-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1975-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1975-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1975-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1976-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1976-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1976-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1976-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1976-04-25T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1976-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1976-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1976-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1976-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1977-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1977-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1977-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1977-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1977-04-24T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1977-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1977-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1977-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1977-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1978-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1978-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1978-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1978-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1978-04-30T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1978-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1978-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1978-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1978-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1979-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1979-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1979-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1979-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1979-04-29T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1979-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1979-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1979-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1979-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1980-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1980-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1980-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1980-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1980-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1980-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1980-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1980-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1981-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1981-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1981-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1981-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1981-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1981-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1981-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1981-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1982-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1982-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1982-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1982-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1982-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1982-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1982-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1982-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1983-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1983-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1983-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1983-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1983-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1983-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1983-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1983-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1984-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1984-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1984-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1984-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1984-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1984-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1984-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1984-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1985-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1985-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1985-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1985-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1985-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1985-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1985-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1985-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1986-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "1986-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "1986-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "1986-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "1986-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "1986-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "1986-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "1986-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1987-04-05T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1987-04-05T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1987-04-05T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1987-10-25T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1987-10-25T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1987-10-25T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1987-10-25T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1987-04-05T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1987-04-05T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1987-04-05T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1987-04-05T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1987-10-25T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1987-10-25T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1988-04-03T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1988-04-03T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "02:01:00", "1988-04-03T04:01:00+00:00 should be 02:01:00 ADDT"); - t.equal(moment("1988-10-30T02:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1988-10-30T02:00:59+00:00 should be 00:00:59 ADDT"); - t.equal(moment("1988-10-30T02:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "22:01:00", "1988-10-30T02:01:00+00:00 should be 22:01:00 AST"); - - t.equal(moment("1988-04-03T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1988-04-03T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1988-04-03T04:01:00+00:00").tz("America/Goose_Bay").zone(), 120, "1988-04-03T04:01:00+00:00 should be 120 minutes offset in ADDT"); - t.equal(moment("1988-10-30T02:00:59+00:00").tz("America/Goose_Bay").zone(), 120, "1988-10-30T02:00:59+00:00 should be 120 minutes offset in ADDT"); - t.equal(moment("1988-10-30T02:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1988-10-30T02:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1989-04-02T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1989-04-02T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1989-04-02T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1989-10-29T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1989-10-29T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1989-10-29T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1989-10-29T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1989-04-02T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1989-04-02T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1989-04-02T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1989-04-02T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1989-10-29T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1989-10-29T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1990-04-01T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1990-04-01T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1990-04-01T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1990-10-28T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1990-10-28T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1990-10-28T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1990-10-28T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1990-04-01T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1990-04-01T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1990-04-01T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1990-04-01T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1990-10-28T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1990-10-28T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1991-04-07T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1991-04-07T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1991-04-07T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1991-10-27T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1991-10-27T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1991-10-27T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1991-10-27T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1991-04-07T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1991-04-07T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1991-04-07T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1991-04-07T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1991-10-27T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1991-10-27T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1992-04-05T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1992-04-05T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1992-04-05T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1992-10-25T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1992-10-25T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1992-10-25T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1992-10-25T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1992-04-05T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1992-04-05T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1992-04-05T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1992-04-05T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1992-10-25T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1992-10-25T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1993-04-04T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1993-04-04T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1993-04-04T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1993-10-31T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1993-10-31T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1993-10-31T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1993-10-31T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1993-04-04T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1993-04-04T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1993-04-04T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1993-04-04T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1993-10-31T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1993-10-31T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1994-04-03T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1994-04-03T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1994-04-03T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1994-10-30T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1994-10-30T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1994-10-30T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1994-10-30T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1994-04-03T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1994-04-03T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1994-04-03T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1994-04-03T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1994-10-30T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1994-10-30T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1995-04-02T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1995-04-02T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1995-04-02T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1995-10-29T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1995-10-29T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1995-10-29T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1995-10-29T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1995-04-02T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1995-04-02T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1995-04-02T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1995-04-02T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1995-10-29T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1995-10-29T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1996-04-07T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1996-04-07T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1996-04-07T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1996-10-27T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1996-10-27T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1996-10-27T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1996-10-27T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1996-04-07T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1996-04-07T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1996-04-07T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1996-04-07T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1996-10-27T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1996-10-27T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1997-04-06T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1997-04-06T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1997-04-06T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1997-10-26T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1997-10-26T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1997-10-26T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1997-10-26T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1997-04-06T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1997-04-06T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1997-04-06T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1997-04-06T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1997-10-26T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1997-10-26T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1998-04-05T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1998-04-05T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1998-04-05T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1998-10-25T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1998-10-25T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1998-10-25T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1998-10-25T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1998-04-05T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1998-04-05T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1998-04-05T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1998-04-05T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1998-10-25T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1998-10-25T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1999-04-04T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1999-04-04T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "1999-04-04T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1999-10-31T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "1999-10-31T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1999-10-31T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "1999-10-31T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1999-04-04T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "1999-04-04T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1999-04-04T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "1999-04-04T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "1999-10-31T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "1999-10-31T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2000-04-02T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2000-04-02T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2000-04-02T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2000-10-29T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2000-10-29T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2000-10-29T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2000-10-29T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2000-04-02T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2000-04-02T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2000-04-02T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2000-04-02T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2000-10-29T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2000-10-29T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2001-04-01T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2001-04-01T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2001-04-01T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2001-10-28T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2001-10-28T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2001-10-28T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2001-10-28T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2001-04-01T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2001-04-01T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2001-04-01T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2001-04-01T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2001-10-28T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2001-10-28T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2002-04-07T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2002-04-07T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2002-04-07T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2002-10-27T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2002-10-27T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2002-10-27T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2002-10-27T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2002-04-07T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2002-04-07T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2002-04-07T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2002-04-07T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2002-10-27T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2002-10-27T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2003-04-06T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2003-04-06T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2003-04-06T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2003-10-26T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2003-10-26T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2003-10-26T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2003-10-26T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2003-04-06T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2003-04-06T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2003-04-06T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2003-04-06T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2003-10-26T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2003-10-26T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2004-04-04T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2004-04-04T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2004-04-04T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2004-10-31T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2004-10-31T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2004-10-31T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2004-10-31T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2004-04-04T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2004-04-04T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2004-04-04T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2004-04-04T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2004-10-31T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2004-10-31T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2005-04-03T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2005-04-03T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2005-04-03T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2005-10-30T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2005-10-30T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2005-10-30T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2005-10-30T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2005-04-03T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2005-04-03T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2005-04-03T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2005-04-03T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2005-10-30T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2005-10-30T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2006-04-02T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2006-04-02T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2006-04-02T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2006-10-29T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2006-10-29T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2006-10-29T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2006-10-29T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2006-04-02T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2006-04-02T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2006-04-02T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2006-04-02T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2006-10-29T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2006-10-29T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2007-03-11T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2007-03-11T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2007-03-11T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2007-11-04T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2007-11-04T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2007-11-04T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2007-11-04T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2007-03-11T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2007-03-11T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2007-03-11T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2007-03-11T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2007-11-04T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2007-11-04T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2008-03-09T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2008-03-09T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2008-03-09T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2008-11-02T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2008-11-02T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2008-11-02T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2008-11-02T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2008-03-09T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2008-03-09T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2008-03-09T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2008-03-09T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2008-11-02T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2008-11-02T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2009-03-08T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2009-03-08T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2009-03-08T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2009-11-01T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2009-11-01T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2009-11-01T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2009-11-01T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2009-03-08T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2009-03-08T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2009-03-08T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2009-03-08T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2009-11-01T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2009-11-01T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2010-03-14T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2010-03-14T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2010-03-14T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2010-11-07T03:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2010-11-07T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2010-11-07T03:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "23:01:00", "2010-11-07T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2010-03-14T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2010-03-14T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2010-03-14T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2010-03-14T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T03:00:59+00:00").tz("America/Goose_Bay").zone(), 180, "2010-11-07T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T03:01:00+00:00").tz("America/Goose_Bay").zone(), 240, "2010-11-07T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T04:00:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "00:00:59", "2011-03-13T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2011-03-13T04:01:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:01:00", "2011-03-13T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2011-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2011-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2011-03-13T04:00:59+00:00").tz("America/Goose_Bay").zone(), 240, "2011-03-13T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2011-03-13T04:01:00+00:00").tz("America/Goose_Bay").zone(), 180, "2011-03-13T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2011-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2011-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2012-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2012-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2012-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2012-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2012-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2012-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2012-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2012-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2013-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2013-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2013-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2013-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2013-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2013-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2013-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2013-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2014-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2014-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2014-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2014-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2014-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2014-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2014-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2014-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2015-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2015-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2015-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2015-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2015-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2015-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2015-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2015-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2016-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2016-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2016-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2016-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2016-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2016-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2016-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2016-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2017-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2017-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2017-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2017-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2017-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2017-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2017-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2017-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2018-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2018-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2018-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2018-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2018-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2018-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2018-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2018-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2019-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2019-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2019-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2019-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2019-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2019-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2019-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2019-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2020-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2020-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2020-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2020-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2020-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2020-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2020-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2020-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2021-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2021-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2021-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2021-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2021-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2021-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2021-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2021-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2022-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2022-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2022-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2022-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2022-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2022-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2022-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2022-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2023-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2023-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2023-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2023-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2023-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2023-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2023-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2023-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2024-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2024-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2024-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2024-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2024-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2024-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2024-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2024-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2025-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2025-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2025-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2025-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2025-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2025-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2025-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2025-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2026-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2026-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2026-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2026-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2026-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2026-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2026-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2026-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2027-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2027-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2027-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2027-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2027-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2027-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2027-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2027-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2028-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2028-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2028-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2028-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2028-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2028-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2028-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2028-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2029-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2029-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2029-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2029-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2029-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2029-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2029-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2029-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2030-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2030-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2030-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2030-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2030-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2030-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2030-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2030-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2031-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2031-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2031-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2031-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2031-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2031-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2031-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2031-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2032-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2032-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2032-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2032-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2032-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2032-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2032-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2032-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2033-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2033-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2033-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2033-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2033-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2033-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2033-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2033-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2034-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2034-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2034-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2034-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2034-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2034-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2034-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2034-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2035-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2035-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2035-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2035-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2035-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2035-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2035-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2035-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2036-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2036-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2036-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2036-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2036-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2036-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2036-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2036-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2037-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "03:00:00", "2037-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:59:59", "2037-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Goose_Bay").format("HH:mm:ss"), "01:00:00", "2037-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Goose_Bay").zone(), 240, "2037-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Goose_Bay").zone(), 180, "2037-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Goose_Bay").zone(), 180, "2037-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Goose_Bay").zone(), 240, "2037-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/grand_turk.js b/tests/america/grand_turk.js deleted file mode 100644 index 35be85cd..00000000 --- a/tests/america/grand_turk.js +++ /dev/null @@ -1,840 +0,0 @@ -var moment = require("../../index"); - -exports["America/Grand_Turk"] = { - - "1912" : function (t) { - t.equal(moment("1912-02-01T05:07:11+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "23:59:59", "1912-02-01T05:07:11+00:00 should be 23:59:59 KMT"); - t.equal(moment("1912-02-01T05:07:12+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "00:07:12", "1912-02-01T05:07:12+00:00 should be 00:07:12 EST"); - - t.equal(moment("1912-02-01T05:07:11+00:00").tz("America/Grand_Turk").zone(), 18432 / 60, "1912-02-01T05:07:11+00:00 should be 18432 / 60 minutes offset in KMT"); - t.equal(moment("1912-02-01T05:07:12+00:00").tz("America/Grand_Turk").zone(), 300, "1912-02-01T05:07:12+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Grand_Turk").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Grand_Turk").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Grand_Turk").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Grand_Turk").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Grand_Turk").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/grenada.js b/tests/america/grenada.js deleted file mode 100644 index b3cbba53..00000000 --- a/tests/america/grenada.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Grenada"] = { - - "1911" : function (t) { - t.equal(moment("1911-07-01T04:06:59+00:00").tz("America/Grenada").format("HH:mm:ss"), "23:59:59", "1911-07-01T04:06:59+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-07-01T04:07:00+00:00").tz("America/Grenada").format("HH:mm:ss"), "00:07:00", "1911-07-01T04:07:00+00:00 should be 00:07:00 AST"); - - t.equal(moment("1911-07-01T04:06:59+00:00").tz("America/Grenada").zone(), 247, "1911-07-01T04:06:59+00:00 should be 247 minutes offset in LMT"); - t.equal(moment("1911-07-01T04:07:00+00:00").tz("America/Grenada").zone(), 240, "1911-07-01T04:07:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/guadeloupe.js b/tests/america/guadeloupe.js deleted file mode 100644 index 732f50b9..00000000 --- a/tests/america/guadeloupe.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Guadeloupe"] = { - - "1911" : function (t) { - t.equal(moment("1911-06-08T04:06:07+00:00").tz("America/Guadeloupe").format("HH:mm:ss"), "23:59:59", "1911-06-08T04:06:07+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-06-08T04:06:08+00:00").tz("America/Guadeloupe").format("HH:mm:ss"), "00:06:08", "1911-06-08T04:06:08+00:00 should be 00:06:08 AST"); - - t.equal(moment("1911-06-08T04:06:07+00:00").tz("America/Guadeloupe").zone(), 14768 / 60, "1911-06-08T04:06:07+00:00 should be 14768 / 60 minutes offset in LMT"); - t.equal(moment("1911-06-08T04:06:08+00:00").tz("America/Guadeloupe").zone(), 240, "1911-06-08T04:06:08+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/guatemala.js b/tests/america/guatemala.js deleted file mode 100644 index 7f540975..00000000 --- a/tests/america/guatemala.js +++ /dev/null @@ -1,76 +0,0 @@ -var moment = require("../../index"); - -exports["America/Guatemala"] = { - - "1918" : function (t) { - t.equal(moment("1918-10-05T06:02:03+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:59:59", "1918-10-05T06:02:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1918-10-05T06:02:04+00:00").tz("America/Guatemala").format("HH:mm:ss"), "00:02:04", "1918-10-05T06:02:04+00:00 should be 00:02:04 CST"); - - t.equal(moment("1918-10-05T06:02:03+00:00").tz("America/Guatemala").zone(), 21724 / 60, "1918-10-05T06:02:03+00:00 should be 21724 / 60 minutes offset in LMT"); - t.equal(moment("1918-10-05T06:02:04+00:00").tz("America/Guatemala").zone(), 360, "1918-10-05T06:02:04+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-11-25T05:59:59+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:59:59", "1973-11-25T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1973-11-25T06:00:00+00:00").tz("America/Guatemala").format("HH:mm:ss"), "01:00:00", "1973-11-25T06:00:00+00:00 should be 01:00:00 CDT"); - - t.equal(moment("1973-11-25T05:59:59+00:00").tz("America/Guatemala").zone(), 360, "1973-11-25T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1973-11-25T06:00:00+00:00").tz("America/Guatemala").zone(), 300, "1973-11-25T06:00:00+00:00 should be 300 minutes offset in CDT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-02-24T04:59:59+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:59:59", "1974-02-24T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1974-02-24T05:00:00+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:00:00", "1974-02-24T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1974-02-24T04:59:59+00:00").tz("America/Guatemala").zone(), 300, "1974-02-24T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-02-24T05:00:00+00:00").tz("America/Guatemala").zone(), 360, "1974-02-24T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-05-21T05:59:59+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:59:59", "1983-05-21T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1983-05-21T06:00:00+00:00").tz("America/Guatemala").format("HH:mm:ss"), "01:00:00", "1983-05-21T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1983-09-22T04:59:59+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:59:59", "1983-09-22T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1983-09-22T05:00:00+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:00:00", "1983-09-22T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1983-05-21T05:59:59+00:00").tz("America/Guatemala").zone(), 360, "1983-05-21T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-05-21T06:00:00+00:00").tz("America/Guatemala").zone(), 300, "1983-05-21T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-09-22T04:59:59+00:00").tz("America/Guatemala").zone(), 300, "1983-09-22T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-09-22T05:00:00+00:00").tz("America/Guatemala").zone(), 360, "1983-09-22T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-23T05:59:59+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:59:59", "1991-03-23T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1991-03-23T06:00:00+00:00").tz("America/Guatemala").format("HH:mm:ss"), "01:00:00", "1991-03-23T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1991-09-07T04:59:59+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:59:59", "1991-09-07T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1991-09-07T05:00:00+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:00:00", "1991-09-07T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1991-03-23T05:59:59+00:00").tz("America/Guatemala").zone(), 360, "1991-03-23T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-03-23T06:00:00+00:00").tz("America/Guatemala").zone(), 300, "1991-03-23T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-09-07T04:59:59+00:00").tz("America/Guatemala").zone(), 300, "1991-09-07T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-09-07T05:00:00+00:00").tz("America/Guatemala").zone(), 360, "1991-09-07T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-30T05:59:59+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:59:59", "2006-04-30T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2006-04-30T06:00:00+00:00").tz("America/Guatemala").format("HH:mm:ss"), "01:00:00", "2006-04-30T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2006-10-01T04:59:59+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:59:59", "2006-10-01T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("2006-10-01T05:00:00+00:00").tz("America/Guatemala").format("HH:mm:ss"), "23:00:00", "2006-10-01T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("2006-04-30T05:59:59+00:00").tz("America/Guatemala").zone(), 360, "2006-04-30T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-30T06:00:00+00:00").tz("America/Guatemala").zone(), 300, "2006-04-30T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-01T04:59:59+00:00").tz("America/Guatemala").zone(), 300, "2006-10-01T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-01T05:00:00+00:00").tz("America/Guatemala").zone(), 360, "2006-10-01T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/guayaquil.js b/tests/america/guayaquil.js deleted file mode 100644 index 0a263ec0..00000000 --- a/tests/america/guayaquil.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Guayaquil"] = { - - "1931" : function (t) { - t.equal(moment("1931-01-01T05:13:59+00:00").tz("America/Guayaquil").format("HH:mm:ss"), "23:59:59", "1931-01-01T05:13:59+00:00 should be 23:59:59 QMT"); - t.equal(moment("1931-01-01T05:14:00+00:00").tz("America/Guayaquil").format("HH:mm:ss"), "00:14:00", "1931-01-01T05:14:00+00:00 should be 00:14:00 ECT"); - - t.equal(moment("1931-01-01T05:13:59+00:00").tz("America/Guayaquil").zone(), 314, "1931-01-01T05:13:59+00:00 should be 314 minutes offset in QMT"); - t.equal(moment("1931-01-01T05:14:00+00:00").tz("America/Guayaquil").zone(), 300, "1931-01-01T05:14:00+00:00 should be 300 minutes offset in ECT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/guyana.js b/tests/america/guyana.js deleted file mode 100644 index 11b8d185..00000000 --- a/tests/america/guyana.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["America/Guyana"] = { - - "1915" : function (t) { - t.equal(moment("1915-03-01T03:52:39+00:00").tz("America/Guyana").format("HH:mm:ss"), "23:59:59", "1915-03-01T03:52:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1915-03-01T03:52:40+00:00").tz("America/Guyana").format("HH:mm:ss"), "00:07:40", "1915-03-01T03:52:40+00:00 should be 00:07:40 GBGT"); - - t.equal(moment("1915-03-01T03:52:39+00:00").tz("America/Guyana").zone(), 13960 / 60, "1915-03-01T03:52:39+00:00 should be 13960 / 60 minutes offset in LMT"); - t.equal(moment("1915-03-01T03:52:40+00:00").tz("America/Guyana").zone(), 225, "1915-03-01T03:52:40+00:00 should be 225 minutes offset in GBGT"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-05-26T03:44:59+00:00").tz("America/Guyana").format("HH:mm:ss"), "23:59:59", "1966-05-26T03:44:59+00:00 should be 23:59:59 GBGT"); - t.equal(moment("1966-05-26T03:45:00+00:00").tz("America/Guyana").format("HH:mm:ss"), "00:00:00", "1966-05-26T03:45:00+00:00 should be 00:00:00 GYT"); - - t.equal(moment("1966-05-26T03:44:59+00:00").tz("America/Guyana").zone(), 225, "1966-05-26T03:44:59+00:00 should be 225 minutes offset in GBGT"); - t.equal(moment("1966-05-26T03:45:00+00:00").tz("America/Guyana").zone(), 225, "1966-05-26T03:45:00+00:00 should be 225 minutes offset in GYT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-07-31T03:44:59+00:00").tz("America/Guyana").format("HH:mm:ss"), "23:59:59", "1975-07-31T03:44:59+00:00 should be 23:59:59 GYT"); - t.equal(moment("1975-07-31T03:45:00+00:00").tz("America/Guyana").format("HH:mm:ss"), "00:45:00", "1975-07-31T03:45:00+00:00 should be 00:45:00 GYT"); - - t.equal(moment("1975-07-31T03:44:59+00:00").tz("America/Guyana").zone(), 225, "1975-07-31T03:44:59+00:00 should be 225 minutes offset in GYT"); - t.equal(moment("1975-07-31T03:45:00+00:00").tz("America/Guyana").zone(), 180, "1975-07-31T03:45:00+00:00 should be 180 minutes offset in GYT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-01-01T02:59:59+00:00").tz("America/Guyana").format("HH:mm:ss"), "23:59:59", "1991-01-01T02:59:59+00:00 should be 23:59:59 GYT"); - t.equal(moment("1991-01-01T03:00:00+00:00").tz("America/Guyana").format("HH:mm:ss"), "23:00:00", "1991-01-01T03:00:00+00:00 should be 23:00:00 GYT"); - - t.equal(moment("1991-01-01T02:59:59+00:00").tz("America/Guyana").zone(), 180, "1991-01-01T02:59:59+00:00 should be 180 minutes offset in GYT"); - t.equal(moment("1991-01-01T03:00:00+00:00").tz("America/Guyana").zone(), 240, "1991-01-01T03:00:00+00:00 should be 240 minutes offset in GYT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/halifax.js b/tests/america/halifax.js deleted file mode 100644 index cdf126dd..00000000 --- a/tests/america/halifax.js +++ /dev/null @@ -1,1606 +0,0 @@ -var moment = require("../../index"); - -exports["America/Halifax"] = { - - "1902" : function (t) { - t.equal(moment("1902-06-15T04:14:23+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1902-06-15T04:14:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1902-06-15T04:14:24+00:00").tz("America/Halifax").format("HH:mm:ss"), "00:14:24", "1902-06-15T04:14:24+00:00 should be 00:14:24 AST"); - - t.equal(moment("1902-06-15T04:14:23+00:00").tz("America/Halifax").zone(), 15264 / 60, "1902-06-15T04:14:23+00:00 should be 15264 / 60 minutes offset in LMT"); - t.equal(moment("1902-06-15T04:14:24+00:00").tz("America/Halifax").zone(), 240, "1902-06-15T04:14:24+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-04-01T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1916-04-01T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1916-04-01T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1916-04-01T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1916-10-01T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1916-10-01T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1916-10-01T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1916-10-01T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1916-04-01T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1916-04-01T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1916-04-01T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1916-04-01T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1916-10-01T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1916-10-01T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1916-10-01T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1916-10-01T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-14T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1918-04-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1918-04-14T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1918-04-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1918-10-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1918-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1918-10-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1918-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1918-04-14T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1918-04-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1918-04-14T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1918-04-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1918-10-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1918-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1918-10-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1918-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-05-09T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1920-05-09T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1920-05-09T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1920-05-09T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1920-08-29T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1920-08-29T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1920-08-29T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1920-08-29T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1920-05-09T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1920-05-09T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1920-05-09T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1920-05-09T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1920-08-29T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1920-08-29T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1920-08-29T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1920-08-29T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-05-06T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1921-05-06T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1921-05-06T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1921-05-06T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1921-09-05T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1921-09-05T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1921-09-05T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1921-09-05T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1921-05-06T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1921-05-06T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1921-05-06T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1921-05-06T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1921-09-05T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1921-09-05T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1921-09-05T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1921-09-05T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-04-30T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1922-04-30T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1922-04-30T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1922-04-30T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1922-09-05T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1922-09-05T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1922-09-05T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1922-09-05T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1922-04-30T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1922-04-30T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1922-04-30T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1922-04-30T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1922-09-05T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1922-09-05T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1922-09-05T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1922-09-05T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-05-06T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1923-05-06T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1923-05-06T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1923-05-06T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1923-09-04T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1923-09-04T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1923-09-04T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1923-09-04T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1923-05-06T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1923-05-06T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1923-05-06T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1923-05-06T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1923-09-04T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1923-09-04T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1923-09-04T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1923-09-04T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-05-04T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1924-05-04T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1924-05-04T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1924-05-04T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1924-09-15T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1924-09-15T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1924-09-15T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1924-09-15T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1924-05-04T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1924-05-04T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1924-05-04T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1924-05-04T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1924-09-15T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1924-09-15T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1924-09-15T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1924-09-15T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-05-03T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1925-05-03T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1925-05-03T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1925-05-03T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1925-09-28T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1925-09-28T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1925-09-28T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1925-09-28T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1925-05-03T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1925-05-03T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1925-05-03T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1925-05-03T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1925-09-28T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1925-09-28T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1925-09-28T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1925-09-28T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-05-16T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1926-05-16T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1926-05-16T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1926-05-16T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1926-09-13T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1926-09-13T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1926-09-13T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1926-09-13T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1926-05-16T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1926-05-16T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1926-05-16T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1926-05-16T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1926-09-13T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1926-09-13T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1926-09-13T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1926-09-13T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-05-01T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1927-05-01T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1927-05-01T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1927-05-01T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1927-09-26T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1927-09-26T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1927-09-26T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1927-09-26T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1927-05-01T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1927-05-01T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1927-05-01T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1927-05-01T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1927-09-26T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1927-09-26T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1927-09-26T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1927-09-26T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-05-13T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1928-05-13T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1928-05-13T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1928-05-13T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1928-09-09T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1928-09-09T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1928-09-09T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1928-09-09T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1928-05-13T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1928-05-13T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1928-05-13T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1928-05-13T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1928-09-09T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1928-09-09T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1928-09-09T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1928-09-09T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-05-12T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1929-05-12T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1929-05-12T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1929-05-12T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1929-09-03T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1929-09-03T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1929-09-03T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1929-09-03T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1929-05-12T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1929-05-12T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1929-05-12T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1929-05-12T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1929-09-03T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1929-09-03T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1929-09-03T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1929-09-03T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-05-11T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1930-05-11T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1930-05-11T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1930-05-11T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1930-09-15T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1930-09-15T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1930-09-15T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1930-09-15T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1930-05-11T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1930-05-11T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1930-05-11T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1930-05-11T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1930-09-15T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1930-09-15T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1930-09-15T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1930-09-15T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-10T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1931-05-10T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1931-05-10T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1931-05-10T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1931-09-28T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1931-09-28T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1931-09-28T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1931-09-28T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1931-05-10T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1931-05-10T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1931-05-10T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1931-05-10T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1931-09-28T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1931-09-28T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1931-09-28T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1931-09-28T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-05-01T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1932-05-01T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1932-05-01T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1932-05-01T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1932-09-26T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1932-09-26T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1932-09-26T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1932-09-26T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1932-05-01T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1932-05-01T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1932-05-01T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1932-05-01T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1932-09-26T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1932-09-26T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1932-09-26T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1932-09-26T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-30T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1933-04-30T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1933-04-30T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1933-04-30T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1933-10-02T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1933-10-02T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1933-10-02T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1933-10-02T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1933-04-30T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1933-04-30T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1933-04-30T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1933-04-30T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1933-10-02T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1933-10-02T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1933-10-02T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1933-10-02T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-05-20T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1934-05-20T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1934-05-20T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1934-05-20T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1934-09-16T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1934-09-16T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1934-09-16T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1934-09-16T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1934-05-20T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1934-05-20T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1934-05-20T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1934-05-20T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1934-09-16T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1934-09-16T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1934-09-16T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1934-09-16T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-06-02T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1935-06-02T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1935-06-02T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1935-06-02T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1935-09-30T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1935-09-30T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1935-09-30T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1935-09-30T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1935-06-02T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1935-06-02T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1935-06-02T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1935-06-02T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1935-09-30T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1935-09-30T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1935-09-30T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1935-09-30T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-06-01T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1936-06-01T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1936-06-01T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1936-06-01T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1936-09-14T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1936-09-14T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1936-09-14T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1936-09-14T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1936-06-01T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1936-06-01T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1936-06-01T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1936-06-01T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1936-09-14T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1936-09-14T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1936-09-14T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1936-09-14T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-05-02T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1937-05-02T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1937-05-02T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1937-05-02T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1937-09-27T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1937-09-27T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1937-09-27T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1937-09-27T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1937-05-02T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1937-05-02T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1937-05-02T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1937-05-02T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1937-09-27T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1937-09-27T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1937-09-27T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1937-09-27T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-05-01T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1938-05-01T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1938-05-01T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1938-05-01T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1938-09-26T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1938-09-26T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1938-09-26T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1938-09-26T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1938-05-01T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1938-05-01T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1938-05-01T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1938-05-01T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1938-09-26T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1938-09-26T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1938-09-26T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1938-09-26T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-05-28T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1939-05-28T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1939-05-28T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1939-05-28T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1939-09-25T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1939-09-25T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1939-09-25T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1939-09-25T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1939-05-28T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1939-05-28T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1939-05-28T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1939-05-28T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1939-09-25T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1939-09-25T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1939-09-25T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1939-09-25T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-05-05T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1940-05-05T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1940-05-05T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1940-05-05T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1940-09-30T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1940-09-30T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1940-09-30T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1940-09-30T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1940-05-05T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1940-05-05T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1940-05-05T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1940-05-05T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1940-09-30T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1940-09-30T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1940-09-30T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1940-09-30T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-05-04T03:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1941-05-04T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1941-05-04T04:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1941-05-04T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1941-09-29T02:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:59:59", "1941-09-29T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1941-09-29T03:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "23:00:00", "1941-09-29T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1941-05-04T03:59:59+00:00").tz("America/Halifax").zone(), 240, "1941-05-04T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1941-05-04T04:00:00+00:00").tz("America/Halifax").zone(), 180, "1941-05-04T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1941-09-29T02:59:59+00:00").tz("America/Halifax").zone(), 180, "1941-09-29T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1941-09-29T03:00:00+00:00").tz("America/Halifax").zone(), 240, "1941-09-29T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1942-02-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1942-02-09T06:00:00+00:00 should be 03:00:00 AWT"); - - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1942-02-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1942-02-09T06:00:00+00:00 should be 180 minutes offset in AWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "19:59:59", "1945-08-14T22:59:59+00:00 should be 19:59:59 AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "20:00:00", "1945-08-14T23:00:00+00:00 should be 20:00:00 APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1945-09-30T04:59:59+00:00 should be 01:59:59 APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1945-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Halifax").zone(), 180, "1945-08-14T22:59:59+00:00 should be 180 minutes offset in AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Halifax").zone(), 180, "1945-08-14T23:00:00+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1945-09-30T04:59:59+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1945-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1946-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1946-04-28T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1946-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1946-09-29T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1946-09-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1946-09-29T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1946-09-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1946-04-28T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1946-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1946-04-28T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1946-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1946-09-29T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1946-09-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1946-09-29T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1946-09-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1947-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1947-04-27T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1947-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1947-09-28T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1947-09-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1947-09-28T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1947-09-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1947-04-27T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1947-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1947-04-27T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1947-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1947-09-28T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1947-09-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1947-09-28T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1947-09-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1948-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1948-04-25T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1948-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1948-09-26T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1948-09-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1948-09-26T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1948-09-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1948-04-25T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1948-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1948-04-25T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1948-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1948-09-26T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1948-09-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1948-09-26T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1948-09-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1949-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1949-04-24T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1949-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1949-09-25T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1949-09-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1949-09-25T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1949-09-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1949-04-24T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1949-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1949-04-24T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1949-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1949-09-25T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1949-09-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1949-09-25T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1949-09-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1951-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1951-04-29T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1951-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1951-09-30T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1951-09-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1951-09-30T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1951-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1951-04-29T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1951-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1951-04-29T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1951-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1951-09-30T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1951-09-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1951-09-30T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1951-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1952-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1952-04-27T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1952-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1952-09-28T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1952-09-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1952-09-28T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1952-09-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1952-04-27T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1952-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1952-04-27T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1952-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1952-09-28T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1952-09-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1952-09-28T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1952-09-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1953-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1953-04-26T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1953-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1953-09-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1953-09-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1953-09-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1953-09-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1953-04-26T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1953-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1953-04-26T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1953-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1953-09-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1953-09-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1953-09-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1953-09-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1954-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1954-04-25T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1954-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1954-09-26T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1954-09-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1954-09-26T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1954-09-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1954-04-25T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1954-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1954-04-25T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1954-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1954-09-26T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1954-09-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1954-09-26T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1954-09-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1956-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1956-04-29T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1956-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1956-09-30T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1956-09-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1956-09-30T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1956-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1956-04-29T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1956-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1956-04-29T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1956-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1956-09-30T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1956-09-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1956-09-30T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1956-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1957-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1957-04-28T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1957-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1957-09-29T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1957-09-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1957-09-29T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1957-09-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1957-04-28T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1957-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1957-04-28T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1957-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1957-09-29T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1957-09-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1957-09-29T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1957-09-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1958-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1958-04-27T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1958-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1958-09-28T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1958-09-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1958-09-28T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1958-09-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1958-04-27T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1958-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1958-04-27T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1958-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1958-09-28T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1958-09-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1958-09-28T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1958-09-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1959-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1959-04-26T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1959-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1959-09-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1959-09-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1959-09-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1959-09-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1959-04-26T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1959-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1959-04-26T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1959-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1959-09-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1959-09-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1959-09-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1959-09-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1962-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1962-04-29T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1962-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1962-10-28T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1962-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1962-10-28T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1962-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1962-04-29T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1962-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1962-04-29T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1962-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1962-10-28T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1962-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1962-10-28T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1962-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1963-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1963-04-28T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1963-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1963-10-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1963-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1963-10-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1963-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1963-04-28T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1963-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1963-04-28T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1963-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1963-10-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1963-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1963-10-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1963-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1964-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1964-04-26T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1964-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1964-10-25T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1964-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1964-10-25T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1964-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1964-04-26T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1964-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1964-04-26T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1964-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1964-10-25T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1964-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1964-10-25T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1964-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1965-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1965-04-25T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1965-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1965-10-31T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1965-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1965-10-31T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1965-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1965-04-25T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1965-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1965-04-25T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1965-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1965-10-31T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1965-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1965-10-31T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1965-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1966-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1966-04-24T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1966-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1966-10-30T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1966-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1966-10-30T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1966-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1966-04-24T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1966-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1966-04-24T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1966-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1966-10-30T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1966-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1966-10-30T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1966-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1967-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1967-04-30T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1967-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1967-10-29T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1967-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1967-10-29T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1967-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1967-04-30T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1967-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1967-04-30T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1967-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1967-10-29T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1967-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1967-10-29T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1967-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1968-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1968-04-28T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1968-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1968-10-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1968-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1968-10-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1968-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1968-04-28T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1968-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1968-04-28T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1968-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1968-10-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1968-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1968-10-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1968-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1969-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1969-04-27T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1969-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1969-10-26T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1969-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1969-10-26T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1969-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1969-04-27T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1969-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1969-04-27T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1969-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1969-10-26T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1969-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1969-10-26T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1969-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1970-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1970-04-26T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1970-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1970-10-25T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1970-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1970-10-25T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1970-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1970-04-26T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1970-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1970-04-26T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1970-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1970-10-25T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1970-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1970-10-25T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1970-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1971-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1971-04-25T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1971-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1971-10-31T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1971-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1971-10-31T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1971-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1971-04-25T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1971-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1971-04-25T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1971-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1971-10-31T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1971-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1971-10-31T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1971-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1972-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1972-04-30T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1972-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1972-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1972-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1972-04-30T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1972-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1972-04-30T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1972-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1972-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1972-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1973-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1973-04-29T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1973-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1973-10-28T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1973-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1973-10-28T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1973-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1973-04-29T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1973-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1973-04-29T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1973-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1973-10-28T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1973-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1973-10-28T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1973-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1974-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1974-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1974-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1974-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1974-04-28T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1974-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1974-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1974-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1974-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1975-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1975-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1975-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1975-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1975-04-27T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1975-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1975-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1975-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1975-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1976-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1976-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1976-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1976-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1976-04-25T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1976-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1976-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1976-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1976-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1977-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1977-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1977-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1977-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1977-04-24T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1977-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1977-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1977-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1977-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1978-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1978-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1978-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1978-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1978-04-30T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1978-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1978-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1978-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1978-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1979-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1979-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1979-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1979-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1979-04-29T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1979-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1979-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1979-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1979-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1980-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1980-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1980-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1980-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1980-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1980-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1980-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1980-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1981-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1981-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1981-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1981-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1981-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1981-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1981-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1981-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1982-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1982-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1982-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1982-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1982-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1982-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1982-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1982-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1983-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1983-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1983-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1983-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1983-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1983-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1983-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1983-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1984-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1984-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1984-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1984-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1984-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1984-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1984-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1984-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1985-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1985-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1985-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1985-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1985-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1985-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1985-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1985-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1986-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1986-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1986-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1986-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1986-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1986-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1986-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1986-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1987-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1987-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1987-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1987-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1987-04-05T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1987-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1987-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1987-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1987-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1988-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1988-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1988-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1988-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1988-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1988-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1988-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1988-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1989-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1989-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1989-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1989-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1989-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1989-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1989-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1989-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1990-04-01T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1990-04-01T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1990-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1990-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1990-04-01T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1990-04-01T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1990-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1990-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1991-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1991-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1991-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1991-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1991-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1991-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1991-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1991-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1992-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1992-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1992-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1992-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1992-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1992-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1992-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1992-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1993-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1993-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1993-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1993-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1993-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1993-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1993-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1993-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1994-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1994-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1994-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1994-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1994-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1994-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1994-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1994-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1995-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1995-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1995-10-29T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1995-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1995-10-29T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1995-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1995-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1995-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1995-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1995-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1996-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1996-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1996-10-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1996-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1996-10-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1996-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1996-04-07T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1996-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1996-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1996-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1996-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1997-04-06T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1997-04-06T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1997-10-26T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1997-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1997-10-26T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1997-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1997-04-06T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1997-04-06T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1997-04-06T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1997-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1997-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1998-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1998-04-05T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1998-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1998-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1998-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1998-04-05T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1998-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1998-04-05T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1998-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1998-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1998-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1999-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1999-04-04T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "1999-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "1999-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "1999-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1999-04-04T05:59:59+00:00").tz("America/Halifax").zone(), 240, "1999-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1999-04-04T06:00:00+00:00").tz("America/Halifax").zone(), 180, "1999-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("America/Halifax").zone(), 180, "1999-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("America/Halifax").zone(), 240, "1999-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2000-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2000-04-02T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2000-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2000-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2000-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2000-04-02T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2000-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2000-04-02T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2000-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2000-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2000-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2001-04-01T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2001-04-01T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2001-04-01T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2001-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2001-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2001-04-01T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2001-04-01T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2001-04-01T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2001-04-01T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2001-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2001-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2002-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2002-04-07T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2002-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2002-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2002-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2002-04-07T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2002-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2002-04-07T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2002-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2002-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2002-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2003-04-06T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2003-04-06T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2003-04-06T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2003-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2003-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2003-04-06T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2003-04-06T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2003-04-06T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2003-04-06T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2003-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2003-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2004-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2004-04-04T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2004-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2004-10-31T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2004-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2004-10-31T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2004-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2004-04-04T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2004-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2004-04-04T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2004-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2004-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2004-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2005-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2005-04-03T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2005-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2005-10-30T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2005-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2005-10-30T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2005-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2005-04-03T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2005-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2005-04-03T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2005-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2005-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2005-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2006-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2006-04-02T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2006-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2006-10-29T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2006-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2006-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2006-04-02T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2006-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2006-04-02T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2006-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2006-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2006-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2007-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2007-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2007-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2007-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2007-03-11T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2007-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2007-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2007-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2007-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2008-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2008-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2008-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2008-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2008-03-09T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2008-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2008-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2008-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2008-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2009-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2009-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2009-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2009-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2009-03-08T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2009-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2009-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2009-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2009-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2010-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2010-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2010-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2010-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2010-03-14T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2010-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2010-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2010-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2010-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2011-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2011-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2011-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2011-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2011-03-13T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2011-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2011-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2011-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2011-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2012-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2012-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2012-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2012-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2012-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2012-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2012-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2012-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2013-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2013-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2013-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2013-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2013-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2013-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2013-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2013-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2014-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2014-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2014-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2014-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2014-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2014-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2014-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2014-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2015-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2015-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2015-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2015-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2015-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2015-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2015-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2015-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2016-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2016-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2016-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2016-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2016-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2016-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2016-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2016-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2017-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2017-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2017-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2017-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2017-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2017-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2017-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2017-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2018-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2018-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2018-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2018-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2018-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2018-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2018-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2018-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2019-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2019-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2019-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2019-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2019-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2019-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2019-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2019-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2020-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2020-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2020-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2020-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2020-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2020-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2020-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2020-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2021-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2021-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2021-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2021-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2021-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2021-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2021-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2021-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2022-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2022-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2022-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2022-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2022-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2022-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2022-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2022-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2023-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2023-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2023-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2023-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2023-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2023-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2023-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2023-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2024-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2024-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2024-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2024-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2024-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2024-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2024-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2024-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2025-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2025-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2025-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2025-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2025-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2025-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2025-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2025-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2026-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2026-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2026-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2026-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2026-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2026-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2026-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2026-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2027-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2027-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2027-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2027-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2027-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2027-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2027-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2027-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2028-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2028-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2028-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2028-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2028-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2028-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2028-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2028-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2029-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2029-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2029-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2029-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2029-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2029-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2029-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2029-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2030-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2030-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2030-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2030-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2030-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2030-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2030-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2030-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2031-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2031-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2031-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2031-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2031-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2031-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2031-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2031-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2032-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2032-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2032-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2032-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2032-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2032-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2032-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2032-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2033-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2033-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2033-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2033-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2033-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2033-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2033-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2033-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2034-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2034-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2034-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2034-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2034-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2034-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2034-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2034-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2035-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2035-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2035-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2035-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2035-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2035-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2035-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2035-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2036-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2036-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2036-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2036-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2036-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2036-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2036-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2036-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2037-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "03:00:00", "2037-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:59:59", "2037-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Halifax").format("HH:mm:ss"), "01:00:00", "2037-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Halifax").zone(), 240, "2037-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Halifax").zone(), 180, "2037-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Halifax").zone(), 180, "2037-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Halifax").zone(), 240, "2037-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/havana.js b/tests/america/havana.js deleted file mode 100644 index dd917b1b..00000000 --- a/tests/america/havana.js +++ /dev/null @@ -1,1098 +0,0 @@ -var moment = require("../../index"); - -exports["America/Havana"] = { - - "1925" : function (t) { - t.equal(moment("1925-07-19T17:29:35+00:00").tz("America/Havana").format("HH:mm:ss"), "11:59:59", "1925-07-19T17:29:35+00:00 should be 11:59:59 HMT"); - t.equal(moment("1925-07-19T17:29:36+00:00").tz("America/Havana").format("HH:mm:ss"), "12:29:36", "1925-07-19T17:29:36+00:00 should be 12:29:36 CST"); - - t.equal(moment("1925-07-19T17:29:35+00:00").tz("America/Havana").zone(), 19776 / 60, "1925-07-19T17:29:35+00:00 should be 19776 / 60 minutes offset in HMT"); - t.equal(moment("1925-07-19T17:29:36+00:00").tz("America/Havana").zone(), 300, "1925-07-19T17:29:36+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-06-10T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1928-06-10T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1928-06-10T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1928-06-10T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1928-10-10T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1928-10-10T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1928-10-10T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1928-10-10T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1928-06-10T04:59:59+00:00").tz("America/Havana").zone(), 300, "1928-06-10T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1928-06-10T05:00:00+00:00").tz("America/Havana").zone(), 240, "1928-06-10T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1928-10-10T03:59:59+00:00").tz("America/Havana").zone(), 240, "1928-10-10T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1928-10-10T04:00:00+00:00").tz("America/Havana").zone(), 300, "1928-10-10T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-06-02T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1940-06-02T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1940-06-02T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1940-06-02T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1940-09-01T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1940-09-01T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1940-09-01T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1940-09-01T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1940-06-02T04:59:59+00:00").tz("America/Havana").zone(), 300, "1940-06-02T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1940-06-02T05:00:00+00:00").tz("America/Havana").zone(), 240, "1940-06-02T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1940-09-01T03:59:59+00:00").tz("America/Havana").zone(), 240, "1940-09-01T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1940-09-01T04:00:00+00:00").tz("America/Havana").zone(), 300, "1940-09-01T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-01T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1941-06-01T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1941-06-01T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1941-06-01T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1941-09-07T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1941-09-07T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1941-09-07T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1941-09-07T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1941-06-01T04:59:59+00:00").tz("America/Havana").zone(), 300, "1941-06-01T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1941-06-01T05:00:00+00:00").tz("America/Havana").zone(), 240, "1941-06-01T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1941-09-07T03:59:59+00:00").tz("America/Havana").zone(), 240, "1941-09-07T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1941-09-07T04:00:00+00:00").tz("America/Havana").zone(), 300, "1941-09-07T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-06-07T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1942-06-07T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1942-06-07T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1942-06-07T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1942-09-06T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1942-09-06T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1942-09-06T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1942-09-06T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1942-06-07T04:59:59+00:00").tz("America/Havana").zone(), 300, "1942-06-07T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1942-06-07T05:00:00+00:00").tz("America/Havana").zone(), 240, "1942-06-07T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1942-09-06T03:59:59+00:00").tz("America/Havana").zone(), 240, "1942-09-06T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1942-09-06T04:00:00+00:00").tz("America/Havana").zone(), 300, "1942-09-06T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-06-03T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1945-06-03T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1945-06-03T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1945-06-03T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1945-09-02T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1945-09-02T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1945-09-02T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1945-09-02T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1945-06-03T04:59:59+00:00").tz("America/Havana").zone(), 300, "1945-06-03T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1945-06-03T05:00:00+00:00").tz("America/Havana").zone(), 240, "1945-06-03T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1945-09-02T03:59:59+00:00").tz("America/Havana").zone(), 240, "1945-09-02T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1945-09-02T04:00:00+00:00").tz("America/Havana").zone(), 300, "1945-09-02T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-06-02T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1946-06-02T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1946-06-02T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1946-06-02T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1946-09-01T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1946-09-01T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1946-09-01T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1946-09-01T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1946-06-02T04:59:59+00:00").tz("America/Havana").zone(), 300, "1946-06-02T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1946-06-02T05:00:00+00:00").tz("America/Havana").zone(), 240, "1946-06-02T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1946-09-01T03:59:59+00:00").tz("America/Havana").zone(), 240, "1946-09-01T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1946-09-01T04:00:00+00:00").tz("America/Havana").zone(), 300, "1946-09-01T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-06-01T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1965-06-01T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1965-06-01T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1965-06-01T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1965-09-30T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1965-09-30T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1965-09-30T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1965-09-30T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1965-06-01T04:59:59+00:00").tz("America/Havana").zone(), 300, "1965-06-01T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1965-06-01T05:00:00+00:00").tz("America/Havana").zone(), 240, "1965-06-01T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1965-09-30T03:59:59+00:00").tz("America/Havana").zone(), 240, "1965-09-30T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1965-09-30T04:00:00+00:00").tz("America/Havana").zone(), 300, "1965-09-30T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-05-29T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1966-05-29T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1966-05-29T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1966-05-29T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1966-10-02T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1966-10-02T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1966-10-02T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1966-10-02T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1966-05-29T04:59:59+00:00").tz("America/Havana").zone(), 300, "1966-05-29T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1966-05-29T05:00:00+00:00").tz("America/Havana").zone(), 240, "1966-05-29T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1966-10-02T03:59:59+00:00").tz("America/Havana").zone(), 240, "1966-10-02T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1966-10-02T04:00:00+00:00").tz("America/Havana").zone(), 300, "1966-10-02T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-08T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1967-04-08T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1967-04-08T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1967-04-08T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1967-09-10T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1967-09-10T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1967-09-10T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1967-09-10T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1967-04-08T04:59:59+00:00").tz("America/Havana").zone(), 300, "1967-04-08T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1967-04-08T05:00:00+00:00").tz("America/Havana").zone(), 240, "1967-04-08T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1967-09-10T03:59:59+00:00").tz("America/Havana").zone(), 240, "1967-09-10T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1967-09-10T04:00:00+00:00").tz("America/Havana").zone(), 300, "1967-09-10T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-14T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1968-04-14T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1968-04-14T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1968-04-14T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1968-09-08T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1968-09-08T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1968-09-08T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1968-09-08T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1968-04-14T04:59:59+00:00").tz("America/Havana").zone(), 300, "1968-04-14T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1968-04-14T05:00:00+00:00").tz("America/Havana").zone(), 240, "1968-04-14T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1968-09-08T03:59:59+00:00").tz("America/Havana").zone(), 240, "1968-09-08T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1968-09-08T04:00:00+00:00").tz("America/Havana").zone(), 300, "1968-09-08T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1969-04-27T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1969-04-27T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1969-04-27T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1969-10-26T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1969-10-26T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1969-10-26T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1969-10-26T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1969-04-27T04:59:59+00:00").tz("America/Havana").zone(), 300, "1969-04-27T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1969-04-27T05:00:00+00:00").tz("America/Havana").zone(), 240, "1969-04-27T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1969-10-26T03:59:59+00:00").tz("America/Havana").zone(), 240, "1969-10-26T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1969-10-26T04:00:00+00:00").tz("America/Havana").zone(), 300, "1969-10-26T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1970-04-26T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1970-04-26T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1970-04-26T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1970-10-25T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1970-10-25T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1970-10-25T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1970-10-25T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1970-04-26T04:59:59+00:00").tz("America/Havana").zone(), 300, "1970-04-26T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1970-04-26T05:00:00+00:00").tz("America/Havana").zone(), 240, "1970-04-26T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1970-10-25T03:59:59+00:00").tz("America/Havana").zone(), 240, "1970-10-25T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1970-10-25T04:00:00+00:00").tz("America/Havana").zone(), 300, "1970-10-25T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1971-04-25T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1971-04-25T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1971-04-25T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1971-10-31T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1971-10-31T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1971-10-31T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1971-10-31T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1971-04-25T04:59:59+00:00").tz("America/Havana").zone(), 300, "1971-04-25T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1971-04-25T05:00:00+00:00").tz("America/Havana").zone(), 240, "1971-04-25T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1971-10-31T03:59:59+00:00").tz("America/Havana").zone(), 240, "1971-10-31T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1971-10-31T04:00:00+00:00").tz("America/Havana").zone(), 300, "1971-10-31T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1972-04-30T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1972-04-30T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1972-04-30T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1972-10-08T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1972-10-08T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1972-10-08T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1972-10-08T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1972-04-30T04:59:59+00:00").tz("America/Havana").zone(), 300, "1972-04-30T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1972-04-30T05:00:00+00:00").tz("America/Havana").zone(), 240, "1972-04-30T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1972-10-08T03:59:59+00:00").tz("America/Havana").zone(), 240, "1972-10-08T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1972-10-08T04:00:00+00:00").tz("America/Havana").zone(), 300, "1972-10-08T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1973-04-29T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1973-04-29T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1973-04-29T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1973-10-08T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1973-10-08T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1973-10-08T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1973-10-08T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1973-04-29T04:59:59+00:00").tz("America/Havana").zone(), 300, "1973-04-29T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1973-04-29T05:00:00+00:00").tz("America/Havana").zone(), 240, "1973-04-29T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1973-10-08T03:59:59+00:00").tz("America/Havana").zone(), 240, "1973-10-08T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1973-10-08T04:00:00+00:00").tz("America/Havana").zone(), 300, "1973-10-08T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1974-04-28T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1974-04-28T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1974-04-28T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1974-10-08T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1974-10-08T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1974-10-08T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1974-10-08T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1974-04-28T04:59:59+00:00").tz("America/Havana").zone(), 300, "1974-04-28T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1974-04-28T05:00:00+00:00").tz("America/Havana").zone(), 240, "1974-04-28T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1974-10-08T03:59:59+00:00").tz("America/Havana").zone(), 240, "1974-10-08T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1974-10-08T04:00:00+00:00").tz("America/Havana").zone(), 300, "1974-10-08T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1975-04-27T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1975-04-27T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1975-04-27T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1975-10-26T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1975-10-26T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1975-10-26T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1975-10-26T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1975-04-27T04:59:59+00:00").tz("America/Havana").zone(), 300, "1975-04-27T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1975-04-27T05:00:00+00:00").tz("America/Havana").zone(), 240, "1975-04-27T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1975-10-26T03:59:59+00:00").tz("America/Havana").zone(), 240, "1975-10-26T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1975-10-26T04:00:00+00:00").tz("America/Havana").zone(), 300, "1975-10-26T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1976-04-25T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1976-04-25T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1976-04-25T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1976-10-31T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1976-10-31T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1976-10-31T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1976-10-31T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1976-04-25T04:59:59+00:00").tz("America/Havana").zone(), 300, "1976-04-25T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1976-04-25T05:00:00+00:00").tz("America/Havana").zone(), 240, "1976-04-25T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1976-10-31T03:59:59+00:00").tz("America/Havana").zone(), 240, "1976-10-31T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1976-10-31T04:00:00+00:00").tz("America/Havana").zone(), 300, "1976-10-31T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1977-04-24T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1977-04-24T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1977-04-24T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1977-10-30T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1977-10-30T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1977-10-30T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1977-10-30T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1977-04-24T04:59:59+00:00").tz("America/Havana").zone(), 300, "1977-04-24T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1977-04-24T05:00:00+00:00").tz("America/Havana").zone(), 240, "1977-04-24T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1977-10-30T03:59:59+00:00").tz("America/Havana").zone(), 240, "1977-10-30T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1977-10-30T04:00:00+00:00").tz("America/Havana").zone(), 300, "1977-10-30T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-05-07T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1978-05-07T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1978-05-07T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1978-05-07T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1978-10-08T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1978-10-08T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1978-10-08T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1978-10-08T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1978-05-07T04:59:59+00:00").tz("America/Havana").zone(), 300, "1978-05-07T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1978-05-07T05:00:00+00:00").tz("America/Havana").zone(), 240, "1978-05-07T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1978-10-08T03:59:59+00:00").tz("America/Havana").zone(), 240, "1978-10-08T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1978-10-08T04:00:00+00:00").tz("America/Havana").zone(), 300, "1978-10-08T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-18T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1979-03-18T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1979-03-18T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1979-03-18T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1979-10-14T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1979-10-14T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1979-10-14T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1979-10-14T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1979-03-18T04:59:59+00:00").tz("America/Havana").zone(), 300, "1979-03-18T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1979-03-18T05:00:00+00:00").tz("America/Havana").zone(), 240, "1979-03-18T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1979-10-14T03:59:59+00:00").tz("America/Havana").zone(), 240, "1979-10-14T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1979-10-14T04:00:00+00:00").tz("America/Havana").zone(), 300, "1979-10-14T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-16T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1980-03-16T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1980-03-16T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1980-03-16T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1980-10-12T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1980-10-12T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1980-10-12T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1980-10-12T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1980-03-16T04:59:59+00:00").tz("America/Havana").zone(), 300, "1980-03-16T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1980-03-16T05:00:00+00:00").tz("America/Havana").zone(), 240, "1980-03-16T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1980-10-12T03:59:59+00:00").tz("America/Havana").zone(), 240, "1980-10-12T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1980-10-12T04:00:00+00:00").tz("America/Havana").zone(), 300, "1980-10-12T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-05-10T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1981-05-10T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1981-05-10T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1981-05-10T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1981-10-11T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1981-10-11T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1981-10-11T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1981-10-11T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1981-05-10T04:59:59+00:00").tz("America/Havana").zone(), 300, "1981-05-10T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1981-05-10T05:00:00+00:00").tz("America/Havana").zone(), 240, "1981-05-10T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1981-10-11T03:59:59+00:00").tz("America/Havana").zone(), 240, "1981-10-11T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1981-10-11T04:00:00+00:00").tz("America/Havana").zone(), 300, "1981-10-11T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-05-09T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1982-05-09T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1982-05-09T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1982-05-09T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1982-10-10T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1982-10-10T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1982-10-10T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1982-10-10T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1982-05-09T04:59:59+00:00").tz("America/Havana").zone(), 300, "1982-05-09T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1982-05-09T05:00:00+00:00").tz("America/Havana").zone(), 240, "1982-05-09T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1982-10-10T03:59:59+00:00").tz("America/Havana").zone(), 240, "1982-10-10T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1982-10-10T04:00:00+00:00").tz("America/Havana").zone(), 300, "1982-10-10T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-05-08T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1983-05-08T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1983-05-08T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1983-05-08T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1983-10-09T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1983-10-09T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1983-10-09T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1983-10-09T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1983-05-08T04:59:59+00:00").tz("America/Havana").zone(), 300, "1983-05-08T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1983-05-08T05:00:00+00:00").tz("America/Havana").zone(), 240, "1983-05-08T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1983-10-09T03:59:59+00:00").tz("America/Havana").zone(), 240, "1983-10-09T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1983-10-09T04:00:00+00:00").tz("America/Havana").zone(), 300, "1983-10-09T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-05-06T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1984-05-06T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1984-05-06T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1984-05-06T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1984-10-14T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1984-10-14T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1984-10-14T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1984-10-14T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1984-05-06T04:59:59+00:00").tz("America/Havana").zone(), 300, "1984-05-06T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1984-05-06T05:00:00+00:00").tz("America/Havana").zone(), 240, "1984-05-06T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1984-10-14T03:59:59+00:00").tz("America/Havana").zone(), 240, "1984-10-14T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1984-10-14T04:00:00+00:00").tz("America/Havana").zone(), 300, "1984-10-14T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-05-05T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1985-05-05T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1985-05-05T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1985-05-05T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1985-10-13T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1985-10-13T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1985-10-13T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1985-10-13T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1985-05-05T04:59:59+00:00").tz("America/Havana").zone(), 300, "1985-05-05T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1985-05-05T05:00:00+00:00").tz("America/Havana").zone(), 240, "1985-05-05T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1985-10-13T03:59:59+00:00").tz("America/Havana").zone(), 240, "1985-10-13T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1985-10-13T04:00:00+00:00").tz("America/Havana").zone(), 300, "1985-10-13T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-16T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1986-03-16T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1986-03-16T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1986-03-16T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1986-10-12T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1986-10-12T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1986-10-12T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1986-10-12T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1986-03-16T04:59:59+00:00").tz("America/Havana").zone(), 300, "1986-03-16T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1986-03-16T05:00:00+00:00").tz("America/Havana").zone(), 240, "1986-03-16T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1986-10-12T03:59:59+00:00").tz("America/Havana").zone(), 240, "1986-10-12T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1986-10-12T04:00:00+00:00").tz("America/Havana").zone(), 300, "1986-10-12T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-15T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1987-03-15T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1987-03-15T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1987-03-15T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1987-10-11T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1987-10-11T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1987-10-11T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1987-10-11T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1987-03-15T04:59:59+00:00").tz("America/Havana").zone(), 300, "1987-03-15T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1987-03-15T05:00:00+00:00").tz("America/Havana").zone(), 240, "1987-03-15T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1987-10-11T03:59:59+00:00").tz("America/Havana").zone(), 240, "1987-10-11T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1987-10-11T04:00:00+00:00").tz("America/Havana").zone(), 300, "1987-10-11T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-20T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1988-03-20T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1988-03-20T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1988-03-20T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1988-10-09T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1988-10-09T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1988-10-09T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1988-10-09T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1988-03-20T04:59:59+00:00").tz("America/Havana").zone(), 300, "1988-03-20T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1988-03-20T05:00:00+00:00").tz("America/Havana").zone(), 240, "1988-03-20T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1988-10-09T03:59:59+00:00").tz("America/Havana").zone(), 240, "1988-10-09T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1988-10-09T04:00:00+00:00").tz("America/Havana").zone(), 300, "1988-10-09T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-19T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1989-03-19T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1989-03-19T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1989-03-19T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1989-10-08T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1989-10-08T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1989-10-08T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1989-10-08T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1989-03-19T04:59:59+00:00").tz("America/Havana").zone(), 300, "1989-03-19T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1989-03-19T05:00:00+00:00").tz("America/Havana").zone(), 240, "1989-03-19T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1989-10-08T03:59:59+00:00").tz("America/Havana").zone(), 240, "1989-10-08T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1989-10-08T04:00:00+00:00").tz("America/Havana").zone(), 300, "1989-10-08T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1990-04-01T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1990-04-01T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1990-04-01T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1990-10-14T03:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1990-10-14T03:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1990-10-14T04:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "23:00:00", "1990-10-14T04:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1990-04-01T04:59:59+00:00").tz("America/Havana").zone(), 300, "1990-04-01T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1990-04-01T05:00:00+00:00").tz("America/Havana").zone(), 240, "1990-04-01T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1990-10-14T03:59:59+00:00").tz("America/Havana").zone(), 240, "1990-10-14T03:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1990-10-14T04:00:00+00:00").tz("America/Havana").zone(), 300, "1990-10-14T04:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1991-04-07T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1991-04-07T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1991-04-07T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1991-10-13T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "1991-10-13T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("1991-10-13T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "1991-10-13T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1991-04-07T04:59:59+00:00").tz("America/Havana").zone(), 300, "1991-04-07T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1991-04-07T05:00:00+00:00").tz("America/Havana").zone(), 240, "1991-04-07T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1991-10-13T04:59:59+00:00").tz("America/Havana").zone(), 240, "1991-10-13T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1991-10-13T05:00:00+00:00").tz("America/Havana").zone(), 300, "1991-10-13T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1992-04-05T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1992-04-05T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1992-04-05T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1992-10-11T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "1992-10-11T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("1992-10-11T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "1992-10-11T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1992-04-05T04:59:59+00:00").tz("America/Havana").zone(), 300, "1992-04-05T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1992-04-05T05:00:00+00:00").tz("America/Havana").zone(), 240, "1992-04-05T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1992-10-11T04:59:59+00:00").tz("America/Havana").zone(), 240, "1992-10-11T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1992-10-11T05:00:00+00:00").tz("America/Havana").zone(), 300, "1992-10-11T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1993-04-04T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1993-04-04T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1993-04-04T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1993-10-10T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "1993-10-10T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("1993-10-10T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "1993-10-10T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1993-04-04T04:59:59+00:00").tz("America/Havana").zone(), 300, "1993-04-04T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1993-04-04T05:00:00+00:00").tz("America/Havana").zone(), 240, "1993-04-04T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1993-10-10T04:59:59+00:00").tz("America/Havana").zone(), 240, "1993-10-10T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1993-10-10T05:00:00+00:00").tz("America/Havana").zone(), 300, "1993-10-10T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1994-04-03T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1994-04-03T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1994-04-03T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1994-10-09T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "1994-10-09T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("1994-10-09T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "1994-10-09T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1994-04-03T04:59:59+00:00").tz("America/Havana").zone(), 300, "1994-04-03T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1994-04-03T05:00:00+00:00").tz("America/Havana").zone(), 240, "1994-04-03T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1994-10-09T04:59:59+00:00").tz("America/Havana").zone(), 240, "1994-10-09T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1994-10-09T05:00:00+00:00").tz("America/Havana").zone(), 300, "1994-10-09T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1995-04-02T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1995-04-02T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1995-04-02T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1995-10-08T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "1995-10-08T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("1995-10-08T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "1995-10-08T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1995-04-02T04:59:59+00:00").tz("America/Havana").zone(), 300, "1995-04-02T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1995-04-02T05:00:00+00:00").tz("America/Havana").zone(), 240, "1995-04-02T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1995-10-08T04:59:59+00:00").tz("America/Havana").zone(), 240, "1995-10-08T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1995-10-08T05:00:00+00:00").tz("America/Havana").zone(), 300, "1995-10-08T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1996-04-07T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1996-04-07T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1996-04-07T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1996-10-06T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "1996-10-06T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("1996-10-06T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "1996-10-06T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1996-04-07T04:59:59+00:00").tz("America/Havana").zone(), 300, "1996-04-07T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1996-04-07T05:00:00+00:00").tz("America/Havana").zone(), 240, "1996-04-07T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1996-10-06T04:59:59+00:00").tz("America/Havana").zone(), 240, "1996-10-06T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1996-10-06T05:00:00+00:00").tz("America/Havana").zone(), 300, "1996-10-06T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1997-04-06T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1997-04-06T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1997-04-06T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1997-10-12T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "1997-10-12T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("1997-10-12T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "1997-10-12T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1997-04-06T04:59:59+00:00").tz("America/Havana").zone(), 300, "1997-04-06T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1997-04-06T05:00:00+00:00").tz("America/Havana").zone(), 240, "1997-04-06T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1997-10-12T04:59:59+00:00").tz("America/Havana").zone(), 240, "1997-10-12T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1997-10-12T05:00:00+00:00").tz("America/Havana").zone(), 300, "1997-10-12T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1998-03-29T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1998-03-29T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1998-03-29T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "1998-10-25T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "1998-10-25T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1998-03-29T04:59:59+00:00").tz("America/Havana").zone(), 300, "1998-03-29T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1998-03-29T05:00:00+00:00").tz("America/Havana").zone(), 240, "1998-03-29T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("America/Havana").zone(), 240, "1998-10-25T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("America/Havana").zone(), 300, "1998-10-25T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "1999-03-28T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1999-03-28T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "1999-03-28T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "1999-10-31T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "1999-10-31T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1999-03-28T04:59:59+00:00").tz("America/Havana").zone(), 300, "1999-03-28T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("1999-03-28T05:00:00+00:00").tz("America/Havana").zone(), 240, "1999-03-28T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("America/Havana").zone(), 240, "1999-10-31T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("America/Havana").zone(), 300, "1999-10-31T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2000-04-02T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2000-04-02T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2000-04-02T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2000-10-29T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2000-10-29T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2000-04-02T04:59:59+00:00").tz("America/Havana").zone(), 300, "2000-04-02T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2000-04-02T05:00:00+00:00").tz("America/Havana").zone(), 240, "2000-04-02T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("America/Havana").zone(), 240, "2000-10-29T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("America/Havana").zone(), 300, "2000-10-29T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2001-04-01T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2001-04-01T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2001-04-01T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2001-10-28T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2001-10-28T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2001-04-01T04:59:59+00:00").tz("America/Havana").zone(), 300, "2001-04-01T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2001-04-01T05:00:00+00:00").tz("America/Havana").zone(), 240, "2001-04-01T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("America/Havana").zone(), 240, "2001-10-28T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("America/Havana").zone(), 300, "2001-10-28T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2002-04-07T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2002-04-07T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2002-04-07T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2002-10-27T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2002-10-27T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2002-04-07T04:59:59+00:00").tz("America/Havana").zone(), 300, "2002-04-07T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2002-04-07T05:00:00+00:00").tz("America/Havana").zone(), 240, "2002-04-07T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("America/Havana").zone(), 240, "2002-10-27T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("America/Havana").zone(), 300, "2002-10-27T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2003-04-06T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2003-04-06T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2003-04-06T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2003-10-26T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2003-10-26T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2003-04-06T04:59:59+00:00").tz("America/Havana").zone(), 300, "2003-04-06T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2003-04-06T05:00:00+00:00").tz("America/Havana").zone(), 240, "2003-04-06T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("America/Havana").zone(), 240, "2003-10-26T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("America/Havana").zone(), 300, "2003-10-26T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2004-04-04T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2004-04-04T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2004-04-04T05:00:00+00:00 should be 01:00:00 CDT"); - - t.equal(moment("2004-04-04T04:59:59+00:00").tz("America/Havana").zone(), 300, "2004-04-04T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2004-04-04T05:00:00+00:00").tz("America/Havana").zone(), 240, "2004-04-04T05:00:00+00:00 should be 240 minutes offset in CDT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-10-29T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2006-10-29T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2006-10-29T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2006-10-29T04:59:59+00:00").tz("America/Havana").zone(), 240, "2006-10-29T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("America/Havana").zone(), 300, "2006-10-29T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2007-03-11T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2007-03-11T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2007-03-11T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2007-10-28T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2007-10-28T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2007-10-28T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2007-10-28T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2007-03-11T04:59:59+00:00").tz("America/Havana").zone(), 300, "2007-03-11T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2007-03-11T05:00:00+00:00").tz("America/Havana").zone(), 240, "2007-03-11T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2007-10-28T04:59:59+00:00").tz("America/Havana").zone(), 240, "2007-10-28T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2007-10-28T05:00:00+00:00").tz("America/Havana").zone(), 300, "2007-10-28T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-16T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2008-03-16T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2008-03-16T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2008-03-16T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2008-10-26T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2008-10-26T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2008-10-26T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2008-10-26T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2008-03-16T04:59:59+00:00").tz("America/Havana").zone(), 300, "2008-03-16T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2008-03-16T05:00:00+00:00").tz("America/Havana").zone(), 240, "2008-03-16T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2008-10-26T04:59:59+00:00").tz("America/Havana").zone(), 240, "2008-10-26T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2008-10-26T05:00:00+00:00").tz("America/Havana").zone(), 300, "2008-10-26T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2009-03-08T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2009-03-08T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2009-03-08T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2009-10-25T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2009-10-25T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2009-10-25T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2009-10-25T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2009-03-08T04:59:59+00:00").tz("America/Havana").zone(), 300, "2009-03-08T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2009-03-08T05:00:00+00:00").tz("America/Havana").zone(), 240, "2009-03-08T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2009-10-25T04:59:59+00:00").tz("America/Havana").zone(), 240, "2009-10-25T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2009-10-25T05:00:00+00:00").tz("America/Havana").zone(), 300, "2009-10-25T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2010-03-14T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2010-03-14T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2010-03-14T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2010-10-31T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2010-10-31T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2010-10-31T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2010-10-31T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2010-03-14T04:59:59+00:00").tz("America/Havana").zone(), 300, "2010-03-14T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2010-03-14T05:00:00+00:00").tz("America/Havana").zone(), 240, "2010-03-14T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2010-10-31T04:59:59+00:00").tz("America/Havana").zone(), 240, "2010-10-31T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2010-10-31T05:00:00+00:00").tz("America/Havana").zone(), 300, "2010-10-31T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-20T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2011-03-20T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2011-03-20T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2011-03-20T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2011-11-13T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2011-11-13T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2011-11-13T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2011-11-13T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2011-03-20T04:59:59+00:00").tz("America/Havana").zone(), 300, "2011-03-20T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2011-03-20T05:00:00+00:00").tz("America/Havana").zone(), 240, "2011-03-20T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2011-11-13T04:59:59+00:00").tz("America/Havana").zone(), 240, "2011-11-13T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2011-11-13T05:00:00+00:00").tz("America/Havana").zone(), 300, "2011-11-13T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-01T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2012-04-01T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2012-04-01T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2012-04-01T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2012-11-04T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2012-11-04T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2012-04-01T04:59:59+00:00").tz("America/Havana").zone(), 300, "2012-04-01T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2012-04-01T05:00:00+00:00").tz("America/Havana").zone(), 240, "2012-04-01T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Havana").zone(), 240, "2012-11-04T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Havana").zone(), 300, "2012-11-04T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2013-03-10T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2013-03-10T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2013-03-10T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2013-11-03T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2013-11-03T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2013-03-10T04:59:59+00:00").tz("America/Havana").zone(), 300, "2013-03-10T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2013-03-10T05:00:00+00:00").tz("America/Havana").zone(), 240, "2013-03-10T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Havana").zone(), 240, "2013-11-03T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Havana").zone(), 300, "2013-11-03T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2014-03-09T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2014-03-09T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2014-03-09T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2014-11-02T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2014-11-02T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2014-03-09T04:59:59+00:00").tz("America/Havana").zone(), 300, "2014-03-09T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2014-03-09T05:00:00+00:00").tz("America/Havana").zone(), 240, "2014-03-09T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Havana").zone(), 240, "2014-11-02T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Havana").zone(), 300, "2014-11-02T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2015-03-08T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2015-03-08T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2015-03-08T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2015-11-01T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2015-11-01T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2015-03-08T04:59:59+00:00").tz("America/Havana").zone(), 300, "2015-03-08T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2015-03-08T05:00:00+00:00").tz("America/Havana").zone(), 240, "2015-03-08T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Havana").zone(), 240, "2015-11-01T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Havana").zone(), 300, "2015-11-01T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2016-03-13T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2016-03-13T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2016-03-13T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2016-11-06T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2016-11-06T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2016-03-13T04:59:59+00:00").tz("America/Havana").zone(), 300, "2016-03-13T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2016-03-13T05:00:00+00:00").tz("America/Havana").zone(), 240, "2016-03-13T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Havana").zone(), 240, "2016-11-06T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Havana").zone(), 300, "2016-11-06T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2017-03-12T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2017-03-12T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2017-03-12T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2017-11-05T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2017-11-05T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2017-03-12T04:59:59+00:00").tz("America/Havana").zone(), 300, "2017-03-12T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2017-03-12T05:00:00+00:00").tz("America/Havana").zone(), 240, "2017-03-12T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Havana").zone(), 240, "2017-11-05T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Havana").zone(), 300, "2017-11-05T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2018-03-11T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2018-03-11T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2018-03-11T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2018-11-04T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2018-11-04T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2018-03-11T04:59:59+00:00").tz("America/Havana").zone(), 300, "2018-03-11T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2018-03-11T05:00:00+00:00").tz("America/Havana").zone(), 240, "2018-03-11T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Havana").zone(), 240, "2018-11-04T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Havana").zone(), 300, "2018-11-04T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2019-03-10T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2019-03-10T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2019-03-10T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2019-11-03T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2019-11-03T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2019-03-10T04:59:59+00:00").tz("America/Havana").zone(), 300, "2019-03-10T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2019-03-10T05:00:00+00:00").tz("America/Havana").zone(), 240, "2019-03-10T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Havana").zone(), 240, "2019-11-03T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Havana").zone(), 300, "2019-11-03T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2020-03-08T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2020-03-08T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2020-03-08T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2020-11-01T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2020-11-01T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2020-03-08T04:59:59+00:00").tz("America/Havana").zone(), 300, "2020-03-08T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2020-03-08T05:00:00+00:00").tz("America/Havana").zone(), 240, "2020-03-08T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Havana").zone(), 240, "2020-11-01T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Havana").zone(), 300, "2020-11-01T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2021-03-14T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2021-03-14T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2021-03-14T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2021-11-07T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2021-11-07T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2021-03-14T04:59:59+00:00").tz("America/Havana").zone(), 300, "2021-03-14T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2021-03-14T05:00:00+00:00").tz("America/Havana").zone(), 240, "2021-03-14T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Havana").zone(), 240, "2021-11-07T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Havana").zone(), 300, "2021-11-07T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2022-03-13T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2022-03-13T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2022-03-13T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2022-11-06T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2022-11-06T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2022-03-13T04:59:59+00:00").tz("America/Havana").zone(), 300, "2022-03-13T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2022-03-13T05:00:00+00:00").tz("America/Havana").zone(), 240, "2022-03-13T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Havana").zone(), 240, "2022-11-06T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Havana").zone(), 300, "2022-11-06T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2023-03-12T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2023-03-12T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2023-03-12T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2023-11-05T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2023-11-05T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2023-03-12T04:59:59+00:00").tz("America/Havana").zone(), 300, "2023-03-12T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2023-03-12T05:00:00+00:00").tz("America/Havana").zone(), 240, "2023-03-12T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Havana").zone(), 240, "2023-11-05T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Havana").zone(), 300, "2023-11-05T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2024-03-10T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2024-03-10T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2024-03-10T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2024-11-03T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2024-11-03T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2024-03-10T04:59:59+00:00").tz("America/Havana").zone(), 300, "2024-03-10T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2024-03-10T05:00:00+00:00").tz("America/Havana").zone(), 240, "2024-03-10T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Havana").zone(), 240, "2024-11-03T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Havana").zone(), 300, "2024-11-03T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2025-03-09T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2025-03-09T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2025-03-09T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2025-11-02T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2025-11-02T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2025-03-09T04:59:59+00:00").tz("America/Havana").zone(), 300, "2025-03-09T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2025-03-09T05:00:00+00:00").tz("America/Havana").zone(), 240, "2025-03-09T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Havana").zone(), 240, "2025-11-02T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Havana").zone(), 300, "2025-11-02T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2026-03-08T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2026-03-08T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2026-03-08T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2026-11-01T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2026-11-01T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2026-03-08T04:59:59+00:00").tz("America/Havana").zone(), 300, "2026-03-08T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2026-03-08T05:00:00+00:00").tz("America/Havana").zone(), 240, "2026-03-08T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Havana").zone(), 240, "2026-11-01T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Havana").zone(), 300, "2026-11-01T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2027-03-14T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2027-03-14T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2027-03-14T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2027-11-07T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2027-11-07T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2027-03-14T04:59:59+00:00").tz("America/Havana").zone(), 300, "2027-03-14T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2027-03-14T05:00:00+00:00").tz("America/Havana").zone(), 240, "2027-03-14T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Havana").zone(), 240, "2027-11-07T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Havana").zone(), 300, "2027-11-07T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2028-03-12T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2028-03-12T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2028-03-12T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2028-11-05T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2028-11-05T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2028-03-12T04:59:59+00:00").tz("America/Havana").zone(), 300, "2028-03-12T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2028-03-12T05:00:00+00:00").tz("America/Havana").zone(), 240, "2028-03-12T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Havana").zone(), 240, "2028-11-05T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Havana").zone(), 300, "2028-11-05T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2029-03-11T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2029-03-11T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2029-03-11T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2029-11-04T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2029-11-04T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2029-03-11T04:59:59+00:00").tz("America/Havana").zone(), 300, "2029-03-11T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2029-03-11T05:00:00+00:00").tz("America/Havana").zone(), 240, "2029-03-11T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Havana").zone(), 240, "2029-11-04T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Havana").zone(), 300, "2029-11-04T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2030-03-10T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2030-03-10T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2030-03-10T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2030-11-03T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2030-11-03T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2030-03-10T04:59:59+00:00").tz("America/Havana").zone(), 300, "2030-03-10T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2030-03-10T05:00:00+00:00").tz("America/Havana").zone(), 240, "2030-03-10T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Havana").zone(), 240, "2030-11-03T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Havana").zone(), 300, "2030-11-03T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2031-03-09T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2031-03-09T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2031-03-09T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2031-11-02T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2031-11-02T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2031-03-09T04:59:59+00:00").tz("America/Havana").zone(), 300, "2031-03-09T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2031-03-09T05:00:00+00:00").tz("America/Havana").zone(), 240, "2031-03-09T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Havana").zone(), 240, "2031-11-02T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Havana").zone(), 300, "2031-11-02T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2032-03-14T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2032-03-14T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2032-03-14T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2032-11-07T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2032-11-07T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2032-03-14T04:59:59+00:00").tz("America/Havana").zone(), 300, "2032-03-14T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2032-03-14T05:00:00+00:00").tz("America/Havana").zone(), 240, "2032-03-14T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Havana").zone(), 240, "2032-11-07T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Havana").zone(), 300, "2032-11-07T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2033-03-13T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2033-03-13T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2033-03-13T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2033-11-06T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2033-11-06T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2033-03-13T04:59:59+00:00").tz("America/Havana").zone(), 300, "2033-03-13T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2033-03-13T05:00:00+00:00").tz("America/Havana").zone(), 240, "2033-03-13T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Havana").zone(), 240, "2033-11-06T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Havana").zone(), 300, "2033-11-06T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2034-03-12T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2034-03-12T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2034-03-12T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2034-11-05T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2034-11-05T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2034-03-12T04:59:59+00:00").tz("America/Havana").zone(), 300, "2034-03-12T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2034-03-12T05:00:00+00:00").tz("America/Havana").zone(), 240, "2034-03-12T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Havana").zone(), 240, "2034-11-05T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Havana").zone(), 300, "2034-11-05T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2035-03-11T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2035-03-11T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2035-03-11T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2035-11-04T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2035-11-04T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2035-03-11T04:59:59+00:00").tz("America/Havana").zone(), 300, "2035-03-11T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2035-03-11T05:00:00+00:00").tz("America/Havana").zone(), 240, "2035-03-11T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Havana").zone(), 240, "2035-11-04T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Havana").zone(), 300, "2035-11-04T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2036-03-09T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2036-03-09T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2036-03-09T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2036-11-02T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2036-11-02T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2036-03-09T04:59:59+00:00").tz("America/Havana").zone(), 300, "2036-03-09T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2036-03-09T05:00:00+00:00").tz("America/Havana").zone(), 240, "2036-03-09T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Havana").zone(), 240, "2036-11-02T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Havana").zone(), 300, "2036-11-02T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "23:59:59", "2037-03-08T04:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2037-03-08T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "01:00:00", "2037-03-08T05:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Havana").format("HH:mm:ss"), "00:59:59", "2037-11-01T04:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Havana").format("HH:mm:ss"), "00:00:00", "2037-11-01T05:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2037-03-08T04:59:59+00:00").tz("America/Havana").zone(), 300, "2037-03-08T04:59:59+00:00 should be 300 minutes offset in CST"); - t.equal(moment("2037-03-08T05:00:00+00:00").tz("America/Havana").zone(), 240, "2037-03-08T05:00:00+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Havana").zone(), 240, "2037-11-01T04:59:59+00:00 should be 240 minutes offset in CDT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Havana").zone(), 300, "2037-11-01T05:00:00+00:00 should be 300 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/hermosillo.js b/tests/america/hermosillo.js deleted file mode 100644 index bfcacf21..00000000 --- a/tests/america/hermosillo.js +++ /dev/null @@ -1,130 +0,0 @@ -var moment = require("../../index"); - -exports["America/Hermosillo"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:36:07", "1922-01-01T06:59:59+00:00 should be 23:36:07 LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "00:00:00", "1922-01-01T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Hermosillo").zone(), 26632 / 60, "1922-01-01T06:59:59+00:00 should be 26632 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Hermosillo").zone(), 420, "1922-01-01T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "22:59:59", "1927-06-11T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "00:00:00", "1927-06-11T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Hermosillo").zone(), 420, "1927-06-11T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Hermosillo").zone(), 360, "1927-06-11T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:59:59", "1930-11-15T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:00:00", "1930-11-15T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Hermosillo").zone(), 360, "1930-11-15T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Hermosillo").zone(), 420, "1930-11-15T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "22:59:59", "1931-05-02T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "00:00:00", "1931-05-02T06:00:00+00:00 should be 00:00:00 CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:59:59", "1931-10-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:00:00", "1931-10-01T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Hermosillo").zone(), 420, "1931-05-02T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Hermosillo").zone(), 360, "1931-05-02T06:00:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Hermosillo").zone(), 360, "1931-10-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Hermosillo").zone(), 420, "1931-10-01T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:59:59", "1932-04-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:00:00", "1932-04-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Hermosillo").zone(), 420, "1932-04-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Hermosillo").zone(), 360, "1932-04-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-24T05:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:59:59", "1942-04-24T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1942-04-24T06:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:00:00", "1942-04-24T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1942-04-24T05:59:59+00:00").tz("America/Hermosillo").zone(), 360, "1942-04-24T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-04-24T06:00:00+00:00").tz("America/Hermosillo").zone(), 420, "1942-04-24T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:59:59", "1949-01-14T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:00:00", "1949-01-14T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Hermosillo").zone(), 420, "1949-01-14T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Hermosillo").zone(), 480, "1949-01-14T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-01-01T07:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "23:59:59", "1970-01-01T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1970-01-01T08:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:00:00", "1970-01-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1970-01-01T07:59:59+00:00").tz("America/Hermosillo").zone(), 480, "1970-01-01T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-01-01T08:00:00+00:00").tz("America/Hermosillo").zone(), 420, "1970-01-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Hermosillo").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Hermosillo").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Hermosillo").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Hermosillo").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Hermosillo").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Hermosillo").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Hermosillo").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Hermosillo").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Hermosillo").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Hermosillo").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Hermosillo").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Hermosillo").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Hermosillo").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/indiana/indianapolis.js b/tests/america/indiana/indianapolis.js deleted file mode 100644 index 3758fb0f..00000000 --- a/tests/america/indiana/indianapolis.js +++ /dev/null @@ -1,702 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Indiana/Indianapolis"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-22T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1941-06-22T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1941-06-22T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1941-06-22T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1941-09-28T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1941-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1941-09-28T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1941-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1941-06-22T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1941-06-22T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1941-06-22T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1941-06-22T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1941-09-28T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1941-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1941-09-28T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1941-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1946-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1946-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1946-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1946-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1946-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1946-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1946-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1946-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1947-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1947-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1947-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1947-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1947-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1947-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1947-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1947-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1948-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1948-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1948-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1948-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1948-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1948-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1948-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1948-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1949-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1949-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1949-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1949-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1949-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1949-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1949-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1949-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1950-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1950-04-30T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1950-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1950-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1950-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1950-04-30T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1950-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1950-04-30T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1950-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1950-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1950-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1951-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1951-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1951-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1951-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1951-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1951-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1951-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1951-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1952-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1952-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1952-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1952-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1952-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1952-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1952-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1952-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1955-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1955-04-24T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1955-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1955-04-24T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1957-09-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1957-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1957-09-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1957-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Indianapolis").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Indianapolis").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/indiana/knox.js b/tests/america/indiana/knox.js deleted file mode 100644 index b3f1329d..00000000 --- a/tests/america/indiana/knox.js +++ /dev/null @@ -1,1084 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Indiana/Knox"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1947-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1947-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1947-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1947-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1947-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1947-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1947-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1947-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1948-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1948-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1948-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1948-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1948-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1948-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1948-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1948-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1949-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1949-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1949-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1949-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1949-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1949-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1949-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1949-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1950-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1950-04-30T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1950-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1950-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1950-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1950-04-30T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1950-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1950-04-30T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1950-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1950-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1950-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1951-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1951-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1951-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1951-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1951-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1951-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1951-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1951-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1952-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1952-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1952-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1952-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1952-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1952-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1952-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1952-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1955-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1955-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1955-10-30T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1955-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1955-10-30T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1955-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1955-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1955-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-10-30T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1955-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-10-30T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1955-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1956-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1956-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1956-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1956-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1957-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1957-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1957-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1957-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1958-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1958-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1958-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1958-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1959-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1959-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1959-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1959-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1960-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1960-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1960-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1960-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1961-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1961-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1961-10-29T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1961-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1961-10-29T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1961-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1961-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1961-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-10-29T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1961-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-10-29T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1961-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1962-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1962-04-29T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1962-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1962-04-29T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1963-10-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1963-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1963-10-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1963-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1967-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1967-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1967-10-29T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1967-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1967-10-29T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1967-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1967-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1967-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1967-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1967-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1968-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1968-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1968-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1968-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1968-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1968-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1968-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1968-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1969-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1969-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1969-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1969-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1969-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1969-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1969-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1969-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1970-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1970-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1970-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1970-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1970-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1970-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1970-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1970-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1971-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1971-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1971-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1971-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1971-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1971-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1971-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1971-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1972-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1972-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1972-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1972-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1972-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1972-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1972-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1972-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1973-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1973-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1973-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1973-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1973-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1973-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1973-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1973-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1974-01-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1974-01-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1974-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1974-01-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1974-01-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1974-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1975-02-23T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1975-02-23T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1975-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1975-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1975-02-23T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1975-02-23T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1975-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1975-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1976-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1976-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1976-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1976-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1976-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1976-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1976-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1976-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1977-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1977-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1977-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1977-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1977-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1977-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1977-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1977-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1978-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1978-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1978-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1978-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1978-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1978-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1978-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1978-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1979-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1979-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1979-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1979-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1979-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1979-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1979-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1979-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1980-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1980-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1980-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1980-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1981-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1981-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1981-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1981-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1982-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1982-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1982-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1982-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1983-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1983-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1983-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1983-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1984-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1984-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1984-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1984-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1985-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1985-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1985-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1985-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1985-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1985-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1986-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1986-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1986-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1986-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1986-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1986-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1986-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1986-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1987-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1987-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1987-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1987-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1987-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1987-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1987-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1987-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1989-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1989-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1989-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1989-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1989-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1989-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1989-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1989-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1990-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1990-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1990-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "1990-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1990-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1990-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1990-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "1990-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1991-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "1991-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "1991-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "02:00:00", "1991-10-27T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "1991-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1991-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "1991-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "1991-10-27T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "02:00:00", "2006-04-02T07:00:00+00:00 should be 02:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2006-04-02T07:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Indiana/Knox").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Indiana/Knox").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Indiana/Knox").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Indiana/Knox").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Indiana/Knox").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/indiana/marengo.js b/tests/america/indiana/marengo.js deleted file mode 100644 index e8e52ebc..00000000 --- a/tests/america/indiana/marengo.js +++ /dev/null @@ -1,724 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Indiana/Marengo"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1951-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1951-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1951-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1951-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1951-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1951-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1951-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1951-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1955-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1955-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1955-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1955-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1955-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1955-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1955-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1955-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1956-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1956-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1956-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1956-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1957-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1957-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1957-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1957-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1958-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1958-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1958-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1958-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1959-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1959-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1959-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1959-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1960-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1960-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1960-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 360, "1960-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1961-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1961-04-30T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Marengo").zone(), 360, "1961-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1961-04-30T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1973-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1973-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1973-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "1973-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "1973-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1973-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1974-01-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "02:00:00", "1974-01-06T07:00:00+00:00 should be 02:00:00 CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "02:00:00", "1974-10-27T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1974-01-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1974-01-06T07:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1974-10-27T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1975-02-23T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "1975-02-23T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "1975-02-23T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "1975-02-23T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Marengo").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Marengo").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Marengo").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Marengo").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/indiana/petersburg.js b/tests/america/indiana/petersburg.js deleted file mode 100644 index 2506db97..00000000 --- a/tests/america/indiana/petersburg.js +++ /dev/null @@ -1,818 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Indiana/Petersburg"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-05-01T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "23:59:59", "1955-05-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1955-05-01T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1955-05-01T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1955-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1955-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1955-05-01T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1955-05-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-05-01T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1955-05-01T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1955-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1955-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1956-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1956-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1956-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1956-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1957-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1957-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1957-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1957-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1958-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1958-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1958-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1958-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1959-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1959-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1959-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1959-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1960-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1960-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1960-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1960-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1961-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1961-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1961-10-29T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1961-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1961-10-29T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1961-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1961-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1961-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-10-29T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1961-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-10-29T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1961-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1962-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1962-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1962-10-28T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1962-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1962-10-28T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1962-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1962-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1962-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1962-10-28T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1962-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1962-10-28T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1962-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1963-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1963-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1963-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1963-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1963-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1963-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1963-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1963-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1964-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1964-04-26T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1964-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1964-10-25T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1964-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1964-10-25T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1964-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1964-04-26T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1964-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1964-04-26T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1964-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1964-10-25T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1964-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1964-10-25T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1964-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1965-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1965-04-25T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1965-04-25T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1965-04-25T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1965-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1965-04-25T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1965-04-25T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-10-30T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1966-10-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1966-10-30T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1966-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1966-10-30T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1966-10-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1966-10-30T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1966-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1967-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1967-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1967-10-29T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1967-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1967-10-29T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1967-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1967-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1967-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1967-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1967-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1968-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1968-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1968-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1968-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1968-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1968-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1968-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1968-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1969-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1969-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1969-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1969-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1969-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1969-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1969-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1969-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1970-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1970-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1970-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1970-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1970-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1970-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1970-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1970-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1971-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1971-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1971-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1971-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1971-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1971-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1971-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1971-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1972-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1972-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1972-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1972-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1972-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1972-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1972-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1972-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1973-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1973-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1973-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1973-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1973-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1973-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1973-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1973-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1974-01-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1974-01-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1974-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1974-01-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1974-01-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1974-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1975-02-23T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1975-02-23T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1975-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1975-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1975-02-23T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1975-02-23T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1975-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1975-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1976-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1976-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1976-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "1976-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1976-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1976-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1976-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1976-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1977-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "1977-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "1977-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "02:00:00", "1977-10-30T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "1977-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1977-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1977-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "1977-10-30T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "02:00:00", "2006-04-02T07:00:00+00:00 should be 02:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2006-04-02T07:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "02:00:00", "2007-11-04T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2007-11-04T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Petersburg").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Petersburg").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/indiana/tell_city.js b/tests/america/indiana/tell_city.js deleted file mode 100644 index d4377139..00000000 --- a/tests/america/indiana/tell_city.js +++ /dev/null @@ -1,710 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Indiana/Tell_City"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1946-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1946-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1946-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1946-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1946-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1946-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1946-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1946-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-05-01T05:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "23:59:59", "1955-05-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1955-05-01T06:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1955-05-01T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1955-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1955-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1955-05-01T05:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1955-05-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-05-01T06:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1955-05-01T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1955-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1955-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1956-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1956-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1956-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1956-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1957-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1957-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1957-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1957-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1958-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1958-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1958-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1958-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1959-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1959-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1959-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1959-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1960-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1960-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1960-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1960-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1961-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1961-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1961-09-24T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1961-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1961-09-24T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1961-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1961-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1961-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-09-24T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1961-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-09-24T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1961-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1962-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1962-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1962-10-28T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1962-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1962-10-28T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1962-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1962-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1962-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1962-10-28T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1962-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1962-10-28T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1962-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1963-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1963-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1963-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1963-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1963-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1963-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1963-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1963-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1964-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1964-04-26T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1964-04-26T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1964-04-26T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "1964-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1964-04-26T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1964-04-26T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "02:00:00", "2006-04-02T07:00:00+00:00 should be 02:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2006-04-02T07:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Indiana/Tell_City").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Indiana/Tell_City").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/indiana/vevay.js b/tests/america/indiana/vevay.js deleted file mode 100644 index 5fd9177a..00000000 --- a/tests/america/indiana/vevay.js +++ /dev/null @@ -1,570 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Indiana/Vevay"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Vevay").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Vevay").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Vevay").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Vevay").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Vevay").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Vevay").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Vevay").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Vevay").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/indiana/vincennes.js b/tests/america/indiana/vincennes.js deleted file mode 100644 index 85c8167b..00000000 --- a/tests/america/indiana/vincennes.js +++ /dev/null @@ -1,710 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Indiana/Vincennes"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1946-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1946-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1946-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1946-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1946-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1946-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1946-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1946-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-05-01T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "23:59:59", "1955-05-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1955-05-01T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1955-05-01T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1955-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1955-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1955-05-01T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1955-05-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-05-01T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1955-05-01T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1955-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1955-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1956-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1956-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1956-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1956-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1957-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1957-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1957-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1957-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1958-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1958-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1958-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1958-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1959-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1959-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1959-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1959-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1960-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1960-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1960-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1960-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1961-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1961-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1961-09-24T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1961-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1961-09-24T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1961-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1961-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1961-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-09-24T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1961-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-09-24T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1961-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1962-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1962-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1962-10-28T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1962-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1962-10-28T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1962-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1962-04-29T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1962-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1962-04-29T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1962-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1962-10-28T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1962-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1962-10-28T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1962-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1963-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1963-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1963-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1963-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1963-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1963-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-10-27T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1963-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-10-27T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1963-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1964-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1964-04-26T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1964-04-26T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1964-04-26T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "1964-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1964-04-26T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1964-04-26T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "02:00:00", "2006-04-02T07:00:00+00:00 should be 02:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2006-04-02T07:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "02:00:00", "2007-11-04T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2007-11-04T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Vincennes").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Vincennes").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/indiana/winamac.js b/tests/america/indiana/winamac.js deleted file mode 100644 index cdcfd7bd..00000000 --- a/tests/america/indiana/winamac.js +++ /dev/null @@ -1,752 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Indiana/Winamac"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1946-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1946-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1946-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1946-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1946-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1946-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1946-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1946-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1947-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1947-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1947-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1947-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1947-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1947-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1947-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1947-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1948-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1948-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1948-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1948-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1948-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1948-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1948-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1948-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1949-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1949-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1949-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1949-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1949-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1949-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1949-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1949-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1950-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1950-04-30T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1950-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1950-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1950-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1950-04-30T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1950-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1950-04-30T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1950-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1950-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1950-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1951-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1951-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1951-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1951-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1951-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1951-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1951-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1951-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1952-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1952-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1952-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1952-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1952-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1952-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1952-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1952-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1955-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1955-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1955-10-30T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1955-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1955-10-30T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1955-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1955-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1955-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-10-30T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1955-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-10-30T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1955-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1956-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1956-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1956-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1956-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1957-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1957-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1957-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1957-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1958-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1958-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1958-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1958-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1959-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1959-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1959-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-09-27T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1959-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1960-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1960-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1960-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "1960-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1961-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1961-04-30T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "1961-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1961-04-30T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "02:00:00", "2006-04-02T07:00:00+00:00 should be 02:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2006-04-02T07:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "04:00:00", "2007-03-11T08:00:00+00:00 should be 04:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Indiana/Winamac").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2007-03-11T08:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Indiana/Winamac").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Indiana/Winamac").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Indiana/Winamac").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Indiana/Winamac").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/inuvik.js b/tests/america/inuvik.js deleted file mode 100644 index 4126b1dd..00000000 --- a/tests/america/inuvik.js +++ /dev/null @@ -1,856 +0,0 @@ -var moment = require("../../index"); - -exports["America/Inuvik"] = { - - "1952" : function (t) { - t.equal(moment("1952-12-31T23:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "23:59:59", "1952-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1952-12-31T23:59:59+00:00").tz("America/Inuvik").zone(), 0, "1952-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-01-01T00:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "16:00:00", "1953-01-01T00:00:00+00:00 should be 16:00:00 PST"); - - t.equal(moment("1953-01-01T00:00:00+00:00").tz("America/Inuvik").zone(), 480, "1953-01-01T00:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "23:59:59", "1965-04-25T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1965-04-25T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "02:00:00", "1965-04-25T08:00:00+00:00 should be 02:00:00 PDDT"); - t.equal(moment("1965-10-31T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1965-10-31T07:59:59+00:00 should be 01:59:59 PDDT"); - t.equal(moment("1965-10-31T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "00:00:00", "1965-10-31T08:00:00+00:00 should be 00:00:00 PST"); - - t.equal(moment("1965-04-25T07:59:59+00:00").tz("America/Inuvik").zone(), 480, "1965-04-25T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1965-04-25T08:00:00+00:00").tz("America/Inuvik").zone(), 360, "1965-04-25T08:00:00+00:00 should be 360 minutes offset in PDDT"); - t.equal(moment("1965-10-31T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1965-10-31T07:59:59+00:00 should be 360 minutes offset in PDDT"); - t.equal(moment("1965-10-31T08:00:00+00:00").tz("America/Inuvik").zone(), 480, "1965-10-31T08:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1979-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1979-04-29T10:00:00+00:00 should be 03:00:00 MST"); - - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Inuvik").zone(), 480, "1979-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Inuvik").zone(), 420, "1979-04-29T10:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1992-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1992-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1993-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1993-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1993-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1993-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1993-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1993-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1993-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1993-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1994-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1994-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1994-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1994-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1994-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1994-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1994-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1994-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1995-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1995-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1995-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1995-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1995-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1995-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1995-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1995-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2001-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2001-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2001-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2001-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2001-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2001-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2001-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2001-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2007-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2007-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2007-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2007-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2007-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2007-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2007-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2007-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2008-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2008-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2008-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2008-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2008-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2008-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2008-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2008-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2009-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2009-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2009-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2009-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2009-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2009-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2009-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2009-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2010-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2010-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2010-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2010-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2010-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2010-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2010-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2010-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2011-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2011-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2011-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2011-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2011-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2011-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2011-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2011-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2012-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2012-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2012-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2012-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2012-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2012-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2012-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2012-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2013-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2013-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2013-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2013-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2013-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2013-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2013-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2013-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2014-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2014-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2014-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2014-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2014-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2014-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2014-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2014-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2015-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2015-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2015-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2015-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2015-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2015-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2015-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2015-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2016-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2016-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2016-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2016-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2016-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2016-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2016-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2016-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2017-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2017-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2017-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2017-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2017-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2017-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2017-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2017-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2018-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2018-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2018-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2018-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2018-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2018-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2018-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2018-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2019-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2019-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2019-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2019-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2019-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2019-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2019-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2019-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2020-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2020-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2020-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2020-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2020-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2020-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2020-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2020-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2021-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2021-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2021-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2021-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2021-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2021-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2021-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2021-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2022-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2022-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2022-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2022-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2022-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2022-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2022-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2022-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2023-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2023-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2023-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2023-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2023-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2023-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2023-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2023-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2024-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2024-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2024-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2024-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2024-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2024-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2024-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2024-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2025-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2025-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2025-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2025-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2025-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2025-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2025-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2025-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2026-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2026-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2026-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2026-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2026-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2026-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2026-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2026-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2027-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2027-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2027-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2027-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2027-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2027-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2027-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2027-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2028-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2028-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2028-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2028-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2028-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2028-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2028-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2028-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2029-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2029-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2029-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2029-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2029-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2029-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2029-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2029-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2030-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2030-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2030-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2030-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2030-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2030-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2030-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2030-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2031-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2031-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2031-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2031-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2031-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2031-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2031-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2031-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2032-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2032-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2032-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2032-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2032-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2032-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2032-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2032-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2033-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2033-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2033-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2033-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2033-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2033-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2033-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2033-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2034-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2034-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2034-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2034-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2034-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2034-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2034-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2034-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2035-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2035-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2035-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2035-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2035-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2035-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2035-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2035-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2036-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2036-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2036-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2036-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2036-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2036-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2036-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2036-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2037-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "03:00:00", "2037-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:59:59", "2037-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Inuvik").format("HH:mm:ss"), "01:00:00", "2037-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Inuvik").zone(), 420, "2037-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Inuvik").zone(), 360, "2037-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Inuvik").zone(), 360, "2037-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Inuvik").zone(), 420, "2037-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/iqaluit.js b/tests/america/iqaluit.js deleted file mode 100644 index 8cec0177..00000000 --- a/tests/america/iqaluit.js +++ /dev/null @@ -1,854 +0,0 @@ -var moment = require("../../index"); - -exports["America/Iqaluit"] = { - - "1942" : function (t) { - t.equal(moment("1942-07-31T23:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "23:59:59", "1942-07-31T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1942-08-01T00:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "20:00:00", "1942-08-01T00:00:00+00:00 should be 20:00:00 EWT"); - - t.equal(moment("1942-07-31T23:59:59+00:00").tz("America/Iqaluit").zone(), 0, "1942-07-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1942-08-01T00:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1942-08-01T00:00:00+00:00 should be 240 minutes offset in EWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "18:59:59", "1945-08-14T22:59:59+00:00 should be 18:59:59 EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "19:00:00", "1945-08-14T23:00:00+00:00 should be 19:00:00 EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1945-09-30T05:59:59+00:00 should be 01:59:59 EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1945-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1945-08-14T22:59:59+00:00 should be 240 minutes offset in EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1945-08-14T23:00:00+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1945-09-30T05:59:59+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1945-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T04:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "23:59:59", "1965-04-25T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1965-04-25T05:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "02:00:00", "1965-04-25T05:00:00+00:00 should be 02:00:00 EDDT"); - t.equal(moment("1965-10-31T04:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1965-10-31T04:59:59+00:00 should be 01:59:59 EDDT"); - t.equal(moment("1965-10-31T05:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "00:00:00", "1965-10-31T05:00:00+00:00 should be 00:00:00 EST"); - - t.equal(moment("1965-04-25T04:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1965-04-25T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1965-04-25T05:00:00+00:00").tz("America/Iqaluit").zone(), 180, "1965-04-25T05:00:00+00:00 should be 180 minutes offset in EDDT"); - t.equal(moment("1965-10-31T04:59:59+00:00").tz("America/Iqaluit").zone(), 180, "1965-10-31T04:59:59+00:00 should be 180 minutes offset in EDDT"); - t.equal(moment("1965-10-31T05:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1965-10-31T05:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "00:00:00", "1999-10-31T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Iqaluit").zone(), 360, "1999-10-31T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "02:00:00", "2000-10-29T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Iqaluit").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2000-10-29T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Iqaluit").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Iqaluit").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Iqaluit").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Iqaluit").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Iqaluit").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/jamaica.js b/tests/america/jamaica.js deleted file mode 100644 index e9249864..00000000 --- a/tests/america/jamaica.js +++ /dev/null @@ -1,154 +0,0 @@ -var moment = require("../../index"); - -exports["America/Jamaica"] = { - - "1912" : function (t) { - t.equal(moment("1912-02-01T05:07:11+00:00").tz("America/Jamaica").format("HH:mm:ss"), "23:59:59", "1912-02-01T05:07:11+00:00 should be 23:59:59 KMT"); - t.equal(moment("1912-02-01T05:07:12+00:00").tz("America/Jamaica").format("HH:mm:ss"), "00:07:12", "1912-02-01T05:07:12+00:00 should be 00:07:12 EST"); - - t.equal(moment("1912-02-01T05:07:11+00:00").tz("America/Jamaica").zone(), 18432 / 60, "1912-02-01T05:07:11+00:00 should be 18432 / 60 minutes offset in KMT"); - t.equal(moment("1912-02-01T05:07:12+00:00").tz("America/Jamaica").zone(), 300, "1912-02-01T05:07:12+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1974-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1974-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1974-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1974-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1975-02-23T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1975-02-23T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1975-02-23T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1975-02-23T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Jamaica").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Jamaica").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Jamaica").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Jamaica").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Jamaica").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/juneau.js b/tests/america/juneau.js deleted file mode 100644 index 96c5589c..00000000 --- a/tests/america/juneau.js +++ /dev/null @@ -1,998 +0,0 @@ -var moment = require("../../index"); - -exports["America/Juneau"] = { - - "1942" : function (t) { - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1942-02-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1942-02-09T10:00:00+00:00 should be 03:00:00 PWT"); - - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1942-02-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1942-02-09T10:00:00+00:00 should be 420 minutes offset in PWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "15:59:59", "1945-08-14T22:59:59+00:00 should be 15:59:59 PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "16:00:00", "1945-08-14T23:00:00+00:00 should be 16:00:00 PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1945-09-30T08:59:59+00:00 should be 01:59:59 PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1945-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Juneau").zone(), 420, "1945-08-14T22:59:59+00:00 should be 420 minutes offset in PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Juneau").zone(), 420, "1945-08-14T23:00:00+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1945-09-30T08:59:59+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1945-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1969-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1969-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1969-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1969-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1969-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1969-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1969-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1969-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1970-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1970-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1970-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1970-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1970-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1970-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1970-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1970-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1971-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1971-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1971-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1971-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1971-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1971-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1971-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1971-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1972-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1972-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1972-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1972-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1972-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1972-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1972-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1972-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1973-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1973-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1973-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1973-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1973-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1973-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1973-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1973-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1974-01-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1974-01-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1974-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1974-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1974-01-06T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1974-01-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1974-01-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1974-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1974-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1975-02-23T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1975-02-23T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1975-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1975-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1975-02-23T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1975-02-23T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1975-02-23T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1975-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1975-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1976-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1976-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1976-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1976-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1976-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1976-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1976-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1976-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1977-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1977-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1977-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1977-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1977-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1977-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1977-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1977-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1978-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1978-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1978-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1978-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1978-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1978-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1978-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1978-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1979-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1979-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1979-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1979-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1979-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1979-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1979-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1979-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "02:00:00", "1980-04-27T10:00:00+00:00 should be 02:00:00 YDT"); - t.equal(moment("1980-10-26T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1980-10-26T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1980-10-26T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "02:00:00", "1980-10-26T10:00:00+00:00 should be 02:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Juneau").zone(), 480, "1980-04-27T10:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1980-10-26T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1980-10-26T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1980-10-26T10:00:00+00:00").tz("America/Juneau").zone(), 480, "1980-10-26T10:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Juneau").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "00:00:00", "1983-10-30T09:00:00+00:00 should be 00:00:00 YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "23:59:59", "1983-11-30T08:59:59+00:00 should be 23:59:59 YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "00:00:00", "1983-11-30T09:00:00+00:00 should be 00:00:00 AKST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Juneau").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Juneau").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Juneau").zone(), 540, "1983-10-30T09:00:00+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Juneau").zone(), 540, "1983-11-30T08:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Juneau").zone(), 540, "1983-11-30T09:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1984-04-29T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1984-04-29T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1984-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1984-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1984-04-29T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1984-04-29T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1984-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1984-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1985-04-28T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1985-04-28T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1985-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1985-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1985-04-28T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1985-04-28T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1985-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1985-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1986-04-27T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1986-04-27T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1986-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1986-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1986-04-27T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1986-04-27T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1986-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1986-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1987-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1987-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1987-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1987-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1987-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1987-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1987-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1987-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1988-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1988-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1988-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1988-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1988-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1988-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1988-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1988-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1989-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1989-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1989-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1989-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1989-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1989-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1989-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1989-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1990-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1990-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1990-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1990-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1990-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1990-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1990-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1990-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1991-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1991-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1991-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1991-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1991-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1991-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1991-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1991-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1992-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1992-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1992-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1992-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1992-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1992-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1992-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1992-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1993-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1993-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1993-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1993-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1993-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1993-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1993-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1993-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1994-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1994-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1994-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1994-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1994-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1994-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1994-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1994-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1995-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1995-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1995-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1995-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1995-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1995-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1995-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1995-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1996-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1996-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1996-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1996-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1996-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1996-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1996-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1996-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1997-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1997-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1997-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1997-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1997-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1997-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1997-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1997-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1998-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1998-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1998-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1998-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1998-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1998-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1998-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1998-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1999-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "1999-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "1999-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "1999-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Juneau").zone(), 540, "1999-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Juneau").zone(), 480, "1999-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Juneau").zone(), 480, "1999-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Juneau").zone(), 540, "1999-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2000-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2000-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2000-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2000-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2000-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2000-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2000-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2000-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2001-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2001-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2001-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2001-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2001-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2001-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2001-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2001-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2002-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2002-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2002-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2002-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2002-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2002-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2002-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2002-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2003-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2003-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2003-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2003-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2003-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2003-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2003-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2003-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2004-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2004-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2004-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2004-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2004-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2004-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2004-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2004-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2005-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2005-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2005-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2005-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2005-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2005-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2005-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2005-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2006-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2006-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2006-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2006-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2006-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2006-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2006-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2006-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2007-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2007-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2007-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2007-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2007-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2007-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2007-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2007-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2008-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2008-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2008-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2008-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2008-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2008-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2008-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2008-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2009-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2009-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2009-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2009-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2009-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2009-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2009-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2009-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2010-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2010-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2010-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2010-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2010-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2010-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2010-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2010-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2011-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2011-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2011-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2011-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2011-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2011-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2011-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2011-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2012-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2012-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2012-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2012-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2012-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2012-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2012-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2012-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2013-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2013-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2013-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2013-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2013-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2013-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2013-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2013-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2014-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2014-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2014-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2014-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2014-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2014-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2014-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2014-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2015-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2015-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2015-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2015-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2015-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2015-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2015-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2015-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2016-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2016-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2016-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2016-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2016-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2016-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2016-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2016-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2017-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2017-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2017-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2017-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2017-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2017-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2017-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2017-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2018-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2018-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2018-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2018-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2018-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2018-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2018-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2018-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2019-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2019-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2019-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2019-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2019-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2019-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2019-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2019-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2020-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2020-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2020-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2020-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2020-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2020-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2020-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2020-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2021-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2021-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2021-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2021-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2021-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2021-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2021-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2021-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2022-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2022-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2022-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2022-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2022-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2022-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2022-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2022-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2023-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2023-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2023-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2023-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2023-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2023-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2023-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2023-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2024-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2024-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2024-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2024-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2024-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2024-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2024-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2024-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2025-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2025-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2025-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2025-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2025-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2025-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2025-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2025-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2026-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2026-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2026-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2026-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2026-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2026-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2026-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2026-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2027-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2027-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2027-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2027-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2027-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2027-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2027-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2027-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2028-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2028-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2028-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2028-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2028-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2028-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2028-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2028-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2029-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2029-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2029-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2029-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2029-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2029-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2029-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2029-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2030-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2030-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2030-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2030-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2030-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2030-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2030-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2030-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2031-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2031-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2031-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2031-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2031-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2031-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2031-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2031-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2032-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2032-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2032-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2032-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2032-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2032-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2032-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2032-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2033-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2033-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2033-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2033-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2033-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2033-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2033-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2033-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2034-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2034-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2034-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2034-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2034-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2034-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2034-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2034-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2035-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2035-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2035-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2035-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2035-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2035-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2035-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2035-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2036-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2036-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2036-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2036-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2036-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2036-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2036-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2036-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2037-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "03:00:00", "2037-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:59:59", "2037-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Juneau").format("HH:mm:ss"), "01:00:00", "2037-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Juneau").zone(), 540, "2037-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Juneau").zone(), 480, "2037-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Juneau").zone(), 480, "2037-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Juneau").zone(), 540, "2037-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/kentucky/louisville.js b/tests/america/kentucky/louisville.js deleted file mode 100644 index 6b010bc5..00000000 --- a/tests/america/kentucky/louisville.js +++ /dev/null @@ -1,1252 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Kentucky/Louisville"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-05-01T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1921-05-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1921-05-01T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1921-05-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1921-09-01T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1921-09-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1921-09-01T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1921-09-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1921-05-01T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1921-05-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1921-05-01T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1921-05-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1921-09-01T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1921-09-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1921-09-01T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1921-09-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1941-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1941-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1941-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1941-09-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1941-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1941-09-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1941-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1941-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1941-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1941-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1941-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1941-09-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1941-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1941-09-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1941-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-01-01T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "23:59:59", "1946-01-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1946-01-01T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1946-01-01T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1946-06-02T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1946-06-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1946-06-02T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1946-06-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1946-01-01T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1946-01-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1946-01-01T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1946-01-01T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-06-02T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1946-06-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-06-02T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1946-06-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1947-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1947-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1947-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1947-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1950-09-24T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1950-09-24T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1950-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1950-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1951-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1951-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1951-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1951-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1951-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1951-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1951-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1951-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1952-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1952-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1952-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1952-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1952-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1952-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1952-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1952-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1955-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1955-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1955-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1955-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1955-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1955-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1955-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1955-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1956-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1956-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1956-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1956-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1957-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1957-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1957-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1957-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1957-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1957-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1958-10-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1958-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1958-10-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1958-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-10-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1958-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-10-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1958-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1959-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1959-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1959-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1959-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1960-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1960-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1960-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1960-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1961-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1961-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1961-07-23T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1961-07-23T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1961-07-23T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "02:00:00", "1961-07-23T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1961-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1961-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-07-23T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1961-07-23T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1961-07-23T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1961-07-23T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1968-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1968-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1968-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1968-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1968-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1968-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1968-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1968-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1973-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1973-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1973-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1973-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1973-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1973-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1974-01-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "02:00:00", "1974-01-06T07:00:00+00:00 should be 02:00:00 CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "02:00:00", "1974-10-27T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1974-01-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1974-01-06T07:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1974-10-27T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1975-02-23T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1975-02-23T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1975-02-23T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1975-02-23T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/kentucky/monticello.js b/tests/america/kentucky/monticello.js deleted file mode 100644 index 5365eda5..00000000 --- a/tests/america/kentucky/monticello.js +++ /dev/null @@ -1,1036 +0,0 @@ -var moment = require("../../../index"); - -exports["America/Kentucky/Monticello"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1968-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1968-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1968-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1968-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1968-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1968-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1968-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1968-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1969-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1969-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1969-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1969-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1969-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1969-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1969-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1969-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1970-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1970-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1970-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1970-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1970-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1970-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1970-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1970-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1971-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1971-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1971-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1971-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1971-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1971-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1971-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1971-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1972-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1972-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1972-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1972-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1972-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1972-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1972-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1972-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1973-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1973-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1973-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1973-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1973-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1973-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1973-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1973-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1974-01-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1974-01-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1974-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1974-01-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1974-01-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1974-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1975-02-23T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1975-02-23T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1975-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1975-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1975-02-23T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1975-02-23T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1975-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1975-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1976-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1976-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1976-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1976-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1976-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1976-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1976-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1976-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1977-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1977-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1977-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1977-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1977-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1977-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1977-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1977-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1978-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1978-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1978-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1978-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1978-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1978-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1978-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1978-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1979-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1979-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1979-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1979-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1979-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1979-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1979-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1979-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1980-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1980-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1980-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1980-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1981-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1981-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1981-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1981-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1982-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1982-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1982-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1982-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1983-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1983-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1983-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1983-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1984-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1984-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1984-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1984-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1985-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1985-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1985-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1985-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1985-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1985-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1986-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1986-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1986-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1986-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1986-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1986-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1986-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1986-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1987-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1987-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1987-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1987-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1987-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1987-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1987-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1987-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1989-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1989-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1989-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1989-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1989-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1989-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1989-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1989-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1990-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1990-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1990-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1990-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1990-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1990-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1990-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1990-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1991-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1991-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1991-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1991-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1991-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1991-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1991-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1991-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1992-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1992-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1992-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1992-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1992-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1992-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1992-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1992-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1993-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1993-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1993-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1993-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1993-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1993-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1993-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1993-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1994-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1994-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1994-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1994-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1994-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1994-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1994-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1994-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1995-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1995-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1995-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1995-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1995-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1995-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1995-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1995-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "02:00:00", "2000-10-29T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2000-10-29T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Kentucky/Monticello").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Kentucky/Monticello").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/la_paz.js b/tests/america/la_paz.js deleted file mode 100644 index f704edd4..00000000 --- a/tests/america/la_paz.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["America/La_Paz"] = { - - "1931" : function (t) { - t.equal(moment("1931-10-15T04:32:35+00:00").tz("America/La_Paz").format("HH:mm:ss"), "23:59:59", "1931-10-15T04:32:35+00:00 should be 23:59:59 CMT"); - t.equal(moment("1931-10-15T04:32:36+00:00").tz("America/La_Paz").format("HH:mm:ss"), "01:00:00", "1931-10-15T04:32:36+00:00 should be 01:00:00 BOST"); - - t.equal(moment("1931-10-15T04:32:35+00:00").tz("America/La_Paz").zone(), 16356 / 60, "1931-10-15T04:32:35+00:00 should be 16356 / 60 minutes offset in CMT"); - t.equal(moment("1931-10-15T04:32:36+00:00").tz("America/La_Paz").zone(), 12756 / 60, "1931-10-15T04:32:36+00:00 should be 12756 / 60 minutes offset in BOST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-21T03:32:35+00:00").tz("America/La_Paz").format("HH:mm:ss"), "23:59:59", "1932-03-21T03:32:35+00:00 should be 23:59:59 BOST"); - t.equal(moment("1932-03-21T03:32:36+00:00").tz("America/La_Paz").format("HH:mm:ss"), "23:32:36", "1932-03-21T03:32:36+00:00 should be 23:32:36 BOT"); - - t.equal(moment("1932-03-21T03:32:35+00:00").tz("America/La_Paz").zone(), 12756 / 60, "1932-03-21T03:32:35+00:00 should be 12756 / 60 minutes offset in BOST"); - t.equal(moment("1932-03-21T03:32:36+00:00").tz("America/La_Paz").zone(), 240, "1932-03-21T03:32:36+00:00 should be 240 minutes offset in BOT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/lima.js b/tests/america/lima.js deleted file mode 100644 index 7b14b0b5..00000000 --- a/tests/america/lima.js +++ /dev/null @@ -1,112 +0,0 @@ -var moment = require("../../index"); - -exports["America/Lima"] = { - - "1908" : function (t) { - t.equal(moment("1908-07-28T05:08:35+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1908-07-28T05:08:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1908-07-28T05:08:36+00:00").tz("America/Lima").format("HH:mm:ss"), "00:08:36", "1908-07-28T05:08:36+00:00 should be 00:08:36 PET"); - - t.equal(moment("1908-07-28T05:08:35+00:00").tz("America/Lima").zone(), 18516 / 60, "1908-07-28T05:08:35+00:00 should be 18516 / 60 minutes offset in LMT"); - t.equal(moment("1908-07-28T05:08:36+00:00").tz("America/Lima").zone(), 300, "1908-07-28T05:08:36+00:00 should be 300 minutes offset in PET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-01-01T04:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1938-01-01T04:59:59+00:00 should be 23:59:59 PET"); - t.equal(moment("1938-01-01T05:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "01:00:00", "1938-01-01T05:00:00+00:00 should be 01:00:00 PEST"); - t.equal(moment("1938-04-01T03:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1938-04-01T03:59:59+00:00 should be 23:59:59 PEST"); - t.equal(moment("1938-04-01T04:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "23:00:00", "1938-04-01T04:00:00+00:00 should be 23:00:00 PET"); - t.equal(moment("1938-09-25T04:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1938-09-25T04:59:59+00:00 should be 23:59:59 PET"); - t.equal(moment("1938-09-25T05:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "01:00:00", "1938-09-25T05:00:00+00:00 should be 01:00:00 PEST"); - - t.equal(moment("1938-01-01T04:59:59+00:00").tz("America/Lima").zone(), 300, "1938-01-01T04:59:59+00:00 should be 300 minutes offset in PET"); - t.equal(moment("1938-01-01T05:00:00+00:00").tz("America/Lima").zone(), 240, "1938-01-01T05:00:00+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1938-04-01T03:59:59+00:00").tz("America/Lima").zone(), 240, "1938-04-01T03:59:59+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1938-04-01T04:00:00+00:00").tz("America/Lima").zone(), 300, "1938-04-01T04:00:00+00:00 should be 300 minutes offset in PET"); - t.equal(moment("1938-09-25T04:59:59+00:00").tz("America/Lima").zone(), 300, "1938-09-25T04:59:59+00:00 should be 300 minutes offset in PET"); - t.equal(moment("1938-09-25T05:00:00+00:00").tz("America/Lima").zone(), 240, "1938-09-25T05:00:00+00:00 should be 240 minutes offset in PEST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-26T03:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1939-03-26T03:59:59+00:00 should be 23:59:59 PEST"); - t.equal(moment("1939-03-26T04:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "23:00:00", "1939-03-26T04:00:00+00:00 should be 23:00:00 PET"); - t.equal(moment("1939-09-24T04:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1939-09-24T04:59:59+00:00 should be 23:59:59 PET"); - t.equal(moment("1939-09-24T05:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "01:00:00", "1939-09-24T05:00:00+00:00 should be 01:00:00 PEST"); - - t.equal(moment("1939-03-26T03:59:59+00:00").tz("America/Lima").zone(), 240, "1939-03-26T03:59:59+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1939-03-26T04:00:00+00:00").tz("America/Lima").zone(), 300, "1939-03-26T04:00:00+00:00 should be 300 minutes offset in PET"); - t.equal(moment("1939-09-24T04:59:59+00:00").tz("America/Lima").zone(), 300, "1939-09-24T04:59:59+00:00 should be 300 minutes offset in PET"); - t.equal(moment("1939-09-24T05:00:00+00:00").tz("America/Lima").zone(), 240, "1939-09-24T05:00:00+00:00 should be 240 minutes offset in PEST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-24T03:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1940-03-24T03:59:59+00:00 should be 23:59:59 PEST"); - t.equal(moment("1940-03-24T04:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "23:00:00", "1940-03-24T04:00:00+00:00 should be 23:00:00 PET"); - - t.equal(moment("1940-03-24T03:59:59+00:00").tz("America/Lima").zone(), 240, "1940-03-24T03:59:59+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1940-03-24T04:00:00+00:00").tz("America/Lima").zone(), 300, "1940-03-24T04:00:00+00:00 should be 300 minutes offset in PET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-01-01T04:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1986-01-01T04:59:59+00:00 should be 23:59:59 PET"); - t.equal(moment("1986-01-01T05:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "01:00:00", "1986-01-01T05:00:00+00:00 should be 01:00:00 PEST"); - t.equal(moment("1986-04-01T03:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1986-04-01T03:59:59+00:00 should be 23:59:59 PEST"); - t.equal(moment("1986-04-01T04:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "23:00:00", "1986-04-01T04:00:00+00:00 should be 23:00:00 PET"); - - t.equal(moment("1986-01-01T04:59:59+00:00").tz("America/Lima").zone(), 300, "1986-01-01T04:59:59+00:00 should be 300 minutes offset in PET"); - t.equal(moment("1986-01-01T05:00:00+00:00").tz("America/Lima").zone(), 240, "1986-01-01T05:00:00+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1986-04-01T03:59:59+00:00").tz("America/Lima").zone(), 240, "1986-04-01T03:59:59+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1986-04-01T04:00:00+00:00").tz("America/Lima").zone(), 300, "1986-04-01T04:00:00+00:00 should be 300 minutes offset in PET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-01-01T04:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1987-01-01T04:59:59+00:00 should be 23:59:59 PET"); - t.equal(moment("1987-01-01T05:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "01:00:00", "1987-01-01T05:00:00+00:00 should be 01:00:00 PEST"); - t.equal(moment("1987-04-01T03:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1987-04-01T03:59:59+00:00 should be 23:59:59 PEST"); - t.equal(moment("1987-04-01T04:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "23:00:00", "1987-04-01T04:00:00+00:00 should be 23:00:00 PET"); - - t.equal(moment("1987-01-01T04:59:59+00:00").tz("America/Lima").zone(), 300, "1987-01-01T04:59:59+00:00 should be 300 minutes offset in PET"); - t.equal(moment("1987-01-01T05:00:00+00:00").tz("America/Lima").zone(), 240, "1987-01-01T05:00:00+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1987-04-01T03:59:59+00:00").tz("America/Lima").zone(), 240, "1987-04-01T03:59:59+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1987-04-01T04:00:00+00:00").tz("America/Lima").zone(), 300, "1987-04-01T04:00:00+00:00 should be 300 minutes offset in PET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-01-01T04:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1990-01-01T04:59:59+00:00 should be 23:59:59 PET"); - t.equal(moment("1990-01-01T05:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "01:00:00", "1990-01-01T05:00:00+00:00 should be 01:00:00 PEST"); - t.equal(moment("1990-04-01T03:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1990-04-01T03:59:59+00:00 should be 23:59:59 PEST"); - t.equal(moment("1990-04-01T04:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "23:00:00", "1990-04-01T04:00:00+00:00 should be 23:00:00 PET"); - - t.equal(moment("1990-01-01T04:59:59+00:00").tz("America/Lima").zone(), 300, "1990-01-01T04:59:59+00:00 should be 300 minutes offset in PET"); - t.equal(moment("1990-01-01T05:00:00+00:00").tz("America/Lima").zone(), 240, "1990-01-01T05:00:00+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1990-04-01T03:59:59+00:00").tz("America/Lima").zone(), 240, "1990-04-01T03:59:59+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1990-04-01T04:00:00+00:00").tz("America/Lima").zone(), 300, "1990-04-01T04:00:00+00:00 should be 300 minutes offset in PET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-01-01T04:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1994-01-01T04:59:59+00:00 should be 23:59:59 PET"); - t.equal(moment("1994-01-01T05:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "01:00:00", "1994-01-01T05:00:00+00:00 should be 01:00:00 PEST"); - t.equal(moment("1994-04-01T03:59:59+00:00").tz("America/Lima").format("HH:mm:ss"), "23:59:59", "1994-04-01T03:59:59+00:00 should be 23:59:59 PEST"); - t.equal(moment("1994-04-01T04:00:00+00:00").tz("America/Lima").format("HH:mm:ss"), "23:00:00", "1994-04-01T04:00:00+00:00 should be 23:00:00 PET"); - - t.equal(moment("1994-01-01T04:59:59+00:00").tz("America/Lima").zone(), 300, "1994-01-01T04:59:59+00:00 should be 300 minutes offset in PET"); - t.equal(moment("1994-01-01T05:00:00+00:00").tz("America/Lima").zone(), 240, "1994-01-01T05:00:00+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1994-04-01T03:59:59+00:00").tz("America/Lima").zone(), 240, "1994-04-01T03:59:59+00:00 should be 240 minutes offset in PEST"); - t.equal(moment("1994-04-01T04:00:00+00:00").tz("America/Lima").zone(), 300, "1994-04-01T04:00:00+00:00 should be 300 minutes offset in PET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/los_angeles.js b/tests/america/los_angeles.js deleted file mode 100644 index 28d72b7b..00000000 --- a/tests/america/los_angeles.js +++ /dev/null @@ -1,1308 +0,0 @@ -var moment = require("../../index"); - -exports["America/Los_Angeles"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1918-03-31T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1918-03-31T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1918-03-31T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1918-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1918-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1918-03-31T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1918-03-31T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1918-03-31T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1918-03-31T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1918-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1918-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1919-03-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1919-03-30T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1919-03-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1919-10-26T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1919-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1919-10-26T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1919-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1919-03-30T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1919-03-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1919-03-30T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1919-03-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1919-10-26T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1919-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1919-10-26T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1919-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1942-02-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1942-02-09T10:00:00+00:00 should be 03:00:00 PWT"); - - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1942-02-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1942-02-09T10:00:00+00:00 should be 420 minutes offset in PWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "15:59:59", "1945-08-14T22:59:59+00:00 should be 15:59:59 PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "16:00:00", "1945-08-14T23:00:00+00:00 should be 16:00:00 PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1945-09-30T08:59:59+00:00 should be 01:59:59 PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1945-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1945-08-14T22:59:59+00:00 should be 420 minutes offset in PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1945-08-14T23:00:00+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1945-09-30T08:59:59+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1945-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-03-14T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1948-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1948-03-14T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1948-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - - t.equal(moment("1948-03-14T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1948-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1948-03-14T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1948-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-01-01T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1949-01-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1949-01-01T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1949-01-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1949-01-01T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1949-01-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1949-01-01T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1949-01-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1950-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1950-04-30T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1950-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1950-09-24T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1950-09-24T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1950-09-24T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1950-09-24T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1950-04-30T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1950-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1950-04-30T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1950-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1950-09-24T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1950-09-24T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1950-09-24T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1950-09-24T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1951-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1951-04-29T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1951-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1951-09-30T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1951-09-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1951-09-30T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1951-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1951-04-29T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1951-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1951-04-29T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1951-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1951-09-30T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1951-09-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1951-09-30T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1951-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1952-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1952-04-27T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1952-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1952-09-28T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1952-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1952-09-28T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1952-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1952-04-27T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1952-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1952-04-27T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1952-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1952-09-28T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1952-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1952-09-28T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1952-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1953-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1953-04-26T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1953-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1953-09-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1953-09-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1953-09-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1953-09-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1953-04-26T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1953-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1953-04-26T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1953-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1953-09-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1953-09-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1953-09-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1953-09-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1954-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1954-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1954-09-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1954-09-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1954-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1954-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1954-09-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1954-09-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1955-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1955-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1955-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1955-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1955-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1955-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1955-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1955-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1956-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1956-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1956-09-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1956-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1956-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1956-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1956-09-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1956-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1957-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1957-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1957-09-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1957-09-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1957-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1957-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1957-09-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1957-09-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1958-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1958-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1958-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1958-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1958-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1958-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1958-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1958-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1959-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1959-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1959-09-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1959-09-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1959-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1959-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1959-09-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1959-09-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1960-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1960-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1960-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1960-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1960-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1960-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1960-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1960-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1961-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1961-04-30T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1961-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1961-09-24T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1961-09-24T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1961-09-24T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1961-09-24T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1961-04-30T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1961-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1961-04-30T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1961-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1961-09-24T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1961-09-24T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1961-09-24T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1961-09-24T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1962-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1962-04-29T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1962-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1962-10-28T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1962-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1962-10-28T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1962-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1962-04-29T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1962-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1962-04-29T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1962-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1962-10-28T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1962-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1962-10-28T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1962-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1963-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1963-04-28T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1963-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1963-10-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1963-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1963-10-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1963-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1963-04-28T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1963-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1963-04-28T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1963-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1963-10-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1963-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1963-10-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1963-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1964-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1964-04-26T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1964-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1964-10-25T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1964-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1964-10-25T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1964-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1964-04-26T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1964-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1964-04-26T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1964-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1964-10-25T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1964-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1964-10-25T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1964-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1965-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1965-04-25T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1965-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1965-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1965-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1965-04-25T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1965-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1965-04-25T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1965-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1965-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1965-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1966-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1966-04-24T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1966-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1966-10-30T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1966-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1966-10-30T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1966-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1966-04-24T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1966-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1966-04-24T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1966-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1966-10-30T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1966-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1966-10-30T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1966-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1967-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1967-04-30T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1967-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1967-10-29T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1967-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1967-10-29T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1967-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1967-04-30T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1967-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1967-04-30T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1967-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1967-10-29T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1967-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1967-10-29T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1967-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1968-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1968-04-28T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1968-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1968-10-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1968-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1968-10-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1968-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1968-04-28T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1968-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1968-04-28T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1968-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1968-10-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1968-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1968-10-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1968-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1969-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1969-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1969-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1969-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1969-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1969-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1969-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1969-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1970-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1970-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1970-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1970-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1970-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1970-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1970-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1970-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1971-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1971-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1971-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1971-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1971-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1971-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1971-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1971-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1972-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1972-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1972-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1972-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1972-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1972-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1972-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1972-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1973-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1973-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1973-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1973-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1973-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1973-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1973-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1973-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1974-01-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1974-01-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1974-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1974-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1974-01-06T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1974-01-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1974-01-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1974-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1974-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1975-02-23T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1975-02-23T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1975-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1975-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1975-02-23T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1975-02-23T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1975-02-23T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1975-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1975-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1976-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1976-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1976-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1976-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1976-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1976-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1976-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1976-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1977-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1977-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1977-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1977-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1977-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1977-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1977-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1977-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1978-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1978-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1978-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1978-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1978-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1978-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1978-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1978-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1979-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1979-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1979-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1979-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1979-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1979-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1979-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1979-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1980-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1980-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1980-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1980-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1980-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1980-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1983-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1983-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1984-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1984-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1984-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1984-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1984-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1984-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1984-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1984-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1985-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1985-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1985-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1985-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1985-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1985-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1985-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1985-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1986-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1986-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1986-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1986-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1986-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1986-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1986-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1986-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1987-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1987-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1987-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1987-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1987-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1987-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1987-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1987-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1988-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1988-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1988-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1988-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1988-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1988-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1988-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1988-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1989-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1989-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1989-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1989-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1989-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1989-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1989-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1989-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1990-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1990-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1990-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1990-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1990-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1990-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1990-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1990-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1991-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1991-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1991-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1991-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1991-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1991-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1991-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1991-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1992-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1992-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1992-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1992-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1992-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1992-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1992-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1992-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1993-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1993-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1993-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1993-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1993-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1993-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1993-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1993-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1994-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1994-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1994-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1994-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1994-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1994-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1994-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1994-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1995-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1995-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1995-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1995-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1995-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1995-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1995-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1995-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1996-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1996-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1996-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1996-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1996-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1996-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1996-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1996-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1997-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1997-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1997-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1997-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1997-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1997-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1997-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1997-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1998-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1998-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1998-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1998-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1998-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1998-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1998-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1998-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1999-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "1999-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "1999-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "1999-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "1999-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "1999-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "1999-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "1999-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2000-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2000-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2000-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2000-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2000-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2000-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2000-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2000-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2001-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2001-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2001-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2001-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2001-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2001-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2001-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2001-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2002-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2002-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2002-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2002-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2002-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2002-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2002-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2002-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2003-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2003-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2003-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2003-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2003-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2003-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2003-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2003-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2004-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2004-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2004-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2004-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2004-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2004-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2004-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2004-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2005-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2005-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2005-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2005-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2005-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2005-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2005-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2005-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2006-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2006-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2006-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2006-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2006-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2006-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2006-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2006-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2007-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2007-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2007-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2007-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2007-03-11T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2007-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2007-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2007-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2007-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2008-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2008-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2008-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2008-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2008-03-09T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2008-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2008-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2008-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2008-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2009-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2009-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2009-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2009-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2009-03-08T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2009-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2009-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2009-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2009-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2010-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2010-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2010-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2010-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2010-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2010-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2010-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2010-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2011-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2011-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2011-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2011-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2011-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2011-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2011-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2011-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2012-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2012-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2012-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2012-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2012-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2012-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2012-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2012-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2013-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2013-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2013-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2013-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2013-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2013-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2013-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2013-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2014-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2014-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2014-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2014-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2014-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2014-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2014-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2014-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2015-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2015-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2015-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2015-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2015-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2015-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2015-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2015-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2016-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2016-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2016-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2016-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2016-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2016-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2016-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2016-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2017-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2017-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2017-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2017-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2017-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2017-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2017-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2017-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2018-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2018-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2018-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2018-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2018-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2018-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2018-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2018-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2019-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2019-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2019-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2019-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2019-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2019-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2019-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2019-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2020-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2020-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2020-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2020-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2020-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2020-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2020-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2020-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2021-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2021-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2021-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2021-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2021-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2021-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2021-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2021-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2022-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2022-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2022-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2022-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2022-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2022-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2022-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2022-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2023-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2023-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2023-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2023-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2023-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2023-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2023-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2023-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2024-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2024-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2024-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2024-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2024-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2024-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2024-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2024-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2025-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2025-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2025-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2025-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2025-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2025-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2025-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2025-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2026-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2026-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2026-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2026-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2026-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2026-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2026-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2026-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2027-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2027-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2027-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2027-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2027-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2027-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2027-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2027-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2028-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2028-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2028-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2028-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2028-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2028-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2028-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2028-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2029-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2029-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2029-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2029-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2029-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2029-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2029-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2029-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2030-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2030-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2030-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2030-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2030-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2030-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2030-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2030-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2031-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2031-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2031-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2031-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2031-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2031-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2031-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2031-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2032-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2032-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2032-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2032-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2032-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2032-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2032-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2032-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2033-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2033-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2033-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2033-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2033-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2033-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2033-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2033-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2034-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2034-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2034-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2034-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2034-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2034-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2034-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2034-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2035-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2035-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2035-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2035-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2035-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2035-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2035-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2035-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2036-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2036-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2036-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2036-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2036-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2036-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2036-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2036-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2037-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "03:00:00", "2037-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:59:59", "2037-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Los_Angeles").format("HH:mm:ss"), "01:00:00", "2037-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Los_Angeles").zone(), 480, "2037-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Los_Angeles").zone(), 420, "2037-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Los_Angeles").zone(), 420, "2037-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Los_Angeles").zone(), 480, "2037-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/maceio.js b/tests/america/maceio.js deleted file mode 100644 index 4b13b6c0..00000000 --- a/tests/america/maceio.js +++ /dev/null @@ -1,330 +0,0 @@ -var moment = require("../../index"); - -exports["America/Maceio"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T02:22:51+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1914-01-01T02:22:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T02:22:52+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:22:52", "1914-01-01T02:22:52+00:00 should be 23:22:52 BRT"); - - t.equal(moment("1914-01-01T02:22:51+00:00").tz("America/Maceio").zone(), 8572 / 60, "1914-01-01T02:22:51+00:00 should be 8572 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T02:22:52+00:00").tz("America/Maceio").zone(), 180, "1914-01-01T02:22:52+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "10:59:59", "1931-10-03T13:59:59+00:00 should be 10:59:59 BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "12:00:00", "1931-10-03T14:00:00+00:00 should be 12:00:00 BRST"); - - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Maceio").zone(), 180, "1931-10-03T13:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Maceio").zone(), 120, "1931-10-03T14:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1932-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1932-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1932-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1932-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1932-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1932-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1932-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1932-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1933-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1933-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1933-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1933-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1949-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1949-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1949-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1949-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "00:59:59", "1950-04-16T02:59:59+00:00 should be 00:59:59 BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "00:00:00", "1950-04-16T03:00:00+00:00 should be 00:00:00 BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1950-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1950-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Maceio").zone(), 120, "1950-04-16T02:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Maceio").zone(), 180, "1950-04-16T03:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1950-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1950-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1951-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1951-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1951-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1951-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1951-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1951-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1951-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1951-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1952-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1952-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1952-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1952-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1952-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1952-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1952-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1952-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1953-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1953-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1953-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1953-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1963-12-09T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1963-12-09T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1963-12-09T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1963-12-09T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1964-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1964-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1964-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1964-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1965-01-31T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1965-01-31T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1965-03-31T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1965-03-31T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1965-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1965-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1965-01-31T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1965-01-31T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1965-03-31T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1965-03-31T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1965-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1965-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1966-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1966-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1966-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1966-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1966-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1966-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1966-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1966-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1967-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1967-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1967-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1967-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1967-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1967-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1967-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1967-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1968-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1968-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1968-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1968-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1985-11-02T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1985-11-02T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1985-11-02T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1985-11-02T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1986-03-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1986-03-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1986-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1986-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1986-03-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1986-03-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1986-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1986-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1987-02-14T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1987-02-14T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1987-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1987-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1987-02-14T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1987-02-14T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1987-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1987-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1988-02-07T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1988-02-07T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1988-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1988-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1988-02-07T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1988-02-07T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1988-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1988-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1989-01-29T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1989-01-29T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1989-01-29T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1989-01-29T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1990-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1990-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1990-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1990-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-10-15T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1995-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1995-10-15T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1995-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1995-10-15T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1995-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1995-10-15T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1995-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-02-11T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1996-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1996-02-11T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "1996-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1996-02-11T01:59:59+00:00").tz("America/Maceio").zone(), 120, "1996-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1996-02-11T02:00:00+00:00").tz("America/Maceio").zone(), 180, "1996-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "1999-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Maceio").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Maceio").zone(), 120, "1999-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "2000-02-27T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "2000-02-27T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "2000-10-08T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "2000-10-08T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("2000-10-22T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "2000-10-22T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2000-10-22T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "2000-10-22T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Maceio").zone(), 120, "2000-02-27T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Maceio").zone(), 180, "2000-02-27T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Maceio").zone(), 180, "2000-10-08T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Maceio").zone(), 120, "2000-10-08T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-10-22T01:59:59+00:00").tz("America/Maceio").zone(), 120, "2000-10-22T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-10-22T02:00:00+00:00").tz("America/Maceio").zone(), 180, "2000-10-22T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "2001-10-14T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "01:00:00", "2001-10-14T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Maceio").zone(), 180, "2001-10-14T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Maceio").zone(), 120, "2001-10-14T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:59:59", "2002-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Maceio").format("HH:mm:ss"), "23:00:00", "2002-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Maceio").zone(), 120, "2002-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Maceio").zone(), 180, "2002-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/managua.js b/tests/america/managua.js deleted file mode 100644 index 589a28d2..00000000 --- a/tests/america/managua.js +++ /dev/null @@ -1,124 +0,0 @@ -var moment = require("../../index"); - -exports["America/Managua"] = { - - "1934" : function (t) { - t.equal(moment("1934-06-23T05:45:11+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1934-06-23T05:45:11+00:00 should be 23:59:59 MMT"); - t.equal(moment("1934-06-23T05:45:12+00:00").tz("America/Managua").format("HH:mm:ss"), "23:45:12", "1934-06-23T05:45:12+00:00 should be 23:45:12 CST"); - - t.equal(moment("1934-06-23T05:45:11+00:00").tz("America/Managua").zone(), 20712 / 60, "1934-06-23T05:45:11+00:00 should be 20712 / 60 minutes offset in MMT"); - t.equal(moment("1934-06-23T05:45:12+00:00").tz("America/Managua").zone(), 360, "1934-06-23T05:45:12+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-05-01T05:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1973-05-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1973-05-01T06:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "01:00:00", "1973-05-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1973-05-01T05:59:59+00:00").tz("America/Managua").zone(), 360, "1973-05-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1973-05-01T06:00:00+00:00").tz("America/Managua").zone(), 300, "1973-05-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-16T04:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1975-02-16T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1975-02-16T05:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "23:00:00", "1975-02-16T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1975-02-16T04:59:59+00:00").tz("America/Managua").zone(), 300, "1975-02-16T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-02-16T05:00:00+00:00").tz("America/Managua").zone(), 360, "1975-02-16T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-18T05:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1979-03-18T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1979-03-18T06:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "01:00:00", "1979-03-18T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1979-06-25T04:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1979-06-25T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1979-06-25T05:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "23:00:00", "1979-06-25T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1979-03-18T05:59:59+00:00").tz("America/Managua").zone(), 360, "1979-03-18T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1979-03-18T06:00:00+00:00").tz("America/Managua").zone(), 300, "1979-03-18T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-06-25T04:59:59+00:00").tz("America/Managua").zone(), 300, "1979-06-25T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-06-25T05:00:00+00:00").tz("America/Managua").zone(), 360, "1979-06-25T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-16T05:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1980-03-16T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1980-03-16T06:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "01:00:00", "1980-03-16T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1980-06-23T04:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1980-06-23T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1980-06-23T05:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "23:00:00", "1980-06-23T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1980-03-16T05:59:59+00:00").tz("America/Managua").zone(), 360, "1980-03-16T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-03-16T06:00:00+00:00").tz("America/Managua").zone(), 300, "1980-03-16T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-06-23T04:59:59+00:00").tz("America/Managua").zone(), 300, "1980-06-23T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-06-23T05:00:00+00:00").tz("America/Managua").zone(), 360, "1980-06-23T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-01T09:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "03:59:59", "1992-01-01T09:59:59+00:00 should be 03:59:59 CST"); - t.equal(moment("1992-01-01T10:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "05:00:00", "1992-01-01T10:00:00+00:00 should be 05:00:00 EST"); - t.equal(moment("1992-09-24T04:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1992-09-24T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1992-09-24T05:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "23:00:00", "1992-09-24T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1992-01-01T09:59:59+00:00").tz("America/Managua").zone(), 360, "1992-01-01T09:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-01-01T10:00:00+00:00").tz("America/Managua").zone(), 300, "1992-01-01T10:00:00+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-09-24T04:59:59+00:00").tz("America/Managua").zone(), 300, "1992-09-24T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-09-24T05:00:00+00:00").tz("America/Managua").zone(), 360, "1992-09-24T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-01-01T05:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1993-01-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1993-01-01T06:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "01:00:00", "1993-01-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-01-01T05:59:59+00:00").tz("America/Managua").zone(), 360, "1993-01-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-01-01T06:00:00+00:00").tz("America/Managua").zone(), 300, "1993-01-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-01-01T04:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "1997-01-01T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1997-01-01T05:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "23:00:00", "1997-01-01T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1997-01-01T04:59:59+00:00").tz("America/Managua").zone(), 300, "1997-01-01T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-01-01T05:00:00+00:00").tz("America/Managua").zone(), 360, "1997-01-01T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-10T05:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "2005-04-10T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2005-04-10T06:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "01:00:00", "2005-04-10T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2005-10-02T04:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "23:59:59", "2005-10-02T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("2005-10-02T05:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "23:00:00", "2005-10-02T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("2005-04-10T05:59:59+00:00").tz("America/Managua").zone(), 360, "2005-04-10T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-10T06:00:00+00:00").tz("America/Managua").zone(), 300, "2005-04-10T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-02T04:59:59+00:00").tz("America/Managua").zone(), 300, "2005-10-02T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-02T05:00:00+00:00").tz("America/Managua").zone(), 360, "2005-10-02T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-30T07:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "01:59:59", "2006-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-30T08:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "03:00:00", "2006-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-01T05:59:59+00:00").tz("America/Managua").format("HH:mm:ss"), "00:59:59", "2006-10-01T05:59:59+00:00 should be 00:59:59 CDT"); - t.equal(moment("2006-10-01T06:00:00+00:00").tz("America/Managua").format("HH:mm:ss"), "00:00:00", "2006-10-01T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("2006-04-30T07:59:59+00:00").tz("America/Managua").zone(), 360, "2006-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-30T08:00:00+00:00").tz("America/Managua").zone(), 300, "2006-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-01T05:59:59+00:00").tz("America/Managua").zone(), 300, "2006-10-01T05:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-01T06:00:00+00:00").tz("America/Managua").zone(), 360, "2006-10-01T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/manaus.js b/tests/america/manaus.js deleted file mode 100644 index 89496843..00000000 --- a/tests/america/manaus.js +++ /dev/null @@ -1,254 +0,0 @@ -var moment = require("../../index"); - -exports["America/Manaus"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T04:00:03+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1914-01-01T04:00:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T04:00:04+00:00").tz("America/Manaus").format("HH:mm:ss"), "00:00:04", "1914-01-01T04:00:04+00:00 should be 00:00:04 AMT"); - - t.equal(moment("1914-01-01T04:00:03+00:00").tz("America/Manaus").zone(), 14404 / 60, "1914-01-01T04:00:03+00:00 should be 14404 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T04:00:04+00:00").tz("America/Manaus").zone(), 240, "1914-01-01T04:00:04+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "10:59:59", "1931-10-03T14:59:59+00:00 should be 10:59:59 AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "12:00:00", "1931-10-03T15:00:00+00:00 should be 12:00:00 AMST"); - - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Manaus").zone(), 240, "1931-10-03T14:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Manaus").zone(), 180, "1931-10-03T15:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1932-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1932-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1932-10-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1932-10-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1932-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1932-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1932-10-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1932-10-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1933-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1933-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1933-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1933-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1949-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1949-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1949-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1949-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "00:59:59", "1950-04-16T03:59:59+00:00 should be 00:59:59 AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "00:00:00", "1950-04-16T04:00:00+00:00 should be 00:00:00 AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1950-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1950-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Manaus").zone(), 180, "1950-04-16T03:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Manaus").zone(), 240, "1950-04-16T04:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1950-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1950-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1951-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1951-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1951-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1951-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1951-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1951-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1951-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1951-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1952-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1952-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1952-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1952-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1952-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1952-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1952-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1952-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1953-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1953-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1953-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1953-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1963-12-09T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1963-12-09T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1963-12-09T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1963-12-09T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1965-01-31T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1965-01-31T04:00:00+00:00 should be 01:00:00 AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1965-03-31T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1965-03-31T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1965-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1965-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1965-01-31T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1965-01-31T04:00:00+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1965-03-31T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1965-03-31T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1965-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1965-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1966-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1966-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1966-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1966-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1967-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1967-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1967-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1967-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1967-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1967-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1967-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1967-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1968-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1968-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1968-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1968-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1985-11-02T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1985-11-02T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1985-11-02T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1985-11-02T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1986-03-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1986-03-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1986-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1986-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1986-03-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1986-03-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1986-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1986-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1987-02-14T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1987-02-14T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1987-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1987-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1987-02-14T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1987-02-14T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1987-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1987-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1988-02-07T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1988-02-07T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1988-02-07T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1988-02-07T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-10-17T03:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1993-10-17T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1993-10-17T04:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "01:00:00", "1993-10-17T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1993-10-17T03:59:59+00:00").tz("America/Manaus").zone(), 240, "1993-10-17T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1993-10-17T04:00:00+00:00").tz("America/Manaus").zone(), 180, "1993-10-17T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-02-20T02:59:59+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:59:59", "1994-02-20T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1994-02-20T03:00:00+00:00").tz("America/Manaus").format("HH:mm:ss"), "23:00:00", "1994-02-20T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1994-02-20T02:59:59+00:00").tz("America/Manaus").zone(), 180, "1994-02-20T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1994-02-20T03:00:00+00:00").tz("America/Manaus").zone(), 240, "1994-02-20T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/martinique.js b/tests/america/martinique.js deleted file mode 100644 index 9d274cc0..00000000 --- a/tests/america/martinique.js +++ /dev/null @@ -1,28 +0,0 @@ -var moment = require("../../index"); - -exports["America/Martinique"] = { - - "1911" : function (t) { - t.equal(moment("1911-05-01T04:04:19+00:00").tz("America/Martinique").format("HH:mm:ss"), "23:59:59", "1911-05-01T04:04:19+00:00 should be 23:59:59 FFMT"); - t.equal(moment("1911-05-01T04:04:20+00:00").tz("America/Martinique").format("HH:mm:ss"), "00:04:20", "1911-05-01T04:04:20+00:00 should be 00:04:20 AST"); - - t.equal(moment("1911-05-01T04:04:19+00:00").tz("America/Martinique").zone(), 14660 / 60, "1911-05-01T04:04:19+00:00 should be 14660 / 60 minutes offset in FFMT"); - t.equal(moment("1911-05-01T04:04:20+00:00").tz("America/Martinique").zone(), 240, "1911-05-01T04:04:20+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T03:59:59+00:00").tz("America/Martinique").format("HH:mm:ss"), "23:59:59", "1980-04-06T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1980-04-06T04:00:00+00:00").tz("America/Martinique").format("HH:mm:ss"), "01:00:00", "1980-04-06T04:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1980-09-28T02:59:59+00:00").tz("America/Martinique").format("HH:mm:ss"), "23:59:59", "1980-09-28T02:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1980-09-28T03:00:00+00:00").tz("America/Martinique").format("HH:mm:ss"), "23:00:00", "1980-09-28T03:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1980-04-06T03:59:59+00:00").tz("America/Martinique").zone(), 240, "1980-04-06T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1980-04-06T04:00:00+00:00").tz("America/Martinique").zone(), 180, "1980-04-06T04:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-09-28T02:59:59+00:00").tz("America/Martinique").zone(), 180, "1980-09-28T02:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-09-28T03:00:00+00:00").tz("America/Martinique").zone(), 240, "1980-09-28T03:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/matamoros.js b/tests/america/matamoros.js deleted file mode 100644 index 2468acd7..00000000 --- a/tests/america/matamoros.js +++ /dev/null @@ -1,616 +0,0 @@ -var moment = require("../../index"); - -exports["America/Matamoros"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "23:19:59", "1922-01-01T05:59:59+00:00 should be 23:19:59 LMT"); - t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "00:00:00", "1922-01-01T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Matamoros").zone(), 400, "1922-01-01T05:59:59+00:00 should be 400 minutes offset in LMT"); - t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Matamoros").zone(), 360, "1922-01-01T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2001-05-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2001-05-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2001-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2001-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2001-05-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2001-05-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2001-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2001-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2007-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2007-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2007-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2007-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2007-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2007-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2007-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2007-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2008-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2008-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2008-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2008-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2008-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2008-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2008-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2008-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2009-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2009-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2009-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2009-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2009-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2009-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2009-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2009-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Matamoros").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Matamoros").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Matamoros").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Matamoros").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Matamoros").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/mazatlan.js b/tests/america/mazatlan.js deleted file mode 100644 index df5bb6a5..00000000 --- a/tests/america/mazatlan.js +++ /dev/null @@ -1,676 +0,0 @@ -var moment = require("../../index"); - -exports["America/Mazatlan"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:54:19", "1922-01-01T06:59:59+00:00 should be 23:54:19 LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "00:00:00", "1922-01-01T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Mazatlan").zone(), 25540 / 60, "1922-01-01T06:59:59+00:00 should be 25540 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Mazatlan").zone(), 420, "1922-01-01T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "22:59:59", "1927-06-11T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "00:00:00", "1927-06-11T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Mazatlan").zone(), 420, "1927-06-11T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Mazatlan").zone(), 360, "1927-06-11T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:59:59", "1930-11-15T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:00:00", "1930-11-15T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Mazatlan").zone(), 360, "1930-11-15T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Mazatlan").zone(), 420, "1930-11-15T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "22:59:59", "1931-05-02T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "00:00:00", "1931-05-02T06:00:00+00:00 should be 00:00:00 CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:59:59", "1931-10-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:00:00", "1931-10-01T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Mazatlan").zone(), 420, "1931-05-02T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Mazatlan").zone(), 360, "1931-05-02T06:00:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Mazatlan").zone(), 360, "1931-10-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Mazatlan").zone(), 420, "1931-10-01T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:59:59", "1932-04-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "1932-04-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Mazatlan").zone(), 420, "1932-04-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Mazatlan").zone(), 360, "1932-04-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-24T05:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:59:59", "1942-04-24T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1942-04-24T06:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:00:00", "1942-04-24T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1942-04-24T05:59:59+00:00").tz("America/Mazatlan").zone(), 360, "1942-04-24T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-04-24T06:00:00+00:00").tz("America/Mazatlan").zone(), 420, "1942-04-24T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:59:59", "1949-01-14T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:00:00", "1949-01-14T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Mazatlan").zone(), 420, "1949-01-14T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Mazatlan").zone(), 480, "1949-01-14T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-01-01T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "23:59:59", "1970-01-01T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1970-01-01T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "1970-01-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1970-01-01T07:59:59+00:00").tz("America/Mazatlan").zone(), 480, "1970-01-01T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-01-01T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "1970-01-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-05-06T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2001-05-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-05-06T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2001-05-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-09-30T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2001-09-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-09-30T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2001-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-05-06T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2001-05-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-05-06T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2001-05-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-09-30T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2001-09-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-09-30T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2001-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2007-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-04-01T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2007-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-10-28T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2007-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-10-28T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2007-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-04-01T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2007-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-04-01T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2007-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-10-28T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2007-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-10-28T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2007-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2008-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-04-06T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2008-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-10-26T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2008-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-10-26T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2008-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-04-06T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2008-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-04-06T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2008-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-10-26T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2008-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-10-26T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2008-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2009-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-04-05T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2009-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-10-25T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2009-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-10-25T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2009-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-04-05T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2009-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-04-05T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2009-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-10-25T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2009-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-10-25T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2009-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2010-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-04-04T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2010-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-10-31T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2010-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-10-31T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2010-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-04-04T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2010-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-04-04T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2010-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-10-31T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2010-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-10-31T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2010-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-03T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2011-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-04-03T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2011-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-10-30T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2011-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-10-30T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2011-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-04-03T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2011-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-04-03T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2011-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-10-30T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2011-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-10-30T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2011-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-01T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2012-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-04-01T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2012-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-10-28T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2012-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-10-28T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2012-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-04-01T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2012-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-04-01T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2012-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-10-28T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2012-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-10-28T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2012-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-07T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2013-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-04-07T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2013-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-10-27T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2013-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-10-27T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2013-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-04-07T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2013-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-04-07T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2013-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-10-27T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2013-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-10-27T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2013-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-06T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2014-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-04-06T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2014-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-10-26T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2014-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-10-26T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2014-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-04-06T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2014-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-04-06T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2014-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-10-26T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2014-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-10-26T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2014-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-05T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2015-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-04-05T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2015-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-10-25T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2015-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-10-25T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2015-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-04-05T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2015-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-04-05T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2015-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-10-25T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2015-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-10-25T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2015-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-03T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2016-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-04-03T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2016-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-10-30T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2016-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-10-30T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2016-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-04-03T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2016-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-04-03T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2016-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-10-30T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2016-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-10-30T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2016-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-02T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2017-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-04-02T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2017-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-10-29T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2017-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-10-29T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2017-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-04-02T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2017-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-04-02T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2017-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-10-29T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2017-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-10-29T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2017-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-01T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2018-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-04-01T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2018-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-10-28T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2018-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-10-28T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2018-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-04-01T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2018-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-04-01T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2018-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-10-28T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2018-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-10-28T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2018-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-07T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2019-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-04-07T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2019-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-10-27T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2019-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-10-27T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2019-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-04-07T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2019-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-04-07T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2019-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-10-27T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2019-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-10-27T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2019-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-05T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2020-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-04-05T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2020-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-10-25T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2020-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-10-25T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2020-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-04-05T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2020-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-04-05T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2020-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-10-25T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2020-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-10-25T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2020-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-04T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2021-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-04-04T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2021-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-10-31T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2021-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-10-31T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2021-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-04-04T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2021-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-04-04T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2021-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-10-31T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2021-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-10-31T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2021-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-03T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2022-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-04-03T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2022-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-10-30T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2022-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-10-30T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2022-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-04-03T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2022-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-04-03T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2022-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-10-30T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2022-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-10-30T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2022-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-02T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2023-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-04-02T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2023-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-10-29T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2023-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-10-29T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2023-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-04-02T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2023-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-04-02T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2023-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-10-29T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2023-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-10-29T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2023-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-07T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2024-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-04-07T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2024-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-10-27T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2024-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-10-27T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2024-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-04-07T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2024-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-04-07T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2024-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-10-27T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2024-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-10-27T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2024-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-06T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2025-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-04-06T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2025-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-10-26T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2025-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-10-26T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2025-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-04-06T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2025-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-04-06T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2025-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-10-26T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2025-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-10-26T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2025-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-05T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2026-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-04-05T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2026-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-10-25T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2026-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-10-25T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2026-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-04-05T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2026-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-04-05T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2026-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-10-25T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2026-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-10-25T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2026-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-04T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2027-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-04-04T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2027-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-10-31T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2027-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-10-31T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2027-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-04-04T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2027-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-04-04T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2027-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-10-31T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2027-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-10-31T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2027-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-02T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2028-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-04-02T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2028-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-10-29T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2028-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-10-29T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2028-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-04-02T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2028-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-04-02T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2028-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-10-29T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2028-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-10-29T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2028-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-01T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2029-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-04-01T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2029-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-10-28T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2029-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-10-28T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2029-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-04-01T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2029-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-04-01T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2029-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-10-28T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2029-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-10-28T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2029-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-07T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2030-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-04-07T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2030-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-10-27T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2030-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-10-27T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2030-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-04-07T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2030-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-04-07T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2030-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-10-27T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2030-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-10-27T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2030-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-06T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2031-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-04-06T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2031-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-10-26T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2031-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-10-26T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2031-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-04-06T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2031-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-04-06T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2031-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-10-26T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2031-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-10-26T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2031-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-04T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2032-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-04-04T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2032-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-10-31T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2032-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-10-31T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2032-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-04-04T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2032-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-04-04T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2032-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-10-31T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2032-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-10-31T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2032-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-03T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2033-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-04-03T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2033-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-10-30T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2033-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-10-30T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2033-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-04-03T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2033-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-04-03T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2033-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-10-30T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2033-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-10-30T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2033-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-02T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2034-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-04-02T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2034-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-10-29T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2034-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-10-29T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2034-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-04-02T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2034-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-04-02T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2034-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-10-29T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2034-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-10-29T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2034-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-01T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2035-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-04-01T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2035-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-10-28T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2035-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-10-28T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2035-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-04-01T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2035-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-04-01T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2035-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-10-28T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2035-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-10-28T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2035-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-06T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2036-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-04-06T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2036-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-10-26T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2036-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-10-26T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2036-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-04-06T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2036-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-04-06T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2036-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-10-26T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2036-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-10-26T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2036-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-05T08:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2037-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-04-05T09:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "03:00:00", "2037-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-10-25T07:59:59+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:59:59", "2037-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-10-25T08:00:00+00:00").tz("America/Mazatlan").format("HH:mm:ss"), "01:00:00", "2037-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-04-05T08:59:59+00:00").tz("America/Mazatlan").zone(), 420, "2037-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-04-05T09:00:00+00:00").tz("America/Mazatlan").zone(), 360, "2037-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-10-25T07:59:59+00:00").tz("America/Mazatlan").zone(), 360, "2037-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-10-25T08:00:00+00:00").tz("America/Mazatlan").zone(), 420, "2037-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/menominee.js b/tests/america/menominee.js deleted file mode 100644 index 7bda9507..00000000 --- a/tests/america/menominee.js +++ /dev/null @@ -1,1004 +0,0 @@ -var moment = require("../../index"); - -exports["America/Menominee"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Menominee").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Menominee").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1946-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1946-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1946-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1946-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1946-04-28T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1946-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1946-04-28T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1946-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1946-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-09-29T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1946-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1966-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1966-04-24T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1966-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1966-10-30T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1966-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1966-10-30T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1966-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1966-04-24T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1966-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1966-04-24T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1966-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1966-10-30T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1966-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1966-10-30T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1966-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1969-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1969-04-27T08:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1969-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1969-04-27T08:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "02:00:00", "1973-04-29T07:00:00+00:00 should be 02:00:00 CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1973-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1973-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Menominee").zone(), 300, "1973-04-29T07:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1973-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1973-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1974-01-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1974-01-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1974-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1974-01-06T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1974-01-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1974-01-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1974-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1975-02-23T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1975-02-23T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1975-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1975-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1975-02-23T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1975-02-23T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1975-02-23T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1975-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1975-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1976-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1976-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1976-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1976-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1976-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1976-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1976-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1976-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1977-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1977-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1977-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1977-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1977-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1977-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1977-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1977-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1978-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1978-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1978-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1978-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1978-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1978-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1978-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1978-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1979-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1979-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1979-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1979-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1979-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1979-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1979-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1979-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1980-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1980-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1980-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1980-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1981-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1981-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1981-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1981-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1982-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1982-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1982-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1982-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1983-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1983-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1983-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1983-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1984-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1984-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1984-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1984-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1985-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1985-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1985-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1985-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1985-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1985-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1986-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1986-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1986-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1986-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1986-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1986-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1986-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1986-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1987-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1987-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1987-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1987-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1987-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1987-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1987-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1987-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1989-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1989-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1989-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1989-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1989-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1989-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1989-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1989-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1990-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1990-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1990-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1990-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1990-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1990-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1990-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1990-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1991-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1991-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1991-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1991-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1991-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1991-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1991-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1991-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1992-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1992-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1992-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1992-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1992-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1992-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1992-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1992-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1993-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1993-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1993-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1993-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1993-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1993-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1993-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1993-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1994-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1994-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1994-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1994-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1994-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1994-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1994-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1994-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1995-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1995-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1995-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1995-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1995-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1995-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1995-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1995-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Menominee").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Menominee").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Menominee").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Menominee").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2001-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2001-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2001-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2001-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2001-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2001-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2001-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2001-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Menominee").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Menominee").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Menominee").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Menominee").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Menominee").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/merida.js b/tests/america/merida.js deleted file mode 100644 index 7dc6424e..00000000 --- a/tests/america/merida.js +++ /dev/null @@ -1,622 +0,0 @@ -var moment = require("../../index"); - -exports["America/Merida"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "00:01:31", "1922-01-01T05:59:59+00:00 should be 00:01:31 LMT"); - t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "00:00:00", "1922-01-01T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Merida").zone(), 21508 / 60, "1922-01-01T05:59:59+00:00 should be 21508 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Merida").zone(), 360, "1922-01-01T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-12-23T05:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "23:59:59", "1981-12-23T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1981-12-23T06:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "1981-12-23T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-12-23T05:59:59+00:00").tz("America/Merida").zone(), 360, "1981-12-23T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-12-23T06:00:00+00:00").tz("America/Merida").zone(), 300, "1981-12-23T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-12-02T04:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "23:59:59", "1982-12-02T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1982-12-02T05:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "23:00:00", "1982-12-02T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1982-12-02T04:59:59+00:00").tz("America/Merida").zone(), 300, "1982-12-02T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-12-02T05:00:00+00:00").tz("America/Merida").zone(), 360, "1982-12-02T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Merida").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Merida").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Merida").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Merida").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Merida").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Merida").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Merida").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Merida").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Merida").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Merida").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Merida").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Merida").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Merida").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Merida").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Merida").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Merida").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Merida").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Merida").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Merida").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Merida").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2001-05-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2001-05-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2001-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2001-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Merida").zone(), 360, "2001-05-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Merida").zone(), 300, "2001-05-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Merida").zone(), 300, "2001-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Merida").zone(), 360, "2001-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Merida").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Merida").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Merida").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Merida").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Merida").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Merida").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Merida").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Merida").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Merida").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Merida").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Merida").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Merida").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Merida").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Merida").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Merida").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Merida").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Merida").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Merida").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Merida").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Merida").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2007-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2007-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2007-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2007-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Merida").zone(), 360, "2007-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Merida").zone(), 300, "2007-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Merida").zone(), 300, "2007-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Merida").zone(), 360, "2007-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2008-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2008-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2008-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2008-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Merida").zone(), 360, "2008-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Merida").zone(), 300, "2008-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Merida").zone(), 300, "2008-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Merida").zone(), 360, "2008-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2009-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2009-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2009-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2009-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Merida").zone(), 360, "2009-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Merida").zone(), 300, "2009-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Merida").zone(), 300, "2009-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Merida").zone(), 360, "2009-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2010-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2010-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2010-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2010-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Merida").zone(), 360, "2010-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Merida").zone(), 300, "2010-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Merida").zone(), 300, "2010-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Merida").zone(), 360, "2010-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2011-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2011-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2011-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2011-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Merida").zone(), 360, "2011-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Merida").zone(), 300, "2011-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Merida").zone(), 300, "2011-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Merida").zone(), 360, "2011-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2012-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2012-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2012-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2012-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Merida").zone(), 360, "2012-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Merida").zone(), 300, "2012-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Merida").zone(), 300, "2012-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Merida").zone(), 360, "2012-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2013-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2013-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2013-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2013-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Merida").zone(), 360, "2013-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Merida").zone(), 300, "2013-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Merida").zone(), 300, "2013-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Merida").zone(), 360, "2013-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2014-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2014-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2014-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2014-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Merida").zone(), 360, "2014-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Merida").zone(), 300, "2014-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Merida").zone(), 300, "2014-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Merida").zone(), 360, "2014-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2015-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2015-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2015-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2015-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Merida").zone(), 360, "2015-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Merida").zone(), 300, "2015-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Merida").zone(), 300, "2015-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Merida").zone(), 360, "2015-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2016-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2016-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2016-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2016-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Merida").zone(), 360, "2016-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Merida").zone(), 300, "2016-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Merida").zone(), 300, "2016-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Merida").zone(), 360, "2016-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2017-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2017-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2017-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2017-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Merida").zone(), 360, "2017-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Merida").zone(), 300, "2017-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Merida").zone(), 300, "2017-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Merida").zone(), 360, "2017-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2018-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2018-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2018-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2018-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Merida").zone(), 360, "2018-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Merida").zone(), 300, "2018-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Merida").zone(), 300, "2018-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Merida").zone(), 360, "2018-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2019-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2019-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2019-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2019-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Merida").zone(), 360, "2019-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Merida").zone(), 300, "2019-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Merida").zone(), 300, "2019-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Merida").zone(), 360, "2019-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2020-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2020-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2020-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2020-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Merida").zone(), 360, "2020-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Merida").zone(), 300, "2020-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Merida").zone(), 300, "2020-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Merida").zone(), 360, "2020-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2021-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2021-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2021-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2021-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Merida").zone(), 360, "2021-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Merida").zone(), 300, "2021-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Merida").zone(), 300, "2021-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Merida").zone(), 360, "2021-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2022-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2022-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2022-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2022-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Merida").zone(), 360, "2022-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Merida").zone(), 300, "2022-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Merida").zone(), 300, "2022-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Merida").zone(), 360, "2022-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2023-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2023-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2023-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2023-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Merida").zone(), 360, "2023-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Merida").zone(), 300, "2023-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Merida").zone(), 300, "2023-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Merida").zone(), 360, "2023-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2024-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2024-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2024-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2024-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Merida").zone(), 360, "2024-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Merida").zone(), 300, "2024-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Merida").zone(), 300, "2024-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Merida").zone(), 360, "2024-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2025-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2025-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2025-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2025-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Merida").zone(), 360, "2025-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Merida").zone(), 300, "2025-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Merida").zone(), 300, "2025-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Merida").zone(), 360, "2025-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2026-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2026-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2026-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2026-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Merida").zone(), 360, "2026-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Merida").zone(), 300, "2026-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Merida").zone(), 300, "2026-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Merida").zone(), 360, "2026-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2027-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2027-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2027-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2027-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Merida").zone(), 360, "2027-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Merida").zone(), 300, "2027-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Merida").zone(), 300, "2027-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Merida").zone(), 360, "2027-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2028-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2028-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2028-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2028-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Merida").zone(), 360, "2028-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Merida").zone(), 300, "2028-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Merida").zone(), 300, "2028-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Merida").zone(), 360, "2028-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2029-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2029-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2029-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2029-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Merida").zone(), 360, "2029-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Merida").zone(), 300, "2029-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Merida").zone(), 300, "2029-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Merida").zone(), 360, "2029-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2030-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2030-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2030-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2030-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Merida").zone(), 360, "2030-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Merida").zone(), 300, "2030-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Merida").zone(), 300, "2030-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Merida").zone(), 360, "2030-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2031-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2031-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2031-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2031-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Merida").zone(), 360, "2031-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Merida").zone(), 300, "2031-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Merida").zone(), 300, "2031-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Merida").zone(), 360, "2031-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2032-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2032-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2032-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2032-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Merida").zone(), 360, "2032-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Merida").zone(), 300, "2032-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Merida").zone(), 300, "2032-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Merida").zone(), 360, "2032-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2033-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2033-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2033-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2033-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Merida").zone(), 360, "2033-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Merida").zone(), 300, "2033-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Merida").zone(), 300, "2033-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Merida").zone(), 360, "2033-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2034-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2034-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2034-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2034-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Merida").zone(), 360, "2034-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Merida").zone(), 300, "2034-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Merida").zone(), 300, "2034-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Merida").zone(), 360, "2034-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2035-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2035-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2035-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2035-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Merida").zone(), 360, "2035-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Merida").zone(), 300, "2035-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Merida").zone(), 300, "2035-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Merida").zone(), 360, "2035-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2036-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2036-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2036-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2036-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Merida").zone(), 360, "2036-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Merida").zone(), 300, "2036-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Merida").zone(), 300, "2036-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Merida").zone(), 360, "2036-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2037-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "03:00:00", "2037-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Merida").format("HH:mm:ss"), "01:59:59", "2037-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Merida").format("HH:mm:ss"), "01:00:00", "2037-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Merida").zone(), 360, "2037-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Merida").zone(), 300, "2037-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Merida").zone(), 300, "2037-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Merida").zone(), 360, "2037-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/metlakatla.js b/tests/america/metlakatla.js deleted file mode 100644 index a9efcf15..00000000 --- a/tests/america/metlakatla.js +++ /dev/null @@ -1,238 +0,0 @@ -var moment = require("../../index"); - -exports["America/Metlakatla"] = { - - "1942" : function (t) { - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1942-02-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1942-02-09T10:00:00+00:00 should be 03:00:00 PWT"); - - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1942-02-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1942-02-09T10:00:00+00:00 should be 420 minutes offset in PWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "15:59:59", "1945-08-14T22:59:59+00:00 should be 15:59:59 PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "16:00:00", "1945-08-14T23:00:00+00:00 should be 16:00:00 PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1945-09-30T08:59:59+00:00 should be 01:59:59 PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1945-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1945-08-14T22:59:59+00:00 should be 420 minutes offset in PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1945-08-14T23:00:00+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1945-09-30T08:59:59+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1945-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1969-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1969-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1969-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1969-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1969-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1969-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1969-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1969-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1970-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1970-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1970-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1970-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1970-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1970-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1970-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1970-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1971-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1971-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1971-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1971-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1971-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1971-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1971-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1971-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1972-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1972-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1972-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1972-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1972-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1972-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1972-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1972-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1973-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1973-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1973-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1973-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1973-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1973-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1973-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1973-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1974-01-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1974-01-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1974-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1974-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1974-01-06T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1974-01-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1974-01-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1974-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1974-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1975-02-23T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1975-02-23T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1975-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1975-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1975-02-23T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1975-02-23T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1975-02-23T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1975-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1975-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1976-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1976-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1976-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1976-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1976-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1976-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1976-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1976-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1977-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1977-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1977-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1977-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1977-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1977-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1977-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1977-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1978-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1978-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1978-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1978-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1978-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1978-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1978-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1978-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1979-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1979-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1979-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1979-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1979-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1979-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1979-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1979-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1980-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1980-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1980-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1980-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1980-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1980-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Metlakatla").format("HH:mm:ss"), "01:00:00", "1983-10-30T09:00:00+00:00 should be 01:00:00 MeST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Metlakatla").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Metlakatla").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Metlakatla").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Metlakatla").zone(), 480, "1983-10-30T09:00:00+00:00 should be 480 minutes offset in MeST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/mexico_city.js b/tests/america/mexico_city.js deleted file mode 100644 index e9a998e8..00000000 --- a/tests/america/mexico_city.js +++ /dev/null @@ -1,714 +0,0 @@ -var moment = require("../../index"); - -exports["America/Mexico_City"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "00:23:23", "1922-01-01T06:59:59+00:00 should be 00:23:23 LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "00:00:00", "1922-01-01T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Mexico_City").zone(), 23796 / 60, "1922-01-01T06:59:59+00:00 should be 23796 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Mexico_City").zone(), 420, "1922-01-01T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "22:59:59", "1927-06-11T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "00:00:00", "1927-06-11T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Mexico_City").zone(), 420, "1927-06-11T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1927-06-11T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1930-11-15T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:00:00", "1930-11-15T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1930-11-15T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Mexico_City").zone(), 420, "1930-11-15T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "22:59:59", "1931-05-02T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "00:00:00", "1931-05-02T06:00:00+00:00 should be 00:00:00 CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1931-10-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:00:00", "1931-10-01T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Mexico_City").zone(), 420, "1931-05-02T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1931-05-02T06:00:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1931-10-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Mexico_City").zone(), 420, "1931-10-01T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1932-04-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "1932-04-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Mexico_City").zone(), 420, "1932-04-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1932-04-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-02-05T05:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1939-02-05T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1939-02-05T06:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "1939-02-05T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1939-06-25T04:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1939-06-25T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1939-06-25T05:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:00:00", "1939-06-25T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1939-02-05T05:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1939-02-05T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1939-02-05T06:00:00+00:00").tz("America/Mexico_City").zone(), 300, "1939-02-05T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1939-06-25T04:59:59+00:00").tz("America/Mexico_City").zone(), 300, "1939-06-25T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1939-06-25T05:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1939-06-25T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-12-09T05:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1940-12-09T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1940-12-09T06:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "1940-12-09T06:00:00+00:00 should be 01:00:00 CDT"); - - t.equal(moment("1940-12-09T05:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1940-12-09T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1940-12-09T06:00:00+00:00").tz("America/Mexico_City").zone(), 300, "1940-12-09T06:00:00+00:00 should be 300 minutes offset in CDT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-01T04:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1941-04-01T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1941-04-01T05:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:00:00", "1941-04-01T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1941-04-01T04:59:59+00:00").tz("America/Mexico_City").zone(), 300, "1941-04-01T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1941-04-01T05:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1941-04-01T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-12-16T05:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1943-12-16T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1943-12-16T06:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "1943-12-16T06:00:00+00:00 should be 01:00:00 CWT"); - - t.equal(moment("1943-12-16T05:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1943-12-16T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1943-12-16T06:00:00+00:00").tz("America/Mexico_City").zone(), 300, "1943-12-16T06:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-05-01T04:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1944-05-01T04:59:59+00:00 should be 23:59:59 CWT"); - t.equal(moment("1944-05-01T05:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:00:00", "1944-05-01T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1944-05-01T04:59:59+00:00").tz("America/Mexico_City").zone(), 300, "1944-05-01T04:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1944-05-01T05:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1944-05-01T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-02-12T05:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1950-02-12T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1950-02-12T06:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "1950-02-12T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1950-07-30T04:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:59:59", "1950-07-30T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1950-07-30T05:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "23:00:00", "1950-07-30T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1950-02-12T05:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1950-02-12T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1950-02-12T06:00:00+00:00").tz("America/Mexico_City").zone(), 300, "1950-02-12T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-07-30T04:59:59+00:00").tz("America/Mexico_City").zone(), 300, "1950-07-30T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-07-30T05:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1950-07-30T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2001-05-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2001-05-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2001-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2001-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2001-05-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2001-05-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2001-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2001-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2007-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2007-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2007-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2007-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2007-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2007-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2007-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2007-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2008-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2008-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2008-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2008-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2008-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2008-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2008-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2008-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2009-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2009-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2009-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2009-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2009-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2009-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2009-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2009-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2010-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2010-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2010-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2010-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2010-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2010-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2010-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2010-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2011-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2011-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2011-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2011-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2011-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2011-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2011-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2011-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2012-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2012-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2012-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2012-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2012-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2012-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2012-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2012-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2013-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2013-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2013-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2013-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2013-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2013-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2013-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2013-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2014-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2014-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2014-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2014-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2014-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2014-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2014-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2014-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2015-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2015-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2015-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2015-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2015-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2015-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2015-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2015-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2016-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2016-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2016-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2016-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2016-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2016-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2016-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2016-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2017-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2017-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2017-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2017-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2017-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2017-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2017-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2017-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2018-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2018-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2018-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2018-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2018-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2018-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2018-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2018-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2019-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2019-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2019-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2019-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2019-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2019-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2019-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2019-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2020-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2020-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2020-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2020-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2020-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2020-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2020-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2020-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2021-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2021-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2021-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2021-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2021-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2021-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2021-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2021-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2022-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2022-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2022-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2022-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2022-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2022-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2022-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2022-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2023-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2023-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2023-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2023-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2023-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2023-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2023-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2023-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2024-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2024-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2024-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2024-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2024-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2024-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2024-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2024-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2025-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2025-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2025-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2025-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2025-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2025-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2025-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2025-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2026-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2026-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2026-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2026-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2026-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2026-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2026-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2026-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2027-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2027-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2027-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2027-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2027-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2027-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2027-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2027-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2028-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2028-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2028-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2028-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2028-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2028-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2028-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2028-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2029-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2029-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2029-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2029-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2029-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2029-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2029-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2029-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2030-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2030-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2030-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2030-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2030-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2030-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2030-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2030-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2031-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2031-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2031-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2031-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2031-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2031-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2031-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2031-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2032-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2032-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2032-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2032-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2032-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2032-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2032-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2032-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2033-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2033-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2033-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2033-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2033-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2033-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2033-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2033-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2034-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2034-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2034-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2034-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2034-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2034-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2034-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2034-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2035-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2035-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2035-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2035-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2035-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2035-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2035-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2035-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2036-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2036-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2036-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2036-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2036-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2036-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2036-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2036-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2037-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "03:00:00", "2037-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:59:59", "2037-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Mexico_City").format("HH:mm:ss"), "01:00:00", "2037-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Mexico_City").zone(), 360, "2037-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Mexico_City").zone(), 300, "2037-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Mexico_City").zone(), 300, "2037-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Mexico_City").zone(), 360, "2037-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/miquelon.js b/tests/america/miquelon.js deleted file mode 100644 index 6caea333..00000000 --- a/tests/america/miquelon.js +++ /dev/null @@ -1,738 +0,0 @@ -var moment = require("../../index"); - -exports["America/Miquelon"] = { - - "1911" : function (t) { - t.equal(moment("1911-05-15T03:44:39+00:00").tz("America/Miquelon").format("HH:mm:ss"), "23:59:59", "1911-05-15T03:44:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-05-15T03:44:40+00:00").tz("America/Miquelon").format("HH:mm:ss"), "23:44:40", "1911-05-15T03:44:40+00:00 should be 23:44:40 AST"); - - t.equal(moment("1911-05-15T03:44:39+00:00").tz("America/Miquelon").zone(), 13480 / 60, "1911-05-15T03:44:39+00:00 should be 13480 / 60 minutes offset in LMT"); - t.equal(moment("1911-05-15T03:44:40+00:00").tz("America/Miquelon").zone(), 240, "1911-05-15T03:44:40+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-05-01T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "23:59:59", "1980-05-01T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1980-05-01T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1980-05-01T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1980-05-01T03:59:59+00:00").tz("America/Miquelon").zone(), 240, "1980-05-01T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1980-05-01T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1980-05-01T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1987-04-05T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1987-04-05T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1987-04-05T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1987-10-25T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1987-10-25T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1987-04-05T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1987-04-05T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1987-04-05T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1987-04-05T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1987-10-25T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1987-10-25T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1988-04-03T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1988-04-03T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1988-04-03T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1988-10-30T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1988-10-30T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1988-10-30T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1988-10-30T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1988-04-03T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1988-04-03T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1988-04-03T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1988-04-03T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1988-10-30T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1988-10-30T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1988-10-30T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1988-10-30T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1989-04-02T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1989-04-02T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1989-04-02T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1989-10-29T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1989-10-29T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1989-10-29T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1989-10-29T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1989-04-02T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1989-04-02T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1989-04-02T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1989-04-02T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1989-10-29T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1989-10-29T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1989-10-29T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1989-10-29T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1990-04-01T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1990-04-01T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1990-04-01T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1990-10-28T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1990-10-28T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1990-10-28T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1990-10-28T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1990-04-01T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1990-04-01T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1990-04-01T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1990-04-01T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1990-10-28T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1990-10-28T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1990-10-28T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1990-10-28T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1991-04-07T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1991-04-07T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1991-04-07T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1991-10-27T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1991-10-27T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1991-10-27T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1991-10-27T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1991-04-07T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1991-04-07T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1991-04-07T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1991-04-07T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1991-10-27T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1991-10-27T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1991-10-27T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1991-10-27T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1992-04-05T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1992-04-05T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1992-04-05T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1992-10-25T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1992-10-25T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1992-10-25T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1992-10-25T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1992-04-05T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1992-04-05T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1992-04-05T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1992-04-05T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1992-10-25T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1992-10-25T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1992-10-25T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1992-10-25T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1993-04-04T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1993-04-04T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1993-04-04T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1993-10-31T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1993-10-31T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1993-10-31T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1993-10-31T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1993-04-04T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1993-04-04T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1993-04-04T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1993-04-04T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1993-10-31T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1993-10-31T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1993-10-31T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1993-10-31T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1994-04-03T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1994-04-03T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1994-04-03T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1994-10-30T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1994-10-30T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1994-10-30T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1994-10-30T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1994-04-03T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1994-04-03T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1994-04-03T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1994-04-03T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1994-10-30T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1994-10-30T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1994-10-30T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1994-10-30T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1995-04-02T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1995-04-02T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1995-04-02T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1995-10-29T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1995-10-29T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1995-10-29T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1995-10-29T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1995-04-02T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1995-04-02T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1995-04-02T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1995-04-02T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1995-10-29T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1995-10-29T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1995-10-29T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1995-10-29T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1996-04-07T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1996-04-07T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1996-04-07T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1996-10-27T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1996-10-27T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1996-10-27T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1996-10-27T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1996-04-07T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1996-04-07T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1996-04-07T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1996-04-07T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1996-10-27T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1996-10-27T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1996-10-27T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1996-10-27T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1997-04-06T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1997-04-06T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1997-04-06T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1997-10-26T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1997-10-26T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1997-10-26T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1997-10-26T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1997-04-06T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1997-04-06T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1997-04-06T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1997-04-06T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1997-10-26T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1997-10-26T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1997-10-26T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1997-10-26T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1998-04-05T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1998-04-05T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1998-04-05T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1998-10-25T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1998-10-25T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1998-10-25T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1998-10-25T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1998-04-05T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1998-04-05T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1998-04-05T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1998-04-05T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1998-10-25T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1998-10-25T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1998-10-25T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1998-10-25T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1999-04-04T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("1999-04-04T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "1999-04-04T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("1999-10-31T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "1999-10-31T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("1999-10-31T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "1999-10-31T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("1999-04-04T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "1999-04-04T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("1999-04-04T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "1999-04-04T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1999-10-31T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "1999-10-31T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("1999-10-31T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "1999-10-31T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2000-04-02T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2000-04-02T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2000-04-02T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2000-10-29T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2000-10-29T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2000-10-29T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2000-10-29T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2000-04-02T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2000-04-02T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2000-04-02T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2000-04-02T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2000-10-29T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2000-10-29T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2000-10-29T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2000-10-29T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2001-04-01T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2001-04-01T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2001-04-01T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2001-10-28T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2001-10-28T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2001-10-28T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2001-10-28T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2001-04-01T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2001-04-01T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2001-04-01T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2001-04-01T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2001-10-28T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2001-10-28T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2001-10-28T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2001-10-28T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2002-04-07T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2002-04-07T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2002-04-07T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2002-10-27T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2002-10-27T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2002-10-27T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2002-10-27T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2002-04-07T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2002-04-07T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2002-04-07T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2002-04-07T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2002-10-27T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2002-10-27T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2002-10-27T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2002-10-27T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2003-04-06T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2003-04-06T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2003-04-06T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2003-10-26T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2003-10-26T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2003-10-26T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2003-10-26T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2003-04-06T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2003-04-06T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2003-04-06T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2003-04-06T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2003-10-26T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2003-10-26T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2003-10-26T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2003-10-26T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2004-04-04T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2004-04-04T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2004-04-04T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2004-10-31T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2004-10-31T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2004-10-31T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2004-10-31T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2004-04-04T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2004-04-04T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2004-04-04T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2004-04-04T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2004-10-31T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2004-10-31T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2004-10-31T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2004-10-31T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2005-04-03T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2005-04-03T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2005-04-03T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2005-10-30T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2005-10-30T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2005-10-30T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2005-10-30T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2005-04-03T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2005-04-03T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2005-04-03T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2005-04-03T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2005-10-30T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2005-10-30T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2005-10-30T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2005-10-30T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2006-04-02T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2006-04-02T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2006-04-02T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2006-10-29T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2006-10-29T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2006-10-29T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2006-10-29T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2006-04-02T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2006-04-02T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2006-04-02T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2006-04-02T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2006-10-29T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2006-10-29T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2006-10-29T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2006-10-29T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2007-03-11T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2007-03-11T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2007-03-11T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2007-11-04T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2007-11-04T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2007-11-04T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2007-11-04T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2007-03-11T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2007-03-11T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2007-03-11T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2007-03-11T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2007-11-04T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2007-11-04T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2007-11-04T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2007-11-04T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2008-03-09T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2008-03-09T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2008-03-09T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2008-11-02T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2008-11-02T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2008-11-02T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2008-11-02T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2008-03-09T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2008-03-09T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2008-03-09T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2008-03-09T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2008-11-02T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2008-11-02T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2008-11-02T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2008-11-02T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2009-03-08T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2009-03-08T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2009-03-08T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2009-11-01T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2009-11-01T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2009-11-01T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2009-11-01T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2009-03-08T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2009-03-08T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2009-03-08T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2009-03-08T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2009-11-01T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2009-11-01T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2009-11-01T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2009-11-01T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2010-03-14T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2010-03-14T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2010-03-14T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2010-11-07T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2010-11-07T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2010-11-07T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2010-11-07T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2010-03-14T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2010-03-14T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2010-03-14T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2010-03-14T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2010-11-07T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2010-11-07T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2010-11-07T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2010-11-07T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2011-03-13T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2011-03-13T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2011-03-13T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2011-11-06T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2011-11-06T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2011-11-06T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2011-11-06T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2011-03-13T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2011-03-13T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2011-03-13T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2011-03-13T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2011-11-06T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2011-11-06T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2011-11-06T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2011-11-06T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2012-03-11T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2012-03-11T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2012-03-11T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2012-11-04T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2012-11-04T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2012-11-04T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2012-11-04T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2012-03-11T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2012-03-11T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2012-03-11T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2012-03-11T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2012-11-04T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2012-11-04T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2012-11-04T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2012-11-04T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2013-03-10T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2013-03-10T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2013-03-10T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2013-11-03T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2013-11-03T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2013-11-03T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2013-11-03T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2013-03-10T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2013-03-10T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2013-03-10T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2013-03-10T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2013-11-03T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2013-11-03T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2013-11-03T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2013-11-03T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2014-03-09T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2014-03-09T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2014-03-09T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2014-11-02T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2014-11-02T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2014-11-02T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2014-11-02T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2014-03-09T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2014-03-09T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2014-03-09T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2014-03-09T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2014-11-02T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2014-11-02T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2014-11-02T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2014-11-02T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2015-03-08T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2015-03-08T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2015-03-08T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2015-11-01T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2015-11-01T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2015-11-01T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2015-11-01T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2015-03-08T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2015-03-08T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2015-03-08T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2015-03-08T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2015-11-01T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2015-11-01T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2015-11-01T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2015-11-01T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2016-03-13T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2016-03-13T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2016-03-13T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2016-11-06T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2016-11-06T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2016-11-06T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2016-11-06T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2016-03-13T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2016-03-13T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2016-03-13T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2016-03-13T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2016-11-06T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2016-11-06T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2016-11-06T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2016-11-06T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2017-03-12T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2017-03-12T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2017-03-12T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2017-11-05T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2017-11-05T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2017-11-05T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2017-11-05T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2017-03-12T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2017-03-12T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2017-03-12T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2017-03-12T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2017-11-05T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2017-11-05T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2017-11-05T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2017-11-05T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2018-03-11T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2018-03-11T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2018-03-11T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2018-11-04T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2018-11-04T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2018-11-04T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2018-11-04T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2018-03-11T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2018-03-11T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2018-03-11T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2018-03-11T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2018-11-04T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2018-11-04T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2018-11-04T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2018-11-04T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2019-03-10T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2019-03-10T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2019-03-10T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2019-11-03T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2019-11-03T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2019-11-03T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2019-11-03T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2019-03-10T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2019-03-10T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2019-03-10T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2019-03-10T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2019-11-03T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2019-11-03T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2019-11-03T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2019-11-03T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2020-03-08T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2020-03-08T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2020-03-08T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2020-11-01T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2020-11-01T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2020-11-01T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2020-11-01T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2020-03-08T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2020-03-08T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2020-03-08T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2020-03-08T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2020-11-01T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2020-11-01T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2020-11-01T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2020-11-01T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2021-03-14T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2021-03-14T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2021-03-14T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2021-11-07T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2021-11-07T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2021-11-07T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2021-11-07T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2021-03-14T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2021-03-14T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2021-03-14T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2021-03-14T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2021-11-07T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2021-11-07T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2021-11-07T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2021-11-07T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2022-03-13T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2022-03-13T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2022-03-13T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2022-11-06T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2022-11-06T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2022-11-06T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2022-11-06T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2022-03-13T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2022-03-13T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2022-03-13T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2022-03-13T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2022-11-06T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2022-11-06T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2022-11-06T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2022-11-06T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2023-03-12T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2023-03-12T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2023-03-12T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2023-11-05T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2023-11-05T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2023-11-05T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2023-11-05T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2023-03-12T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2023-03-12T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2023-03-12T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2023-03-12T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2023-11-05T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2023-11-05T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2023-11-05T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2023-11-05T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2024-03-10T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2024-03-10T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2024-03-10T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2024-11-03T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2024-11-03T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2024-11-03T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2024-11-03T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2024-03-10T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2024-03-10T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2024-03-10T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2024-03-10T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2024-11-03T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2024-11-03T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2024-11-03T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2024-11-03T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2025-03-09T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2025-03-09T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2025-03-09T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2025-11-02T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2025-11-02T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2025-11-02T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2025-11-02T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2025-03-09T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2025-03-09T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2025-03-09T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2025-03-09T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2025-11-02T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2025-11-02T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2025-11-02T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2025-11-02T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2026-03-08T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2026-03-08T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2026-03-08T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2026-11-01T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2026-11-01T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2026-11-01T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2026-11-01T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2026-03-08T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2026-03-08T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2026-03-08T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2026-03-08T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2026-11-01T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2026-11-01T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2026-11-01T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2026-11-01T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2027-03-14T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2027-03-14T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2027-03-14T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2027-11-07T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2027-11-07T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2027-11-07T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2027-11-07T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2027-03-14T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2027-03-14T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2027-03-14T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2027-03-14T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2027-11-07T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2027-11-07T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2027-11-07T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2027-11-07T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2028-03-12T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2028-03-12T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2028-03-12T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2028-11-05T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2028-11-05T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2028-11-05T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2028-11-05T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2028-03-12T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2028-03-12T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2028-03-12T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2028-03-12T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2028-11-05T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2028-11-05T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2028-11-05T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2028-11-05T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2029-03-11T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2029-03-11T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2029-03-11T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2029-11-04T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2029-11-04T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2029-11-04T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2029-11-04T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2029-03-11T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2029-03-11T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2029-03-11T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2029-03-11T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2029-11-04T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2029-11-04T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2029-11-04T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2029-11-04T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2030-03-10T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2030-03-10T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2030-03-10T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2030-11-03T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2030-11-03T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2030-11-03T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2030-11-03T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2030-03-10T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2030-03-10T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2030-03-10T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2030-03-10T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2030-11-03T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2030-11-03T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2030-11-03T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2030-11-03T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2031-03-09T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2031-03-09T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2031-03-09T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2031-11-02T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2031-11-02T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2031-11-02T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2031-11-02T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2031-03-09T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2031-03-09T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2031-03-09T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2031-03-09T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2031-11-02T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2031-11-02T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2031-11-02T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2031-11-02T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2032-03-14T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2032-03-14T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2032-03-14T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2032-11-07T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2032-11-07T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2032-11-07T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2032-11-07T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2032-03-14T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2032-03-14T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2032-03-14T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2032-03-14T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2032-11-07T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2032-11-07T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2032-11-07T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2032-11-07T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2033-03-13T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2033-03-13T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2033-03-13T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2033-11-06T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2033-11-06T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2033-11-06T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2033-11-06T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2033-03-13T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2033-03-13T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2033-03-13T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2033-03-13T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2033-11-06T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2033-11-06T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2033-11-06T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2033-11-06T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2034-03-12T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2034-03-12T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2034-03-12T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2034-11-05T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2034-11-05T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2034-11-05T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2034-11-05T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2034-03-12T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2034-03-12T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2034-03-12T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2034-03-12T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2034-11-05T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2034-11-05T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2034-11-05T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2034-11-05T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2035-03-11T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2035-03-11T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2035-03-11T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2035-11-04T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2035-11-04T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2035-11-04T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2035-11-04T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2035-03-11T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2035-03-11T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2035-03-11T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2035-03-11T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2035-11-04T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2035-11-04T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2035-11-04T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2035-11-04T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2036-03-09T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2036-03-09T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2036-03-09T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2036-11-02T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2036-11-02T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2036-11-02T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2036-11-02T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2036-03-09T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2036-03-09T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2036-03-09T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2036-03-09T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2036-11-02T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2036-11-02T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2036-11-02T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2036-11-02T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T04:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2037-03-08T04:59:59+00:00 should be 01:59:59 PMST"); - t.equal(moment("2037-03-08T05:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "03:00:00", "2037-03-08T05:00:00+00:00 should be 03:00:00 PMDT"); - t.equal(moment("2037-11-01T03:59:59+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:59:59", "2037-11-01T03:59:59+00:00 should be 01:59:59 PMDT"); - t.equal(moment("2037-11-01T04:00:00+00:00").tz("America/Miquelon").format("HH:mm:ss"), "01:00:00", "2037-11-01T04:00:00+00:00 should be 01:00:00 PMST"); - - t.equal(moment("2037-03-08T04:59:59+00:00").tz("America/Miquelon").zone(), 180, "2037-03-08T04:59:59+00:00 should be 180 minutes offset in PMST"); - t.equal(moment("2037-03-08T05:00:00+00:00").tz("America/Miquelon").zone(), 120, "2037-03-08T05:00:00+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2037-11-01T03:59:59+00:00").tz("America/Miquelon").zone(), 120, "2037-11-01T03:59:59+00:00 should be 120 minutes offset in PMDT"); - t.equal(moment("2037-11-01T04:00:00+00:00").tz("America/Miquelon").zone(), 180, "2037-11-01T04:00:00+00:00 should be 180 minutes offset in PMST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/moncton.js b/tests/america/moncton.js deleted file mode 100644 index 4d00f965..00000000 --- a/tests/america/moncton.js +++ /dev/null @@ -1,1452 +0,0 @@ -var moment = require("../../index"); - -exports["America/Moncton"] = { - - "1902" : function (t) { - t.equal(moment("1902-06-15T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:59:59", "1902-06-15T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1902-06-15T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1902-06-15T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1902-06-15T04:59:59+00:00").tz("America/Moncton").zone(), 300, "1902-06-15T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1902-06-15T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1902-06-15T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-14T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1918-04-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1918-04-14T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1918-04-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1918-10-27T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1918-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1918-10-27T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1918-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1918-04-14T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1918-04-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1918-04-14T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1918-04-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1918-10-27T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1918-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1918-10-27T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1918-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-06-11T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1933-06-11T04:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1933-06-11T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "02:00:00", "1933-06-11T05:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1933-09-10T03:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1933-09-10T03:59:59+00:00 should be 00:59:59 ADT"); - t.equal(moment("1933-09-10T04:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:00", "1933-09-10T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1933-06-11T04:59:59+00:00").tz("America/Moncton").zone(), 240, "1933-06-11T04:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1933-06-11T05:00:00+00:00").tz("America/Moncton").zone(), 180, "1933-06-11T05:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1933-09-10T03:59:59+00:00").tz("America/Moncton").zone(), 180, "1933-09-10T03:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1933-09-10T04:00:00+00:00").tz("America/Moncton").zone(), 240, "1933-09-10T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-06-10T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1934-06-10T04:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1934-06-10T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "02:00:00", "1934-06-10T05:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1934-09-09T03:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1934-09-09T03:59:59+00:00 should be 00:59:59 ADT"); - t.equal(moment("1934-09-09T04:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:00", "1934-09-09T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1934-06-10T04:59:59+00:00").tz("America/Moncton").zone(), 240, "1934-06-10T04:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1934-06-10T05:00:00+00:00").tz("America/Moncton").zone(), 180, "1934-06-10T05:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1934-09-09T03:59:59+00:00").tz("America/Moncton").zone(), 180, "1934-09-09T03:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1934-09-09T04:00:00+00:00").tz("America/Moncton").zone(), 240, "1934-09-09T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-06-09T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1935-06-09T04:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1935-06-09T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "02:00:00", "1935-06-09T05:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1935-09-08T03:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1935-09-08T03:59:59+00:00 should be 00:59:59 ADT"); - t.equal(moment("1935-09-08T04:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:00", "1935-09-08T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1935-06-09T04:59:59+00:00").tz("America/Moncton").zone(), 240, "1935-06-09T04:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1935-06-09T05:00:00+00:00").tz("America/Moncton").zone(), 180, "1935-06-09T05:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1935-09-08T03:59:59+00:00").tz("America/Moncton").zone(), 180, "1935-09-08T03:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1935-09-08T04:00:00+00:00").tz("America/Moncton").zone(), 240, "1935-09-08T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-06-07T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1936-06-07T04:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1936-06-07T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "02:00:00", "1936-06-07T05:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1936-09-06T03:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1936-09-06T03:59:59+00:00 should be 00:59:59 ADT"); - t.equal(moment("1936-09-06T04:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:00", "1936-09-06T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1936-06-07T04:59:59+00:00").tz("America/Moncton").zone(), 240, "1936-06-07T04:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1936-06-07T05:00:00+00:00").tz("America/Moncton").zone(), 180, "1936-06-07T05:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1936-09-06T03:59:59+00:00").tz("America/Moncton").zone(), 180, "1936-09-06T03:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1936-09-06T04:00:00+00:00").tz("America/Moncton").zone(), 240, "1936-09-06T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-06-06T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1937-06-06T04:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1937-06-06T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "02:00:00", "1937-06-06T05:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1937-09-05T03:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1937-09-05T03:59:59+00:00 should be 00:59:59 ADT"); - t.equal(moment("1937-09-05T04:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:00", "1937-09-05T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1937-06-06T04:59:59+00:00").tz("America/Moncton").zone(), 240, "1937-06-06T04:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1937-06-06T05:00:00+00:00").tz("America/Moncton").zone(), 180, "1937-06-06T05:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1937-09-05T03:59:59+00:00").tz("America/Moncton").zone(), 180, "1937-09-05T03:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1937-09-05T04:00:00+00:00").tz("America/Moncton").zone(), 240, "1937-09-05T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-06-05T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1938-06-05T04:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1938-06-05T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "02:00:00", "1938-06-05T05:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1938-09-04T03:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1938-09-04T03:59:59+00:00 should be 00:59:59 ADT"); - t.equal(moment("1938-09-04T04:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:00", "1938-09-04T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1938-06-05T04:59:59+00:00").tz("America/Moncton").zone(), 240, "1938-06-05T04:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1938-06-05T05:00:00+00:00").tz("America/Moncton").zone(), 180, "1938-06-05T05:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1938-09-04T03:59:59+00:00").tz("America/Moncton").zone(), 180, "1938-09-04T03:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1938-09-04T04:00:00+00:00").tz("America/Moncton").zone(), 240, "1938-09-04T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-05-27T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1939-05-27T04:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1939-05-27T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "02:00:00", "1939-05-27T05:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1939-09-23T03:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1939-09-23T03:59:59+00:00 should be 00:59:59 ADT"); - t.equal(moment("1939-09-23T04:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:00", "1939-09-23T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1939-05-27T04:59:59+00:00").tz("America/Moncton").zone(), 240, "1939-05-27T04:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1939-05-27T05:00:00+00:00").tz("America/Moncton").zone(), 180, "1939-05-27T05:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1939-09-23T03:59:59+00:00").tz("America/Moncton").zone(), 180, "1939-09-23T03:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1939-09-23T04:00:00+00:00").tz("America/Moncton").zone(), 240, "1939-09-23T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-05-19T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1940-05-19T04:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1940-05-19T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "02:00:00", "1940-05-19T05:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1940-09-21T03:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1940-09-21T03:59:59+00:00 should be 00:59:59 ADT"); - t.equal(moment("1940-09-21T04:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:00", "1940-09-21T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1940-05-19T04:59:59+00:00").tz("America/Moncton").zone(), 240, "1940-05-19T04:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1940-05-19T05:00:00+00:00").tz("America/Moncton").zone(), 180, "1940-05-19T05:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1940-09-21T03:59:59+00:00").tz("America/Moncton").zone(), 180, "1940-09-21T03:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1940-09-21T04:00:00+00:00").tz("America/Moncton").zone(), 240, "1940-09-21T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-05-04T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1941-05-04T04:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1941-05-04T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "02:00:00", "1941-05-04T05:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1941-09-27T03:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:59:59", "1941-09-27T03:59:59+00:00 should be 00:59:59 ADT"); - t.equal(moment("1941-09-27T04:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:00", "1941-09-27T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1941-05-04T04:59:59+00:00").tz("America/Moncton").zone(), 240, "1941-05-04T04:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1941-05-04T05:00:00+00:00").tz("America/Moncton").zone(), 180, "1941-05-04T05:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1941-09-27T03:59:59+00:00").tz("America/Moncton").zone(), 180, "1941-09-27T03:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1941-09-27T04:00:00+00:00").tz("America/Moncton").zone(), 240, "1941-09-27T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1942-02-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1942-02-09T06:00:00+00:00 should be 03:00:00 AWT"); - - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1942-02-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1942-02-09T06:00:00+00:00 should be 180 minutes offset in AWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "19:59:59", "1945-08-14T22:59:59+00:00 should be 19:59:59 AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "20:00:00", "1945-08-14T23:00:00+00:00 should be 20:00:00 APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1945-09-30T04:59:59+00:00 should be 01:59:59 APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1945-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Moncton").zone(), 180, "1945-08-14T22:59:59+00:00 should be 180 minutes offset in AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Moncton").zone(), 180, "1945-08-14T23:00:00+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1945-09-30T04:59:59+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1945-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1946-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1946-04-28T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1946-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1946-09-29T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1946-09-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1946-09-29T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1946-09-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1946-04-28T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1946-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1946-04-28T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1946-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1946-09-29T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1946-09-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1946-09-29T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1946-09-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1947-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1947-04-27T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1947-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1947-09-28T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1947-09-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1947-09-28T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1947-09-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1947-04-27T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1947-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1947-04-27T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1947-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1947-09-28T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1947-09-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1947-09-28T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1947-09-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1948-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1948-04-25T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1948-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1948-09-26T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1948-09-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1948-09-26T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1948-09-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1948-04-25T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1948-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1948-04-25T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1948-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1948-09-26T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1948-09-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1948-09-26T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1948-09-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1949-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1949-04-24T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1949-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1949-09-25T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1949-09-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1949-09-25T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1949-09-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1949-04-24T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1949-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1949-04-24T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1949-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1949-09-25T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1949-09-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1949-09-25T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1949-09-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1950-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1950-04-30T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1950-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1950-09-24T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1950-09-24T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1950-09-24T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1950-09-24T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1950-04-30T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1950-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1950-04-30T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1950-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1950-09-24T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1950-09-24T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1950-09-24T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1950-09-24T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1951-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1951-04-29T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1951-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1951-09-30T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1951-09-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1951-09-30T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1951-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1951-04-29T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1951-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1951-04-29T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1951-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1951-09-30T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1951-09-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1951-09-30T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1951-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1952-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1952-04-27T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1952-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1952-09-28T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1952-09-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1952-09-28T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1952-09-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1952-04-27T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1952-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1952-04-27T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1952-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1952-09-28T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1952-09-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1952-09-28T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1952-09-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1953-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1953-04-26T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1953-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1953-09-27T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1953-09-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1953-09-27T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1953-09-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1953-04-26T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1953-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1953-04-26T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1953-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1953-09-27T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1953-09-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1953-09-27T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1953-09-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1954-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1954-04-25T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1954-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1954-09-26T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1954-09-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1954-09-26T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1954-09-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1954-04-25T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1954-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1954-04-25T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1954-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1954-09-26T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1954-09-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1954-09-26T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1954-09-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1955-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1955-04-24T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1955-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1955-09-25T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1955-09-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1955-09-25T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1955-09-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1955-04-24T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1955-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1955-04-24T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1955-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1955-09-25T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1955-09-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1955-09-25T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1955-09-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1956-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1956-04-29T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1956-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1956-09-30T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1956-09-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1956-09-30T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1956-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1956-04-29T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1956-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1956-04-29T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1956-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1956-09-30T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1956-09-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1956-09-30T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1956-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1957-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1957-04-28T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1957-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1957-10-27T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1957-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1957-10-27T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1957-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1957-04-28T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1957-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1957-04-28T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1957-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1957-10-27T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1957-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1957-10-27T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1957-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1958-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1958-04-27T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1958-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1958-10-26T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1958-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1958-10-26T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1958-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1958-04-27T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1958-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1958-04-27T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1958-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1958-10-26T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1958-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1958-10-26T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1958-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1959-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1959-04-26T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1959-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1959-10-25T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1959-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1959-10-25T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1959-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1959-04-26T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1959-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1959-04-26T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1959-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1959-10-25T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1959-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1959-10-25T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1959-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1960-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1960-04-24T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1960-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1960-10-30T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1960-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1960-10-30T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1960-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1960-04-24T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1960-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1960-04-24T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1960-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1960-10-30T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1960-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1960-10-30T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1960-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1961-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1961-04-30T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1961-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1961-10-29T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1961-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1961-10-29T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1961-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1961-04-30T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1961-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1961-04-30T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1961-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1961-10-29T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1961-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1961-10-29T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1961-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1962-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1962-04-29T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1962-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1962-10-28T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1962-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1962-10-28T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1962-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1962-04-29T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1962-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1962-04-29T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1962-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1962-10-28T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1962-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1962-10-28T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1962-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1963-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1963-04-28T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1963-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1963-10-27T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1963-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1963-10-27T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1963-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1963-04-28T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1963-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1963-04-28T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1963-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1963-10-27T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1963-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1963-10-27T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1963-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1964-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1964-04-26T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1964-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1964-10-25T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1964-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1964-10-25T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1964-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1964-04-26T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1964-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1964-04-26T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1964-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1964-10-25T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1964-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1964-10-25T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1964-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1965-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1965-04-25T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1965-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1965-10-31T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1965-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1965-10-31T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1965-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1965-04-25T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1965-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1965-04-25T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1965-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1965-10-31T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1965-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1965-10-31T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1965-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1966-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1966-04-24T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1966-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1966-10-30T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1966-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1966-10-30T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1966-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1966-04-24T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1966-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1966-04-24T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1966-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1966-10-30T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1966-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1966-10-30T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1966-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1967-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1967-04-30T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1967-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1967-10-29T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1967-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1967-10-29T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1967-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1967-04-30T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1967-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1967-04-30T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1967-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1967-10-29T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1967-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1967-10-29T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1967-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1968-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1968-04-28T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1968-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1968-10-27T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1968-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1968-10-27T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1968-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1968-04-28T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1968-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1968-04-28T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1968-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1968-10-27T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1968-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1968-10-27T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1968-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1969-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1969-04-27T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1969-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1969-10-26T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1969-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1969-10-26T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1969-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1969-04-27T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1969-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1969-04-27T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1969-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1969-10-26T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1969-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1969-10-26T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1969-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1970-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1970-04-26T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1970-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1970-10-25T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1970-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1970-10-25T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1970-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1970-04-26T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1970-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1970-04-26T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1970-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1970-10-25T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1970-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1970-10-25T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1970-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1971-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1971-04-25T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1971-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1971-10-31T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1971-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1971-10-31T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1971-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1971-04-25T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1971-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1971-04-25T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1971-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1971-10-31T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1971-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1971-10-31T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1971-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1972-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1972-04-30T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1972-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1972-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1972-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1972-04-30T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1972-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1972-04-30T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1972-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1972-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1972-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1974-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1974-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1974-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1974-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1974-04-28T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1974-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1974-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1974-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1974-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1975-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1975-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1975-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1975-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1975-04-27T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1975-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1975-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1975-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1975-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1976-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1976-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1976-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1976-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1976-04-25T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1976-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1976-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1976-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1976-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1977-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1977-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1977-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1977-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1977-04-24T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1977-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1977-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1977-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1977-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1978-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1978-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1978-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1978-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1978-04-30T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1978-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1978-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1978-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1978-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1979-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1979-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1979-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1979-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1979-04-29T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1979-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1979-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1979-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1979-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1980-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1980-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1980-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1980-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1980-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1980-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1980-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1980-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1981-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1981-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1981-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1981-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1981-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1981-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1981-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1981-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1982-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1982-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1982-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1982-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1982-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1982-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1982-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1982-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1983-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1983-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1983-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1983-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1983-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1983-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1983-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1983-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1984-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1984-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1984-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1984-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1984-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1984-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1984-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1984-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1985-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1985-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1985-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1985-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1985-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1985-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1985-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1985-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1986-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1986-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1986-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1986-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1986-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1986-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1986-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1986-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1987-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1987-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1987-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1987-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1987-04-05T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1987-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1987-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1987-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1987-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1988-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1988-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1988-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1988-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1988-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1988-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1988-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1988-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1989-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1989-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1989-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1989-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1989-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1989-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1989-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1989-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1990-04-01T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1990-04-01T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1990-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1990-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1990-04-01T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1990-04-01T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1990-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1990-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1991-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1991-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1991-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1991-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1991-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1991-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1991-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1991-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1992-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "1992-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "1992-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "1992-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Moncton").zone(), 240, "1992-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Moncton").zone(), 180, "1992-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("America/Moncton").zone(), 180, "1992-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("America/Moncton").zone(), 240, "1992-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1993-04-04T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1993-04-04T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "1993-04-04T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1993-10-31T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1993-10-31T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1993-10-31T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "1993-10-31T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1993-04-04T04:00:59+00:00").tz("America/Moncton").zone(), 240, "1993-04-04T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1993-04-04T04:01:00+00:00").tz("America/Moncton").zone(), 180, "1993-04-04T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T03:00:59+00:00").tz("America/Moncton").zone(), 180, "1993-10-31T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T03:01:00+00:00").tz("America/Moncton").zone(), 240, "1993-10-31T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1994-04-03T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1994-04-03T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "1994-04-03T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1994-10-30T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1994-10-30T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1994-10-30T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "1994-10-30T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1994-04-03T04:00:59+00:00").tz("America/Moncton").zone(), 240, "1994-04-03T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1994-04-03T04:01:00+00:00").tz("America/Moncton").zone(), 180, "1994-04-03T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T03:00:59+00:00").tz("America/Moncton").zone(), 180, "1994-10-30T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T03:01:00+00:00").tz("America/Moncton").zone(), 240, "1994-10-30T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1995-04-02T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1995-04-02T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "1995-04-02T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1995-10-29T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1995-10-29T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1995-10-29T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "1995-10-29T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1995-04-02T04:00:59+00:00").tz("America/Moncton").zone(), 240, "1995-04-02T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1995-04-02T04:01:00+00:00").tz("America/Moncton").zone(), 180, "1995-04-02T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T03:00:59+00:00").tz("America/Moncton").zone(), 180, "1995-10-29T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T03:01:00+00:00").tz("America/Moncton").zone(), 240, "1995-10-29T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1996-04-07T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1996-04-07T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "1996-04-07T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1996-10-27T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1996-10-27T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1996-10-27T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "1996-10-27T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1996-04-07T04:00:59+00:00").tz("America/Moncton").zone(), 240, "1996-04-07T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1996-04-07T04:01:00+00:00").tz("America/Moncton").zone(), 180, "1996-04-07T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T03:00:59+00:00").tz("America/Moncton").zone(), 180, "1996-10-27T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T03:01:00+00:00").tz("America/Moncton").zone(), 240, "1996-10-27T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1997-04-06T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1997-04-06T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "1997-04-06T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1997-10-26T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1997-10-26T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1997-10-26T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "1997-10-26T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1997-04-06T04:00:59+00:00").tz("America/Moncton").zone(), 240, "1997-04-06T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1997-04-06T04:01:00+00:00").tz("America/Moncton").zone(), 180, "1997-04-06T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T03:00:59+00:00").tz("America/Moncton").zone(), 180, "1997-10-26T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T03:01:00+00:00").tz("America/Moncton").zone(), 240, "1997-10-26T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1998-04-05T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1998-04-05T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "1998-04-05T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1998-10-25T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1998-10-25T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1998-10-25T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "1998-10-25T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1998-04-05T04:00:59+00:00").tz("America/Moncton").zone(), 240, "1998-04-05T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1998-04-05T04:01:00+00:00").tz("America/Moncton").zone(), 180, "1998-04-05T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T03:00:59+00:00").tz("America/Moncton").zone(), 180, "1998-10-25T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T03:01:00+00:00").tz("America/Moncton").zone(), 240, "1998-10-25T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1999-04-04T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("1999-04-04T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "1999-04-04T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("1999-10-31T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "1999-10-31T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("1999-10-31T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "1999-10-31T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("1999-04-04T04:00:59+00:00").tz("America/Moncton").zone(), 240, "1999-04-04T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1999-04-04T04:01:00+00:00").tz("America/Moncton").zone(), 180, "1999-04-04T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T03:00:59+00:00").tz("America/Moncton").zone(), 180, "1999-10-31T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T03:01:00+00:00").tz("America/Moncton").zone(), 240, "1999-10-31T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2000-04-02T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2000-04-02T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "2000-04-02T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2000-10-29T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2000-10-29T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2000-10-29T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "2000-10-29T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2000-04-02T04:00:59+00:00").tz("America/Moncton").zone(), 240, "2000-04-02T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2000-04-02T04:01:00+00:00").tz("America/Moncton").zone(), 180, "2000-04-02T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T03:00:59+00:00").tz("America/Moncton").zone(), 180, "2000-10-29T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T03:01:00+00:00").tz("America/Moncton").zone(), 240, "2000-10-29T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2001-04-01T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2001-04-01T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "2001-04-01T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2001-10-28T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2001-10-28T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2001-10-28T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "2001-10-28T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2001-04-01T04:00:59+00:00").tz("America/Moncton").zone(), 240, "2001-04-01T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2001-04-01T04:01:00+00:00").tz("America/Moncton").zone(), 180, "2001-04-01T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T03:00:59+00:00").tz("America/Moncton").zone(), 180, "2001-10-28T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T03:01:00+00:00").tz("America/Moncton").zone(), 240, "2001-10-28T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2002-04-07T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2002-04-07T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "2002-04-07T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2002-10-27T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2002-10-27T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2002-10-27T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "2002-10-27T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2002-04-07T04:00:59+00:00").tz("America/Moncton").zone(), 240, "2002-04-07T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2002-04-07T04:01:00+00:00").tz("America/Moncton").zone(), 180, "2002-04-07T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T03:00:59+00:00").tz("America/Moncton").zone(), 180, "2002-10-27T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T03:01:00+00:00").tz("America/Moncton").zone(), 240, "2002-10-27T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2003-04-06T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2003-04-06T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "2003-04-06T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2003-10-26T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2003-10-26T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2003-10-26T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "2003-10-26T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2003-04-06T04:00:59+00:00").tz("America/Moncton").zone(), 240, "2003-04-06T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2003-04-06T04:01:00+00:00").tz("America/Moncton").zone(), 180, "2003-04-06T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T03:00:59+00:00").tz("America/Moncton").zone(), 180, "2003-10-26T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T03:01:00+00:00").tz("America/Moncton").zone(), 240, "2003-10-26T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2004-04-04T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2004-04-04T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "2004-04-04T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2004-10-31T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2004-10-31T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2004-10-31T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "2004-10-31T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2004-04-04T04:00:59+00:00").tz("America/Moncton").zone(), 240, "2004-04-04T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2004-04-04T04:01:00+00:00").tz("America/Moncton").zone(), 180, "2004-04-04T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T03:00:59+00:00").tz("America/Moncton").zone(), 180, "2004-10-31T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T03:01:00+00:00").tz("America/Moncton").zone(), 240, "2004-10-31T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2005-04-03T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2005-04-03T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "2005-04-03T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2005-10-30T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2005-10-30T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2005-10-30T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "2005-10-30T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2005-04-03T04:00:59+00:00").tz("America/Moncton").zone(), 240, "2005-04-03T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2005-04-03T04:01:00+00:00").tz("America/Moncton").zone(), 180, "2005-04-03T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T03:00:59+00:00").tz("America/Moncton").zone(), 180, "2005-10-30T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T03:01:00+00:00").tz("America/Moncton").zone(), 240, "2005-10-30T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T04:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2006-04-02T04:00:59+00:00 should be 00:00:59 AST"); - t.equal(moment("2006-04-02T04:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:01:00", "2006-04-02T04:01:00+00:00 should be 01:01:00 ADT"); - t.equal(moment("2006-10-29T03:00:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "00:00:59", "2006-10-29T03:00:59+00:00 should be 00:00:59 ADT"); - t.equal(moment("2006-10-29T03:01:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "23:01:00", "2006-10-29T03:01:00+00:00 should be 23:01:00 AST"); - - t.equal(moment("2006-04-02T04:00:59+00:00").tz("America/Moncton").zone(), 240, "2006-04-02T04:00:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2006-04-02T04:01:00+00:00").tz("America/Moncton").zone(), 180, "2006-04-02T04:01:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T03:00:59+00:00").tz("America/Moncton").zone(), 180, "2006-10-29T03:00:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T03:01:00+00:00").tz("America/Moncton").zone(), 240, "2006-10-29T03:01:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2007-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2007-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2007-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2007-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2007-03-11T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2007-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2007-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2007-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2007-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2008-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2008-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2008-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2008-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2008-03-09T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2008-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2008-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2008-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2008-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2009-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2009-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2009-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2009-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2009-03-08T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2009-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2009-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2009-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2009-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2010-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2010-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2010-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2010-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2010-03-14T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2010-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2010-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2010-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2010-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2011-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2011-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2011-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2011-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2011-03-13T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2011-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2011-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2011-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2011-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2012-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2012-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2012-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2012-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2012-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2012-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2012-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2012-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2013-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2013-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2013-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2013-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2013-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2013-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2013-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2013-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2014-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2014-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2014-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2014-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2014-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2014-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2014-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2014-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2015-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2015-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2015-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2015-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2015-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2015-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2015-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2015-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2016-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2016-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2016-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2016-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2016-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2016-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2016-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2016-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2017-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2017-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2017-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2017-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2017-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2017-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2017-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2017-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2018-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2018-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2018-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2018-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2018-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2018-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2018-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2018-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2019-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2019-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2019-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2019-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2019-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2019-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2019-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2019-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2020-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2020-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2020-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2020-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2020-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2020-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2020-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2020-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2021-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2021-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2021-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2021-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2021-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2021-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2021-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2021-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2022-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2022-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2022-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2022-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2022-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2022-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2022-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2022-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2023-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2023-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2023-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2023-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2023-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2023-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2023-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2023-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2024-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2024-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2024-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2024-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2024-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2024-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2024-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2024-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2025-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2025-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2025-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2025-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2025-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2025-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2025-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2025-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2026-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2026-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2026-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2026-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2026-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2026-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2026-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2026-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2027-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2027-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2027-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2027-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2027-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2027-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2027-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2027-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2028-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2028-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2028-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2028-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2028-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2028-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2028-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2028-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2029-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2029-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2029-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2029-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2029-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2029-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2029-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2029-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2030-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2030-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2030-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2030-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2030-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2030-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2030-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2030-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2031-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2031-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2031-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2031-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2031-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2031-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2031-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2031-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2032-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2032-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2032-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2032-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2032-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2032-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2032-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2032-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2033-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2033-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2033-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2033-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2033-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2033-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2033-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2033-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2034-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2034-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2034-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2034-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2034-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2034-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2034-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2034-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2035-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2035-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2035-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2035-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2035-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2035-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2035-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2035-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2036-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2036-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2036-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2036-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2036-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2036-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2036-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2036-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2037-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "03:00:00", "2037-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:59:59", "2037-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Moncton").format("HH:mm:ss"), "01:00:00", "2037-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Moncton").zone(), 240, "2037-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Moncton").zone(), 180, "2037-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Moncton").zone(), 180, "2037-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Moncton").zone(), 240, "2037-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/monterrey.js b/tests/america/monterrey.js deleted file mode 100644 index 72c1996d..00000000 --- a/tests/america/monterrey.js +++ /dev/null @@ -1,616 +0,0 @@ -var moment = require("../../index"); - -exports["America/Monterrey"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "23:18:43", "1922-01-01T05:59:59+00:00 should be 23:18:43 LMT"); - t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "00:00:00", "1922-01-01T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Monterrey").zone(), 24076 / 60, "1922-01-01T05:59:59+00:00 should be 24076 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Monterrey").zone(), 360, "1922-01-01T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2001-05-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2001-05-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2001-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2001-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2001-05-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2001-05-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2001-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2001-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2007-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2007-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2007-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2007-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2007-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2007-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2007-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2007-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2008-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2008-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2008-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2008-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2008-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2008-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2008-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2008-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2009-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2009-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2009-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2009-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2009-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2009-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2009-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2009-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2010-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2010-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2010-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2010-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2010-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2010-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2010-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2010-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2011-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2011-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2011-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2011-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2011-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2011-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2011-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2011-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2012-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2012-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2012-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2012-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2012-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2012-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2012-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2012-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2013-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2013-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2013-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2013-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2013-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2013-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2013-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2013-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2014-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2014-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2014-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2014-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2014-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2014-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2014-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2014-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2015-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2015-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2015-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2015-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2015-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2015-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2015-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2015-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2016-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2016-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2016-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2016-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2016-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2016-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2016-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2016-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2017-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2017-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2017-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2017-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2017-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2017-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2017-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2017-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2018-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2018-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2018-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2018-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2018-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2018-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2018-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2018-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2019-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2019-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2019-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2019-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2019-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2019-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2019-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2019-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2020-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2020-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2020-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2020-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2020-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2020-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2020-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2020-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2021-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2021-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2021-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2021-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2021-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2021-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2021-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2021-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2022-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2022-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2022-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2022-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2022-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2022-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2022-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2022-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2023-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2023-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2023-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2023-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2023-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2023-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2023-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2023-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2024-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2024-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2024-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2024-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2024-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2024-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2024-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2024-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2025-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2025-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2025-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2025-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2025-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2025-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2025-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2025-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2026-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2026-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2026-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2026-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2026-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2026-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2026-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2026-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2027-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2027-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2027-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2027-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2027-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2027-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2027-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2027-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2028-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2028-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2028-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2028-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2028-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2028-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2028-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2028-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2029-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2029-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2029-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2029-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2029-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2029-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2029-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2029-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2030-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2030-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2030-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2030-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2030-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2030-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2030-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2030-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2031-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2031-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2031-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2031-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2031-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2031-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2031-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2031-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2032-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2032-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2032-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2032-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2032-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2032-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2032-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2032-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2033-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2033-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2033-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2033-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2033-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2033-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2033-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2033-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2034-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2034-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2034-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2034-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2034-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2034-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2034-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2034-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2035-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2035-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2035-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2035-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-04-01T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2035-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-04-01T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2035-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2035-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-10-28T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2035-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2036-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2036-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2036-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2036-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-04-06T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2036-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-04-06T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2036-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2036-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-10-26T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2036-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2037-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "03:00:00", "2037-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:59:59", "2037-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Monterrey").format("HH:mm:ss"), "01:00:00", "2037-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-04-05T07:59:59+00:00").tz("America/Monterrey").zone(), 360, "2037-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-04-05T08:00:00+00:00").tz("America/Monterrey").zone(), 300, "2037-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T06:59:59+00:00").tz("America/Monterrey").zone(), 300, "2037-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-10-25T07:00:00+00:00").tz("America/Monterrey").zone(), 360, "2037-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/montevideo.js b/tests/america/montevideo.js deleted file mode 100644 index 0e60f8d9..00000000 --- a/tests/america/montevideo.js +++ /dev/null @@ -1,960 +0,0 @@ -var moment = require("../../index"); - -exports["America/Montevideo"] = { - - "1920" : function (t) { - t.equal(moment("1920-05-01T03:44:43+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1920-05-01T03:44:43+00:00 should be 23:59:59 MMT"); - t.equal(moment("1920-05-01T03:44:44+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:14:44", "1920-05-01T03:44:44+00:00 should be 00:14:44 UYT"); - - t.equal(moment("1920-05-01T03:44:43+00:00").tz("America/Montevideo").zone(), 13484 / 60, "1920-05-01T03:44:43+00:00 should be 13484 / 60 minutes offset in MMT"); - t.equal(moment("1920-05-01T03:44:44+00:00").tz("America/Montevideo").zone(), 210, "1920-05-01T03:44:44+00:00 should be 210 minutes offset in UYT"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-10-02T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1923-10-02T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1923-10-02T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1923-10-02T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1923-10-02T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1923-10-02T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1923-10-02T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1923-10-02T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-01T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1924-04-01T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1924-04-01T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1924-04-01T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1924-10-01T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1924-10-01T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1924-10-01T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1924-10-01T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1924-04-01T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1924-04-01T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1924-04-01T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1924-04-01T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1924-10-01T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1924-10-01T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1924-10-01T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1924-10-01T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-01T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1925-04-01T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1925-04-01T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1925-04-01T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1925-10-01T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1925-10-01T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1925-10-01T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1925-10-01T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1925-04-01T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1925-04-01T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1925-04-01T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1925-04-01T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1925-10-01T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1925-10-01T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1925-10-01T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1925-10-01T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-01T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1926-04-01T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1926-04-01T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1926-04-01T03:00:00+00:00 should be 23:30:00 UYT"); - - t.equal(moment("1926-04-01T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1926-04-01T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1926-04-01T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1926-04-01T03:00:00+00:00 should be 210 minutes offset in UYT"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-10-29T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1933-10-29T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1933-10-29T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1933-10-29T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1933-10-29T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1933-10-29T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1933-10-29T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1933-10-29T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-01T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1934-04-01T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1934-04-01T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1934-04-01T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1934-10-28T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1934-10-28T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1934-10-28T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1934-10-28T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1934-04-01T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1934-04-01T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1934-04-01T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1934-04-01T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1934-10-28T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1934-10-28T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1934-10-28T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1934-10-28T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-31T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1935-03-31T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1935-03-31T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1935-03-31T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1935-10-27T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1935-10-27T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1935-10-27T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1935-10-27T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1935-03-31T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1935-03-31T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1935-03-31T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1935-03-31T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1935-10-27T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1935-10-27T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1935-10-27T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1935-10-27T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-03-29T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1936-03-29T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1936-03-29T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1936-03-29T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1936-11-01T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1936-11-01T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1936-11-01T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1936-11-01T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1936-03-29T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1936-03-29T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1936-03-29T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1936-03-29T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1936-11-01T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1936-11-01T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1936-11-01T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1936-11-01T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-03-28T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1937-03-28T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1937-03-28T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1937-03-28T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1937-10-31T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1937-10-31T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1937-10-31T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1937-10-31T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1937-03-28T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1937-03-28T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1937-03-28T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1937-03-28T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1937-10-31T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1937-10-31T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1937-10-31T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1937-10-31T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-27T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1938-03-27T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1938-03-27T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1938-03-27T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1938-10-30T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1938-10-30T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1938-10-30T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1938-10-30T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1938-03-27T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1938-03-27T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1938-03-27T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1938-03-27T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1938-10-30T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1938-10-30T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1938-10-30T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1938-10-30T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-26T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1939-03-26T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1939-03-26T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1939-03-26T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1939-10-29T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1939-10-29T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1939-10-29T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1939-10-29T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1939-03-26T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1939-03-26T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1939-03-26T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1939-03-26T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1939-10-29T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1939-10-29T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1939-10-29T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1939-10-29T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-31T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1940-03-31T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1940-03-31T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1940-03-31T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1940-10-27T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1940-10-27T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1940-10-27T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1940-10-27T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1940-03-31T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1940-03-31T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1940-03-31T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1940-03-31T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1940-10-27T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1940-10-27T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1940-10-27T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1940-10-27T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-03-30T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1941-03-30T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1941-03-30T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1941-03-30T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1941-08-01T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1941-08-01T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1941-08-01T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1941-08-01T03:30:00+00:00 should be 00:30:00 UYHST"); - - t.equal(moment("1941-03-30T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1941-03-30T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1941-03-30T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1941-03-30T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1941-08-01T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1941-08-01T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1941-08-01T03:30:00+00:00").tz("America/Montevideo").zone(), 180, "1941-08-01T03:30:00+00:00 should be 180 minutes offset in UYHST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-01-01T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1942-01-01T02:59:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1942-01-01T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1942-01-01T03:00:00+00:00 should be 23:30:00 UYT"); - t.equal(moment("1942-12-14T03:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1942-12-14T03:29:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1942-12-14T03:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:30:00", "1942-12-14T03:30:00+00:00 should be 01:30:00 UYST"); - - t.equal(moment("1942-01-01T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1942-01-01T02:59:59+00:00 should be 180 minutes offset in UYHST"); - t.equal(moment("1942-01-01T03:00:00+00:00").tz("America/Montevideo").zone(), 210, "1942-01-01T03:00:00+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1942-12-14T03:29:59+00:00").tz("America/Montevideo").zone(), 210, "1942-12-14T03:29:59+00:00 should be 210 minutes offset in UYT"); - t.equal(moment("1942-12-14T03:30:00+00:00").tz("America/Montevideo").zone(), 120, "1942-12-14T03:30:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-14T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1943-03-14T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1943-03-14T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1943-03-14T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1943-03-14T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1943-03-14T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1943-03-14T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1943-03-14T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-05-24T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1959-05-24T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1959-05-24T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1959-05-24T03:00:00+00:00 should be 01:00:00 UYST"); - t.equal(moment("1959-11-15T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1959-11-15T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1959-11-15T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1959-11-15T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1959-05-24T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1959-05-24T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1959-05-24T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1959-05-24T03:00:00+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1959-11-15T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1959-11-15T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1959-11-15T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1959-11-15T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-01-17T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1960-01-17T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1960-01-17T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1960-01-17T03:00:00+00:00 should be 01:00:00 UYST"); - t.equal(moment("1960-03-06T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1960-03-06T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1960-03-06T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1960-03-06T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1960-01-17T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1960-01-17T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1960-01-17T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1960-01-17T03:00:00+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1960-03-06T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1960-03-06T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1960-03-06T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1960-03-06T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-04T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1965-04-04T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1965-04-04T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1965-04-04T03:00:00+00:00 should be 01:00:00 UYST"); - t.equal(moment("1965-09-26T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1965-09-26T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1965-09-26T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1965-09-26T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1965-04-04T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1965-04-04T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1965-04-04T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1965-04-04T03:00:00+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1965-09-26T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1965-09-26T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1965-09-26T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1965-09-26T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-03T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1966-04-03T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1966-04-03T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1966-04-03T03:00:00+00:00 should be 01:00:00 UYST"); - t.equal(moment("1966-10-31T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1966-10-31T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1966-10-31T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1966-10-31T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1966-04-03T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1966-04-03T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1966-04-03T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1966-04-03T03:00:00+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1966-10-31T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1966-10-31T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1966-10-31T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1966-10-31T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1967-04-02T03:00:00+00:00 should be 01:00:00 UYST"); - t.equal(moment("1967-10-31T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1967-10-31T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1967-10-31T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1967-10-31T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1967-04-02T03:00:00+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1967-10-31T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1967-10-31T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1967-10-31T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1967-10-31T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-05-27T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1968-05-27T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1968-05-27T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1968-05-27T03:00:00+00:00 should be 00:30:00 UYHST"); - t.equal(moment("1968-12-02T02:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1968-12-02T02:29:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1968-12-02T02:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1968-12-02T02:30:00+00:00 should be 23:30:00 UYT"); - - t.equal(moment("1968-05-27T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1968-05-27T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1968-05-27T03:00:00+00:00").tz("America/Montevideo").zone(), 150, "1968-05-27T03:00:00+00:00 should be 150 minutes offset in UYHST"); - t.equal(moment("1968-12-02T02:29:59+00:00").tz("America/Montevideo").zone(), 150, "1968-12-02T02:29:59+00:00 should be 150 minutes offset in UYHST"); - t.equal(moment("1968-12-02T02:30:00+00:00").tz("America/Montevideo").zone(), 180, "1968-12-02T02:30:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-05-27T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1969-05-27T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1969-05-27T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1969-05-27T03:00:00+00:00 should be 00:30:00 UYHST"); - t.equal(moment("1969-12-02T02:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1969-12-02T02:29:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1969-12-02T02:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1969-12-02T02:30:00+00:00 should be 23:30:00 UYT"); - - t.equal(moment("1969-05-27T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1969-05-27T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1969-05-27T03:00:00+00:00").tz("America/Montevideo").zone(), 150, "1969-05-27T03:00:00+00:00 should be 150 minutes offset in UYHST"); - t.equal(moment("1969-12-02T02:29:59+00:00").tz("America/Montevideo").zone(), 150, "1969-12-02T02:29:59+00:00 should be 150 minutes offset in UYHST"); - t.equal(moment("1969-12-02T02:30:00+00:00").tz("America/Montevideo").zone(), 180, "1969-12-02T02:30:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-05-27T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1970-05-27T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1970-05-27T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1970-05-27T03:00:00+00:00 should be 00:30:00 UYHST"); - t.equal(moment("1970-12-02T02:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1970-12-02T02:29:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1970-12-02T02:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:30:00", "1970-12-02T02:30:00+00:00 should be 23:30:00 UYT"); - - t.equal(moment("1970-05-27T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1970-05-27T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1970-05-27T03:00:00+00:00").tz("America/Montevideo").zone(), 150, "1970-05-27T03:00:00+00:00 should be 150 minutes offset in UYHST"); - t.equal(moment("1970-12-02T02:29:59+00:00").tz("America/Montevideo").zone(), 150, "1970-12-02T02:29:59+00:00 should be 150 minutes offset in UYHST"); - t.equal(moment("1970-12-02T02:30:00+00:00").tz("America/Montevideo").zone(), 180, "1970-12-02T02:30:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-24T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1972-04-24T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1972-04-24T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1972-04-24T03:00:00+00:00 should be 01:00:00 UYST"); - t.equal(moment("1972-08-15T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1972-08-15T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1972-08-15T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1972-08-15T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1972-04-24T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1972-04-24T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1972-04-24T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1972-04-24T03:00:00+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1972-08-15T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1972-08-15T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1972-08-15T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1972-08-15T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-10T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1974-03-10T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1974-03-10T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1974-03-10T03:00:00+00:00 should be 00:30:00 UYHST"); - t.equal(moment("1974-12-22T02:29:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1974-12-22T02:29:59+00:00 should be 23:59:59 UYHST"); - t.equal(moment("1974-12-22T02:30:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "00:30:00", "1974-12-22T02:30:00+00:00 should be 00:30:00 UYST"); - - t.equal(moment("1974-03-10T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1974-03-10T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1974-03-10T03:00:00+00:00").tz("America/Montevideo").zone(), 150, "1974-03-10T03:00:00+00:00 should be 150 minutes offset in UYHST"); - t.equal(moment("1974-12-22T02:29:59+00:00").tz("America/Montevideo").zone(), 150, "1974-12-22T02:29:59+00:00 should be 150 minutes offset in UYHST"); - t.equal(moment("1974-12-22T02:30:00+00:00").tz("America/Montevideo").zone(), 120, "1974-12-22T02:30:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-10-01T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1976-10-01T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1976-10-01T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1976-10-01T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1976-10-01T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1976-10-01T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1976-10-01T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1976-10-01T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-12-04T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1977-12-04T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1977-12-04T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1977-12-04T03:00:00+00:00 should be 01:00:00 UYST"); - - t.equal(moment("1977-12-04T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1977-12-04T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1977-12-04T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1977-12-04T03:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-01T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1978-04-01T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1978-04-01T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1978-04-01T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1978-04-01T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1978-04-01T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1978-04-01T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1978-04-01T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-10-01T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1979-10-01T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1979-10-01T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1979-10-01T03:00:00+00:00 should be 01:00:00 UYST"); - - t.equal(moment("1979-10-01T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1979-10-01T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1979-10-01T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1979-10-01T03:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-05-01T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1980-05-01T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1980-05-01T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1980-05-01T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1980-05-01T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1980-05-01T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1980-05-01T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1980-05-01T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-12-14T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1987-12-14T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1987-12-14T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1987-12-14T03:00:00+00:00 should be 01:00:00 UYST"); - - t.equal(moment("1987-12-14T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1987-12-14T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1987-12-14T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1987-12-14T03:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-14T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1988-03-14T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1988-03-14T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1988-03-14T02:00:00+00:00 should be 23:00:00 UYT"); - t.equal(moment("1988-12-11T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1988-12-11T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1988-12-11T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1988-12-11T03:00:00+00:00 should be 01:00:00 UYST"); - - t.equal(moment("1988-03-14T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1988-03-14T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1988-03-14T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1988-03-14T02:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1988-12-11T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1988-12-11T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1988-12-11T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1988-12-11T03:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-12T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1989-03-12T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1989-03-12T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1989-03-12T02:00:00+00:00 should be 23:00:00 UYT"); - t.equal(moment("1989-10-29T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1989-10-29T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1989-10-29T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1989-10-29T03:00:00+00:00 should be 01:00:00 UYST"); - - t.equal(moment("1989-03-12T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1989-03-12T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1989-03-12T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1989-03-12T02:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1989-10-29T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1989-10-29T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1989-10-29T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1989-10-29T03:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1990-03-04T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1990-03-04T02:00:00+00:00 should be 23:00:00 UYT"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 UYST"); - - t.equal(moment("1990-03-04T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1990-03-04T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1990-03-04T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1990-03-04T02:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1991-03-03T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1991-03-03T02:00:00+00:00 should be 23:00:00 UYT"); - t.equal(moment("1991-10-27T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1991-10-27T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1991-10-27T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1991-10-27T03:00:00+00:00 should be 01:00:00 UYST"); - - t.equal(moment("1991-03-03T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1991-03-03T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1991-03-03T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1991-03-03T02:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1991-10-27T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1991-10-27T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1991-10-27T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1991-10-27T03:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1992-03-01T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1992-03-01T02:00:00+00:00 should be 23:00:00 UYT"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1992-10-18T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "1992-10-18T03:00:00+00:00 should be 01:00:00 UYST"); - - t.equal(moment("1992-03-01T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1992-03-01T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1992-03-01T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1992-03-01T02:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1992-10-18T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "1992-10-18T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("1992-10-18T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "1992-10-18T03:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-02-28T01:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "1993-02-28T01:59:59+00:00 should be 23:59:59 UYST"); - t.equal(moment("1993-02-28T02:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:00:00", "1993-02-28T02:00:00+00:00 should be 23:00:00 UYT"); - - t.equal(moment("1993-02-28T01:59:59+00:00").tz("America/Montevideo").zone(), 120, "1993-02-28T01:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("1993-02-28T02:00:00+00:00").tz("America/Montevideo").zone(), 180, "1993-02-28T02:00:00+00:00 should be 180 minutes offset in UYT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-09-19T02:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "23:59:59", "2004-09-19T02:59:59+00:00 should be 23:59:59 UYT"); - t.equal(moment("2004-09-19T03:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2004-09-19T03:00:00+00:00 should be 01:00:00 UYST"); - - t.equal(moment("2004-09-19T02:59:59+00:00").tz("America/Montevideo").zone(), 180, "2004-09-19T02:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2004-09-19T03:00:00+00:00").tz("America/Montevideo").zone(), 120, "2004-09-19T03:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2005-03-27T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2005-03-27T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2005-03-27T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2005-10-09T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2005-10-09T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2005-10-09T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2005-10-09T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2005-03-27T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2005-03-27T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2005-03-27T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2005-03-27T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2005-10-09T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2005-10-09T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2005-10-09T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2005-10-09T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-12T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2006-03-12T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2006-03-12T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2006-03-12T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2006-10-01T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2006-10-01T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2006-10-01T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2006-10-01T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2006-03-12T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2006-03-12T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2006-03-12T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2006-03-12T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2006-10-01T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2006-10-01T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2006-10-01T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2006-10-01T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2007-03-11T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2007-03-11T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2007-03-11T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2007-10-07T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2007-10-07T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2007-10-07T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2007-10-07T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2007-03-11T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2007-03-11T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2007-03-11T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2007-03-11T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2007-10-07T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2007-10-07T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2007-10-07T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2007-10-07T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2008-03-09T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2008-03-09T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2008-03-09T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2008-10-05T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2008-10-05T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2008-10-05T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2008-10-05T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2008-03-09T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2008-03-09T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2008-03-09T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2008-03-09T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2008-10-05T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2008-10-05T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2008-10-05T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2008-10-05T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2009-03-08T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2009-03-08T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2009-03-08T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2009-10-04T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2009-10-04T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2009-10-04T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2009-10-04T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2009-03-08T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2009-03-08T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2009-03-08T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2009-03-08T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2009-10-04T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2009-10-04T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2009-10-04T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2009-10-04T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2010-03-14T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2010-03-14T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2010-03-14T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2010-10-03T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2010-10-03T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2010-10-03T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2010-10-03T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2010-03-14T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2010-03-14T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2010-03-14T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2010-03-14T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2010-10-03T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2010-10-03T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2010-10-03T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2010-10-03T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2011-03-13T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2011-03-13T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2011-03-13T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2011-10-02T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2011-10-02T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2011-10-02T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2011-10-02T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2011-03-13T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2011-03-13T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2011-03-13T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2011-03-13T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2011-10-02T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2011-10-02T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2011-10-02T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2011-10-02T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2012-03-11T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2012-03-11T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2012-03-11T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2012-10-07T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2012-10-07T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2012-10-07T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2012-10-07T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2012-03-11T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2012-03-11T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2012-03-11T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2012-03-11T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2012-10-07T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2012-10-07T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2012-10-07T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2012-10-07T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2013-03-10T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2013-03-10T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2013-03-10T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2013-10-06T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2013-10-06T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2013-10-06T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2013-10-06T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2013-03-10T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2013-03-10T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2013-03-10T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2013-03-10T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2013-10-06T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2013-10-06T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2013-10-06T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2013-10-06T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2014-03-09T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2014-03-09T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2014-03-09T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2014-10-05T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2014-10-05T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2014-10-05T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2014-10-05T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2014-03-09T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2014-03-09T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2014-03-09T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2014-03-09T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2014-10-05T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2014-10-05T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2014-10-05T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2014-10-05T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2015-03-08T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2015-03-08T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2015-03-08T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2015-10-04T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2015-10-04T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2015-10-04T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2015-10-04T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2015-03-08T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2015-03-08T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2015-03-08T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2015-03-08T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2015-10-04T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2015-10-04T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2015-10-04T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2015-10-04T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2016-03-13T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2016-03-13T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2016-03-13T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2016-10-02T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2016-10-02T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2016-10-02T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2016-10-02T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2016-03-13T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2016-03-13T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2016-03-13T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2016-03-13T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2016-10-02T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2016-10-02T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2016-10-02T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2016-10-02T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2017-03-12T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2017-03-12T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2017-03-12T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2017-10-01T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2017-10-01T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2017-10-01T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2017-10-01T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2017-03-12T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2017-03-12T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2017-03-12T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2017-03-12T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2017-10-01T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2017-10-01T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2017-10-01T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2017-10-01T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2018-03-11T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2018-03-11T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2018-03-11T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2018-10-07T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2018-10-07T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2018-10-07T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2018-10-07T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2018-03-11T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2018-03-11T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2018-03-11T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2018-03-11T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2018-10-07T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2018-10-07T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2018-10-07T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2018-10-07T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2019-03-10T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2019-03-10T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2019-03-10T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2019-10-06T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2019-10-06T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2019-10-06T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2019-10-06T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2019-03-10T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2019-03-10T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2019-03-10T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2019-03-10T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2019-10-06T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2019-10-06T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2019-10-06T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2019-10-06T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2020-03-08T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2020-03-08T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2020-03-08T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2020-10-04T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2020-10-04T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2020-10-04T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2020-10-04T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2020-03-08T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2020-03-08T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2020-03-08T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2020-03-08T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2020-10-04T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2020-10-04T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2020-10-04T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2020-10-04T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2021-03-14T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2021-03-14T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2021-03-14T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2021-10-03T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2021-10-03T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2021-10-03T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2021-10-03T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2021-03-14T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2021-03-14T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2021-03-14T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2021-03-14T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2021-10-03T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2021-10-03T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2021-10-03T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2021-10-03T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2022-03-13T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2022-03-13T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2022-03-13T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2022-10-02T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2022-10-02T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2022-10-02T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2022-10-02T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2022-03-13T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2022-03-13T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2022-03-13T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2022-03-13T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2022-10-02T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2022-10-02T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2022-10-02T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2022-10-02T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2023-03-12T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2023-03-12T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2023-03-12T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2023-10-01T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2023-10-01T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2023-10-01T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2023-10-01T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2023-03-12T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2023-03-12T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2023-03-12T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2023-03-12T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2023-10-01T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2023-10-01T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2023-10-01T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2023-10-01T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2024-03-10T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2024-03-10T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2024-03-10T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2024-10-06T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2024-10-06T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2024-10-06T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2024-10-06T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2024-03-10T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2024-03-10T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2024-03-10T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2024-03-10T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2024-10-06T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2024-10-06T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2024-10-06T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2024-10-06T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2025-03-09T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2025-03-09T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2025-03-09T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2025-10-05T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2025-10-05T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2025-10-05T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2025-10-05T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2025-03-09T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2025-03-09T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2025-03-09T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2025-03-09T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2025-10-05T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2025-10-05T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2025-10-05T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2025-10-05T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2026-03-08T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2026-03-08T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2026-03-08T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2026-10-04T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2026-10-04T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2026-10-04T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2026-10-04T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2026-03-08T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2026-03-08T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2026-03-08T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2026-03-08T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2026-10-04T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2026-10-04T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2026-10-04T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2026-10-04T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2027-03-14T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2027-03-14T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2027-03-14T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2027-10-03T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2027-10-03T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2027-10-03T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2027-10-03T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2027-03-14T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2027-03-14T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2027-03-14T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2027-03-14T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2027-10-03T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2027-10-03T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2027-10-03T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2027-10-03T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2028-03-12T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2028-03-12T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2028-03-12T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2028-10-01T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2028-10-01T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2028-10-01T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2028-10-01T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2028-03-12T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2028-03-12T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2028-03-12T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2028-03-12T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2028-10-01T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2028-10-01T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2028-10-01T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2028-10-01T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2029-03-11T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2029-03-11T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2029-03-11T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2029-10-07T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2029-10-07T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2029-10-07T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2029-10-07T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2029-03-11T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2029-03-11T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2029-03-11T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2029-03-11T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2029-10-07T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2029-10-07T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2029-10-07T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2029-10-07T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2030-03-10T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2030-03-10T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2030-03-10T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2030-10-06T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2030-10-06T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2030-10-06T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2030-10-06T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2030-03-10T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2030-03-10T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2030-03-10T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2030-03-10T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2030-10-06T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2030-10-06T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2030-10-06T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2030-10-06T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2031-03-09T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2031-03-09T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2031-03-09T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2031-10-05T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2031-10-05T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2031-10-05T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2031-10-05T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2031-03-09T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2031-03-09T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2031-03-09T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2031-03-09T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2031-10-05T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2031-10-05T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2031-10-05T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2031-10-05T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2032-03-14T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2032-03-14T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2032-03-14T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2032-10-03T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2032-10-03T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2032-10-03T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2032-10-03T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2032-03-14T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2032-03-14T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2032-03-14T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2032-03-14T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2032-10-03T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2032-10-03T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2032-10-03T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2032-10-03T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2033-03-13T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2033-03-13T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2033-03-13T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2033-10-02T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2033-10-02T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2033-10-02T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2033-10-02T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2033-03-13T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2033-03-13T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2033-03-13T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2033-03-13T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2033-10-02T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2033-10-02T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2033-10-02T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2033-10-02T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2034-03-12T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2034-03-12T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2034-03-12T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2034-10-01T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2034-10-01T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2034-10-01T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2034-10-01T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2034-03-12T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2034-03-12T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2034-03-12T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2034-03-12T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2034-10-01T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2034-10-01T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2034-10-01T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2034-10-01T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2035-03-11T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2035-03-11T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2035-03-11T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2035-10-07T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2035-10-07T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2035-10-07T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2035-10-07T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2035-03-11T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2035-03-11T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2035-03-11T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2035-03-11T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2035-10-07T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2035-10-07T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2035-10-07T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2035-10-07T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2036-03-09T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2036-03-09T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2036-03-09T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2036-10-05T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2036-10-05T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2036-10-05T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2036-10-05T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2036-03-09T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2036-03-09T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2036-03-09T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2036-03-09T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2036-10-05T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2036-10-05T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2036-10-05T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2036-10-05T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T03:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2037-03-08T03:59:59+00:00 should be 01:59:59 UYST"); - t.equal(moment("2037-03-08T04:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:00:00", "2037-03-08T04:00:00+00:00 should be 01:00:00 UYT"); - t.equal(moment("2037-10-04T04:59:59+00:00").tz("America/Montevideo").format("HH:mm:ss"), "01:59:59", "2037-10-04T04:59:59+00:00 should be 01:59:59 UYT"); - t.equal(moment("2037-10-04T05:00:00+00:00").tz("America/Montevideo").format("HH:mm:ss"), "03:00:00", "2037-10-04T05:00:00+00:00 should be 03:00:00 UYST"); - - t.equal(moment("2037-03-08T03:59:59+00:00").tz("America/Montevideo").zone(), 120, "2037-03-08T03:59:59+00:00 should be 120 minutes offset in UYST"); - t.equal(moment("2037-03-08T04:00:00+00:00").tz("America/Montevideo").zone(), 180, "2037-03-08T04:00:00+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2037-10-04T04:59:59+00:00").tz("America/Montevideo").zone(), 180, "2037-10-04T04:59:59+00:00 should be 180 minutes offset in UYT"); - t.equal(moment("2037-10-04T05:00:00+00:00").tz("America/Montevideo").zone(), 120, "2037-10-04T05:00:00+00:00 should be 120 minutes offset in UYST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/montreal.js b/tests/america/montreal.js deleted file mode 100644 index 8ac21ce9..00000000 --- a/tests/america/montreal.js +++ /dev/null @@ -1,1634 +0,0 @@ -var moment = require("../../index"); - -exports["America/Montreal"] = { - - "1917" : function (t) { - t.equal(moment("1917-03-25T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1917-03-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1917-03-25T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1917-03-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1917-04-24T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1917-04-24T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1917-04-24T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1917-04-24T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1917-03-25T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1917-03-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1917-03-25T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1917-03-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1917-04-24T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1917-04-24T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1917-04-24T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1917-04-24T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-14T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1918-04-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1918-04-14T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1918-04-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1918-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1918-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1918-04-14T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1918-04-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1918-04-14T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1918-04-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1918-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1918-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-31T07:29:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:29:59", "1919-03-31T07:29:59+00:00 should be 02:29:59 EST"); - t.equal(moment("1919-03-31T07:30:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:30:00", "1919-03-31T07:30:00+00:00 should be 03:30:00 EDT"); - t.equal(moment("1919-10-25T06:29:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:29:59", "1919-10-25T06:29:59+00:00 should be 02:29:59 EDT"); - t.equal(moment("1919-10-25T06:30:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:30:00", "1919-10-25T06:30:00+00:00 should be 01:30:00 EST"); - - t.equal(moment("1919-03-31T07:29:59+00:00").tz("America/Montreal").zone(), 300, "1919-03-31T07:29:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1919-03-31T07:30:00+00:00").tz("America/Montreal").zone(), 240, "1919-03-31T07:30:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1919-10-25T06:29:59+00:00").tz("America/Montreal").zone(), 240, "1919-10-25T06:29:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1919-10-25T06:30:00+00:00").tz("America/Montreal").zone(), 300, "1919-10-25T06:30:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-05-02T07:29:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:29:59", "1920-05-02T07:29:59+00:00 should be 02:29:59 EST"); - t.equal(moment("1920-05-02T07:30:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:30:00", "1920-05-02T07:30:00+00:00 should be 03:30:00 EDT"); - t.equal(moment("1920-10-03T06:29:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:29:59", "1920-10-03T06:29:59+00:00 should be 02:29:59 EDT"); - t.equal(moment("1920-10-03T06:30:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:30:00", "1920-10-03T06:30:00+00:00 should be 01:30:00 EST"); - - t.equal(moment("1920-05-02T07:29:59+00:00").tz("America/Montreal").zone(), 300, "1920-05-02T07:29:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1920-05-02T07:30:00+00:00").tz("America/Montreal").zone(), 240, "1920-05-02T07:30:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1920-10-03T06:29:59+00:00").tz("America/Montreal").zone(), 240, "1920-10-03T06:29:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1920-10-03T06:30:00+00:00").tz("America/Montreal").zone(), 300, "1920-10-03T06:30:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-05-01T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1921-05-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1921-05-01T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1921-05-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1921-10-02T06:29:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:29:59", "1921-10-02T06:29:59+00:00 should be 02:29:59 EDT"); - t.equal(moment("1921-10-02T06:30:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:30:00", "1921-10-02T06:30:00+00:00 should be 01:30:00 EST"); - - t.equal(moment("1921-05-01T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1921-05-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1921-05-01T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1921-05-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1921-10-02T06:29:59+00:00").tz("America/Montreal").zone(), 240, "1921-10-02T06:29:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1921-10-02T06:30:00+00:00").tz("America/Montreal").zone(), 300, "1921-10-02T06:30:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-04-30T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1922-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1922-04-30T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1922-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1922-10-01T06:29:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:29:59", "1922-10-01T06:29:59+00:00 should be 02:29:59 EDT"); - t.equal(moment("1922-10-01T06:30:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:30:00", "1922-10-01T06:30:00+00:00 should be 01:30:00 EST"); - - t.equal(moment("1922-04-30T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1922-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1922-04-30T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1922-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1922-10-01T06:29:59+00:00").tz("America/Montreal").zone(), 240, "1922-10-01T06:29:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1922-10-01T06:30:00+00:00").tz("America/Montreal").zone(), 300, "1922-10-01T06:30:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-05-17T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1924-05-17T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1924-05-17T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1924-05-17T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1924-09-28T06:29:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:29:59", "1924-09-28T06:29:59+00:00 should be 02:29:59 EDT"); - t.equal(moment("1924-09-28T06:30:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:30:00", "1924-09-28T06:30:00+00:00 should be 01:30:00 EST"); - - t.equal(moment("1924-05-17T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1924-05-17T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1924-05-17T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1924-05-17T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1924-09-28T06:29:59+00:00").tz("America/Montreal").zone(), 240, "1924-09-28T06:29:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1924-09-28T06:30:00+00:00").tz("America/Montreal").zone(), 300, "1924-09-28T06:30:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-05-03T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1925-05-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1925-05-03T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1925-05-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1925-09-27T06:29:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:29:59", "1925-09-27T06:29:59+00:00 should be 02:29:59 EDT"); - t.equal(moment("1925-09-27T06:30:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:30:00", "1925-09-27T06:30:00+00:00 should be 01:30:00 EST"); - - t.equal(moment("1925-05-03T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1925-05-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1925-05-03T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1925-05-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1925-09-27T06:29:59+00:00").tz("America/Montreal").zone(), 240, "1925-09-27T06:29:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1925-09-27T06:30:00+00:00").tz("America/Montreal").zone(), 300, "1925-09-27T06:30:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-05-02T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1926-05-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1926-05-02T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1926-05-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1926-09-26T06:29:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:29:59", "1926-09-26T06:29:59+00:00 should be 02:29:59 EDT"); - t.equal(moment("1926-09-26T06:30:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:30:00", "1926-09-26T06:30:00+00:00 should be 01:30:00 EST"); - - t.equal(moment("1926-05-02T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1926-05-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1926-05-02T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1926-05-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1926-09-26T06:29:59+00:00").tz("America/Montreal").zone(), 240, "1926-09-26T06:29:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1926-09-26T06:30:00+00:00").tz("America/Montreal").zone(), 300, "1926-09-26T06:30:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-05-01T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1927-05-01T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1927-05-01T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1927-05-01T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1927-09-25T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1927-09-25T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1927-09-25T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1927-09-25T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1927-05-01T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1927-05-01T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1927-05-01T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1927-05-01T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1927-09-25T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1927-09-25T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1927-09-25T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1927-09-25T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-29T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1928-04-29T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1928-04-29T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1928-04-29T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1928-09-30T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1928-09-30T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1928-09-30T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1928-09-30T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1928-04-29T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1928-04-29T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1928-04-29T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1928-04-29T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1928-09-30T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1928-09-30T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1928-09-30T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1928-09-30T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-28T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1929-04-28T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1929-04-28T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1929-04-28T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1929-09-29T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1929-09-29T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1929-09-29T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1929-09-29T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1929-04-28T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1929-04-28T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1929-04-28T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1929-04-28T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1929-09-29T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1929-09-29T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1929-09-29T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1929-09-29T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-27T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1930-04-27T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1930-04-27T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1930-04-27T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1930-09-28T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1930-09-28T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1930-09-28T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1930-09-28T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1930-04-27T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1930-04-27T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1930-04-27T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1930-04-27T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1930-09-28T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1930-09-28T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1930-09-28T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1930-09-28T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-26T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1931-04-26T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1931-04-26T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1931-04-26T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1931-09-27T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1931-09-27T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1931-09-27T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1931-09-27T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1931-04-26T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1931-04-26T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1931-04-26T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1931-04-26T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1931-09-27T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1931-09-27T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1931-09-27T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1931-09-27T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-05-01T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1932-05-01T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1932-05-01T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1932-05-01T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1932-09-25T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1932-09-25T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1932-09-25T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1932-09-25T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1932-05-01T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1932-05-01T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1932-05-01T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1932-05-01T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1932-09-25T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1932-09-25T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1932-09-25T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1932-09-25T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-30T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1933-04-30T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1933-04-30T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1933-04-30T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1933-10-01T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1933-10-01T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1933-10-01T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1933-10-01T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1933-04-30T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1933-04-30T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1933-04-30T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1933-04-30T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1933-10-01T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1933-10-01T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1933-10-01T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1933-10-01T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-29T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1934-04-29T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1934-04-29T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1934-04-29T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1934-09-30T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1934-09-30T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1934-09-30T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1934-09-30T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1934-04-29T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1934-04-29T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1934-04-29T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1934-04-29T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1934-09-30T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1934-09-30T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1934-09-30T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1934-09-30T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-28T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1935-04-28T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1935-04-28T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1935-04-28T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1935-09-29T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1935-09-29T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1935-09-29T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1935-09-29T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1935-04-28T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1935-04-28T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1935-04-28T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1935-04-28T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1935-09-29T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1935-09-29T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1935-09-29T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1935-09-29T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-26T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1936-04-26T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1936-04-26T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1936-04-26T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1936-09-27T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1936-09-27T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1936-09-27T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1936-09-27T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1936-04-26T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1936-04-26T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1936-04-26T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1936-04-26T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1936-09-27T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1936-09-27T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1936-09-27T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1936-09-27T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-25T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1937-04-25T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1937-04-25T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1937-04-25T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1937-09-26T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1937-09-26T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1937-09-26T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1937-09-26T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1937-04-25T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1937-04-25T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1937-04-25T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1937-04-25T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1937-09-26T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1937-09-26T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1937-09-26T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1937-09-26T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-24T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1938-04-24T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1938-04-24T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1938-04-24T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1938-09-25T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1938-09-25T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1938-09-25T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1938-09-25T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1938-04-24T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1938-04-24T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1938-04-24T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1938-04-24T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1938-09-25T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1938-09-25T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1938-09-25T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1938-09-25T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-30T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1939-04-30T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1939-04-30T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1939-04-30T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1939-09-24T03:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1939-09-24T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1939-09-24T04:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:00:00", "1939-09-24T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1939-04-30T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1939-04-30T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1939-04-30T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1939-04-30T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1939-09-24T03:59:59+00:00").tz("America/Montreal").zone(), 240, "1939-09-24T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1939-09-24T04:00:00+00:00").tz("America/Montreal").zone(), 300, "1939-09-24T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-28T04:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "23:59:59", "1940-04-28T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1940-04-28T05:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1940-04-28T05:00:00+00:00 should be 01:00:00 EDT"); - - t.equal(moment("1940-04-28T04:59:59+00:00").tz("America/Montreal").zone(), 300, "1940-04-28T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1940-04-28T05:00:00+00:00").tz("America/Montreal").zone(), 240, "1940-04-28T05:00:00+00:00 should be 240 minutes offset in EDT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "02:59:59", "1942-02-09T06:59:59+00:00 should be 02:59:59 EDT"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1942-02-09T07:00:00+00:00 should be 03:00:00 EWT"); - - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Montreal").zone(), 240, "1942-02-09T06:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1942-02-09T07:00:00+00:00 should be 240 minutes offset in EWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "18:59:59", "1945-08-14T22:59:59+00:00 should be 18:59:59 EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "19:00:00", "1945-08-14T23:00:00+00:00 should be 19:00:00 EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1945-09-30T05:59:59+00:00 should be 01:59:59 EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1945-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Montreal").zone(), 240, "1945-08-14T22:59:59+00:00 should be 240 minutes offset in EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Montreal").zone(), 240, "1945-08-14T23:00:00+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1945-09-30T05:59:59+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1945-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1946-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1946-04-28T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1946-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1946-09-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1946-09-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1946-09-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1946-09-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1946-04-28T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1946-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1946-04-28T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1946-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1946-09-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1946-09-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1946-09-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1946-09-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1947-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1947-04-27T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1947-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1947-09-28T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1947-09-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1947-09-28T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1947-09-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1947-04-27T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1947-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1947-04-27T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1947-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1947-09-28T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1947-09-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1947-09-28T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1947-09-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1948-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1948-04-25T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1948-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1948-09-26T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1948-09-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1948-09-26T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1948-09-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1948-04-25T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1948-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1948-04-25T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1948-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1948-09-26T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1948-09-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1948-09-26T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1948-09-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1949-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1949-04-24T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1949-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1949-10-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1949-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1949-10-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1949-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1949-04-24T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1949-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1949-04-24T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1949-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1949-10-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1949-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1949-10-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1949-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1950-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1950-04-30T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1950-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1950-10-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1950-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1950-10-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1950-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1950-04-30T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1950-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1950-04-30T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1950-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1950-10-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1950-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1950-10-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1950-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1951-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1951-04-29T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1951-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1951-09-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1951-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1951-09-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1951-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1951-04-29T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1951-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1951-04-29T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1951-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1951-09-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1951-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1951-09-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1951-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1952-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1952-04-27T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1952-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1952-09-28T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1952-09-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1952-09-28T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1952-09-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1952-04-27T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1952-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1952-04-27T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1952-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1952-09-28T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1952-09-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1952-09-28T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1952-09-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1953-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1953-04-26T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1953-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1953-09-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1953-09-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1953-09-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1953-09-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1953-04-26T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1953-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1953-04-26T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1953-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1953-09-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1953-09-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1953-09-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1953-09-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1954-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1954-04-25T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1954-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1954-09-26T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1954-09-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1954-09-26T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1954-09-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1954-04-25T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1954-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1954-04-25T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1954-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1954-09-26T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1954-09-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1954-09-26T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1954-09-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1955-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1955-04-24T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1955-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1955-09-25T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1955-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1955-09-25T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1955-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1955-04-24T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1955-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1955-04-24T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1955-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1955-09-25T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1955-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1955-09-25T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1955-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1956-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1956-04-29T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1956-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1956-09-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1956-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1956-09-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1956-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1956-04-29T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1956-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1956-04-29T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1956-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1956-09-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1956-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1956-09-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1956-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1957-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1957-04-28T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1957-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1957-10-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1957-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1957-10-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1957-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1957-04-28T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1957-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1957-04-28T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1957-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1957-10-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1957-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1957-10-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1957-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1958-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1958-04-27T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1958-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1958-10-26T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1958-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1958-10-26T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1958-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1958-04-27T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1958-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1958-04-27T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1958-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1958-10-26T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1958-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1958-10-26T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1958-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1959-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1959-04-26T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1959-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1959-10-25T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1959-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1959-10-25T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1959-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1959-04-26T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1959-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1959-04-26T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1959-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1959-10-25T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1959-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1959-10-25T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1959-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1960-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1960-04-24T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1960-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1960-10-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1960-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1960-10-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1960-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1960-04-24T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1960-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1960-04-24T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1960-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1960-10-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1960-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1960-10-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1960-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1961-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1961-04-30T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1961-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1961-10-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1961-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1961-10-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1961-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1961-04-30T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1961-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1961-04-30T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1961-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1961-10-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1961-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1961-10-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1961-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1962-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1962-04-29T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1962-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1962-10-28T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1962-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1962-10-28T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1962-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1962-04-29T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1962-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1962-04-29T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1962-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1962-10-28T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1962-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1962-10-28T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1962-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1963-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1963-04-28T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1963-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1963-10-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1963-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1963-10-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1963-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1963-04-28T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1963-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1963-04-28T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1963-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1963-10-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1963-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1963-10-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1963-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1964-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1964-04-26T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1964-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1964-10-25T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1964-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1964-10-25T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1964-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1964-04-26T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1964-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1964-04-26T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1964-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1964-10-25T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1964-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1964-10-25T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1964-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1965-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1965-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1965-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1965-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1965-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1965-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1965-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1965-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1966-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1966-04-24T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1966-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1966-10-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1966-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1966-10-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1966-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1966-04-24T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1966-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1966-04-24T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1966-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1966-10-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1966-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1966-10-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1966-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1967-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1967-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1967-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1967-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1967-04-30T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1967-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1967-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1967-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1967-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1968-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1968-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1968-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1968-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1968-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1968-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1968-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1968-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1973-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1973-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1973-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1973-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1973-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1973-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1974-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1974-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1974-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1974-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1975-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1975-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1975-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1975-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Montreal").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Montreal").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Montreal").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Montreal").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Montreal").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Montreal").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Montreal").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Montreal").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Montreal").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/montserrat.js b/tests/america/montserrat.js deleted file mode 100644 index e932ea68..00000000 --- a/tests/america/montserrat.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Montserrat"] = { - - "1911" : function (t) { - t.equal(moment("1911-07-01T04:09:51+00:00").tz("America/Montserrat").format("HH:mm:ss"), "00:00:59", "1911-07-01T04:09:51+00:00 should be 00:00:59 LMT"); - t.equal(moment("1911-07-01T04:09:52+00:00").tz("America/Montserrat").format("HH:mm:ss"), "00:09:52", "1911-07-01T04:09:52+00:00 should be 00:09:52 AST"); - - t.equal(moment("1911-07-01T04:09:51+00:00").tz("America/Montserrat").zone(), 14932 / 60, "1911-07-01T04:09:51+00:00 should be 14932 / 60 minutes offset in LMT"); - t.equal(moment("1911-07-01T04:09:52+00:00").tz("America/Montserrat").zone(), 240, "1911-07-01T04:09:52+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/nassau.js b/tests/america/nassau.js deleted file mode 100644 index 3e81a45d..00000000 --- a/tests/america/nassau.js +++ /dev/null @@ -1,1050 +0,0 @@ -var moment = require("../../index"); - -exports["America/Nassau"] = { - - "1912" : function (t) { - t.equal(moment("1912-03-02T05:09:29+00:00").tz("America/Nassau").format("HH:mm:ss"), "23:59:59", "1912-03-02T05:09:29+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-03-02T05:09:30+00:00").tz("America/Nassau").format("HH:mm:ss"), "00:09:30", "1912-03-02T05:09:30+00:00 should be 00:09:30 EST"); - - t.equal(moment("1912-03-02T05:09:29+00:00").tz("America/Nassau").zone(), 18570 / 60, "1912-03-02T05:09:29+00:00 should be 18570 / 60 minutes offset in LMT"); - t.equal(moment("1912-03-02T05:09:30+00:00").tz("America/Nassau").zone(), 300, "1912-03-02T05:09:30+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1964-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1964-04-26T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1964-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1964-10-25T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1964-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1964-10-25T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1964-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1964-04-26T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1964-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1964-04-26T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1964-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1964-10-25T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1964-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1964-10-25T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1964-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1965-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1965-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1965-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1965-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1965-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1965-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1965-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1965-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1966-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1966-04-24T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1966-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1966-10-30T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1966-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1966-10-30T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1966-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1966-04-24T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1966-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1966-04-24T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1966-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1966-10-30T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1966-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1966-10-30T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1966-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1967-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1967-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1967-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1967-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1967-04-30T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1967-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1967-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1967-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1967-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1968-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1968-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1968-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1968-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1968-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1968-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1968-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1968-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1973-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1973-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1973-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1973-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1973-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1973-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1974-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1974-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1974-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1974-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1975-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1975-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1975-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1975-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Nassau").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Nassau").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Nassau").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Nassau").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Nassau").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Nassau").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Nassau").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Nassau").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Nassau").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/new_york.js b/tests/america/new_york.js deleted file mode 100644 index c076f57b..00000000 --- a/tests/america/new_york.js +++ /dev/null @@ -1,1652 +0,0 @@ -var moment = require("../../index"); - -exports["America/New_York"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1918-03-31T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1918-03-31T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1918-03-31T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1918-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1918-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1918-03-31T06:59:59+00:00").tz("America/New_York").zone(), 300, "1918-03-31T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1918-03-31T07:00:00+00:00").tz("America/New_York").zone(), 240, "1918-03-31T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1918-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1918-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1919-03-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1919-03-30T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1919-03-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1919-10-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1919-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1919-10-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1919-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1919-03-30T06:59:59+00:00").tz("America/New_York").zone(), 300, "1919-03-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1919-03-30T07:00:00+00:00").tz("America/New_York").zone(), 240, "1919-03-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1919-10-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1919-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1919-10-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1919-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-03-28T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1920-03-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1920-03-28T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1920-03-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1920-10-31T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1920-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1920-10-31T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1920-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1920-03-28T06:59:59+00:00").tz("America/New_York").zone(), 300, "1920-03-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1920-03-28T07:00:00+00:00").tz("America/New_York").zone(), 240, "1920-03-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1920-10-31T05:59:59+00:00").tz("America/New_York").zone(), 240, "1920-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1920-10-31T06:00:00+00:00").tz("America/New_York").zone(), 300, "1920-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1921-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1921-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1921-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1921-09-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1921-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1921-09-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1921-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1921-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1921-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1921-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1921-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1921-09-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1921-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1921-09-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1921-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-04-30T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1922-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1922-04-30T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1922-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1922-09-24T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1922-09-24T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1922-09-24T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1922-09-24T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1922-04-30T06:59:59+00:00").tz("America/New_York").zone(), 300, "1922-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1922-04-30T07:00:00+00:00").tz("America/New_York").zone(), 240, "1922-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1922-09-24T05:59:59+00:00").tz("America/New_York").zone(), 240, "1922-09-24T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1922-09-24T06:00:00+00:00").tz("America/New_York").zone(), 300, "1922-09-24T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-29T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1923-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1923-04-29T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1923-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1923-09-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1923-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1923-09-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1923-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1923-04-29T06:59:59+00:00").tz("America/New_York").zone(), 300, "1923-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1923-04-29T07:00:00+00:00").tz("America/New_York").zone(), 240, "1923-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1923-09-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1923-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1923-09-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1923-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-27T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1924-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1924-04-27T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1924-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1924-09-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1924-09-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1924-09-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1924-09-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1924-04-27T06:59:59+00:00").tz("America/New_York").zone(), 300, "1924-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1924-04-27T07:00:00+00:00").tz("America/New_York").zone(), 240, "1924-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1924-09-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1924-09-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1924-09-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1924-09-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-26T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1925-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1925-04-26T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1925-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1925-09-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1925-09-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1925-09-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1925-09-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1925-04-26T06:59:59+00:00").tz("America/New_York").zone(), 300, "1925-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1925-04-26T07:00:00+00:00").tz("America/New_York").zone(), 240, "1925-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1925-09-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1925-09-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1925-09-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1925-09-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-25T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1926-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1926-04-25T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1926-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1926-09-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1926-09-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1926-09-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1926-09-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1926-04-25T06:59:59+00:00").tz("America/New_York").zone(), 300, "1926-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1926-04-25T07:00:00+00:00").tz("America/New_York").zone(), 240, "1926-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1926-09-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1926-09-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1926-09-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1926-09-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1927-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1927-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1927-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1927-09-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1927-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1927-09-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1927-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1927-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1927-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1927-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1927-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1927-09-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1927-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1927-09-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1927-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-29T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1928-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1928-04-29T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1928-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1928-09-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1928-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1928-09-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1928-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1928-04-29T06:59:59+00:00").tz("America/New_York").zone(), 300, "1928-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1928-04-29T07:00:00+00:00").tz("America/New_York").zone(), 240, "1928-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1928-09-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1928-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1928-09-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1928-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-28T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1929-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1929-04-28T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1929-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1929-09-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1929-09-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1929-09-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1929-09-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1929-04-28T06:59:59+00:00").tz("America/New_York").zone(), 300, "1929-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1929-04-28T07:00:00+00:00").tz("America/New_York").zone(), 240, "1929-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1929-09-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1929-09-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1929-09-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1929-09-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-27T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1930-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1930-04-27T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1930-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1930-09-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1930-09-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1930-09-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1930-09-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1930-04-27T06:59:59+00:00").tz("America/New_York").zone(), 300, "1930-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1930-04-27T07:00:00+00:00").tz("America/New_York").zone(), 240, "1930-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1930-09-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1930-09-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1930-09-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1930-09-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-26T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1931-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1931-04-26T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1931-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1931-09-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1931-09-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1931-09-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1931-09-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1931-04-26T06:59:59+00:00").tz("America/New_York").zone(), 300, "1931-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1931-04-26T07:00:00+00:00").tz("America/New_York").zone(), 240, "1931-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1931-09-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1931-09-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1931-09-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1931-09-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1932-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1932-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1932-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1932-09-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1932-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1932-09-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1932-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1932-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1932-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1932-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1932-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1932-09-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1932-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1932-09-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1932-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-30T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1933-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1933-04-30T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1933-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1933-09-24T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1933-09-24T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1933-09-24T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1933-09-24T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1933-04-30T06:59:59+00:00").tz("America/New_York").zone(), 300, "1933-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1933-04-30T07:00:00+00:00").tz("America/New_York").zone(), 240, "1933-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1933-09-24T05:59:59+00:00").tz("America/New_York").zone(), 240, "1933-09-24T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1933-09-24T06:00:00+00:00").tz("America/New_York").zone(), 300, "1933-09-24T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-29T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1934-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1934-04-29T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1934-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1934-09-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1934-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1934-09-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1934-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1934-04-29T06:59:59+00:00").tz("America/New_York").zone(), 300, "1934-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1934-04-29T07:00:00+00:00").tz("America/New_York").zone(), 240, "1934-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1934-09-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1934-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1934-09-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1934-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-28T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1935-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1935-04-28T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1935-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1935-09-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1935-09-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1935-09-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1935-09-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1935-04-28T06:59:59+00:00").tz("America/New_York").zone(), 300, "1935-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1935-04-28T07:00:00+00:00").tz("America/New_York").zone(), 240, "1935-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1935-09-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1935-09-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1935-09-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1935-09-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-26T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1936-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1936-04-26T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1936-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1936-09-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1936-09-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1936-09-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1936-09-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1936-04-26T06:59:59+00:00").tz("America/New_York").zone(), 300, "1936-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1936-04-26T07:00:00+00:00").tz("America/New_York").zone(), 240, "1936-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1936-09-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1936-09-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1936-09-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1936-09-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-25T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1937-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1937-04-25T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1937-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1937-09-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1937-09-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1937-09-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1937-09-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1937-04-25T06:59:59+00:00").tz("America/New_York").zone(), 300, "1937-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1937-04-25T07:00:00+00:00").tz("America/New_York").zone(), 240, "1937-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1937-09-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1937-09-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1937-09-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1937-09-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1938-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1938-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1938-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1938-09-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1938-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1938-09-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1938-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1938-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1938-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1938-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1938-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1938-09-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1938-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1938-09-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1938-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-30T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1939-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1939-04-30T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1939-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1939-09-24T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1939-09-24T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1939-09-24T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1939-09-24T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1939-04-30T06:59:59+00:00").tz("America/New_York").zone(), 300, "1939-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1939-04-30T07:00:00+00:00").tz("America/New_York").zone(), 240, "1939-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1939-09-24T05:59:59+00:00").tz("America/New_York").zone(), 240, "1939-09-24T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1939-09-24T06:00:00+00:00").tz("America/New_York").zone(), 300, "1939-09-24T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-28T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1940-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1940-04-28T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1940-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1940-09-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1940-09-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1940-09-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1940-09-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1940-04-28T06:59:59+00:00").tz("America/New_York").zone(), 300, "1940-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1940-04-28T07:00:00+00:00").tz("America/New_York").zone(), 240, "1940-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1940-09-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1940-09-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1940-09-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1940-09-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-27T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1941-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1941-04-27T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1941-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1941-09-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1941-09-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1941-09-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1941-09-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1941-04-27T06:59:59+00:00").tz("America/New_York").zone(), 300, "1941-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1941-04-27T07:00:00+00:00").tz("America/New_York").zone(), 240, "1941-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1941-09-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1941-09-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1941-09-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1941-09-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1942-02-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1942-02-09T07:00:00+00:00 should be 03:00:00 EWT"); - - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/New_York").zone(), 300, "1942-02-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/New_York").zone(), 240, "1942-02-09T07:00:00+00:00 should be 240 minutes offset in EWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "18:59:59", "1945-08-14T22:59:59+00:00 should be 18:59:59 EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "19:00:00", "1945-08-14T23:00:00+00:00 should be 19:00:00 EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1945-09-30T05:59:59+00:00 should be 01:59:59 EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1945-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/New_York").zone(), 240, "1945-08-14T22:59:59+00:00 should be 240 minutes offset in EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/New_York").zone(), 240, "1945-08-14T23:00:00+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1945-09-30T05:59:59+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1945-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1946-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1946-04-28T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1946-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1946-09-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1946-09-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1946-09-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1946-09-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1946-04-28T06:59:59+00:00").tz("America/New_York").zone(), 300, "1946-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1946-04-28T07:00:00+00:00").tz("America/New_York").zone(), 240, "1946-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1946-09-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1946-09-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1946-09-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1946-09-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1947-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1947-04-27T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1947-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1947-09-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1947-09-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1947-09-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1947-09-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1947-04-27T06:59:59+00:00").tz("America/New_York").zone(), 300, "1947-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1947-04-27T07:00:00+00:00").tz("America/New_York").zone(), 240, "1947-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1947-09-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1947-09-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1947-09-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1947-09-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1948-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1948-04-25T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1948-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1948-09-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1948-09-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1948-09-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1948-09-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1948-04-25T06:59:59+00:00").tz("America/New_York").zone(), 300, "1948-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1948-04-25T07:00:00+00:00").tz("America/New_York").zone(), 240, "1948-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1948-09-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1948-09-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1948-09-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1948-09-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1949-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1949-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1949-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1949-09-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1949-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1949-09-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1949-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1949-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1949-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1949-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1949-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1949-09-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1949-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1949-09-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1949-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1950-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1950-04-30T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1950-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1950-09-24T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1950-09-24T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1950-09-24T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1950-09-24T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1950-04-30T06:59:59+00:00").tz("America/New_York").zone(), 300, "1950-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1950-04-30T07:00:00+00:00").tz("America/New_York").zone(), 240, "1950-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1950-09-24T05:59:59+00:00").tz("America/New_York").zone(), 240, "1950-09-24T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1950-09-24T06:00:00+00:00").tz("America/New_York").zone(), 300, "1950-09-24T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1951-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1951-04-29T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1951-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1951-09-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1951-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1951-09-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1951-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1951-04-29T06:59:59+00:00").tz("America/New_York").zone(), 300, "1951-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1951-04-29T07:00:00+00:00").tz("America/New_York").zone(), 240, "1951-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1951-09-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1951-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1951-09-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1951-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1952-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1952-04-27T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1952-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1952-09-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1952-09-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1952-09-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1952-09-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1952-04-27T06:59:59+00:00").tz("America/New_York").zone(), 300, "1952-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1952-04-27T07:00:00+00:00").tz("America/New_York").zone(), 240, "1952-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1952-09-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1952-09-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1952-09-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1952-09-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1953-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1953-04-26T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1953-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1953-09-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1953-09-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1953-09-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1953-09-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1953-04-26T06:59:59+00:00").tz("America/New_York").zone(), 300, "1953-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1953-04-26T07:00:00+00:00").tz("America/New_York").zone(), 240, "1953-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1953-09-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1953-09-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1953-09-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1953-09-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1954-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1954-04-25T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1954-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1954-09-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1954-09-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1954-09-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1954-09-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1954-04-25T06:59:59+00:00").tz("America/New_York").zone(), 300, "1954-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1954-04-25T07:00:00+00:00").tz("America/New_York").zone(), 240, "1954-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1954-09-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1954-09-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1954-09-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1954-09-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1955-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1955-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1955-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1955-10-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1955-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1955-10-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1955-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1955-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1955-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1955-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1955-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1955-10-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1955-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1955-10-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1955-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1956-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1956-04-29T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1956-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1956-10-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1956-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1956-10-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1956-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1956-04-29T06:59:59+00:00").tz("America/New_York").zone(), 300, "1956-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1956-04-29T07:00:00+00:00").tz("America/New_York").zone(), 240, "1956-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1956-10-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1956-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1956-10-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1956-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1957-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1957-04-28T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1957-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1957-10-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1957-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1957-10-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1957-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1957-04-28T06:59:59+00:00").tz("America/New_York").zone(), 300, "1957-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1957-04-28T07:00:00+00:00").tz("America/New_York").zone(), 240, "1957-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1957-10-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1957-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1957-10-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1957-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1958-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1958-04-27T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1958-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1958-10-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1958-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1958-10-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1958-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1958-04-27T06:59:59+00:00").tz("America/New_York").zone(), 300, "1958-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1958-04-27T07:00:00+00:00").tz("America/New_York").zone(), 240, "1958-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1958-10-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1958-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1958-10-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1958-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1959-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1959-04-26T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1959-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1959-10-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1959-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1959-10-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1959-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1959-04-26T06:59:59+00:00").tz("America/New_York").zone(), 300, "1959-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1959-04-26T07:00:00+00:00").tz("America/New_York").zone(), 240, "1959-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1959-10-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1959-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1959-10-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1959-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1960-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1960-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1960-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1960-10-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1960-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1960-10-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1960-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1960-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1960-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1960-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1960-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1960-10-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1960-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1960-10-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1960-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1961-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1961-04-30T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1961-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1961-10-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1961-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1961-10-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1961-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1961-04-30T06:59:59+00:00").tz("America/New_York").zone(), 300, "1961-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1961-04-30T07:00:00+00:00").tz("America/New_York").zone(), 240, "1961-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1961-10-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1961-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1961-10-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1961-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1962-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1962-04-29T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1962-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1962-10-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1962-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1962-10-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1962-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1962-04-29T06:59:59+00:00").tz("America/New_York").zone(), 300, "1962-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1962-04-29T07:00:00+00:00").tz("America/New_York").zone(), 240, "1962-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1962-10-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1962-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1962-10-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1962-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1963-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1963-04-28T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1963-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1963-10-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1963-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1963-10-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1963-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1963-04-28T06:59:59+00:00").tz("America/New_York").zone(), 300, "1963-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1963-04-28T07:00:00+00:00").tz("America/New_York").zone(), 240, "1963-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1963-10-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1963-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1963-10-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1963-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1964-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1964-04-26T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1964-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1964-10-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1964-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1964-10-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1964-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1964-04-26T06:59:59+00:00").tz("America/New_York").zone(), 300, "1964-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1964-04-26T07:00:00+00:00").tz("America/New_York").zone(), 240, "1964-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1964-10-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1964-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1964-10-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1964-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1965-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1965-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1965-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1965-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/New_York").zone(), 300, "1965-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/New_York").zone(), 240, "1965-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/New_York").zone(), 240, "1965-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/New_York").zone(), 300, "1965-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1966-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1966-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1966-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1966-10-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1966-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1966-10-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1966-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1966-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1966-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1966-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1966-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1966-10-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1966-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1966-10-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1966-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1967-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1967-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1967-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1967-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1967-04-30T06:59:59+00:00").tz("America/New_York").zone(), 300, "1967-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("America/New_York").zone(), 240, "1967-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1967-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1967-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1968-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1968-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1968-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1968-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/New_York").zone(), 300, "1968-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/New_York").zone(), 240, "1968-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1968-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1968-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/New_York").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/New_York").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/New_York").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/New_York").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/New_York").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/New_York").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/New_York").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/New_York").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/New_York").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/New_York").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1973-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1973-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1973-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/New_York").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/New_York").zone(), 240, "1973-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1973-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1973-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1974-01-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1974-01-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/New_York").zone(), 300, "1974-01-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/New_York").zone(), 240, "1974-01-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1975-02-23T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1975-02-23T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/New_York").zone(), 300, "1975-02-23T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/New_York").zone(), 240, "1975-02-23T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/New_York").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/New_York").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/New_York").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/New_York").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/New_York").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/New_York").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/New_York").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/New_York").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/New_York").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/New_York").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/New_York").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/New_York").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/New_York").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/New_York").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/New_York").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/New_York").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/New_York").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/New_York").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/New_York").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/New_York").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/New_York").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/New_York").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/New_York").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/New_York").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/New_York").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/New_York").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/New_York").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/New_York").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/New_York").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/New_York").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/New_York").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/New_York").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/New_York").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/New_York").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/New_York").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/New_York").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/New_York").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/New_York").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/New_York").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/New_York").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/New_York").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/New_York").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/New_York").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/New_York").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/New_York").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/New_York").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/New_York").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/New_York").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/New_York").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/New_York").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/New_York").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/New_York").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/New_York").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/New_York").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/New_York").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/New_York").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/New_York").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/New_York").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/New_York").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/New_York").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/New_York").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/New_York").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/New_York").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/New_York").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/New_York").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/New_York").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/New_York").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/New_York").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/New_York").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/New_York").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/New_York").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/New_York").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/New_York").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/New_York").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/New_York").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/New_York").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/New_York").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/New_York").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/New_York").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/New_York").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/New_York").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/New_York").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/New_York").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/New_York").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/New_York").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/New_York").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/New_York").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/New_York").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/New_York").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/New_York").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/New_York").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/New_York").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/New_York").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/New_York").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/New_York").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/New_York").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/New_York").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/New_York").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/New_York").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/New_York").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/New_York").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/New_York").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/New_York").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/New_York").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/New_York").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/New_York").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/New_York").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/New_York").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/New_York").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/New_York").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/New_York").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/New_York").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/New_York").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/New_York").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/New_York").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/New_York").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/New_York").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/New_York").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/New_York").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/New_York").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/New_York").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/New_York").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/New_York").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/New_York").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/New_York").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/New_York").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/New_York").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/New_York").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/New_York").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/New_York").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/New_York").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/New_York").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/New_York").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/New_York").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/New_York").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/New_York").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/New_York").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/New_York").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/New_York").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/New_York").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/New_York").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/New_York").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/New_York").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/New_York").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/New_York").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/New_York").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/New_York").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/New_York").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/New_York").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/New_York").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/New_York").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/New_York").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/New_York").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/New_York").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/New_York").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/New_York").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/New_York").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/New_York").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/New_York").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/New_York").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/New_York").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/New_York").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/New_York").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/New_York").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/New_York").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/New_York").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/New_York").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/New_York").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/New_York").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/New_York").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/New_York").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/New_York").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/New_York").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/New_York").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/New_York").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/New_York").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/New_York").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/New_York").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/New_York").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/New_York").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/New_York").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/New_York").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/New_York").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/New_York").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/New_York").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/New_York").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/New_York").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/New_York").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/New_York").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/New_York").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/New_York").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/New_York").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/New_York").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/New_York").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/New_York").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/New_York").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/New_York").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/New_York").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/New_York").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/New_York").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/New_York").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/New_York").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/New_York").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/New_York").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/New_York").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/New_York").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/New_York").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/New_York").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/nipigon.js b/tests/america/nipigon.js deleted file mode 100644 index 6bfdcde5..00000000 --- a/tests/america/nipigon.js +++ /dev/null @@ -1,948 +0,0 @@ -var moment = require("../../index"); - -exports["America/Nipigon"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1918-04-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1918-04-14T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1918-04-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1918-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1918-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1918-04-14T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1918-04-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1918-04-14T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1918-04-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1918-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1918-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-09-29T04:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "23:59:59", "1940-09-29T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1940-09-29T05:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1940-09-29T05:00:00+00:00 should be 01:00:00 EDT"); - - t.equal(moment("1940-09-29T04:59:59+00:00").tz("America/Nipigon").zone(), 300, "1940-09-29T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1940-09-29T05:00:00+00:00").tz("America/Nipigon").zone(), 240, "1940-09-29T05:00:00+00:00 should be 240 minutes offset in EDT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "02:59:59", "1942-02-09T06:59:59+00:00 should be 02:59:59 EDT"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1942-02-09T07:00:00+00:00 should be 03:00:00 EWT"); - - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Nipigon").zone(), 240, "1942-02-09T06:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1942-02-09T07:00:00+00:00 should be 240 minutes offset in EWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "18:59:59", "1945-08-14T22:59:59+00:00 should be 18:59:59 EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "19:00:00", "1945-08-14T23:00:00+00:00 should be 19:00:00 EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1945-09-30T05:59:59+00:00 should be 01:59:59 EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1945-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Nipigon").zone(), 240, "1945-08-14T22:59:59+00:00 should be 240 minutes offset in EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Nipigon").zone(), 240, "1945-08-14T23:00:00+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1945-09-30T05:59:59+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1945-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1974-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1974-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1974-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1974-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1975-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1975-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1975-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1975-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Nipigon").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Nipigon").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Nipigon").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Nipigon").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Nipigon").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/nome.js b/tests/america/nome.js deleted file mode 100644 index e9642bd9..00000000 --- a/tests/america/nome.js +++ /dev/null @@ -1,1008 +0,0 @@ -var moment = require("../../index"); - -exports["America/Nome"] = { - - "1942" : function (t) { - t.equal(moment("1942-02-09T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1942-02-09T12:59:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1942-02-09T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1942-02-09T13:00:00+00:00 should be 03:00:00 NWT"); - - t.equal(moment("1942-02-09T12:59:59+00:00").tz("America/Nome").zone(), 660, "1942-02-09T12:59:59+00:00 should be 660 minutes offset in NST"); - t.equal(moment("1942-02-09T13:00:00+00:00").tz("America/Nome").zone(), 600, "1942-02-09T13:00:00+00:00 should be 600 minutes offset in NWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "12:59:59", "1945-08-14T22:59:59+00:00 should be 12:59:59 NWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "13:00:00", "1945-08-14T23:00:00+00:00 should be 13:00:00 NPT"); - t.equal(moment("1945-09-30T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1945-09-30T11:59:59+00:00 should be 01:59:59 NPT"); - t.equal(moment("1945-09-30T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1945-09-30T12:00:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Nome").zone(), 600, "1945-08-14T22:59:59+00:00 should be 600 minutes offset in NWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Nome").zone(), 600, "1945-08-14T23:00:00+00:00 should be 600 minutes offset in NPT"); - t.equal(moment("1945-09-30T11:59:59+00:00").tz("America/Nome").zone(), 600, "1945-09-30T11:59:59+00:00 should be 600 minutes offset in NPT"); - t.equal(moment("1945-09-30T12:00:00+00:00").tz("America/Nome").zone(), 660, "1945-09-30T12:00:00+00:00 should be 660 minutes offset in NST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-01T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "23:59:59", "1967-04-01T10:59:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1967-04-01T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "00:00:00", "1967-04-01T11:00:00+00:00 should be 00:00:00 BST"); - - t.equal(moment("1967-04-01T10:59:59+00:00").tz("America/Nome").zone(), 660, "1967-04-01T10:59:59+00:00 should be 660 minutes offset in NST"); - t.equal(moment("1967-04-01T11:00:00+00:00").tz("America/Nome").zone(), 660, "1967-04-01T11:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1969-04-27T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1969-04-27T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1969-04-27T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1969-10-26T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1969-10-26T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1969-10-26T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1969-10-26T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1969-04-27T12:59:59+00:00").tz("America/Nome").zone(), 660, "1969-04-27T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1969-04-27T13:00:00+00:00").tz("America/Nome").zone(), 600, "1969-04-27T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1969-10-26T11:59:59+00:00").tz("America/Nome").zone(), 600, "1969-10-26T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1969-10-26T12:00:00+00:00").tz("America/Nome").zone(), 660, "1969-10-26T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1970-04-26T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1970-04-26T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1970-04-26T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1970-10-25T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1970-10-25T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1970-10-25T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1970-10-25T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1970-04-26T12:59:59+00:00").tz("America/Nome").zone(), 660, "1970-04-26T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1970-04-26T13:00:00+00:00").tz("America/Nome").zone(), 600, "1970-04-26T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1970-10-25T11:59:59+00:00").tz("America/Nome").zone(), 600, "1970-10-25T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1970-10-25T12:00:00+00:00").tz("America/Nome").zone(), 660, "1970-10-25T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1971-04-25T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1971-04-25T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1971-04-25T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1971-10-31T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1971-10-31T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1971-10-31T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1971-10-31T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1971-04-25T12:59:59+00:00").tz("America/Nome").zone(), 660, "1971-04-25T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1971-04-25T13:00:00+00:00").tz("America/Nome").zone(), 600, "1971-04-25T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1971-10-31T11:59:59+00:00").tz("America/Nome").zone(), 600, "1971-10-31T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1971-10-31T12:00:00+00:00").tz("America/Nome").zone(), 660, "1971-10-31T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1972-04-30T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1972-04-30T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1972-04-30T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1972-10-29T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1972-10-29T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1972-10-29T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1972-10-29T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1972-04-30T12:59:59+00:00").tz("America/Nome").zone(), 660, "1972-04-30T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1972-04-30T13:00:00+00:00").tz("America/Nome").zone(), 600, "1972-04-30T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1972-10-29T11:59:59+00:00").tz("America/Nome").zone(), 600, "1972-10-29T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1972-10-29T12:00:00+00:00").tz("America/Nome").zone(), 660, "1972-10-29T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1973-04-29T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1973-04-29T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1973-04-29T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1973-10-28T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1973-10-28T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1973-10-28T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1973-10-28T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1973-04-29T12:59:59+00:00").tz("America/Nome").zone(), 660, "1973-04-29T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1973-04-29T13:00:00+00:00").tz("America/Nome").zone(), 600, "1973-04-29T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1973-10-28T11:59:59+00:00").tz("America/Nome").zone(), 600, "1973-10-28T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1973-10-28T12:00:00+00:00").tz("America/Nome").zone(), 660, "1973-10-28T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1974-01-06T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1974-01-06T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1974-01-06T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1974-10-27T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1974-10-27T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1974-10-27T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1974-10-27T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1974-01-06T12:59:59+00:00").tz("America/Nome").zone(), 660, "1974-01-06T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1974-01-06T13:00:00+00:00").tz("America/Nome").zone(), 600, "1974-01-06T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1974-10-27T11:59:59+00:00").tz("America/Nome").zone(), 600, "1974-10-27T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1974-10-27T12:00:00+00:00").tz("America/Nome").zone(), 660, "1974-10-27T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1975-02-23T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1975-02-23T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1975-02-23T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1975-10-26T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1975-10-26T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1975-10-26T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1975-10-26T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1975-02-23T12:59:59+00:00").tz("America/Nome").zone(), 660, "1975-02-23T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1975-02-23T13:00:00+00:00").tz("America/Nome").zone(), 600, "1975-02-23T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1975-10-26T11:59:59+00:00").tz("America/Nome").zone(), 600, "1975-10-26T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1975-10-26T12:00:00+00:00").tz("America/Nome").zone(), 660, "1975-10-26T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1976-04-25T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1976-04-25T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1976-04-25T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1976-10-31T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1976-10-31T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1976-10-31T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1976-10-31T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1976-04-25T12:59:59+00:00").tz("America/Nome").zone(), 660, "1976-04-25T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1976-04-25T13:00:00+00:00").tz("America/Nome").zone(), 600, "1976-04-25T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1976-10-31T11:59:59+00:00").tz("America/Nome").zone(), 600, "1976-10-31T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1976-10-31T12:00:00+00:00").tz("America/Nome").zone(), 660, "1976-10-31T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1977-04-24T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1977-04-24T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1977-04-24T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1977-10-30T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1977-10-30T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1977-10-30T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1977-10-30T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1977-04-24T12:59:59+00:00").tz("America/Nome").zone(), 660, "1977-04-24T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1977-04-24T13:00:00+00:00").tz("America/Nome").zone(), 600, "1977-04-24T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1977-10-30T11:59:59+00:00").tz("America/Nome").zone(), 600, "1977-10-30T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1977-10-30T12:00:00+00:00").tz("America/Nome").zone(), 660, "1977-10-30T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1978-04-30T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1978-04-30T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1978-04-30T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1978-10-29T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1978-10-29T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1978-10-29T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1978-10-29T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1978-04-30T12:59:59+00:00").tz("America/Nome").zone(), 660, "1978-04-30T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1978-04-30T13:00:00+00:00").tz("America/Nome").zone(), 600, "1978-04-30T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1978-10-29T11:59:59+00:00").tz("America/Nome").zone(), 600, "1978-10-29T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1978-10-29T12:00:00+00:00").tz("America/Nome").zone(), 660, "1978-10-29T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1979-04-29T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1979-04-29T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1979-04-29T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1979-10-28T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1979-10-28T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1979-10-28T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1979-10-28T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1979-04-29T12:59:59+00:00").tz("America/Nome").zone(), 660, "1979-04-29T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1979-04-29T13:00:00+00:00").tz("America/Nome").zone(), 600, "1979-04-29T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1979-10-28T11:59:59+00:00").tz("America/Nome").zone(), 600, "1979-10-28T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1979-10-28T12:00:00+00:00").tz("America/Nome").zone(), 660, "1979-10-28T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1980-04-27T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1980-04-27T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1980-04-27T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1980-10-26T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1980-10-26T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1980-10-26T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1980-10-26T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1980-04-27T12:59:59+00:00").tz("America/Nome").zone(), 660, "1980-04-27T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1980-04-27T13:00:00+00:00").tz("America/Nome").zone(), 600, "1980-04-27T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1980-10-26T11:59:59+00:00").tz("America/Nome").zone(), 600, "1980-10-26T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1980-10-26T12:00:00+00:00").tz("America/Nome").zone(), 660, "1980-10-26T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1981-04-26T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1981-04-26T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1981-04-26T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1981-10-25T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1981-10-25T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1981-10-25T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1981-10-25T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1981-04-26T12:59:59+00:00").tz("America/Nome").zone(), 660, "1981-04-26T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1981-04-26T13:00:00+00:00").tz("America/Nome").zone(), 600, "1981-04-26T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1981-10-25T11:59:59+00:00").tz("America/Nome").zone(), 600, "1981-10-25T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1981-10-25T12:00:00+00:00").tz("America/Nome").zone(), 660, "1981-10-25T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1982-04-25T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1982-04-25T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1982-04-25T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1982-10-31T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1982-10-31T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1982-10-31T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1982-10-31T12:00:00+00:00 should be 01:00:00 BST"); - - t.equal(moment("1982-04-25T12:59:59+00:00").tz("America/Nome").zone(), 660, "1982-04-25T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1982-04-25T13:00:00+00:00").tz("America/Nome").zone(), 600, "1982-04-25T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1982-10-31T11:59:59+00:00").tz("America/Nome").zone(), 600, "1982-10-31T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1982-10-31T12:00:00+00:00").tz("America/Nome").zone(), 660, "1982-10-31T12:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T12:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1983-04-24T12:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1983-04-24T13:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1983-04-24T13:00:00+00:00 should be 03:00:00 BDT"); - t.equal(moment("1983-10-30T11:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1983-10-30T11:59:59+00:00 should be 01:59:59 BDT"); - t.equal(moment("1983-10-30T12:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1983-10-30T12:00:00+00:00 should be 03:00:00 YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "23:59:59", "1983-11-30T08:59:59+00:00 should be 23:59:59 YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "00:00:00", "1983-11-30T09:00:00+00:00 should be 00:00:00 AKST"); - - t.equal(moment("1983-04-24T12:59:59+00:00").tz("America/Nome").zone(), 660, "1983-04-24T12:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1983-04-24T13:00:00+00:00").tz("America/Nome").zone(), 600, "1983-04-24T13:00:00+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1983-10-30T11:59:59+00:00").tz("America/Nome").zone(), 600, "1983-10-30T11:59:59+00:00 should be 600 minutes offset in BDT"); - t.equal(moment("1983-10-30T12:00:00+00:00").tz("America/Nome").zone(), 540, "1983-10-30T12:00:00+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Nome").zone(), 540, "1983-11-30T08:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Nome").zone(), 540, "1983-11-30T09:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1984-04-29T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1984-04-29T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1984-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1984-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Nome").zone(), 540, "1984-04-29T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Nome").zone(), 480, "1984-04-29T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Nome").zone(), 480, "1984-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Nome").zone(), 540, "1984-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1985-04-28T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1985-04-28T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1985-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1985-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Nome").zone(), 540, "1985-04-28T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Nome").zone(), 480, "1985-04-28T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Nome").zone(), 480, "1985-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Nome").zone(), 540, "1985-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1986-04-27T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1986-04-27T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1986-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1986-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Nome").zone(), 540, "1986-04-27T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Nome").zone(), 480, "1986-04-27T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Nome").zone(), 480, "1986-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Nome").zone(), 540, "1986-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1987-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1987-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1987-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1987-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Nome").zone(), 540, "1987-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Nome").zone(), 480, "1987-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Nome").zone(), 480, "1987-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Nome").zone(), 540, "1987-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1988-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1988-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1988-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1988-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Nome").zone(), 540, "1988-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Nome").zone(), 480, "1988-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Nome").zone(), 480, "1988-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Nome").zone(), 540, "1988-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1989-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1989-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1989-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1989-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Nome").zone(), 540, "1989-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Nome").zone(), 480, "1989-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Nome").zone(), 480, "1989-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Nome").zone(), 540, "1989-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1990-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1990-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1990-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1990-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Nome").zone(), 540, "1990-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Nome").zone(), 480, "1990-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Nome").zone(), 480, "1990-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Nome").zone(), 540, "1990-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1991-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1991-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1991-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1991-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Nome").zone(), 540, "1991-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Nome").zone(), 480, "1991-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Nome").zone(), 480, "1991-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Nome").zone(), 540, "1991-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1992-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1992-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1992-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1992-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Nome").zone(), 540, "1992-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Nome").zone(), 480, "1992-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Nome").zone(), 480, "1992-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Nome").zone(), 540, "1992-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1993-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1993-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1993-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1993-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Nome").zone(), 540, "1993-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Nome").zone(), 480, "1993-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Nome").zone(), 480, "1993-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Nome").zone(), 540, "1993-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1994-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1994-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1994-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1994-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Nome").zone(), 540, "1994-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Nome").zone(), 480, "1994-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Nome").zone(), 480, "1994-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Nome").zone(), 540, "1994-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1995-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1995-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1995-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1995-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Nome").zone(), 540, "1995-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Nome").zone(), 480, "1995-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Nome").zone(), 480, "1995-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Nome").zone(), 540, "1995-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1996-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1996-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1996-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1996-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Nome").zone(), 540, "1996-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Nome").zone(), 480, "1996-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Nome").zone(), 480, "1996-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Nome").zone(), 540, "1996-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1997-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1997-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1997-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1997-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Nome").zone(), 540, "1997-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Nome").zone(), 480, "1997-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Nome").zone(), 480, "1997-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Nome").zone(), 540, "1997-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1998-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1998-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1998-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1998-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Nome").zone(), 540, "1998-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Nome").zone(), 480, "1998-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Nome").zone(), 480, "1998-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Nome").zone(), 540, "1998-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1999-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "1999-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "1999-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "1999-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Nome").zone(), 540, "1999-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Nome").zone(), 480, "1999-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Nome").zone(), 480, "1999-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Nome").zone(), 540, "1999-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2000-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2000-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2000-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2000-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Nome").zone(), 540, "2000-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Nome").zone(), 480, "2000-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Nome").zone(), 480, "2000-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Nome").zone(), 540, "2000-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2001-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2001-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2001-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2001-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Nome").zone(), 540, "2001-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Nome").zone(), 480, "2001-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Nome").zone(), 480, "2001-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Nome").zone(), 540, "2001-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2002-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2002-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2002-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2002-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Nome").zone(), 540, "2002-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Nome").zone(), 480, "2002-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Nome").zone(), 480, "2002-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Nome").zone(), 540, "2002-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2003-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2003-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2003-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2003-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Nome").zone(), 540, "2003-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Nome").zone(), 480, "2003-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Nome").zone(), 480, "2003-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Nome").zone(), 540, "2003-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2004-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2004-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2004-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2004-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Nome").zone(), 540, "2004-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Nome").zone(), 480, "2004-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Nome").zone(), 480, "2004-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Nome").zone(), 540, "2004-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2005-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2005-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2005-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2005-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Nome").zone(), 540, "2005-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Nome").zone(), 480, "2005-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Nome").zone(), 480, "2005-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Nome").zone(), 540, "2005-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2006-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2006-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2006-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2006-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Nome").zone(), 540, "2006-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Nome").zone(), 480, "2006-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Nome").zone(), 480, "2006-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Nome").zone(), 540, "2006-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2007-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2007-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2007-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2007-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Nome").zone(), 540, "2007-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Nome").zone(), 480, "2007-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Nome").zone(), 480, "2007-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Nome").zone(), 540, "2007-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2008-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2008-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2008-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2008-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Nome").zone(), 540, "2008-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Nome").zone(), 480, "2008-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Nome").zone(), 480, "2008-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Nome").zone(), 540, "2008-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2009-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2009-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2009-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2009-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Nome").zone(), 540, "2009-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Nome").zone(), 480, "2009-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Nome").zone(), 480, "2009-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Nome").zone(), 540, "2009-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2010-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2010-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2010-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2010-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Nome").zone(), 540, "2010-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Nome").zone(), 480, "2010-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Nome").zone(), 480, "2010-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Nome").zone(), 540, "2010-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2011-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2011-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2011-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2011-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Nome").zone(), 540, "2011-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Nome").zone(), 480, "2011-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Nome").zone(), 480, "2011-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Nome").zone(), 540, "2011-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2012-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2012-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2012-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2012-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Nome").zone(), 540, "2012-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Nome").zone(), 480, "2012-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Nome").zone(), 480, "2012-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Nome").zone(), 540, "2012-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2013-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2013-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2013-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2013-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Nome").zone(), 540, "2013-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Nome").zone(), 480, "2013-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Nome").zone(), 480, "2013-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Nome").zone(), 540, "2013-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2014-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2014-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2014-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2014-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Nome").zone(), 540, "2014-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Nome").zone(), 480, "2014-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Nome").zone(), 480, "2014-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Nome").zone(), 540, "2014-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2015-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2015-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2015-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2015-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Nome").zone(), 540, "2015-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Nome").zone(), 480, "2015-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Nome").zone(), 480, "2015-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Nome").zone(), 540, "2015-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2016-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2016-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2016-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2016-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Nome").zone(), 540, "2016-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Nome").zone(), 480, "2016-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Nome").zone(), 480, "2016-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Nome").zone(), 540, "2016-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2017-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2017-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2017-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2017-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Nome").zone(), 540, "2017-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Nome").zone(), 480, "2017-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Nome").zone(), 480, "2017-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Nome").zone(), 540, "2017-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2018-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2018-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2018-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2018-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Nome").zone(), 540, "2018-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Nome").zone(), 480, "2018-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Nome").zone(), 480, "2018-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Nome").zone(), 540, "2018-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2019-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2019-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2019-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2019-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Nome").zone(), 540, "2019-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Nome").zone(), 480, "2019-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Nome").zone(), 480, "2019-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Nome").zone(), 540, "2019-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2020-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2020-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2020-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2020-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Nome").zone(), 540, "2020-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Nome").zone(), 480, "2020-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Nome").zone(), 480, "2020-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Nome").zone(), 540, "2020-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2021-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2021-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2021-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2021-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Nome").zone(), 540, "2021-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Nome").zone(), 480, "2021-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Nome").zone(), 480, "2021-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Nome").zone(), 540, "2021-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2022-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2022-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2022-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2022-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Nome").zone(), 540, "2022-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Nome").zone(), 480, "2022-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Nome").zone(), 480, "2022-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Nome").zone(), 540, "2022-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2023-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2023-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2023-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2023-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Nome").zone(), 540, "2023-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Nome").zone(), 480, "2023-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Nome").zone(), 480, "2023-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Nome").zone(), 540, "2023-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2024-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2024-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2024-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2024-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Nome").zone(), 540, "2024-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Nome").zone(), 480, "2024-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Nome").zone(), 480, "2024-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Nome").zone(), 540, "2024-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2025-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2025-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2025-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2025-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Nome").zone(), 540, "2025-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Nome").zone(), 480, "2025-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Nome").zone(), 480, "2025-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Nome").zone(), 540, "2025-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2026-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2026-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2026-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2026-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Nome").zone(), 540, "2026-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Nome").zone(), 480, "2026-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Nome").zone(), 480, "2026-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Nome").zone(), 540, "2026-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2027-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2027-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2027-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2027-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Nome").zone(), 540, "2027-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Nome").zone(), 480, "2027-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Nome").zone(), 480, "2027-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Nome").zone(), 540, "2027-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2028-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2028-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2028-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2028-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Nome").zone(), 540, "2028-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Nome").zone(), 480, "2028-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Nome").zone(), 480, "2028-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Nome").zone(), 540, "2028-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2029-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2029-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2029-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2029-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Nome").zone(), 540, "2029-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Nome").zone(), 480, "2029-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Nome").zone(), 480, "2029-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Nome").zone(), 540, "2029-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2030-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2030-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2030-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2030-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Nome").zone(), 540, "2030-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Nome").zone(), 480, "2030-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Nome").zone(), 480, "2030-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Nome").zone(), 540, "2030-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2031-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2031-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2031-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2031-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Nome").zone(), 540, "2031-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Nome").zone(), 480, "2031-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Nome").zone(), 480, "2031-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Nome").zone(), 540, "2031-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2032-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2032-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2032-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2032-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Nome").zone(), 540, "2032-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Nome").zone(), 480, "2032-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Nome").zone(), 480, "2032-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Nome").zone(), 540, "2032-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2033-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2033-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2033-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2033-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Nome").zone(), 540, "2033-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Nome").zone(), 480, "2033-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Nome").zone(), 480, "2033-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Nome").zone(), 540, "2033-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2034-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2034-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2034-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2034-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Nome").zone(), 540, "2034-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Nome").zone(), 480, "2034-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Nome").zone(), 480, "2034-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Nome").zone(), 540, "2034-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2035-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2035-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2035-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2035-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Nome").zone(), 540, "2035-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Nome").zone(), 480, "2035-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Nome").zone(), 480, "2035-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Nome").zone(), 540, "2035-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2036-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2036-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2036-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2036-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Nome").zone(), 540, "2036-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Nome").zone(), 480, "2036-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Nome").zone(), 480, "2036-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Nome").zone(), 540, "2036-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2037-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "03:00:00", "2037-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Nome").format("HH:mm:ss"), "01:59:59", "2037-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Nome").format("HH:mm:ss"), "01:00:00", "2037-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Nome").zone(), 540, "2037-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Nome").zone(), 480, "2037-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Nome").zone(), 480, "2037-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Nome").zone(), 540, "2037-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/noronha.js b/tests/america/noronha.js deleted file mode 100644 index bf02e12a..00000000 --- a/tests/america/noronha.js +++ /dev/null @@ -1,310 +0,0 @@ -var moment = require("../../index"); - -exports["America/Noronha"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T02:09:39+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1914-01-01T02:09:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T02:09:40+00:00").tz("America/Noronha").format("HH:mm:ss"), "00:09:40", "1914-01-01T02:09:40+00:00 should be 00:09:40 FNT"); - - t.equal(moment("1914-01-01T02:09:39+00:00").tz("America/Noronha").zone(), 7780 / 60, "1914-01-01T02:09:39+00:00 should be 7780 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T02:09:40+00:00").tz("America/Noronha").zone(), 120, "1914-01-01T02:09:40+00:00 should be 120 minutes offset in FNT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T12:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "10:59:59", "1931-10-03T12:59:59+00:00 should be 10:59:59 FNT"); - t.equal(moment("1931-10-03T13:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "12:00:00", "1931-10-03T13:00:00+00:00 should be 12:00:00 FNST"); - - t.equal(moment("1931-10-03T12:59:59+00:00").tz("America/Noronha").zone(), 120, "1931-10-03T12:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1931-10-03T13:00:00+00:00").tz("America/Noronha").zone(), 60, "1931-10-03T13:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1932-04-01T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1932-04-01T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1932-04-01T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1932-10-03T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1932-10-03T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1932-10-03T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1932-10-03T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1932-04-01T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1932-04-01T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1932-04-01T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1932-04-01T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1932-10-03T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1932-10-03T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1932-10-03T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1932-10-03T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1933-04-01T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1933-04-01T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1933-04-01T01:00:00+00:00 should be 23:00:00 FNT"); - - t.equal(moment("1933-04-01T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1933-04-01T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1933-04-01T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1933-04-01T01:00:00+00:00 should be 120 minutes offset in FNT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1949-12-01T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1949-12-01T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1949-12-01T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1949-12-01T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1949-12-01T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1949-12-01T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1949-12-01T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "00:59:59", "1950-04-16T01:59:59+00:00 should be 00:59:59 FNST"); - t.equal(moment("1950-04-16T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "00:00:00", "1950-04-16T02:00:00+00:00 should be 00:00:00 FNT"); - t.equal(moment("1950-12-01T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1950-12-01T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1950-12-01T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1950-12-01T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1950-04-16T01:59:59+00:00").tz("America/Noronha").zone(), 60, "1950-04-16T01:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1950-04-16T02:00:00+00:00").tz("America/Noronha").zone(), 120, "1950-04-16T02:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1950-12-01T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1950-12-01T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1950-12-01T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1950-12-01T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1951-04-01T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1951-04-01T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1951-04-01T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1951-12-01T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1951-12-01T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1951-12-01T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1951-12-01T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1951-04-01T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1951-04-01T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1951-04-01T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1951-04-01T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1951-12-01T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1951-12-01T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1951-12-01T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1951-12-01T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1952-04-01T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1952-04-01T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1952-04-01T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1952-12-01T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1952-12-01T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1952-12-01T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1952-12-01T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1952-04-01T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1952-04-01T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1952-04-01T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1952-04-01T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1952-12-01T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1952-12-01T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1952-12-01T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1952-12-01T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1953-03-01T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1953-03-01T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1953-03-01T01:00:00+00:00 should be 23:00:00 FNT"); - - t.equal(moment("1953-03-01T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1953-03-01T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1953-03-01T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1953-03-01T01:00:00+00:00 should be 120 minutes offset in FNT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1963-12-09T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1963-12-09T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1963-12-09T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1963-12-09T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1963-12-09T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1963-12-09T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1963-12-09T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1964-03-01T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1964-03-01T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1964-03-01T01:00:00+00:00 should be 23:00:00 FNT"); - - t.equal(moment("1964-03-01T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1964-03-01T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1964-03-01T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1964-03-01T01:00:00+00:00 should be 120 minutes offset in FNT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1965-01-31T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1965-01-31T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1965-01-31T02:00:00+00:00 should be 01:00:00 FNST"); - t.equal(moment("1965-03-31T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1965-03-31T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1965-03-31T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1965-03-31T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1965-12-01T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1965-12-01T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1965-12-01T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1965-12-01T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1965-01-31T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1965-01-31T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1965-01-31T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1965-01-31T02:00:00+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1965-03-31T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1965-03-31T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1965-03-31T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1965-03-31T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1965-12-01T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1965-12-01T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1965-12-01T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1965-12-01T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1966-03-01T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1966-03-01T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1966-03-01T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1966-11-01T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1966-11-01T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1966-11-01T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1966-11-01T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1966-03-01T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1966-03-01T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1966-03-01T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1966-03-01T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1966-11-01T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1966-11-01T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1966-11-01T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1966-11-01T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1967-03-01T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1967-03-01T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1967-03-01T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1967-11-01T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1967-11-01T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1967-11-01T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1967-11-01T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1967-03-01T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1967-03-01T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1967-03-01T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1967-03-01T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1967-11-01T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1967-11-01T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1967-11-01T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1967-11-01T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1968-03-01T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1968-03-01T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1968-03-01T01:00:00+00:00 should be 23:00:00 FNT"); - - t.equal(moment("1968-03-01T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1968-03-01T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1968-03-01T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1968-03-01T01:00:00+00:00 should be 120 minutes offset in FNT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1985-11-02T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1985-11-02T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1985-11-02T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1985-11-02T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1985-11-02T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1985-11-02T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1985-11-02T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1986-03-15T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1986-03-15T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1986-03-15T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1986-10-25T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1986-10-25T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1986-10-25T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1986-10-25T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1986-03-15T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1986-03-15T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1986-03-15T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1986-03-15T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1986-10-25T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1986-10-25T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1986-10-25T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1986-10-25T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1987-02-14T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1987-02-14T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1987-02-14T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1987-10-25T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1987-10-25T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1987-10-25T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1987-10-25T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1987-02-14T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1987-02-14T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1987-02-14T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1987-02-14T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1987-10-25T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1987-10-25T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1987-10-25T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1987-10-25T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1988-02-07T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1988-02-07T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1988-02-07T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1988-10-16T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1988-10-16T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1988-10-16T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1988-10-16T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1988-02-07T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1988-02-07T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1988-02-07T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1988-02-07T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1988-10-16T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1988-10-16T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1988-10-16T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1988-10-16T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-01-29T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1989-01-29T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1989-01-29T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1989-01-29T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("1989-10-15T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1989-10-15T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1989-10-15T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1989-10-15T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1989-01-29T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1989-01-29T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1989-01-29T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1989-01-29T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1989-10-15T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1989-10-15T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1989-10-15T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1989-10-15T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-02-11T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1990-02-11T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("1990-02-11T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "1990-02-11T01:00:00+00:00 should be 23:00:00 FNT"); - - t.equal(moment("1990-02-11T00:59:59+00:00").tz("America/Noronha").zone(), 60, "1990-02-11T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("1990-02-11T01:00:00+00:00").tz("America/Noronha").zone(), 120, "1990-02-11T01:00:00+00:00 should be 120 minutes offset in FNT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "1999-10-03T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("1999-10-03T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "1999-10-03T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("1999-10-03T01:59:59+00:00").tz("America/Noronha").zone(), 120, "1999-10-03T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("1999-10-03T02:00:00+00:00").tz("America/Noronha").zone(), 60, "1999-10-03T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "2000-02-27T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("2000-02-27T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "2000-02-27T01:00:00+00:00 should be 23:00:00 FNT"); - t.equal(moment("2000-10-08T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "2000-10-08T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("2000-10-08T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "2000-10-08T02:00:00+00:00 should be 01:00:00 FNST"); - t.equal(moment("2000-10-15T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "2000-10-15T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("2000-10-15T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "2000-10-15T01:00:00+00:00 should be 23:00:00 FNT"); - - t.equal(moment("2000-02-27T00:59:59+00:00").tz("America/Noronha").zone(), 60, "2000-02-27T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("2000-02-27T01:00:00+00:00").tz("America/Noronha").zone(), 120, "2000-02-27T01:00:00+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("2000-10-08T01:59:59+00:00").tz("America/Noronha").zone(), 120, "2000-10-08T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("2000-10-08T02:00:00+00:00").tz("America/Noronha").zone(), 60, "2000-10-08T02:00:00+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("2000-10-15T00:59:59+00:00").tz("America/Noronha").zone(), 60, "2000-10-15T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("2000-10-15T01:00:00+00:00").tz("America/Noronha").zone(), 120, "2000-10-15T01:00:00+00:00 should be 120 minutes offset in FNT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-10-14T01:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "2001-10-14T01:59:59+00:00 should be 23:59:59 FNT"); - t.equal(moment("2001-10-14T02:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "01:00:00", "2001-10-14T02:00:00+00:00 should be 01:00:00 FNST"); - - t.equal(moment("2001-10-14T01:59:59+00:00").tz("America/Noronha").zone(), 120, "2001-10-14T01:59:59+00:00 should be 120 minutes offset in FNT"); - t.equal(moment("2001-10-14T02:00:00+00:00").tz("America/Noronha").zone(), 60, "2001-10-14T02:00:00+00:00 should be 60 minutes offset in FNST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-02-17T00:59:59+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:59:59", "2002-02-17T00:59:59+00:00 should be 23:59:59 FNST"); - t.equal(moment("2002-02-17T01:00:00+00:00").tz("America/Noronha").format("HH:mm:ss"), "23:00:00", "2002-02-17T01:00:00+00:00 should be 23:00:00 FNT"); - - t.equal(moment("2002-02-17T00:59:59+00:00").tz("America/Noronha").zone(), 60, "2002-02-17T00:59:59+00:00 should be 60 minutes offset in FNST"); - t.equal(moment("2002-02-17T01:00:00+00:00").tz("America/Noronha").zone(), 120, "2002-02-17T01:00:00+00:00 should be 120 minutes offset in FNT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/north_dakota/beulah.js b/tests/america/north_dakota/beulah.js deleted file mode 100644 index 60fb0c6a..00000000 --- a/tests/america/north_dakota/beulah.js +++ /dev/null @@ -1,1050 +0,0 @@ -var moment = require("../../../index"); - -exports["America/North_Dakota/Beulah"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1918-03-31T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1918-03-31T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1918-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1918-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1918-03-31T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1918-03-31T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1918-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1918-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1919-03-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1919-03-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1919-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1919-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1919-03-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1919-03-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1919-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1919-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1967-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1967-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1967-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1967-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1967-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1967-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1967-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1967-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1968-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1968-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1968-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1968-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1968-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1968-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1968-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1968-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1969-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1969-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1969-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1969-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1969-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1969-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1969-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1969-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1970-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1970-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1970-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1970-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1970-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1970-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1970-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1970-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1971-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1971-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1971-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1971-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1971-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1971-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1971-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1971-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1972-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1972-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1972-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1972-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1972-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1972-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1972-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1972-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1973-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1973-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1973-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1973-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1973-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1973-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1973-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1973-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1974-01-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1974-01-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1974-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1974-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1974-01-06T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1974-01-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1974-01-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1974-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1974-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1975-02-23T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1975-02-23T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1975-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1975-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1975-02-23T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1975-02-23T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1975-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1975-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1976-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1976-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1976-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1976-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1976-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1976-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1976-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1976-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1977-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1977-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1977-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1977-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1977-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1977-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1977-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1977-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1978-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1978-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1978-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1978-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1978-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1978-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1978-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1978-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1979-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1979-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1979-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1979-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1979-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1979-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1979-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1979-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1992-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1992-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1993-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1993-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1993-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1993-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1993-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1993-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1993-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1993-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1994-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1994-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1994-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1994-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1994-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1994-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1994-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1994-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1995-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1995-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1995-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1995-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1995-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1995-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1995-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1995-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2001-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2001-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2001-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2001-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2001-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2001-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2001-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2001-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2007-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2007-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2007-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2007-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2007-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2007-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2007-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2007-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2008-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2008-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2008-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2008-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2008-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2008-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2008-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2008-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2009-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2009-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2009-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2009-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2009-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2009-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2009-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2009-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2010-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2010-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2010-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "02:00:00", "2010-11-07T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 420, "2010-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2010-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2010-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2010-11-07T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/North_Dakota/Beulah").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/North_Dakota/Beulah").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/North_Dakota/Beulah").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/north_dakota/center.js b/tests/america/north_dakota/center.js deleted file mode 100644 index 17dc76f7..00000000 --- a/tests/america/north_dakota/center.js +++ /dev/null @@ -1,1050 +0,0 @@ -var moment = require("../../../index"); - -exports["America/North_Dakota/Center"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1918-03-31T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1918-03-31T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1918-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1918-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1918-03-31T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1918-03-31T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1918-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1918-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1919-03-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1919-03-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1919-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1919-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1919-03-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1919-03-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1919-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1919-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1967-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1967-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1967-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1967-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1967-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1967-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1967-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1967-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1968-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1968-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1968-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1968-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1968-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1968-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1968-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1968-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1969-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1969-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1969-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1969-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1969-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1969-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1969-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1969-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1970-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1970-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1970-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1970-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1970-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1970-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1970-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1970-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1971-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1971-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1971-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1971-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1971-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1971-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1971-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1971-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1972-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1972-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1972-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1972-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1972-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1972-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1972-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1972-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1973-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1973-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1973-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1973-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1973-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1973-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1973-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1973-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1974-01-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1974-01-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1974-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1974-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1974-01-06T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1974-01-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1974-01-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1974-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1974-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1975-02-23T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1975-02-23T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1975-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1975-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1975-02-23T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1975-02-23T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1975-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1975-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1976-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1976-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1976-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1976-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1976-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1976-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1976-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1976-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1977-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1977-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1977-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1977-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1977-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1977-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1977-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1977-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1978-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1978-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1978-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1978-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1978-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1978-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1978-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1978-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1979-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1979-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1979-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1979-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1979-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1979-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1979-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1979-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "02:00:00", "1992-10-25T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/North_Dakota/Center").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1992-10-25T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1993-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1993-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1993-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1993-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1993-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "1993-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "1993-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1993-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1994-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1994-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1994-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1994-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1994-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "1994-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "1994-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1994-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1995-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1995-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1995-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1995-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1995-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "1995-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "1995-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1995-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2001-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2001-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2001-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2001-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2001-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2001-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2001-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2001-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/North_Dakota/Center").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/North_Dakota/Center").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/North_Dakota/Center").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/North_Dakota/Center").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/north_dakota/new_salem.js b/tests/america/north_dakota/new_salem.js deleted file mode 100644 index 7eb05827..00000000 --- a/tests/america/north_dakota/new_salem.js +++ /dev/null @@ -1,1050 +0,0 @@ -var moment = require("../../../index"); - -exports["America/North_Dakota/New_Salem"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1918-03-31T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1918-03-31T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1918-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1918-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1918-03-31T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1918-03-31T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1918-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1918-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1919-03-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1919-03-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1919-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1919-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1919-03-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1919-03-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1919-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1919-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1967-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1967-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1967-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1967-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1967-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1967-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1967-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1967-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1968-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1968-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1968-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1968-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1968-04-28T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1968-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1968-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1968-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1968-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1969-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1969-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1969-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1969-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1969-04-27T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1969-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1969-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1969-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1969-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1970-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1970-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1970-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1970-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1970-04-26T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1970-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1970-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1970-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1970-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1971-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1971-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1971-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1971-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1971-04-25T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1971-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1971-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1971-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1971-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1972-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1972-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1972-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1972-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1972-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1972-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1972-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1972-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1973-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1973-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1973-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1973-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1973-04-29T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1973-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1973-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1973-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1973-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1974-01-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1974-01-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1974-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1974-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1974-01-06T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1974-01-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1974-01-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1974-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1974-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1975-02-23T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1975-02-23T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1975-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1975-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1975-02-23T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1975-02-23T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1975-02-23T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1975-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1975-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1976-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1976-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1976-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1976-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1976-04-25T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1976-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1976-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1976-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1976-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1977-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1977-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1977-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1977-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1977-04-24T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1977-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1977-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1977-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1977-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1978-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1978-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1978-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1978-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1978-04-30T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1978-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1978-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1978-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1978-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1979-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1979-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1979-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1979-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1979-04-29T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1979-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1979-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1979-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1979-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1992-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1992-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1993-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1993-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1993-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1993-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1993-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1993-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1993-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1993-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1994-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1994-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1994-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1994-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1994-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1994-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1994-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1994-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1995-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1995-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1995-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1995-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1995-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1995-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1995-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1995-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2001-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2001-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2001-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2001-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "2001-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2001-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2001-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "2001-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "02:00:00", "2003-10-26T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2003-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/North_Dakota/New_Salem").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/North_Dakota/New_Salem").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/ojinaga.js b/tests/america/ojinaga.js deleted file mode 100644 index 5d417daa..00000000 --- a/tests/america/ojinaga.js +++ /dev/null @@ -1,646 +0,0 @@ -var moment = require("../../index"); - -exports["America/Ojinaga"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "00:02:19", "1922-01-01T06:59:59+00:00 should be 00:02:19 LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "00:00:00", "1922-01-01T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1922-01-01T06:59:59+00:00").tz("America/Ojinaga").zone(), 25060 / 60, "1922-01-01T06:59:59+00:00 should be 25060 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T07:00:00+00:00").tz("America/Ojinaga").zone(), 420, "1922-01-01T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "22:59:59", "1927-06-11T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "00:00:00", "1927-06-11T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1927-06-11T05:59:59+00:00").tz("America/Ojinaga").zone(), 420, "1927-06-11T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1927-06-11T06:00:00+00:00").tz("America/Ojinaga").zone(), 360, "1927-06-11T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "23:59:59", "1930-11-15T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "23:00:00", "1930-11-15T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1930-11-15T05:59:59+00:00").tz("America/Ojinaga").zone(), 360, "1930-11-15T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1930-11-15T06:00:00+00:00").tz("America/Ojinaga").zone(), 420, "1930-11-15T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "22:59:59", "1931-05-02T05:59:59+00:00 should be 22:59:59 MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "00:00:00", "1931-05-02T06:00:00+00:00 should be 00:00:00 CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "23:59:59", "1931-10-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "23:00:00", "1931-10-01T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1931-05-02T05:59:59+00:00").tz("America/Ojinaga").zone(), 420, "1931-05-02T05:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1931-05-02T06:00:00+00:00").tz("America/Ojinaga").zone(), 360, "1931-05-02T06:00:00+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T05:59:59+00:00").tz("America/Ojinaga").zone(), 360, "1931-10-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1931-10-01T06:00:00+00:00").tz("America/Ojinaga").zone(), 420, "1931-10-01T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "23:59:59", "1932-04-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "1932-04-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1932-04-01T06:59:59+00:00").tz("America/Ojinaga").zone(), 420, "1932-04-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1932-04-01T07:00:00+00:00").tz("America/Ojinaga").zone(), 360, "1932-04-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Ojinaga").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Ojinaga").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Ojinaga").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Ojinaga").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Ojinaga").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Ojinaga").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "02:59:59", "1998-04-05T08:59:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Ojinaga").zone(), 360, "1998-04-05T08:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-05-06T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2001-05-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-05-06T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2001-05-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-09-30T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2001-09-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-09-30T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2001-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-05-06T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2001-05-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-05-06T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2001-05-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-09-30T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2001-09-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-09-30T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2001-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2007-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-04-01T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2007-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-10-28T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2007-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-10-28T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2007-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-04-01T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2007-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-04-01T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2007-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-10-28T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2007-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-10-28T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2007-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2008-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-04-06T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2008-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-10-26T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2008-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-10-26T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2008-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-04-06T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2008-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-04-06T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2008-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-10-26T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2008-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-10-26T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2008-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2009-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-04-05T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2009-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-10-25T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2009-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-10-25T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2009-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-04-05T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2009-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-04-05T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2009-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-10-25T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2009-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-10-25T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2009-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2010-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2010-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2010-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2010-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2010-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2010-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2010-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2010-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2011-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2011-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2011-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2011-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2011-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2011-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2011-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2011-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2012-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2012-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2012-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2012-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2012-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2012-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2012-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2012-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2013-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2013-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2013-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2013-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2013-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2013-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2013-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2013-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2014-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2014-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2014-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2014-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2014-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2014-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2014-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2014-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2015-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2015-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2015-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2015-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2015-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2015-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2015-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2015-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2016-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2016-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2016-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2016-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2016-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2016-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2016-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2016-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2017-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2017-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2017-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2017-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2017-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2017-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2017-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2017-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2018-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2018-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2018-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2018-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2018-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2018-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2018-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2018-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2019-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2019-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2019-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2019-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2019-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2019-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2019-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2019-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2020-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2020-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2020-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2020-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2020-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2020-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2020-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2020-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2021-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2021-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2021-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2021-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2021-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2021-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2021-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2021-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2022-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2022-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2022-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2022-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2022-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2022-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2022-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2022-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2023-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2023-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2023-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2023-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2023-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2023-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2023-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2023-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2024-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2024-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2024-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2024-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2024-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2024-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2024-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2024-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2025-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2025-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2025-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2025-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2025-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2025-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2025-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2025-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2026-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2026-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2026-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2026-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2026-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2026-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2026-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2026-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2027-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2027-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2027-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2027-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2027-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2027-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2027-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2027-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2028-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2028-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2028-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2028-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2028-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2028-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2028-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2028-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2029-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2029-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2029-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2029-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2029-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2029-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2029-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2029-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2030-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2030-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2030-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2030-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2030-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2030-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2030-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2030-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2031-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2031-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2031-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2031-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2031-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2031-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2031-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2031-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2032-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2032-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2032-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2032-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2032-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2032-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2032-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2032-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2033-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2033-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2033-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2033-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2033-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2033-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2033-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2033-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2034-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2034-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2034-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2034-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2034-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2034-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2034-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2034-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2035-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2035-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2035-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2035-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2035-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2035-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2035-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2035-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2036-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2036-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2036-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2036-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2036-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2036-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2036-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2036-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2037-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "03:00:00", "2037-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:59:59", "2037-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Ojinaga").format("HH:mm:ss"), "01:00:00", "2037-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Ojinaga").zone(), 420, "2037-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Ojinaga").zone(), 360, "2037-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Ojinaga").zone(), 360, "2037-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Ojinaga").zone(), 420, "2037-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/panama.js b/tests/america/panama.js deleted file mode 100644 index 8386a078..00000000 --- a/tests/america/panama.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Panama"] = { - - "1908" : function (t) { - t.equal(moment("1908-04-22T05:19:35+00:00").tz("America/Panama").format("HH:mm:ss"), "23:59:59", "1908-04-22T05:19:35+00:00 should be 23:59:59 CMT"); - t.equal(moment("1908-04-22T05:19:36+00:00").tz("America/Panama").format("HH:mm:ss"), "00:19:36", "1908-04-22T05:19:36+00:00 should be 00:19:36 EST"); - - t.equal(moment("1908-04-22T05:19:35+00:00").tz("America/Panama").zone(), 19176 / 60, "1908-04-22T05:19:35+00:00 should be 19176 / 60 minutes offset in CMT"); - t.equal(moment("1908-04-22T05:19:36+00:00").tz("America/Panama").zone(), 300, "1908-04-22T05:19:36+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/pangnirtung.js b/tests/america/pangnirtung.js deleted file mode 100644 index 34a5eb25..00000000 --- a/tests/america/pangnirtung.js +++ /dev/null @@ -1,870 +0,0 @@ -var moment = require("../../index"); - -exports["America/Pangnirtung"] = { - - "1920" : function (t) { - t.equal(moment("1920-12-31T23:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "23:59:59", "1920-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1920-12-31T23:59:59+00:00").tz("America/Pangnirtung").zone(), 0, "1920-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-01-01T00:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "20:00:00", "1921-01-01T00:00:00+00:00 should be 20:00:00 AST"); - - t.equal(moment("1921-01-01T00:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1921-01-01T00:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1942-02-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1942-02-09T06:00:00+00:00 should be 03:00:00 AWT"); - - t.equal(moment("1942-02-09T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1942-02-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1942-02-09T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1942-02-09T06:00:00+00:00 should be 180 minutes offset in AWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "19:59:59", "1945-08-14T22:59:59+00:00 should be 19:59:59 AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "20:00:00", "1945-08-14T23:00:00+00:00 should be 20:00:00 APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1945-09-30T04:59:59+00:00 should be 01:59:59 APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1945-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1945-08-14T22:59:59+00:00 should be 180 minutes offset in AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1945-08-14T23:00:00+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1945-09-30T04:59:59+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1945-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T03:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "23:59:59", "1965-04-25T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1965-04-25T04:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "02:00:00", "1965-04-25T04:00:00+00:00 should be 02:00:00 ADDT"); - t.equal(moment("1965-10-31T03:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1965-10-31T03:59:59+00:00 should be 01:59:59 ADDT"); - t.equal(moment("1965-10-31T04:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "00:00:00", "1965-10-31T04:00:00+00:00 should be 00:00:00 AST"); - - t.equal(moment("1965-04-25T03:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1965-04-25T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1965-04-25T04:00:00+00:00").tz("America/Pangnirtung").zone(), 120, "1965-04-25T04:00:00+00:00 should be 120 minutes offset in ADDT"); - t.equal(moment("1965-10-31T03:59:59+00:00").tz("America/Pangnirtung").zone(), 120, "1965-10-31T03:59:59+00:00 should be 120 minutes offset in ADDT"); - t.equal(moment("1965-10-31T04:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1965-10-31T04:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1980-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1980-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1980-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1980-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1980-04-27T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1980-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1980-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1980-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1980-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1981-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1981-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1981-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1981-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1981-04-26T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1981-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1981-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1981-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1981-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1982-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1982-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1982-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1982-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1982-04-25T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1982-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1982-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1982-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1982-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1983-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1983-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1983-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1983-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1983-04-24T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1983-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1983-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1983-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1983-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1984-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1984-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1984-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1984-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1984-04-29T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1984-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1984-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1984-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1984-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1985-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1985-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1985-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1985-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1985-04-28T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1985-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1985-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1985-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1985-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1986-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1986-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1986-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1986-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1986-04-27T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1986-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1986-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1986-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1986-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1987-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1987-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1987-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1987-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1987-04-05T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1987-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1987-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1987-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1987-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1988-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1988-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1988-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1988-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1988-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1988-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1988-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1988-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1989-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1989-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1989-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1989-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1989-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1989-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1989-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1989-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1990-04-01T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1990-04-01T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1990-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1990-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1990-04-01T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1990-04-01T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1990-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1990-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1991-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1991-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1991-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1991-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1991-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1991-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1991-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1991-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1992-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1992-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1992-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1992-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1992-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1992-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1992-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1992-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1993-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1993-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1993-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1993-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1993-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1993-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1993-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1993-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1994-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1994-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1994-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1994-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1994-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Pangnirtung").zone(), 180, "1994-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("America/Pangnirtung").zone(), 180, "1994-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1994-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1995-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "02:00:00", "1995-04-02T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1995-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1995-04-02T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "00:00:00", "1999-10-31T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Pangnirtung").zone(), 360, "1999-10-31T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "02:00:00", "2000-10-29T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Pangnirtung").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2000-10-29T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Pangnirtung").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Pangnirtung").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Pangnirtung").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Pangnirtung").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Pangnirtung").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/paramaribo.js b/tests/america/paramaribo.js deleted file mode 100644 index 7456346e..00000000 --- a/tests/america/paramaribo.js +++ /dev/null @@ -1,54 +0,0 @@ -var moment = require("../../index"); - -exports["America/Paramaribo"] = { - - "1911" : function (t) { - t.equal(moment("1911-01-01T03:40:39+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "23:59:59", "1911-01-01T03:40:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-01-01T03:40:40+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "23:59:48", "1911-01-01T03:40:40+00:00 should be 23:59:48 PMT"); - - t.equal(moment("1911-01-01T03:40:39+00:00").tz("America/Paramaribo").zone(), 13240 / 60, "1911-01-01T03:40:39+00:00 should be 13240 / 60 minutes offset in LMT"); - t.equal(moment("1911-01-01T03:40:40+00:00").tz("America/Paramaribo").zone(), 13252 / 60, "1911-01-01T03:40:40+00:00 should be 13252 / 60 minutes offset in PMT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-01-01T03:40:51+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "23:59:59", "1935-01-01T03:40:51+00:00 should be 23:59:59 PMT"); - t.equal(moment("1935-01-01T03:40:52+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "00:00:16", "1935-01-01T03:40:52+00:00 should be 00:00:16 PMT"); - - t.equal(moment("1935-01-01T03:40:51+00:00").tz("America/Paramaribo").zone(), 13252 / 60, "1935-01-01T03:40:51+00:00 should be 13252 / 60 minutes offset in PMT"); - t.equal(moment("1935-01-01T03:40:52+00:00").tz("America/Paramaribo").zone(), 13236 / 60, "1935-01-01T03:40:52+00:00 should be 13236 / 60 minutes offset in PMT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-10-01T03:40:35+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "23:59:59", "1945-10-01T03:40:35+00:00 should be 23:59:59 PMT"); - t.equal(moment("1945-10-01T03:40:36+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "00:10:36", "1945-10-01T03:40:36+00:00 should be 00:10:36 NEGT"); - - t.equal(moment("1945-10-01T03:40:35+00:00").tz("America/Paramaribo").zone(), 13236 / 60, "1945-10-01T03:40:35+00:00 should be 13236 / 60 minutes offset in PMT"); - t.equal(moment("1945-10-01T03:40:36+00:00").tz("America/Paramaribo").zone(), 210, "1945-10-01T03:40:36+00:00 should be 210 minutes offset in NEGT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-11-20T03:29:59+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "23:59:59", "1975-11-20T03:29:59+00:00 should be 23:59:59 NEGT"); - t.equal(moment("1975-11-20T03:30:00+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "00:00:00", "1975-11-20T03:30:00+00:00 should be 00:00:00 SRT"); - - t.equal(moment("1975-11-20T03:29:59+00:00").tz("America/Paramaribo").zone(), 210, "1975-11-20T03:29:59+00:00 should be 210 minutes offset in NEGT"); - t.equal(moment("1975-11-20T03:30:00+00:00").tz("America/Paramaribo").zone(), 210, "1975-11-20T03:30:00+00:00 should be 210 minutes offset in SRT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-10-01T03:29:59+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "23:59:59", "1984-10-01T03:29:59+00:00 should be 23:59:59 SRT"); - t.equal(moment("1984-10-01T03:30:00+00:00").tz("America/Paramaribo").format("HH:mm:ss"), "00:30:00", "1984-10-01T03:30:00+00:00 should be 00:30:00 SRT"); - - t.equal(moment("1984-10-01T03:29:59+00:00").tz("America/Paramaribo").zone(), 210, "1984-10-01T03:29:59+00:00 should be 210 minutes offset in SRT"); - t.equal(moment("1984-10-01T03:30:00+00:00").tz("America/Paramaribo").zone(), 180, "1984-10-01T03:30:00+00:00 should be 180 minutes offset in SRT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/phoenix.js b/tests/america/phoenix.js deleted file mode 100644 index e3750a67..00000000 --- a/tests/america/phoenix.js +++ /dev/null @@ -1,74 +0,0 @@ -var moment = require("../../index"); - -exports["America/Phoenix"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:59:59", "1918-03-31T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "03:00:00", "1918-03-31T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:59:59", "1918-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:00:00", "1918-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-03-31T08:59:59+00:00").tz("America/Phoenix").zone(), 420, "1918-03-31T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("America/Phoenix").zone(), 360, "1918-03-31T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Phoenix").zone(), 360, "1918-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Phoenix").zone(), 420, "1918-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:59:59", "1919-03-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "03:00:00", "1919-03-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:59:59", "1919-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:00:00", "1919-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1919-03-30T08:59:59+00:00").tz("America/Phoenix").zone(), 420, "1919-03-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("America/Phoenix").zone(), 360, "1919-03-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("America/Phoenix").zone(), 360, "1919-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("America/Phoenix").zone(), 420, "1919-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Phoenix").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Phoenix").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-01-01T06:00:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "00:00:59", "1944-01-01T06:00:59+00:00 should be 00:00:59 MWT"); - t.equal(moment("1944-01-01T06:01:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "23:01:00", "1944-01-01T06:01:00+00:00 should be 23:01:00 MST"); - t.equal(moment("1944-04-01T07:00:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "00:00:59", "1944-04-01T07:00:59+00:00 should be 00:00:59 MST"); - t.equal(moment("1944-04-01T07:01:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:01:00", "1944-04-01T07:01:00+00:00 should be 01:01:00 MWT"); - t.equal(moment("1944-10-01T06:00:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "00:00:59", "1944-10-01T06:00:59+00:00 should be 00:00:59 MWT"); - t.equal(moment("1944-10-01T06:01:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "23:01:00", "1944-10-01T06:01:00+00:00 should be 23:01:00 MST"); - - t.equal(moment("1944-01-01T06:00:59+00:00").tz("America/Phoenix").zone(), 360, "1944-01-01T06:00:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1944-01-01T06:01:00+00:00").tz("America/Phoenix").zone(), 420, "1944-01-01T06:01:00+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1944-04-01T07:00:59+00:00").tz("America/Phoenix").zone(), 420, "1944-04-01T07:00:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1944-04-01T07:01:00+00:00").tz("America/Phoenix").zone(), 360, "1944-04-01T07:01:00+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1944-10-01T06:00:59+00:00").tz("America/Phoenix").zone(), 360, "1944-10-01T06:00:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1944-10-01T06:01:00+00:00").tz("America/Phoenix").zone(), 420, "1944-10-01T06:01:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:59:59", "1967-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "03:00:00", "1967-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:59:59", "1967-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Phoenix").format("HH:mm:ss"), "01:00:00", "1967-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1967-04-30T08:59:59+00:00").tz("America/Phoenix").zone(), 420, "1967-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("America/Phoenix").zone(), 360, "1967-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Phoenix").zone(), 360, "1967-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Phoenix").zone(), 420, "1967-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/port-au-prince.js b/tests/america/port-au-prince.js deleted file mode 100644 index dfbc7b61..00000000 --- a/tests/america/port-au-prince.js +++ /dev/null @@ -1,616 +0,0 @@ -var moment = require("../../index"); - -exports["America/Port-au-Prince"] = { - - "1917" : function (t) { - t.equal(moment("1917-01-24T16:48:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "11:59:59", "1917-01-24T16:48:59+00:00 should be 11:59:59 PPMT"); - t.equal(moment("1917-01-24T16:49:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "11:49:00", "1917-01-24T16:49:00+00:00 should be 11:49:00 EST"); - - t.equal(moment("1917-01-24T16:48:59+00:00").tz("America/Port-au-Prince").zone(), 289, "1917-01-24T16:48:59+00:00 should be 289 minutes offset in PPMT"); - t.equal(moment("1917-01-24T16:49:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1917-01-24T16:49:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-05-08T04:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1983-05-08T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1983-05-08T05:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1983-05-08T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1983-10-30T03:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1983-10-30T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1983-10-30T04:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:00:00", "1983-10-30T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1983-05-08T04:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1983-05-08T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-05-08T05:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1983-05-08T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T03:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1983-10-30T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T04:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1983-10-30T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T04:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1984-04-29T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1984-04-29T05:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1984-04-29T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1984-10-28T03:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1984-10-28T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1984-10-28T04:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:00:00", "1984-10-28T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1984-04-29T04:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1984-04-29T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T05:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1984-04-29T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T03:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1984-10-28T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T04:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1984-10-28T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T04:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1985-04-28T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1985-04-28T05:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1985-04-28T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1985-10-27T03:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1985-10-27T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1985-10-27T04:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:00:00", "1985-10-27T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1985-04-28T04:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1985-04-28T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T05:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1985-04-28T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T03:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1985-10-27T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T04:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1985-10-27T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T04:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1986-04-27T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1986-04-27T05:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1986-04-27T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1986-10-26T03:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1986-10-26T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1986-10-26T04:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:00:00", "1986-10-26T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1986-04-27T04:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1986-04-27T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T05:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1986-04-27T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T03:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1986-10-26T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T04:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1986-10-26T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-26T04:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1987-04-26T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1987-04-26T05:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1987-04-26T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "1987-10-25T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:00:00", "1987-10-25T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1987-04-26T04:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1987-04-26T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-26T05:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1987-04-26T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1987-10-25T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1987-10-25T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1988-04-03T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1988-04-03T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1988-04-03T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1988-04-03T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1989-04-02T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1989-04-02T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1989-04-02T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1989-04-02T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1990-04-01T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1990-04-01T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1990-04-01T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1990-04-01T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1991-04-07T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1991-04-07T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1991-04-07T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1991-04-07T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1992-04-05T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1992-04-05T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1992-04-05T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1992-04-05T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1993-04-04T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1993-04-04T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1993-04-04T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1993-04-04T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1994-04-03T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1994-04-03T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1994-04-03T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1994-04-03T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1995-04-02T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1995-04-02T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1995-04-02T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1995-04-02T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1996-04-07T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1996-04-07T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1996-04-07T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1996-04-07T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "00:59:59", "1997-04-06T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "02:00:00", "1997-04-06T06:00:00+00:00 should be 02:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "1997-04-06T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "1997-04-06T06:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T04:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "2005-04-03T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("2005-04-03T05:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2005-04-03T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("2005-10-30T03:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "2005-10-30T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("2005-10-30T04:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:00:00", "2005-10-30T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("2005-04-03T04:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2005-04-03T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T05:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2005-04-03T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T03:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2005-10-30T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T04:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2005-10-30T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T04:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "2006-04-02T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("2006-04-02T05:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2006-04-02T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("2006-10-29T03:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:59:59", "2006-10-29T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("2006-10-29T04:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "23:00:00", "2006-10-29T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("2006-04-02T04:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2006-04-02T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T05:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2006-04-02T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T03:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2006-10-29T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T04:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2006-10-29T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Port-au-Prince").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Port-au-Prince").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Port-au-Prince").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Port-au-Prince").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Port-au-Prince").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/port_of_spain.js b/tests/america/port_of_spain.js deleted file mode 100644 index edfb348e..00000000 --- a/tests/america/port_of_spain.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Port_of_Spain"] = { - - "1912" : function (t) { - t.equal(moment("1912-03-02T04:06:03+00:00").tz("America/Port_of_Spain").format("HH:mm:ss"), "23:59:59", "1912-03-02T04:06:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-03-02T04:06:04+00:00").tz("America/Port_of_Spain").format("HH:mm:ss"), "00:06:04", "1912-03-02T04:06:04+00:00 should be 00:06:04 AST"); - - t.equal(moment("1912-03-02T04:06:03+00:00").tz("America/Port_of_Spain").zone(), 14764 / 60, "1912-03-02T04:06:03+00:00 should be 14764 / 60 minutes offset in LMT"); - t.equal(moment("1912-03-02T04:06:04+00:00").tz("America/Port_of_Spain").zone(), 240, "1912-03-02T04:06:04+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/porto_velho.js b/tests/america/porto_velho.js deleted file mode 100644 index 0a2dc842..00000000 --- a/tests/america/porto_velho.js +++ /dev/null @@ -1,234 +0,0 @@ -var moment = require("../../index"); - -exports["America/Porto_Velho"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T04:15:35+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1914-01-01T04:15:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T04:15:36+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "00:15:36", "1914-01-01T04:15:36+00:00 should be 00:15:36 AMT"); - - t.equal(moment("1914-01-01T04:15:35+00:00").tz("America/Porto_Velho").zone(), 15336 / 60, "1914-01-01T04:15:35+00:00 should be 15336 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T04:15:36+00:00").tz("America/Porto_Velho").zone(), 240, "1914-01-01T04:15:36+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "10:59:59", "1931-10-03T14:59:59+00:00 should be 10:59:59 AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "12:00:00", "1931-10-03T15:00:00+00:00 should be 12:00:00 AMST"); - - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1931-10-03T14:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1931-10-03T15:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1932-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1932-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1932-10-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1932-10-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1932-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1932-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1932-10-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1932-10-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1933-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1933-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1933-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1933-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1949-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1949-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1949-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1949-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "00:59:59", "1950-04-16T03:59:59+00:00 should be 00:59:59 AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "00:00:00", "1950-04-16T04:00:00+00:00 should be 00:00:00 AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1950-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1950-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1950-04-16T03:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1950-04-16T04:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1950-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1950-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1951-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1951-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1951-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1951-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1951-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1951-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1951-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1951-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1952-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1952-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1952-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1952-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1952-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1952-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1952-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1952-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1953-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1953-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1953-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1953-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1963-12-09T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1963-12-09T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1963-12-09T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1963-12-09T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1965-01-31T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1965-01-31T04:00:00+00:00 should be 01:00:00 AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1965-03-31T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1965-03-31T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1965-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1965-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1965-01-31T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1965-01-31T04:00:00+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1965-03-31T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1965-03-31T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1965-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1965-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1966-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1966-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1966-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1966-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1967-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1967-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1967-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1967-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1967-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1967-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1967-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1967-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1968-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1968-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1968-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1968-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1985-11-02T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1985-11-02T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1985-11-02T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1985-11-02T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1986-03-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1986-03-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1986-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1986-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1986-03-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1986-03-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1986-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1986-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1987-02-14T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1987-02-14T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1987-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "01:00:00", "1987-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1987-02-14T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1987-02-14T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Porto_Velho").zone(), 240, "1987-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Porto_Velho").zone(), 180, "1987-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:59:59", "1988-02-07T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Porto_Velho").format("HH:mm:ss"), "23:00:00", "1988-02-07T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Porto_Velho").zone(), 180, "1988-02-07T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Porto_Velho").zone(), 240, "1988-02-07T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/puerto_rico.js b/tests/america/puerto_rico.js deleted file mode 100644 index 866660a4..00000000 --- a/tests/america/puerto_rico.js +++ /dev/null @@ -1,28 +0,0 @@ -var moment = require("../../index"); - -exports["America/Puerto_Rico"] = { - - "1942" : function (t) { - t.equal(moment("1942-05-03T03:59:59+00:00").tz("America/Puerto_Rico").format("HH:mm:ss"), "23:59:59", "1942-05-03T03:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1942-05-03T04:00:00+00:00").tz("America/Puerto_Rico").format("HH:mm:ss"), "01:00:00", "1942-05-03T04:00:00+00:00 should be 01:00:00 AWT"); - - t.equal(moment("1942-05-03T03:59:59+00:00").tz("America/Puerto_Rico").zone(), 240, "1942-05-03T03:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1942-05-03T04:00:00+00:00").tz("America/Puerto_Rico").zone(), 180, "1942-05-03T04:00:00+00:00 should be 180 minutes offset in AWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Puerto_Rico").format("HH:mm:ss"), "19:59:59", "1945-08-14T22:59:59+00:00 should be 19:59:59 AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Puerto_Rico").format("HH:mm:ss"), "20:00:00", "1945-08-14T23:00:00+00:00 should be 20:00:00 APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Puerto_Rico").format("HH:mm:ss"), "01:59:59", "1945-09-30T04:59:59+00:00 should be 01:59:59 APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Puerto_Rico").format("HH:mm:ss"), "01:00:00", "1945-09-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Puerto_Rico").zone(), 180, "1945-08-14T22:59:59+00:00 should be 180 minutes offset in AWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Puerto_Rico").zone(), 180, "1945-08-14T23:00:00+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T04:59:59+00:00").tz("America/Puerto_Rico").zone(), 180, "1945-09-30T04:59:59+00:00 should be 180 minutes offset in APT"); - t.equal(moment("1945-09-30T05:00:00+00:00").tz("America/Puerto_Rico").zone(), 240, "1945-09-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/rainy_river.js b/tests/america/rainy_river.js deleted file mode 100644 index 45fe8438..00000000 --- a/tests/america/rainy_river.js +++ /dev/null @@ -1,948 +0,0 @@ -var moment = require("../../index"); - -exports["America/Rainy_River"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1918-04-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-04-14T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1918-04-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-04-14T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1918-04-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-04-14T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1918-04-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-09-29T05:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "23:59:59", "1940-09-29T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1940-09-29T06:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1940-09-29T06:00:00+00:00 should be 01:00:00 CDT"); - - t.equal(moment("1940-09-29T05:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1940-09-29T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1940-09-29T06:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1940-09-29T06:00:00+00:00 should be 300 minutes offset in CDT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "02:59:59", "1942-02-09T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1942-02-09T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1974-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-04-28T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1974-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1974-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1974-04-28T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1974-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1974-04-28T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1974-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1974-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1975-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-04-27T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1975-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1975-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1975-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1975-04-27T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1975-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1975-04-27T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1975-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1975-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1975-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1976-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1976-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1976-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1976-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1976-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1976-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1976-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1976-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1977-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1977-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1977-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1977-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1977-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1977-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1977-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1977-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1978-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1978-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1978-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1978-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1978-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1978-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1978-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1978-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1979-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1979-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1979-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1979-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1979-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1979-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1979-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1979-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1980-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1980-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1980-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1980-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1981-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1981-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1981-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1981-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1982-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1982-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1982-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1982-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1983-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1983-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1983-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1983-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1984-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1984-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1984-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1984-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1985-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1985-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1985-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1985-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1985-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1985-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1986-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1986-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1986-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1986-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1986-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1986-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1986-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1986-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1987-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1987-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1987-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1987-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1987-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1987-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1987-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1987-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1989-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1989-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1989-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1989-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1989-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1989-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1989-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1989-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1990-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1990-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1990-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1990-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1990-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1990-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1990-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1990-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1991-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1991-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1991-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1991-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1991-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1991-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1991-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1991-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1992-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1992-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1992-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1992-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1992-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1992-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1992-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1992-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1993-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1993-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1993-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1993-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1993-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1993-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1993-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1993-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1994-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1994-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1994-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1994-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1994-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1994-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1994-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1994-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1995-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1995-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1995-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1995-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1995-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1995-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1995-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1995-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2001-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2001-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2001-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2001-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2001-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2001-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2001-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2001-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Rainy_River").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Rainy_River").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Rainy_River").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Rainy_River").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Rainy_River").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/rankin_inlet.js b/tests/america/rankin_inlet.js deleted file mode 100644 index 7c925965..00000000 --- a/tests/america/rankin_inlet.js +++ /dev/null @@ -1,846 +0,0 @@ -var moment = require("../../index"); - -exports["America/Rankin_Inlet"] = { - - "1956" : function (t) { - t.equal(moment("1956-12-31T23:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "23:59:59", "1956-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1956-12-31T23:59:59+00:00").tz("America/Rankin_Inlet").zone(), 0, "1956-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-01-01T00:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "18:00:00", "1957-01-01T00:00:00+00:00 should be 18:00:00 CST"); - - t.equal(moment("1957-01-01T00:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1957-01-01T00:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T05:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "23:59:59", "1965-04-25T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1965-04-25T06:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "02:00:00", "1965-04-25T06:00:00+00:00 should be 02:00:00 CDDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1965-10-31T05:59:59+00:00 should be 01:59:59 CDDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "00:00:00", "1965-10-31T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1965-04-25T05:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1965-04-25T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1965-04-25T06:00:00+00:00").tz("America/Rankin_Inlet").zone(), 240, "1965-04-25T06:00:00+00:00 should be 240 minutes offset in CDDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Rankin_Inlet").zone(), 240, "1965-10-31T05:59:59+00:00 should be 240 minutes offset in CDDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1965-10-31T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1980-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1980-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1980-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1980-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1981-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1981-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1981-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1981-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1982-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1982-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1982-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1982-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1983-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1983-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1983-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1983-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1984-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1984-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1984-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1984-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1985-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1985-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1985-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1985-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1985-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1985-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1986-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1986-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1986-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1986-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1986-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1986-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1986-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1986-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1987-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1987-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1987-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1987-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1987-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1987-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1987-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1987-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1989-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1989-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1989-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1989-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1989-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1989-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1989-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1989-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1990-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1990-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1990-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1990-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1990-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1990-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1990-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1990-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1991-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1991-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1991-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1991-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1991-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1991-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1991-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1991-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1992-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1992-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1992-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1992-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1992-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1992-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1992-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1992-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1993-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1993-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1993-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1993-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1993-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1993-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1993-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1993-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1994-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1994-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1994-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1994-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1994-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1994-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1994-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1994-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1995-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1995-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1995-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1995-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1995-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1995-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1995-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1995-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "02:00:00", "2000-10-29T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2000-10-29T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "02:59:59", "2001-04-01T07:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2001-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2001-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2001-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2001-04-01T07:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2001-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2001-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2001-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Rankin_Inlet").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Rankin_Inlet").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Rankin_Inlet").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Rankin_Inlet").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/recife.js b/tests/america/recife.js deleted file mode 100644 index a097e6f7..00000000 --- a/tests/america/recife.js +++ /dev/null @@ -1,310 +0,0 @@ -var moment = require("../../index"); - -exports["America/Recife"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T02:19:35+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1914-01-01T02:19:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T02:19:36+00:00").tz("America/Recife").format("HH:mm:ss"), "23:19:36", "1914-01-01T02:19:36+00:00 should be 23:19:36 BRT"); - - t.equal(moment("1914-01-01T02:19:35+00:00").tz("America/Recife").zone(), 8376 / 60, "1914-01-01T02:19:35+00:00 should be 8376 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T02:19:36+00:00").tz("America/Recife").zone(), 180, "1914-01-01T02:19:36+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "10:59:59", "1931-10-03T13:59:59+00:00 should be 10:59:59 BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "12:00:00", "1931-10-03T14:00:00+00:00 should be 12:00:00 BRST"); - - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Recife").zone(), 180, "1931-10-03T13:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Recife").zone(), 120, "1931-10-03T14:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1932-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1932-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1932-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1932-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Recife").zone(), 120, "1932-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Recife").zone(), 180, "1932-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Recife").zone(), 180, "1932-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Recife").zone(), 120, "1932-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1933-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1933-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Recife").zone(), 120, "1933-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Recife").zone(), 180, "1933-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1949-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1949-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Recife").zone(), 180, "1949-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Recife").zone(), 120, "1949-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "00:59:59", "1950-04-16T02:59:59+00:00 should be 00:59:59 BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "00:00:00", "1950-04-16T03:00:00+00:00 should be 00:00:00 BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1950-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1950-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Recife").zone(), 120, "1950-04-16T02:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Recife").zone(), 180, "1950-04-16T03:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Recife").zone(), 180, "1950-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Recife").zone(), 120, "1950-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1951-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1951-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1951-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1951-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Recife").zone(), 120, "1951-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Recife").zone(), 180, "1951-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Recife").zone(), 180, "1951-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Recife").zone(), 120, "1951-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1952-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1952-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1952-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1952-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Recife").zone(), 120, "1952-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Recife").zone(), 180, "1952-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Recife").zone(), 180, "1952-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Recife").zone(), 120, "1952-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1953-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1953-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Recife").zone(), 120, "1953-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Recife").zone(), 180, "1953-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1963-12-09T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1963-12-09T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1963-12-09T02:59:59+00:00").tz("America/Recife").zone(), 180, "1963-12-09T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1963-12-09T03:00:00+00:00").tz("America/Recife").zone(), 120, "1963-12-09T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1964-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1964-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Recife").zone(), 120, "1964-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Recife").zone(), 180, "1964-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1965-01-31T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1965-01-31T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1965-03-31T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1965-03-31T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1965-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1965-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Recife").zone(), 180, "1965-01-31T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Recife").zone(), 120, "1965-01-31T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Recife").zone(), 120, "1965-03-31T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Recife").zone(), 180, "1965-03-31T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Recife").zone(), 180, "1965-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Recife").zone(), 120, "1965-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1966-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1966-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1966-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1966-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Recife").zone(), 120, "1966-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Recife").zone(), 180, "1966-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Recife").zone(), 180, "1966-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Recife").zone(), 120, "1966-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1967-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1967-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1967-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1967-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Recife").zone(), 120, "1967-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Recife").zone(), 180, "1967-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Recife").zone(), 180, "1967-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Recife").zone(), 120, "1967-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1968-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1968-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Recife").zone(), 120, "1968-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Recife").zone(), 180, "1968-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1985-11-02T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1985-11-02T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Recife").zone(), 180, "1985-11-02T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Recife").zone(), 120, "1985-11-02T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1986-03-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1986-03-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1986-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1986-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Recife").zone(), 120, "1986-03-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Recife").zone(), 180, "1986-03-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Recife").zone(), 180, "1986-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Recife").zone(), 120, "1986-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1987-02-14T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1987-02-14T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1987-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1987-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Recife").zone(), 120, "1987-02-14T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Recife").zone(), 180, "1987-02-14T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Recife").zone(), 180, "1987-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Recife").zone(), 120, "1987-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1988-02-07T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1988-02-07T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1988-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1988-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Recife").zone(), 120, "1988-02-07T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Recife").zone(), 180, "1988-02-07T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Recife").zone(), 180, "1988-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Recife").zone(), 120, "1988-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1989-01-29T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1989-01-29T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Recife").zone(), 120, "1989-01-29T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Recife").zone(), 180, "1989-01-29T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Recife").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Recife").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1990-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "1990-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Recife").zone(), 120, "1990-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Recife").zone(), 180, "1990-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "1999-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Recife").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Recife").zone(), 120, "1999-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "2000-02-27T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "2000-02-27T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "2000-10-08T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "2000-10-08T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("2000-10-15T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "2000-10-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2000-10-15T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "2000-10-15T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Recife").zone(), 120, "2000-02-27T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Recife").zone(), 180, "2000-02-27T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Recife").zone(), 180, "2000-10-08T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Recife").zone(), 120, "2000-10-08T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-10-15T01:59:59+00:00").tz("America/Recife").zone(), 120, "2000-10-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-10-15T02:00:00+00:00").tz("America/Recife").zone(), 180, "2000-10-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "2001-10-14T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "01:00:00", "2001-10-14T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Recife").zone(), 180, "2001-10-14T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Recife").zone(), 120, "2001-10-14T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Recife").format("HH:mm:ss"), "23:59:59", "2002-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Recife").format("HH:mm:ss"), "23:00:00", "2002-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Recife").zone(), 120, "2002-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Recife").zone(), 180, "2002-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/regina.js b/tests/america/regina.js deleted file mode 100644 index 0ff4f27c..00000000 --- a/tests/america/regina.js +++ /dev/null @@ -1,384 +0,0 @@ -var moment = require("../../index"); - -exports["America/Regina"] = { - - "1905" : function (t) { - t.equal(moment("1905-09-01T06:58:35+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1905-09-01T06:58:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1905-09-01T06:58:36+00:00").tz("America/Regina").format("HH:mm:ss"), "23:58:36", "1905-09-01T06:58:36+00:00 should be 23:58:36 MST"); - - t.equal(moment("1905-09-01T06:58:35+00:00").tz("America/Regina").zone(), 25116 / 60, "1905-09-01T06:58:35+00:00 should be 25116 / 60 minutes offset in LMT"); - t.equal(moment("1905-09-01T06:58:36+00:00").tz("America/Regina").zone(), 420, "1905-09-01T06:58:36+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-14T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1918-04-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1918-04-14T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1918-04-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1918-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1918-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-04-14T08:59:59+00:00").tz("America/Regina").zone(), 420, "1918-04-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1918-04-14T09:00:00+00:00").tz("America/Regina").zone(), 360, "1918-04-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Regina").zone(), 360, "1918-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Regina").zone(), 420, "1918-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-05-04T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1930-05-04T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1930-05-04T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1930-05-04T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1930-10-05T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1930-10-05T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1930-10-05T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1930-10-05T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1930-05-04T06:59:59+00:00").tz("America/Regina").zone(), 420, "1930-05-04T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1930-05-04T07:00:00+00:00").tz("America/Regina").zone(), 360, "1930-05-04T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1930-10-05T05:59:59+00:00").tz("America/Regina").zone(), 360, "1930-10-05T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1930-10-05T06:00:00+00:00").tz("America/Regina").zone(), 420, "1930-10-05T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-03T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1931-05-03T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1931-05-03T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1931-05-03T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1931-10-04T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1931-10-04T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1931-10-04T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1931-10-04T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1931-05-03T06:59:59+00:00").tz("America/Regina").zone(), 420, "1931-05-03T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1931-05-03T07:00:00+00:00").tz("America/Regina").zone(), 360, "1931-05-03T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1931-10-04T05:59:59+00:00").tz("America/Regina").zone(), 360, "1931-10-04T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1931-10-04T06:00:00+00:00").tz("America/Regina").zone(), 420, "1931-10-04T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-05-01T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1932-05-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1932-05-01T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1932-05-01T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1932-10-02T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1932-10-02T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1932-10-02T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1932-10-02T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1932-05-01T06:59:59+00:00").tz("America/Regina").zone(), 420, "1932-05-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1932-05-01T07:00:00+00:00").tz("America/Regina").zone(), 360, "1932-05-01T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1932-10-02T05:59:59+00:00").tz("America/Regina").zone(), 360, "1932-10-02T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1932-10-02T06:00:00+00:00").tz("America/Regina").zone(), 420, "1932-10-02T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-05-07T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1933-05-07T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1933-05-07T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1933-05-07T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1933-10-01T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1933-10-01T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1933-10-01T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1933-10-01T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1933-05-07T06:59:59+00:00").tz("America/Regina").zone(), 420, "1933-05-07T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1933-05-07T07:00:00+00:00").tz("America/Regina").zone(), 360, "1933-05-07T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1933-10-01T05:59:59+00:00").tz("America/Regina").zone(), 360, "1933-10-01T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1933-10-01T06:00:00+00:00").tz("America/Regina").zone(), 420, "1933-10-01T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-05-06T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1934-05-06T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1934-05-06T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1934-05-06T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1934-10-07T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1934-10-07T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1934-10-07T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1934-10-07T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1934-05-06T06:59:59+00:00").tz("America/Regina").zone(), 420, "1934-05-06T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1934-05-06T07:00:00+00:00").tz("America/Regina").zone(), 360, "1934-05-06T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1934-10-07T05:59:59+00:00").tz("America/Regina").zone(), 360, "1934-10-07T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1934-10-07T06:00:00+00:00").tz("America/Regina").zone(), 420, "1934-10-07T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-11T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1937-04-11T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1937-04-11T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1937-04-11T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1937-10-10T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1937-10-10T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1937-10-10T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1937-10-10T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1937-04-11T06:59:59+00:00").tz("America/Regina").zone(), 420, "1937-04-11T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1937-04-11T07:00:00+00:00").tz("America/Regina").zone(), 360, "1937-04-11T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1937-10-10T05:59:59+00:00").tz("America/Regina").zone(), 360, "1937-10-10T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1937-10-10T06:00:00+00:00").tz("America/Regina").zone(), 420, "1937-10-10T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-10T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1938-04-10T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1938-04-10T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1938-04-10T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1938-10-02T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1938-10-02T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1938-10-02T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1938-10-02T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1938-04-10T06:59:59+00:00").tz("America/Regina").zone(), 420, "1938-04-10T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1938-04-10T07:00:00+00:00").tz("America/Regina").zone(), 360, "1938-04-10T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1938-10-02T05:59:59+00:00").tz("America/Regina").zone(), 360, "1938-10-02T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1938-10-02T06:00:00+00:00").tz("America/Regina").zone(), 420, "1938-10-02T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-09T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1939-04-09T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1939-04-09T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1939-04-09T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1939-10-08T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1939-10-08T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1939-10-08T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1939-10-08T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1939-04-09T06:59:59+00:00").tz("America/Regina").zone(), 420, "1939-04-09T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1939-04-09T07:00:00+00:00").tz("America/Regina").zone(), 360, "1939-04-09T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1939-10-08T05:59:59+00:00").tz("America/Regina").zone(), 360, "1939-10-08T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1939-10-08T06:00:00+00:00").tz("America/Regina").zone(), 420, "1939-10-08T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-14T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1940-04-14T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1940-04-14T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1940-04-14T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1940-10-13T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1940-10-13T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1940-10-13T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1940-10-13T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1940-04-14T06:59:59+00:00").tz("America/Regina").zone(), 420, "1940-04-14T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1940-04-14T07:00:00+00:00").tz("America/Regina").zone(), 360, "1940-04-14T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1940-10-13T05:59:59+00:00").tz("America/Regina").zone(), 360, "1940-10-13T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1940-10-13T06:00:00+00:00").tz("America/Regina").zone(), 420, "1940-10-13T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-13T06:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1941-04-13T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1941-04-13T07:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1941-04-13T07:00:00+00:00 should be 01:00:00 MDT"); - t.equal(moment("1941-10-12T05:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "23:59:59", "1941-10-12T05:59:59+00:00 should be 23:59:59 MDT"); - t.equal(moment("1941-10-12T06:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "23:00:00", "1941-10-12T06:00:00+00:00 should be 23:00:00 MST"); - - t.equal(moment("1941-04-13T06:59:59+00:00").tz("America/Regina").zone(), 420, "1941-04-13T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1941-04-13T07:00:00+00:00").tz("America/Regina").zone(), 360, "1941-04-13T07:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1941-10-12T05:59:59+00:00").tz("America/Regina").zone(), 360, "1941-10-12T05:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1941-10-12T06:00:00+00:00").tz("America/Regina").zone(), 420, "1941-10-12T06:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Regina").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Regina").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Regina").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Regina").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Regina").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Regina").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-14T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1946-04-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1946-04-14T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1946-04-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1946-10-13T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1946-10-13T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1946-10-13T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1946-10-13T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1946-04-14T08:59:59+00:00").tz("America/Regina").zone(), 420, "1946-04-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1946-04-14T09:00:00+00:00").tz("America/Regina").zone(), 360, "1946-04-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1946-10-13T07:59:59+00:00").tz("America/Regina").zone(), 360, "1946-10-13T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1946-10-13T08:00:00+00:00").tz("America/Regina").zone(), 420, "1946-10-13T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1947-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1947-04-27T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1947-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1947-09-28T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1947-09-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1947-09-28T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1947-09-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1947-04-27T08:59:59+00:00").tz("America/Regina").zone(), 420, "1947-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1947-04-27T09:00:00+00:00").tz("America/Regina").zone(), 360, "1947-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1947-09-28T07:59:59+00:00").tz("America/Regina").zone(), 360, "1947-09-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1947-09-28T08:00:00+00:00").tz("America/Regina").zone(), 420, "1947-09-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1948-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1948-04-25T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1948-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1948-09-26T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1948-09-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1948-09-26T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1948-09-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1948-04-25T08:59:59+00:00").tz("America/Regina").zone(), 420, "1948-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1948-04-25T09:00:00+00:00").tz("America/Regina").zone(), 360, "1948-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1948-09-26T07:59:59+00:00").tz("America/Regina").zone(), 360, "1948-09-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1948-09-26T08:00:00+00:00").tz("America/Regina").zone(), 420, "1948-09-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1949-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1949-04-24T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1949-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1949-09-25T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1949-09-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1949-09-25T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1949-09-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1949-04-24T08:59:59+00:00").tz("America/Regina").zone(), 420, "1949-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1949-04-24T09:00:00+00:00").tz("America/Regina").zone(), 360, "1949-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1949-09-25T07:59:59+00:00").tz("America/Regina").zone(), 360, "1949-09-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1949-09-25T08:00:00+00:00").tz("America/Regina").zone(), 420, "1949-09-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1950-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1950-04-30T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1950-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1950-09-24T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1950-09-24T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1950-09-24T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1950-09-24T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1950-04-30T08:59:59+00:00").tz("America/Regina").zone(), 420, "1950-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1950-04-30T09:00:00+00:00").tz("America/Regina").zone(), 360, "1950-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1950-09-24T07:59:59+00:00").tz("America/Regina").zone(), 360, "1950-09-24T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1950-09-24T08:00:00+00:00").tz("America/Regina").zone(), 420, "1950-09-24T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1951-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1951-04-29T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1951-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1951-09-30T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1951-09-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1951-09-30T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1951-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1951-04-29T08:59:59+00:00").tz("America/Regina").zone(), 420, "1951-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1951-04-29T09:00:00+00:00").tz("America/Regina").zone(), 360, "1951-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1951-09-30T07:59:59+00:00").tz("America/Regina").zone(), 360, "1951-09-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1951-09-30T08:00:00+00:00").tz("America/Regina").zone(), 420, "1951-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1952-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1952-04-27T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1952-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1952-09-28T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1952-09-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1952-09-28T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1952-09-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1952-04-27T08:59:59+00:00").tz("America/Regina").zone(), 420, "1952-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1952-04-27T09:00:00+00:00").tz("America/Regina").zone(), 360, "1952-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1952-09-28T07:59:59+00:00").tz("America/Regina").zone(), 360, "1952-09-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1952-09-28T08:00:00+00:00").tz("America/Regina").zone(), 420, "1952-09-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1953-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1953-04-26T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1953-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1953-09-27T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1953-09-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1953-09-27T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1953-09-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1953-04-26T08:59:59+00:00").tz("America/Regina").zone(), 420, "1953-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1953-04-26T09:00:00+00:00").tz("America/Regina").zone(), 360, "1953-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1953-09-27T07:59:59+00:00").tz("America/Regina").zone(), 360, "1953-09-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1953-09-27T08:00:00+00:00").tz("America/Regina").zone(), 420, "1953-09-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1954-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1954-04-25T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1954-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1954-09-26T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1954-09-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1954-09-26T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1954-09-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1954-04-25T08:59:59+00:00").tz("America/Regina").zone(), 420, "1954-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1954-04-25T09:00:00+00:00").tz("America/Regina").zone(), 360, "1954-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1954-09-26T07:59:59+00:00").tz("America/Regina").zone(), 360, "1954-09-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1954-09-26T08:00:00+00:00").tz("America/Regina").zone(), 420, "1954-09-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1955-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1955-04-24T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1955-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1955-09-25T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1955-09-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1955-09-25T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1955-09-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1955-04-24T08:59:59+00:00").tz("America/Regina").zone(), 420, "1955-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1955-04-24T09:00:00+00:00").tz("America/Regina").zone(), 360, "1955-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1955-09-25T07:59:59+00:00").tz("America/Regina").zone(), 360, "1955-09-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1955-09-25T08:00:00+00:00").tz("America/Regina").zone(), 420, "1955-09-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1956-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1956-04-29T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1956-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1956-09-30T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1956-09-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1956-09-30T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1956-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1956-04-29T08:59:59+00:00").tz("America/Regina").zone(), 420, "1956-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1956-04-29T09:00:00+00:00").tz("America/Regina").zone(), 360, "1956-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1956-09-30T07:59:59+00:00").tz("America/Regina").zone(), 360, "1956-09-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1956-09-30T08:00:00+00:00").tz("America/Regina").zone(), 420, "1956-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1957-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1957-04-28T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1957-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1957-09-29T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1957-09-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1957-09-29T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1957-09-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1957-04-28T08:59:59+00:00").tz("America/Regina").zone(), 420, "1957-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1957-04-28T09:00:00+00:00").tz("America/Regina").zone(), 360, "1957-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1957-09-29T07:59:59+00:00").tz("America/Regina").zone(), 360, "1957-09-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1957-09-29T08:00:00+00:00").tz("America/Regina").zone(), 420, "1957-09-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1959-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1959-04-26T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1959-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1959-10-25T07:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1959-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1959-10-25T08:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "01:00:00", "1959-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1959-04-26T08:59:59+00:00").tz("America/Regina").zone(), 420, "1959-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1959-04-26T09:00:00+00:00").tz("America/Regina").zone(), 360, "1959-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1959-10-25T07:59:59+00:00").tz("America/Regina").zone(), 360, "1959-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1959-10-25T08:00:00+00:00").tz("America/Regina").zone(), 420, "1959-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T08:59:59+00:00").tz("America/Regina").format("HH:mm:ss"), "01:59:59", "1960-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1960-04-24T09:00:00+00:00").tz("America/Regina").format("HH:mm:ss"), "03:00:00", "1960-04-24T09:00:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1960-04-24T08:59:59+00:00").tz("America/Regina").zone(), 420, "1960-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1960-04-24T09:00:00+00:00").tz("America/Regina").zone(), 360, "1960-04-24T09:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/resolute.js b/tests/america/resolute.js deleted file mode 100644 index f3f8c26f..00000000 --- a/tests/america/resolute.js +++ /dev/null @@ -1,840 +0,0 @@ -var moment = require("../../index"); - -exports["America/Resolute"] = { - - "1947" : function (t) { - t.equal(moment("1947-08-30T23:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "23:59:59", "1947-08-30T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1947-08-31T00:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "18:00:00", "1947-08-31T00:00:00+00:00 should be 18:00:00 CST"); - - t.equal(moment("1947-08-30T23:59:59+00:00").tz("America/Resolute").zone(), 0, "1947-08-30T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1947-08-31T00:00:00+00:00").tz("America/Resolute").zone(), 360, "1947-08-31T00:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T05:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "23:59:59", "1965-04-25T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1965-04-25T06:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "02:00:00", "1965-04-25T06:00:00+00:00 should be 02:00:00 CDDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1965-10-31T05:59:59+00:00 should be 01:59:59 CDDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "00:00:00", "1965-10-31T06:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1965-04-25T05:59:59+00:00").tz("America/Resolute").zone(), 360, "1965-04-25T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1965-04-25T06:00:00+00:00").tz("America/Resolute").zone(), 240, "1965-04-25T06:00:00+00:00 should be 240 minutes offset in CDDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Resolute").zone(), 240, "1965-10-31T05:59:59+00:00 should be 240 minutes offset in CDDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Resolute").zone(), 360, "1965-10-31T06:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1980-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1980-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1980-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1980-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1981-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1981-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1981-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1981-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1982-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1982-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1982-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1982-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1983-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1983-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1983-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1983-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1984-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1984-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1984-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1984-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1985-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1985-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1985-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1985-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1985-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1985-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1986-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1986-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1986-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1986-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1986-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1986-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1986-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1986-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1987-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1987-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1987-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1987-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1987-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1987-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1987-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1987-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1989-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1989-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1989-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1989-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1989-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1989-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1989-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1989-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1990-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1990-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1990-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1990-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1990-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1990-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1990-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1990-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1991-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1991-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1991-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1991-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1991-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1991-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1991-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1991-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1992-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1992-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1992-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1992-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1992-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1992-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1992-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1992-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1993-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1993-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1993-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1993-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1993-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1993-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1993-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1993-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1994-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1994-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1994-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1994-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1994-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1994-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1994-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1994-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1995-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1995-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1995-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1995-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1995-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1995-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1995-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1995-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Resolute").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Resolute").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Resolute").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Resolute").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "02:00:00", "2000-10-29T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Resolute").zone(), 300, "2000-10-29T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "02:59:59", "2001-04-01T07:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2001-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2001-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2001-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Resolute").zone(), 300, "2001-04-01T07:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2001-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2001-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2001-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "02:00:00", "2006-10-29T07:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Resolute").zone(), 300, "2006-10-29T07:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "02:59:59", "2007-03-11T07:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Resolute").zone(), 300, "2007-03-11T07:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Resolute").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Resolute").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Resolute").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Resolute").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Resolute").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/rio_branco.js b/tests/america/rio_branco.js deleted file mode 100644 index f0997255..00000000 --- a/tests/america/rio_branco.js +++ /dev/null @@ -1,244 +0,0 @@ -var moment = require("../../index"); - -exports["America/Rio_Branco"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T04:31:11+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1914-01-01T04:31:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T04:31:12+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:31:12", "1914-01-01T04:31:12+00:00 should be 23:31:12 ACT"); - - t.equal(moment("1914-01-01T04:31:11+00:00").tz("America/Rio_Branco").zone(), 16272 / 60, "1914-01-01T04:31:11+00:00 should be 16272 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T04:31:12+00:00").tz("America/Rio_Branco").zone(), 300, "1914-01-01T04:31:12+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T15:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "10:59:59", "1931-10-03T15:59:59+00:00 should be 10:59:59 ACT"); - t.equal(moment("1931-10-03T16:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "12:00:00", "1931-10-03T16:00:00+00:00 should be 12:00:00 ACST"); - - t.equal(moment("1931-10-03T15:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1931-10-03T15:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1931-10-03T16:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1931-10-03T16:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1932-04-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1932-04-01T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1932-04-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1932-10-03T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1932-10-03T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1932-10-03T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1932-10-03T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1932-04-01T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1932-04-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1932-04-01T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1932-04-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1932-10-03T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1932-10-03T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1932-10-03T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1932-10-03T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1933-04-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1933-04-01T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1933-04-01T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1933-04-01T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1933-04-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1933-04-01T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1933-04-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1949-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1949-12-01T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1949-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1949-12-01T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1949-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1949-12-01T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1949-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "00:59:59", "1950-04-16T04:59:59+00:00 should be 00:59:59 ACST"); - t.equal(moment("1950-04-16T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "00:00:00", "1950-04-16T05:00:00+00:00 should be 00:00:00 ACT"); - t.equal(moment("1950-12-01T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1950-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1950-12-01T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1950-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1950-04-16T04:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1950-04-16T04:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1950-04-16T05:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1950-04-16T05:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1950-12-01T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1950-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1950-12-01T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1950-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1951-04-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1951-04-01T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1951-04-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1951-12-01T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1951-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1951-12-01T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1951-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1951-04-01T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1951-04-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1951-04-01T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1951-04-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1951-12-01T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1951-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1951-12-01T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1951-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1952-04-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1952-04-01T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1952-04-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1952-12-01T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1952-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1952-12-01T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1952-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1952-04-01T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1952-04-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1952-04-01T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1952-04-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1952-12-01T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1952-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1952-12-01T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1952-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1953-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1953-03-01T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1953-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1953-03-01T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1953-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1953-03-01T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1953-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1963-12-09T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1963-12-09T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1963-12-09T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1963-12-09T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1963-12-09T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1963-12-09T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1963-12-09T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1964-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1964-03-01T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1964-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1964-03-01T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1964-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1964-03-01T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1964-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1965-01-31T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1965-01-31T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1965-01-31T05:00:00+00:00 should be 01:00:00 ACST"); - t.equal(moment("1965-03-31T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1965-03-31T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1965-03-31T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1965-03-31T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1965-12-01T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1965-12-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1965-12-01T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1965-12-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1965-01-31T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1965-01-31T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1965-01-31T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1965-01-31T05:00:00+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1965-03-31T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1965-03-31T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1965-03-31T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1965-03-31T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1965-12-01T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1965-12-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1965-12-01T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1965-12-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1966-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1966-03-01T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1966-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1966-11-01T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1966-11-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1966-11-01T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1966-11-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1966-03-01T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1966-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1966-03-01T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1966-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1966-11-01T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1966-11-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1966-11-01T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1966-11-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1967-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1967-03-01T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1967-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1967-11-01T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1967-11-01T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1967-11-01T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1967-11-01T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1967-03-01T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1967-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1967-03-01T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1967-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1967-11-01T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1967-11-01T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1967-11-01T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1967-11-01T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1968-03-01T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1968-03-01T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1968-03-01T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1968-03-01T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1968-03-01T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1968-03-01T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1968-03-01T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1985-11-02T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1985-11-02T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1985-11-02T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1985-11-02T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1985-11-02T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1985-11-02T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1985-11-02T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1986-03-15T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1986-03-15T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1986-03-15T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1986-10-25T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1986-10-25T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1986-10-25T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1986-10-25T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1986-03-15T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1986-03-15T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1986-03-15T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1986-03-15T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1986-10-25T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1986-10-25T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1986-10-25T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1986-10-25T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1987-02-14T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1987-02-14T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1987-02-14T04:00:00+00:00 should be 23:00:00 ACT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1987-10-25T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "1987-10-25T05:00:00+00:00 should be 01:00:00 ACST"); - - t.equal(moment("1987-02-14T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1987-02-14T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1987-02-14T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1987-02-14T04:00:00+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "1987-10-25T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "1987-10-25T05:00:00+00:00 should be 240 minutes offset in ACST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T03:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "1988-02-07T03:59:59+00:00 should be 23:59:59 ACST"); - t.equal(moment("1988-02-07T04:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:00:00", "1988-02-07T04:00:00+00:00 should be 23:00:00 ACT"); - - t.equal(moment("1988-02-07T03:59:59+00:00").tz("America/Rio_Branco").zone(), 240, "1988-02-07T03:59:59+00:00 should be 240 minutes offset in ACST"); - t.equal(moment("1988-02-07T04:00:00+00:00").tz("America/Rio_Branco").zone(), 300, "1988-02-07T04:00:00+00:00 should be 300 minutes offset in ACT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-06-24T04:59:59+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "23:59:59", "2008-06-24T04:59:59+00:00 should be 23:59:59 ACT"); - t.equal(moment("2008-06-24T05:00:00+00:00").tz("America/Rio_Branco").format("HH:mm:ss"), "01:00:00", "2008-06-24T05:00:00+00:00 should be 01:00:00 AMT"); - - t.equal(moment("2008-06-24T04:59:59+00:00").tz("America/Rio_Branco").zone(), 300, "2008-06-24T04:59:59+00:00 should be 300 minutes offset in ACT"); - t.equal(moment("2008-06-24T05:00:00+00:00").tz("America/Rio_Branco").zone(), 240, "2008-06-24T05:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/santa_isabel.js b/tests/america/santa_isabel.js deleted file mode 100644 index e53bce23..00000000 --- a/tests/america/santa_isabel.js +++ /dev/null @@ -1,1068 +0,0 @@ -var moment = require("../../index"); - -exports["America/Santa_Isabel"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T07:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "00:20:31", "1922-01-01T07:59:59+00:00 should be 00:20:31 LMT"); - t.equal(moment("1922-01-01T08:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1922-01-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1922-01-01T07:59:59+00:00").tz("America/Santa_Isabel").zone(), 27568 / 60, "1922-01-01T07:59:59+00:00 should be 27568 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T08:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1922-01-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-01-01T06:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:59:59", "1924-01-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1924-01-01T07:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:00:00", "1924-01-01T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1924-01-01T06:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1924-01-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1924-01-01T07:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1924-01-01T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-06-11T06:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "22:59:59", "1927-06-11T06:59:59+00:00 should be 22:59:59 PST"); - t.equal(moment("1927-06-11T07:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "00:00:00", "1927-06-11T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1927-06-11T06:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1927-06-11T06:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1927-06-11T07:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1927-06-11T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-11-15T06:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:59:59", "1930-11-15T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1930-11-15T07:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:00:00", "1930-11-15T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1930-11-15T06:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1930-11-15T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1930-11-15T07:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1930-11-15T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T07:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:59:59", "1931-04-01T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1931-04-01T08:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1931-04-01T08:00:00+00:00 should be 01:00:00 PDT"); - t.equal(moment("1931-09-30T06:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:59:59", "1931-09-30T06:59:59+00:00 should be 23:59:59 PDT"); - t.equal(moment("1931-09-30T07:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:00:00", "1931-09-30T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1931-04-01T07:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1931-04-01T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1931-04-01T08:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1931-04-01T08:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1931-09-30T06:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1931-09-30T06:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1931-09-30T07:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1931-09-30T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-24T07:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:59:59", "1942-04-24T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1942-04-24T08:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1942-04-24T08:00:00+00:00 should be 01:00:00 PWT"); - - t.equal(moment("1942-04-24T07:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1942-04-24T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1942-04-24T08:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1942-04-24T08:00:00+00:00 should be 420 minutes offset in PWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "15:59:59", "1945-08-14T22:59:59+00:00 should be 15:59:59 PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "16:00:00", "1945-08-14T23:00:00+00:00 should be 16:00:00 PPT"); - t.equal(moment("1945-11-12T06:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:59:59", "1945-11-12T06:59:59+00:00 should be 23:59:59 PPT"); - t.equal(moment("1945-11-12T07:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:00:00", "1945-11-12T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1945-08-14T22:59:59+00:00 should be 420 minutes offset in PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1945-08-14T23:00:00+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-11-12T06:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1945-11-12T06:59:59+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-11-12T07:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1945-11-12T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-05T07:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:59:59", "1948-04-05T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1948-04-05T08:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1948-04-05T08:00:00+00:00 should be 01:00:00 PDT"); - - t.equal(moment("1948-04-05T07:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1948-04-05T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1948-04-05T08:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1948-04-05T08:00:00+00:00 should be 420 minutes offset in PDT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:59:59", "1949-01-14T06:59:59+00:00 should be 23:59:59 PDT"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "23:00:00", "1949-01-14T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1949-01-14T06:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1949-01-14T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1954-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1954-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1954-09-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1954-09-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1954-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1954-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1954-09-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1954-09-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1955-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1955-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1955-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1955-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1955-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1955-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1955-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1955-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1956-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1956-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1956-09-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1956-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1956-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1956-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1956-09-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1956-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1957-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1957-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1957-09-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1957-09-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1957-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1957-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1957-09-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1957-09-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1958-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1958-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1958-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1958-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1958-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1958-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1958-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1958-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1959-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1959-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1959-09-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1959-09-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1959-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1959-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1959-09-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1959-09-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1960-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1960-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1960-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1960-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1960-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1960-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1960-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1960-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1976-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1976-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1976-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1976-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1976-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1976-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1976-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1976-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1977-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1977-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1977-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1977-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1977-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1977-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1977-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1977-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1978-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1978-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1978-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1978-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1978-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1978-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1978-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1978-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1979-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1979-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1979-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1979-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1979-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1979-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1979-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1979-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1980-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1980-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1980-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1980-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1980-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1980-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1983-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1983-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1984-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1984-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1984-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1984-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1984-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1984-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1984-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1984-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1985-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1985-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1985-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1985-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1985-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1985-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1985-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1985-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1986-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1986-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1986-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1986-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1986-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1986-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1986-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1986-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1987-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1987-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1987-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1987-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1987-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1987-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1987-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1987-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1988-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1988-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1988-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1988-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1988-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1988-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1988-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1988-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1989-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1989-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1989-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1989-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1989-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1989-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1989-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1989-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1990-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1990-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1990-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1990-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1990-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1990-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1990-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1990-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1991-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1991-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1991-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1991-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1991-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1991-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1991-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1991-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1992-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1992-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1992-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1992-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1992-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1992-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1992-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1992-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1993-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1993-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1993-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1993-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1993-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1993-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1993-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1993-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1994-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1994-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1994-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1994-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1994-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1994-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1994-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1994-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1995-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1995-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1995-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1995-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1995-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1995-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1995-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1995-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1996-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1996-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1996-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1996-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1996-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1996-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1996-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1996-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1997-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1997-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1997-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1997-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1997-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1997-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1997-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1997-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1998-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1998-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1998-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1998-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1998-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1998-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1998-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1998-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1999-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "1999-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "1999-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "1999-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "1999-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "1999-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "1999-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "1999-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2000-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2000-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2000-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2000-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2000-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2000-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2000-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2000-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2001-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2001-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2001-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2001-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2001-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2001-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2001-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2001-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2002-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2002-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2002-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2002-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2002-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2002-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2002-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2002-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2003-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2003-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2003-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2003-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2003-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2003-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2003-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2003-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2004-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2004-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2004-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2004-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2004-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2004-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2004-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2004-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2005-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2005-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2005-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2005-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2005-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2005-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2005-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2005-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2006-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2006-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2006-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2006-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2006-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2006-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2006-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2006-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2007-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2007-04-01T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2007-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2007-10-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2007-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2007-10-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2007-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2007-04-01T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2007-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2007-04-01T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2007-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-10-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2007-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-10-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2007-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2008-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2008-04-06T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2008-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2008-10-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2008-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2008-10-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2008-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2008-04-06T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2008-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2008-04-06T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2008-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-10-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2008-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-10-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2008-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2009-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2009-04-05T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2009-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2009-10-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2009-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2009-10-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2009-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2009-04-05T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2009-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2009-04-05T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2009-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-10-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2009-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-10-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2009-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2010-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2010-04-04T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2010-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2010-10-31T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2010-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2010-10-31T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2010-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2010-04-04T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2010-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2010-04-04T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2010-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-10-31T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2010-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-10-31T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2010-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-03T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2011-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2011-04-03T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2011-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2011-10-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2011-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2011-10-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2011-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2011-04-03T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2011-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2011-04-03T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2011-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-10-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2011-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-10-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2011-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-01T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2012-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2012-04-01T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2012-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2012-10-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2012-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2012-10-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2012-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2012-04-01T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2012-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2012-04-01T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2012-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-10-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2012-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-10-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2012-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-07T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2013-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2013-04-07T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2013-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2013-10-27T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2013-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2013-10-27T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2013-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2013-04-07T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2013-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2013-04-07T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2013-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-10-27T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2013-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-10-27T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2013-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-06T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2014-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2014-04-06T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2014-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2014-10-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2014-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2014-10-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2014-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2014-04-06T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2014-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2014-04-06T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2014-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-10-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2014-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-10-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2014-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-05T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2015-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2015-04-05T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2015-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2015-10-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2015-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2015-10-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2015-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2015-04-05T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2015-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2015-04-05T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2015-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-10-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2015-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-10-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2015-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-03T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2016-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2016-04-03T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2016-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2016-10-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2016-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2016-10-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2016-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2016-04-03T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2016-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2016-04-03T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2016-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-10-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2016-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-10-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2016-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-02T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2017-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2017-04-02T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2017-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2017-10-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2017-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2017-10-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2017-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2017-04-02T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2017-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2017-04-02T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2017-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-10-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2017-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-10-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2017-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-01T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2018-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2018-04-01T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2018-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2018-10-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2018-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2018-10-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2018-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2018-04-01T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2018-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2018-04-01T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2018-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-10-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2018-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-10-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2018-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-07T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2019-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2019-04-07T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2019-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2019-10-27T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2019-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2019-10-27T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2019-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2019-04-07T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2019-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2019-04-07T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2019-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-10-27T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2019-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-10-27T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2019-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-05T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2020-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2020-04-05T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2020-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2020-10-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2020-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2020-10-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2020-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2020-04-05T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2020-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2020-04-05T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2020-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-10-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2020-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-10-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2020-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-04T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2021-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2021-04-04T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2021-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2021-10-31T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2021-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2021-10-31T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2021-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2021-04-04T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2021-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2021-04-04T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2021-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-10-31T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2021-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-10-31T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2021-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-03T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2022-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2022-04-03T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2022-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2022-10-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2022-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2022-10-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2022-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2022-04-03T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2022-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2022-04-03T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2022-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-10-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2022-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-10-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2022-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-02T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2023-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2023-04-02T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2023-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2023-10-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2023-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2023-10-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2023-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2023-04-02T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2023-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2023-04-02T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2023-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-10-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2023-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-10-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2023-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-07T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2024-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2024-04-07T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2024-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2024-10-27T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2024-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2024-10-27T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2024-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2024-04-07T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2024-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2024-04-07T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2024-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-10-27T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2024-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-10-27T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2024-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-06T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2025-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2025-04-06T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2025-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2025-10-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2025-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2025-10-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2025-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2025-04-06T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2025-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2025-04-06T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2025-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-10-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2025-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-10-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2025-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-05T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2026-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2026-04-05T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2026-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2026-10-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2026-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2026-10-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2026-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2026-04-05T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2026-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2026-04-05T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2026-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-10-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2026-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-10-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2026-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-04T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2027-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2027-04-04T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2027-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2027-10-31T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2027-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2027-10-31T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2027-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2027-04-04T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2027-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2027-04-04T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2027-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-10-31T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2027-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-10-31T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2027-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-02T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2028-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2028-04-02T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2028-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2028-10-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2028-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2028-10-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2028-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2028-04-02T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2028-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2028-04-02T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2028-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-10-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2028-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-10-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2028-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-01T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2029-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2029-04-01T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2029-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2029-10-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2029-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2029-10-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2029-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2029-04-01T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2029-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2029-04-01T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2029-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-10-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2029-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-10-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2029-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-07T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2030-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2030-04-07T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2030-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2030-10-27T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2030-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2030-10-27T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2030-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2030-04-07T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2030-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2030-04-07T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2030-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-10-27T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2030-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-10-27T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2030-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-06T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2031-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2031-04-06T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2031-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2031-10-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2031-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2031-10-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2031-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2031-04-06T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2031-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2031-04-06T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2031-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-10-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2031-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-10-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2031-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-04T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2032-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2032-04-04T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2032-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2032-10-31T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2032-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2032-10-31T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2032-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2032-04-04T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2032-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2032-04-04T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2032-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-10-31T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2032-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-10-31T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2032-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-03T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2033-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2033-04-03T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2033-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2033-10-30T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2033-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2033-10-30T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2033-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2033-04-03T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2033-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2033-04-03T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2033-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-10-30T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2033-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-10-30T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2033-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-02T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2034-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2034-04-02T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2034-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2034-10-29T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2034-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2034-10-29T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2034-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2034-04-02T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2034-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2034-04-02T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2034-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-10-29T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2034-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-10-29T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2034-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-01T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2035-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2035-04-01T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2035-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2035-10-28T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2035-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2035-10-28T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2035-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2035-04-01T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2035-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2035-04-01T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2035-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-10-28T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2035-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-10-28T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2035-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-06T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2036-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2036-04-06T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2036-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2036-10-26T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2036-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2036-10-26T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2036-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2036-04-06T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2036-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2036-04-06T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2036-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-10-26T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2036-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-10-26T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2036-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-05T09:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2037-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2037-04-05T10:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "03:00:00", "2037-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2037-10-25T08:59:59+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:59:59", "2037-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2037-10-25T09:00:00+00:00").tz("America/Santa_Isabel").format("HH:mm:ss"), "01:00:00", "2037-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2037-04-05T09:59:59+00:00").tz("America/Santa_Isabel").zone(), 480, "2037-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2037-04-05T10:00:00+00:00").tz("America/Santa_Isabel").zone(), 420, "2037-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-10-25T08:59:59+00:00").tz("America/Santa_Isabel").zone(), 420, "2037-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-10-25T09:00:00+00:00").tz("America/Santa_Isabel").zone(), 480, "2037-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/santarem.js b/tests/america/santarem.js deleted file mode 100644 index 0b741834..00000000 --- a/tests/america/santarem.js +++ /dev/null @@ -1,244 +0,0 @@ -var moment = require("../../index"); - -exports["America/Santarem"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T03:38:47+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1914-01-01T03:38:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T03:38:48+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:38:48", "1914-01-01T03:38:48+00:00 should be 23:38:48 AMT"); - - t.equal(moment("1914-01-01T03:38:47+00:00").tz("America/Santarem").zone(), 13128 / 60, "1914-01-01T03:38:47+00:00 should be 13128 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T03:38:48+00:00").tz("America/Santarem").zone(), 240, "1914-01-01T03:38:48+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "10:59:59", "1931-10-03T14:59:59+00:00 should be 10:59:59 AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "12:00:00", "1931-10-03T15:00:00+00:00 should be 12:00:00 AMST"); - - t.equal(moment("1931-10-03T14:59:59+00:00").tz("America/Santarem").zone(), 240, "1931-10-03T14:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1931-10-03T15:00:00+00:00").tz("America/Santarem").zone(), 180, "1931-10-03T15:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1932-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1932-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1932-10-03T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1932-10-03T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1932-04-01T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1932-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1932-04-01T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1932-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1932-10-03T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1932-10-03T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1932-10-03T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1933-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1933-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1933-04-01T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1933-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1933-04-01T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1933-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1949-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1949-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1949-12-01T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1949-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1949-12-01T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1949-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "00:59:59", "1950-04-16T03:59:59+00:00 should be 00:59:59 AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "00:00:00", "1950-04-16T04:00:00+00:00 should be 00:00:00 AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1950-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1950-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1950-04-16T03:59:59+00:00").tz("America/Santarem").zone(), 180, "1950-04-16T03:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1950-04-16T04:00:00+00:00").tz("America/Santarem").zone(), 240, "1950-04-16T04:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1950-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1950-12-01T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1950-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1951-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1951-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1951-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1951-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1951-04-01T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1951-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1951-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1951-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1951-12-01T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1951-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1952-04-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1952-04-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1952-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1952-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1952-04-01T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1952-04-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1952-04-01T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1952-04-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1952-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1952-12-01T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1952-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1953-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1953-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1953-03-01T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1953-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1953-03-01T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1953-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1963-12-09T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1963-12-09T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1963-12-09T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1963-12-09T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1963-12-09T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1963-12-09T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1964-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1964-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1964-03-01T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1964-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1964-03-01T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1964-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1965-01-31T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1965-01-31T04:00:00+00:00 should be 01:00:00 AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1965-03-31T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1965-03-31T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1965-12-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1965-12-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1965-01-31T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1965-01-31T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-01-31T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1965-01-31T04:00:00+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1965-03-31T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1965-03-31T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1965-03-31T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1965-12-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1965-12-01T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1965-12-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1966-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1966-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1966-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1966-11-01T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1966-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1967-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1967-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1967-11-01T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1967-11-01T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1967-03-01T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1967-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1967-03-01T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1967-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1967-11-01T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1967-11-01T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1967-11-01T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1968-03-01T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1968-03-01T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1968-03-01T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1968-03-01T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1968-03-01T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1968-03-01T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1985-11-02T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1985-11-02T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1985-11-02T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1985-11-02T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1985-11-02T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1985-11-02T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1986-03-15T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1986-03-15T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1986-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1986-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1986-03-15T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1986-03-15T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1986-03-15T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1986-03-15T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1986-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1986-10-25T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1986-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1987-02-14T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1987-02-14T03:00:00+00:00 should be 23:00:00 AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1987-10-25T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "1987-10-25T04:00:00+00:00 should be 01:00:00 AMST"); - - t.equal(moment("1987-02-14T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1987-02-14T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1987-02-14T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1987-02-14T03:00:00+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T03:59:59+00:00").tz("America/Santarem").zone(), 240, "1987-10-25T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("1987-10-25T04:00:00+00:00").tz("America/Santarem").zone(), 180, "1987-10-25T04:00:00+00:00 should be 180 minutes offset in AMST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "1988-02-07T02:59:59+00:00 should be 23:59:59 AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:00:00", "1988-02-07T03:00:00+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1988-02-07T02:59:59+00:00").tz("America/Santarem").zone(), 180, "1988-02-07T02:59:59+00:00 should be 180 minutes offset in AMST"); - t.equal(moment("1988-02-07T03:00:00+00:00").tz("America/Santarem").zone(), 240, "1988-02-07T03:00:00+00:00 should be 240 minutes offset in AMT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-06-24T03:59:59+00:00").tz("America/Santarem").format("HH:mm:ss"), "23:59:59", "2008-06-24T03:59:59+00:00 should be 23:59:59 AMT"); - t.equal(moment("2008-06-24T04:00:00+00:00").tz("America/Santarem").format("HH:mm:ss"), "01:00:00", "2008-06-24T04:00:00+00:00 should be 01:00:00 BRT"); - - t.equal(moment("2008-06-24T03:59:59+00:00").tz("America/Santarem").zone(), 240, "2008-06-24T03:59:59+00:00 should be 240 minutes offset in AMT"); - t.equal(moment("2008-06-24T04:00:00+00:00").tz("America/Santarem").zone(), 180, "2008-06-24T04:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/santiago.js b/tests/america/santiago.js deleted file mode 100644 index 54753948..00000000 --- a/tests/america/santiago.js +++ /dev/null @@ -1,1134 +0,0 @@ -var moment = require("../../index"); - -exports["America/Santiago"] = { - - "1910" : function (t) { - t.equal(moment("1910-01-01T04:42:45+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1910-01-01T04:42:45+00:00 should be 23:59:59 SMT"); - t.equal(moment("1910-01-01T04:42:46+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:42:46", "1910-01-01T04:42:46+00:00 should be 23:42:46 CLT"); - - t.equal(moment("1910-01-01T04:42:45+00:00").tz("America/Santiago").zone(), 16966 / 60, "1910-01-01T04:42:45+00:00 should be 16966 / 60 minutes offset in SMT"); - t.equal(moment("1910-01-01T04:42:46+00:00").tz("America/Santiago").zone(), 300, "1910-01-01T04:42:46+00:00 should be 300 minutes offset in CLT"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-07-01T04:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1916-07-01T04:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1916-07-01T05:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "00:17:14", "1916-07-01T05:00:00+00:00 should be 00:17:14 SMT"); - - t.equal(moment("1916-07-01T04:59:59+00:00").tz("America/Santiago").zone(), 300, "1916-07-01T04:59:59+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1916-07-01T05:00:00+00:00").tz("America/Santiago").zone(), 16966 / 60, "1916-07-01T05:00:00+00:00 should be 16966 / 60 minutes offset in SMT"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-09-01T04:42:45+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1918-09-01T04:42:45+00:00 should be 23:59:59 SMT"); - t.equal(moment("1918-09-01T04:42:46+00:00").tz("America/Santiago").format("HH:mm:ss"), "00:42:46", "1918-09-01T04:42:46+00:00 should be 00:42:46 CLT"); - - t.equal(moment("1918-09-01T04:42:45+00:00").tz("America/Santiago").zone(), 16966 / 60, "1918-09-01T04:42:45+00:00 should be 16966 / 60 minutes offset in SMT"); - t.equal(moment("1918-09-01T04:42:46+00:00").tz("America/Santiago").zone(), 240, "1918-09-01T04:42:46+00:00 should be 240 minutes offset in CLT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-07-01T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1919-07-01T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1919-07-01T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:17:14", "1919-07-01T04:00:00+00:00 should be 23:17:14 SMT"); - - t.equal(moment("1919-07-01T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1919-07-01T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1919-07-01T04:00:00+00:00").tz("America/Santiago").zone(), 16966 / 60, "1919-07-01T04:00:00+00:00 should be 16966 / 60 minutes offset in SMT"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-09-01T04:42:45+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1927-09-01T04:42:45+00:00 should be 23:59:59 SMT"); - t.equal(moment("1927-09-01T04:42:46+00:00").tz("America/Santiago").format("HH:mm:ss"), "00:42:46", "1927-09-01T04:42:46+00:00 should be 00:42:46 CLST"); - - t.equal(moment("1927-09-01T04:42:45+00:00").tz("America/Santiago").zone(), 16966 / 60, "1927-09-01T04:42:45+00:00 should be 16966 / 60 minutes offset in SMT"); - t.equal(moment("1927-09-01T04:42:46+00:00").tz("America/Santiago").zone(), 240, "1927-09-01T04:42:46+00:00 should be 240 minutes offset in CLST"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-01T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1928-04-01T03:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1928-04-01T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1928-04-01T04:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1928-09-01T04:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1928-09-01T04:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1928-09-01T05:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1928-09-01T05:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1928-04-01T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1928-04-01T03:59:59+00:00 should be 240 minutes offset in CLST"); - t.equal(moment("1928-04-01T04:00:00+00:00").tz("America/Santiago").zone(), 300, "1928-04-01T04:00:00+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1928-09-01T04:59:59+00:00").tz("America/Santiago").zone(), 300, "1928-09-01T04:59:59+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1928-09-01T05:00:00+00:00").tz("America/Santiago").zone(), 240, "1928-09-01T05:00:00+00:00 should be 240 minutes offset in CLST"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-01T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1929-04-01T03:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1929-04-01T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1929-04-01T04:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1929-09-01T04:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1929-09-01T04:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1929-09-01T05:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1929-09-01T05:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1929-04-01T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1929-04-01T03:59:59+00:00 should be 240 minutes offset in CLST"); - t.equal(moment("1929-04-01T04:00:00+00:00").tz("America/Santiago").zone(), 300, "1929-04-01T04:00:00+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1929-09-01T04:59:59+00:00").tz("America/Santiago").zone(), 300, "1929-09-01T04:59:59+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1929-09-01T05:00:00+00:00").tz("America/Santiago").zone(), 240, "1929-09-01T05:00:00+00:00 should be 240 minutes offset in CLST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-01T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1930-04-01T03:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1930-04-01T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1930-04-01T04:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1930-09-01T04:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1930-09-01T04:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1930-09-01T05:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1930-09-01T05:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1930-04-01T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1930-04-01T03:59:59+00:00 should be 240 minutes offset in CLST"); - t.equal(moment("1930-04-01T04:00:00+00:00").tz("America/Santiago").zone(), 300, "1930-04-01T04:00:00+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1930-09-01T04:59:59+00:00").tz("America/Santiago").zone(), 300, "1930-09-01T04:59:59+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1930-09-01T05:00:00+00:00").tz("America/Santiago").zone(), 240, "1930-09-01T05:00:00+00:00 should be 240 minutes offset in CLST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1931-04-01T03:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1931-04-01T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1931-04-01T04:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1931-09-01T04:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1931-09-01T04:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1931-09-01T05:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1931-09-01T05:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1931-04-01T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1931-04-01T03:59:59+00:00 should be 240 minutes offset in CLST"); - t.equal(moment("1931-04-01T04:00:00+00:00").tz("America/Santiago").zone(), 300, "1931-04-01T04:00:00+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1931-09-01T04:59:59+00:00").tz("America/Santiago").zone(), 300, "1931-09-01T04:59:59+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1931-09-01T05:00:00+00:00").tz("America/Santiago").zone(), 240, "1931-09-01T05:00:00+00:00 should be 240 minutes offset in CLST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1932-04-01T03:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1932-04-01T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1932-04-01T04:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1932-09-01T04:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1932-09-01T04:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1932-09-01T05:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1932-09-01T05:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1932-04-01T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1932-04-01T03:59:59+00:00 should be 240 minutes offset in CLST"); - t.equal(moment("1932-04-01T04:00:00+00:00").tz("America/Santiago").zone(), 300, "1932-04-01T04:00:00+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1932-09-01T04:59:59+00:00").tz("America/Santiago").zone(), 300, "1932-09-01T04:59:59+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1932-09-01T05:00:00+00:00").tz("America/Santiago").zone(), 240, "1932-09-01T05:00:00+00:00 should be 240 minutes offset in CLST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-06-01T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1942-06-01T03:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1942-06-01T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1942-06-01T04:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1942-08-01T04:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1942-08-01T04:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1942-08-01T05:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1942-08-01T05:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1942-06-01T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1942-06-01T03:59:59+00:00 should be 240 minutes offset in CLST"); - t.equal(moment("1942-06-01T04:00:00+00:00").tz("America/Santiago").zone(), 300, "1942-06-01T04:00:00+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1942-08-01T04:59:59+00:00").tz("America/Santiago").zone(), 300, "1942-08-01T04:59:59+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1942-08-01T05:00:00+00:00").tz("America/Santiago").zone(), 240, "1942-08-01T05:00:00+00:00 should be 240 minutes offset in CLST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-09-01T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "22:59:59", "1946-09-01T02:59:59+00:00 should be 22:59:59 CLST"); - t.equal(moment("1946-09-01T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "22:00:00", "1946-09-01T03:00:00+00:00 should be 22:00:00 CLT"); - - t.equal(moment("1946-09-01T02:59:59+00:00").tz("America/Santiago").zone(), 240, "1946-09-01T02:59:59+00:00 should be 240 minutes offset in CLST"); - t.equal(moment("1946-09-01T03:00:00+00:00").tz("America/Santiago").zone(), 300, "1946-09-01T03:00:00+00:00 should be 300 minutes offset in CLT"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-05-22T04:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1947-05-22T04:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1947-05-22T05:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1947-05-22T05:00:00+00:00 should be 01:00:00 CLT"); - - t.equal(moment("1947-05-22T04:59:59+00:00").tz("America/Santiago").zone(), 300, "1947-05-22T04:59:59+00:00 should be 300 minutes offset in CLT"); - t.equal(moment("1947-05-22T05:00:00+00:00").tz("America/Santiago").zone(), 240, "1947-05-22T05:00:00+00:00 should be 240 minutes offset in CLT"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-11-03T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1968-11-03T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1968-11-03T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1968-11-03T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1968-11-03T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1968-11-03T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1968-11-03T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1968-11-03T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-03-30T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1969-03-30T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1969-03-30T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1969-03-30T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1969-11-23T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1969-11-23T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1969-11-23T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1969-11-23T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1969-03-30T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1969-03-30T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1969-03-30T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1969-03-30T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1969-11-23T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1969-11-23T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1969-11-23T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1969-11-23T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-03-29T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1970-03-29T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1970-03-29T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1970-03-29T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1970-10-11T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1970-10-11T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1970-10-11T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1970-10-11T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1970-03-29T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1970-03-29T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1970-03-29T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1970-03-29T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1970-10-11T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1970-10-11T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1970-10-11T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1970-10-11T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-03-14T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1971-03-14T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1971-03-14T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1971-03-14T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1971-10-10T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1971-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1971-10-10T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1971-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1971-03-14T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1971-03-14T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1971-03-14T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1971-03-14T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1971-10-10T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1971-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1971-10-10T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1971-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-03-12T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1972-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1972-03-12T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1972-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1972-10-15T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1972-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1972-10-15T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1972-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1972-03-12T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1972-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1972-03-12T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1972-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1972-10-15T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1972-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1972-10-15T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1972-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-11T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1973-03-11T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1973-03-11T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1973-03-11T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1973-09-30T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1973-09-30T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1973-09-30T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1973-09-30T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1973-03-11T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1973-03-11T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1973-03-11T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1973-03-11T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1973-09-30T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1973-09-30T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1973-09-30T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1973-09-30T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-10T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1974-03-10T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1974-03-10T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1974-03-10T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1974-10-13T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1974-10-13T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1974-10-13T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1974-10-13T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1974-03-10T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1974-03-10T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1974-03-10T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1974-03-10T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1974-10-13T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1974-10-13T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1974-10-13T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1974-10-13T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-09T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1975-03-09T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1975-03-09T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1975-03-09T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1975-10-12T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1975-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1975-10-12T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1975-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1975-03-09T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1975-03-09T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1975-03-09T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1975-03-09T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1975-10-12T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1975-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1975-10-12T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1975-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-14T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1976-03-14T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1976-03-14T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1976-03-14T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1976-10-10T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1976-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1976-10-10T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1976-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1976-03-14T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1976-03-14T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1976-03-14T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1976-03-14T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1976-10-10T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1976-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1976-10-10T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1976-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-13T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1977-03-13T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1977-03-13T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1977-03-13T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1977-10-09T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1977-10-09T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1977-10-09T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1977-10-09T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1977-03-13T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1977-03-13T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1977-03-13T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1977-03-13T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1977-10-09T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1977-10-09T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1977-10-09T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1977-10-09T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-12T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1978-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1978-03-12T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1978-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1978-10-15T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1978-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1978-10-15T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1978-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1978-03-12T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1978-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1978-03-12T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1978-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1978-10-15T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1978-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1978-10-15T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1978-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-11T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1979-03-11T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1979-03-11T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1979-03-11T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1979-10-14T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1979-10-14T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1979-10-14T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1979-10-14T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1979-03-11T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1979-03-11T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1979-03-11T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1979-03-11T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1979-10-14T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1979-10-14T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1979-10-14T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1979-10-14T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-09T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1980-03-09T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1980-03-09T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1980-03-09T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1980-10-12T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1980-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1980-10-12T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1980-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1980-03-09T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1980-03-09T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1980-03-09T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1980-03-09T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1980-10-12T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1980-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1980-10-12T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1980-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-15T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1981-03-15T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1981-03-15T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1981-03-15T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1981-10-11T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1981-10-11T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1981-10-11T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1981-10-11T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1981-03-15T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1981-03-15T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1981-03-15T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1981-03-15T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1981-10-11T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1981-10-11T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1981-10-11T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1981-10-11T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-14T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1982-03-14T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1982-03-14T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1982-03-14T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1982-10-10T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1982-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1982-10-10T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1982-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1982-03-14T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1982-03-14T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1982-03-14T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1982-03-14T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1982-10-10T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1982-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1982-10-10T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1982-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-13T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1983-03-13T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1983-03-13T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1983-03-13T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1983-10-09T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1983-10-09T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1983-10-09T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1983-10-09T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1983-03-13T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1983-03-13T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1983-03-13T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1983-03-13T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1983-10-09T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1983-10-09T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1983-10-09T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1983-10-09T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-11T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1984-03-11T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1984-03-11T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1984-03-11T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1984-10-14T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1984-10-14T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1984-10-14T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1984-10-14T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1984-03-11T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1984-03-11T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1984-03-11T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1984-03-11T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1984-10-14T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1984-10-14T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1984-10-14T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1984-10-14T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-10T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1985-03-10T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1985-03-10T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1985-03-10T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1985-10-13T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1985-10-13T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1985-10-13T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1985-10-13T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1985-03-10T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1985-03-10T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1985-03-10T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1985-03-10T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1985-10-13T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1985-10-13T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1985-10-13T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1985-10-13T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-09T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1986-03-09T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1986-03-09T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1986-03-09T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1986-10-12T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1986-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1986-10-12T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1986-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1986-03-09T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1986-03-09T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1986-03-09T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1986-03-09T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1986-10-12T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1986-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1986-10-12T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1986-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-12T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1987-04-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1987-04-12T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1987-04-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1987-10-11T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1987-10-11T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1987-10-11T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1987-10-11T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1987-04-12T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1987-04-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1987-04-12T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1987-04-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1987-10-11T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1987-10-11T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1987-10-11T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1987-10-11T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-13T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1988-03-13T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1988-03-13T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1988-03-13T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1988-10-02T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1988-10-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1988-10-02T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1988-10-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1988-03-13T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1988-03-13T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1988-03-13T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1988-03-13T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1988-10-02T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1988-10-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1988-10-02T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1988-10-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-12T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1989-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1989-03-12T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1989-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1989-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1989-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1989-03-12T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1989-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1989-03-12T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1989-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1989-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1989-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-18T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1990-03-18T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1990-03-18T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1990-03-18T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1990-09-16T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1990-09-16T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1990-09-16T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1990-09-16T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1990-03-18T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1990-03-18T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1990-03-18T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1990-03-18T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1990-09-16T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1990-09-16T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1990-09-16T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1990-09-16T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-10T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1991-03-10T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1991-03-10T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1991-03-10T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1991-10-13T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1991-10-13T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1991-10-13T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1991-10-13T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1991-03-10T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1991-03-10T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1991-03-10T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1991-03-10T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1991-10-13T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1991-10-13T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1991-10-13T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1991-10-13T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-15T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1992-03-15T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1992-03-15T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1992-03-15T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1992-10-11T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1992-10-11T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1992-10-11T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1992-10-11T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1992-03-15T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1992-03-15T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1992-03-15T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1992-03-15T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1992-10-11T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1992-10-11T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1992-10-11T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1992-10-11T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-14T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1993-03-14T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1993-03-14T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1993-03-14T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1993-10-10T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1993-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1993-10-10T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1993-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1993-03-14T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1993-03-14T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1993-03-14T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1993-03-14T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1993-10-10T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1993-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1993-10-10T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1993-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-13T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1994-03-13T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1994-03-13T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1994-03-13T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1994-10-09T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1994-10-09T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1994-10-09T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1994-10-09T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1994-03-13T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1994-03-13T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1994-03-13T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1994-03-13T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1994-10-09T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1994-10-09T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1994-10-09T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1994-10-09T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-12T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1995-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1995-03-12T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1995-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1995-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1995-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1995-03-12T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1995-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1995-03-12T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1995-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1995-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1995-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-10T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1996-03-10T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1996-03-10T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1996-03-10T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1996-10-13T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1996-10-13T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1996-10-13T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1996-10-13T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1996-03-10T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1996-03-10T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1996-03-10T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1996-03-10T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1996-10-13T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1996-10-13T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1996-10-13T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1996-10-13T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1997-03-30T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1997-03-30T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1997-03-30T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1997-10-12T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1997-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1997-10-12T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1997-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1997-03-30T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1997-03-30T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1997-03-30T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1997-03-30T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1997-10-12T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1997-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1997-10-12T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1997-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-15T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1998-03-15T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1998-03-15T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1998-03-15T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1998-09-27T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1998-09-27T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1998-09-27T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1998-09-27T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1998-03-15T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1998-03-15T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1998-03-15T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1998-03-15T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1998-09-27T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1998-09-27T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1998-09-27T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1998-09-27T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1999-04-04T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1999-04-04T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "1999-04-04T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1999-10-10T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "1999-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1999-10-10T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "1999-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1999-04-04T02:59:59+00:00").tz("America/Santiago").zone(), 180, "1999-04-04T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1999-04-04T03:00:00+00:00").tz("America/Santiago").zone(), 240, "1999-04-04T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1999-10-10T03:59:59+00:00").tz("America/Santiago").zone(), 240, "1999-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1999-10-10T04:00:00+00:00").tz("America/Santiago").zone(), 180, "1999-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-12T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2000-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2000-03-12T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2000-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2000-10-15T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2000-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2000-10-15T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2000-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2000-03-12T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2000-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2000-03-12T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2000-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2000-10-15T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2000-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2000-10-15T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2000-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-11T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2001-03-11T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2001-03-11T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2001-03-11T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2001-10-14T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2001-10-14T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2001-03-11T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2001-03-11T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2001-03-11T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2001-03-11T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2001-10-14T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2001-10-14T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-10T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2002-03-10T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2002-03-10T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2002-03-10T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2002-10-13T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2002-10-13T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2002-10-13T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2002-10-13T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2002-03-10T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2002-03-10T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2002-03-10T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2002-03-10T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2002-10-13T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2002-10-13T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2002-10-13T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2002-10-13T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-09T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2003-03-09T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2003-03-09T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2003-03-09T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2003-10-12T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2003-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2003-10-12T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2003-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2003-03-09T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2003-03-09T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2003-03-09T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2003-03-09T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2003-10-12T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2003-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2003-10-12T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2003-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-14T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2004-03-14T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2004-03-14T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2004-03-14T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2004-10-10T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2004-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2004-10-10T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2004-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2004-03-14T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2004-03-14T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2004-03-14T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2004-03-14T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2004-10-10T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2004-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2004-10-10T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2004-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-13T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2005-03-13T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2005-03-13T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2005-03-13T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2005-10-09T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2005-10-09T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2005-10-09T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2005-10-09T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2005-03-13T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2005-03-13T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2005-03-13T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2005-03-13T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2005-10-09T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2005-10-09T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2005-10-09T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2005-10-09T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-12T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2006-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2006-03-12T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2006-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2006-10-15T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2006-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2006-10-15T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2006-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2006-03-12T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2006-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2006-03-12T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2006-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2006-10-15T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2006-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2006-10-15T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2006-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2007-03-11T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2007-03-11T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2007-03-11T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2007-10-14T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2007-10-14T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2007-03-11T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2007-03-11T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2007-03-11T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2007-03-11T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2007-10-14T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2007-10-14T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2008-03-30T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2008-03-30T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2008-03-30T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2008-10-12T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2008-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2008-10-12T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2008-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2008-03-30T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2008-03-30T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2008-03-30T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2008-03-30T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2008-10-12T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2008-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2008-10-12T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2008-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-15T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2009-03-15T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2009-03-15T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2009-03-15T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2009-10-11T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2009-10-11T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2009-10-11T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2009-10-11T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2009-03-15T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2009-03-15T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2009-03-15T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2009-03-15T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2009-10-11T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2009-10-11T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2009-10-11T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2009-10-11T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2010-04-04T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2010-04-04T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2010-04-04T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2010-10-10T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2010-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2010-10-10T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2010-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2010-04-04T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2010-04-04T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2010-04-04T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2010-04-04T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2010-10-10T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2010-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2010-10-10T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2010-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-05-08T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2011-05-08T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2011-05-08T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2011-05-08T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2011-08-21T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2011-08-21T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2011-08-21T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2011-08-21T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2011-05-08T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2011-05-08T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2011-05-08T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2011-05-08T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2011-08-21T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2011-08-21T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2011-08-21T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2011-08-21T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-29T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2012-04-29T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2012-04-29T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2012-04-29T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2012-09-02T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2012-09-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2012-09-02T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2012-09-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2012-04-29T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2012-04-29T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2012-04-29T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2012-04-29T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2012-09-02T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2012-09-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2012-09-02T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2012-09-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-28T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2013-04-28T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2013-04-28T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2013-04-28T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2013-09-08T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2013-09-08T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2013-09-08T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2013-09-08T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2013-04-28T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2013-04-28T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2013-04-28T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2013-04-28T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2013-09-08T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2013-09-08T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2013-09-08T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2013-09-08T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-27T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2014-04-27T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2014-04-27T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2014-04-27T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2014-09-07T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2014-09-07T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2014-09-07T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2014-09-07T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2014-04-27T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2014-04-27T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2014-04-27T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2014-04-27T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2014-09-07T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2014-09-07T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2014-09-07T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2014-09-07T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-26T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2015-04-26T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2015-04-26T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2015-04-26T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2015-09-06T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2015-09-06T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2015-09-06T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2015-09-06T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2015-04-26T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2015-04-26T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2015-04-26T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2015-04-26T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2015-09-06T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2015-09-06T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2015-09-06T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2015-09-06T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-24T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2016-04-24T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2016-04-24T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2016-04-24T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2016-09-04T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2016-09-04T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2016-09-04T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2016-09-04T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2016-04-24T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2016-04-24T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2016-04-24T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2016-04-24T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2016-09-04T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2016-09-04T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2016-09-04T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2016-09-04T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-23T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2017-04-23T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2017-04-23T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2017-04-23T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2017-09-03T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2017-09-03T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2017-09-03T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2017-09-03T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2017-04-23T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2017-04-23T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2017-04-23T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2017-04-23T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2017-09-03T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2017-09-03T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2017-09-03T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2017-09-03T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-29T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2018-04-29T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2018-04-29T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2018-04-29T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2018-09-02T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2018-09-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2018-09-02T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2018-09-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2018-04-29T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2018-04-29T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2018-04-29T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2018-04-29T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2018-09-02T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2018-09-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2018-09-02T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2018-09-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-28T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2019-04-28T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2019-04-28T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2019-04-28T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2019-09-08T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2019-09-08T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2019-09-08T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2019-09-08T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2019-04-28T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2019-04-28T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2019-04-28T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2019-04-28T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2019-09-08T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2019-09-08T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2019-09-08T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2019-09-08T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-26T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2020-04-26T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2020-04-26T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2020-04-26T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2020-09-06T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2020-09-06T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2020-09-06T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2020-09-06T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2020-04-26T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2020-04-26T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2020-04-26T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2020-04-26T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2020-09-06T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2020-09-06T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2020-09-06T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2020-09-06T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-25T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2021-04-25T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2021-04-25T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2021-04-25T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2021-09-05T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2021-09-05T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2021-09-05T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2021-09-05T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2021-04-25T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2021-04-25T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2021-04-25T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2021-04-25T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2021-09-05T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2021-09-05T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2021-09-05T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2021-09-05T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-24T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2022-04-24T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2022-04-24T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2022-04-24T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2022-09-04T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2022-09-04T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2022-09-04T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2022-09-04T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2022-04-24T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2022-04-24T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2022-04-24T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2022-04-24T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2022-09-04T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2022-09-04T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2022-09-04T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2022-09-04T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-23T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2023-04-23T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2023-04-23T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2023-04-23T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2023-09-03T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2023-09-03T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2023-09-03T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2023-09-03T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2023-04-23T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2023-04-23T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2023-04-23T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2023-04-23T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2023-09-03T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2023-09-03T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2023-09-03T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2023-09-03T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-28T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2024-04-28T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2024-04-28T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2024-04-28T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2024-09-08T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2024-09-08T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2024-09-08T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2024-09-08T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2024-04-28T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2024-04-28T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2024-04-28T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2024-04-28T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2024-09-08T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2024-09-08T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2024-09-08T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2024-09-08T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-27T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2025-04-27T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2025-04-27T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2025-04-27T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2025-09-07T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2025-09-07T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2025-09-07T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2025-09-07T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2025-04-27T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2025-04-27T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2025-04-27T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2025-04-27T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2025-09-07T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2025-09-07T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2025-09-07T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2025-09-07T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-26T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2026-04-26T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2026-04-26T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2026-04-26T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2026-09-06T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2026-09-06T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2026-09-06T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2026-09-06T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2026-04-26T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2026-04-26T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2026-04-26T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2026-04-26T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2026-09-06T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2026-09-06T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2026-09-06T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2026-09-06T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-25T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2027-04-25T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2027-04-25T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2027-04-25T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2027-09-05T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2027-09-05T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2027-09-05T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2027-09-05T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2027-04-25T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2027-04-25T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2027-04-25T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2027-04-25T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2027-09-05T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2027-09-05T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2027-09-05T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2027-09-05T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-23T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2028-04-23T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2028-04-23T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2028-04-23T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2028-09-03T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2028-09-03T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2028-09-03T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2028-09-03T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2028-04-23T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2028-04-23T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2028-04-23T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2028-04-23T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2028-09-03T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2028-09-03T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2028-09-03T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2028-09-03T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-29T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2029-04-29T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2029-04-29T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2029-04-29T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2029-09-02T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2029-09-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2029-09-02T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2029-09-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2029-04-29T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2029-04-29T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2029-04-29T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2029-04-29T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2029-09-02T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2029-09-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2029-09-02T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2029-09-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-28T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2030-04-28T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2030-04-28T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2030-04-28T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2030-09-08T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2030-09-08T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2030-09-08T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2030-09-08T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2030-04-28T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2030-04-28T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2030-04-28T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2030-04-28T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2030-09-08T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2030-09-08T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2030-09-08T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2030-09-08T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-27T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2031-04-27T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2031-04-27T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2031-04-27T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2031-09-07T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2031-09-07T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2031-09-07T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2031-09-07T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2031-04-27T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2031-04-27T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2031-04-27T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2031-04-27T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2031-09-07T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2031-09-07T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2031-09-07T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2031-09-07T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-25T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2032-04-25T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2032-04-25T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2032-04-25T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2032-09-05T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2032-09-05T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2032-09-05T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2032-09-05T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2032-04-25T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2032-04-25T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2032-04-25T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2032-04-25T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2032-09-05T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2032-09-05T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2032-09-05T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2032-09-05T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-24T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2033-04-24T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2033-04-24T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2033-04-24T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2033-09-04T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2033-09-04T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2033-09-04T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2033-09-04T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2033-04-24T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2033-04-24T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2033-04-24T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2033-04-24T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2033-09-04T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2033-09-04T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2033-09-04T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2033-09-04T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-23T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2034-04-23T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2034-04-23T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2034-04-23T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2034-09-03T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2034-09-03T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2034-09-03T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2034-09-03T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2034-04-23T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2034-04-23T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2034-04-23T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2034-04-23T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2034-09-03T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2034-09-03T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2034-09-03T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2034-09-03T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-29T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2035-04-29T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2035-04-29T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2035-04-29T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2035-09-02T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2035-09-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2035-09-02T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2035-09-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2035-04-29T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2035-04-29T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2035-04-29T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2035-04-29T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2035-09-02T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2035-09-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2035-09-02T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2035-09-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-27T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2036-04-27T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2036-04-27T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2036-04-27T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2036-09-07T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2036-09-07T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2036-09-07T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2036-09-07T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2036-04-27T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2036-04-27T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2036-04-27T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2036-04-27T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2036-09-07T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2036-09-07T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2036-09-07T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2036-09-07T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-26T02:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2037-04-26T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2037-04-26T03:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:00:00", "2037-04-26T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2037-09-06T03:59:59+00:00").tz("America/Santiago").format("HH:mm:ss"), "23:59:59", "2037-09-06T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2037-09-06T04:00:00+00:00").tz("America/Santiago").format("HH:mm:ss"), "01:00:00", "2037-09-06T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2037-04-26T02:59:59+00:00").tz("America/Santiago").zone(), 180, "2037-04-26T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2037-04-26T03:00:00+00:00").tz("America/Santiago").zone(), 240, "2037-04-26T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2037-09-06T03:59:59+00:00").tz("America/Santiago").zone(), 240, "2037-09-06T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2037-09-06T04:00:00+00:00").tz("America/Santiago").zone(), 180, "2037-09-06T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/santo_domingo.js b/tests/america/santo_domingo.js deleted file mode 100644 index 3d53328b..00000000 --- a/tests/america/santo_domingo.js +++ /dev/null @@ -1,128 +0,0 @@ -var moment = require("../../index"); - -exports["America/Santo_Domingo"] = { - - "1933" : function (t) { - t.equal(moment("1933-04-01T16:39:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "11:59:59", "1933-04-01T16:39:59+00:00 should be 11:59:59 SDMT"); - t.equal(moment("1933-04-01T16:40:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "11:40:00", "1933-04-01T16:40:00+00:00 should be 11:40:00 EST"); - - t.equal(moment("1933-04-01T16:39:59+00:00").tz("America/Santo_Domingo").zone(), 280, "1933-04-01T16:39:59+00:00 should be 280 minutes offset in SDMT"); - t.equal(moment("1933-04-01T16:40:00+00:00").tz("America/Santo_Domingo").zone(), 300, "1933-04-01T16:40:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-10-30T04:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1966-10-30T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1966-10-30T05:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "01:00:00", "1966-10-30T05:00:00+00:00 should be 01:00:00 EDT"); - - t.equal(moment("1966-10-30T04:59:59+00:00").tz("America/Santo_Domingo").zone(), 300, "1966-10-30T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1966-10-30T05:00:00+00:00").tz("America/Santo_Domingo").zone(), 240, "1966-10-30T05:00:00+00:00 should be 240 minutes offset in EDT"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-02-28T03:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1967-02-28T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1967-02-28T04:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:00:00", "1967-02-28T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1967-02-28T03:59:59+00:00").tz("America/Santo_Domingo").zone(), 240, "1967-02-28T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-02-28T04:00:00+00:00").tz("America/Santo_Domingo").zone(), 300, "1967-02-28T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-10-26T04:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1969-10-26T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1969-10-26T05:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "00:30:00", "1969-10-26T05:00:00+00:00 should be 00:30:00 EHDT"); - - t.equal(moment("1969-10-26T04:59:59+00:00").tz("America/Santo_Domingo").zone(), 300, "1969-10-26T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-10-26T05:00:00+00:00").tz("America/Santo_Domingo").zone(), 270, "1969-10-26T05:00:00+00:00 should be 270 minutes offset in EHDT"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-02-21T04:29:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1970-02-21T04:29:59+00:00 should be 23:59:59 EHDT"); - t.equal(moment("1970-02-21T04:30:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:30:00", "1970-02-21T04:30:00+00:00 should be 23:30:00 EST"); - t.equal(moment("1970-10-25T04:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1970-10-25T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1970-10-25T05:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "00:30:00", "1970-10-25T05:00:00+00:00 should be 00:30:00 EHDT"); - - t.equal(moment("1970-02-21T04:29:59+00:00").tz("America/Santo_Domingo").zone(), 270, "1970-02-21T04:29:59+00:00 should be 270 minutes offset in EHDT"); - t.equal(moment("1970-02-21T04:30:00+00:00").tz("America/Santo_Domingo").zone(), 300, "1970-02-21T04:30:00+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-10-25T04:59:59+00:00").tz("America/Santo_Domingo").zone(), 300, "1970-10-25T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-10-25T05:00:00+00:00").tz("America/Santo_Domingo").zone(), 270, "1970-10-25T05:00:00+00:00 should be 270 minutes offset in EHDT"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-01-20T04:29:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1971-01-20T04:29:59+00:00 should be 23:59:59 EHDT"); - t.equal(moment("1971-01-20T04:30:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:30:00", "1971-01-20T04:30:00+00:00 should be 23:30:00 EST"); - t.equal(moment("1971-10-31T04:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1971-10-31T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1971-10-31T05:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "00:30:00", "1971-10-31T05:00:00+00:00 should be 00:30:00 EHDT"); - - t.equal(moment("1971-01-20T04:29:59+00:00").tz("America/Santo_Domingo").zone(), 270, "1971-01-20T04:29:59+00:00 should be 270 minutes offset in EHDT"); - t.equal(moment("1971-01-20T04:30:00+00:00").tz("America/Santo_Domingo").zone(), 300, "1971-01-20T04:30:00+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-10-31T04:59:59+00:00").tz("America/Santo_Domingo").zone(), 300, "1971-10-31T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-10-31T05:00:00+00:00").tz("America/Santo_Domingo").zone(), 270, "1971-10-31T05:00:00+00:00 should be 270 minutes offset in EHDT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-01-21T04:29:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1972-01-21T04:29:59+00:00 should be 23:59:59 EHDT"); - t.equal(moment("1972-01-21T04:30:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:30:00", "1972-01-21T04:30:00+00:00 should be 23:30:00 EST"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1972-10-29T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "00:30:00", "1972-10-29T05:00:00+00:00 should be 00:30:00 EHDT"); - - t.equal(moment("1972-01-21T04:29:59+00:00").tz("America/Santo_Domingo").zone(), 270, "1972-01-21T04:29:59+00:00 should be 270 minutes offset in EHDT"); - t.equal(moment("1972-01-21T04:30:00+00:00").tz("America/Santo_Domingo").zone(), 300, "1972-01-21T04:30:00+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-10-29T04:59:59+00:00").tz("America/Santo_Domingo").zone(), 300, "1972-10-29T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-10-29T05:00:00+00:00").tz("America/Santo_Domingo").zone(), 270, "1972-10-29T05:00:00+00:00 should be 270 minutes offset in EHDT"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-01-21T04:29:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1973-01-21T04:29:59+00:00 should be 23:59:59 EHDT"); - t.equal(moment("1973-01-21T04:30:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:30:00", "1973-01-21T04:30:00+00:00 should be 23:30:00 EST"); - t.equal(moment("1973-10-28T04:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1973-10-28T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1973-10-28T05:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "00:30:00", "1973-10-28T05:00:00+00:00 should be 00:30:00 EHDT"); - - t.equal(moment("1973-01-21T04:29:59+00:00").tz("America/Santo_Domingo").zone(), 270, "1973-01-21T04:29:59+00:00 should be 270 minutes offset in EHDT"); - t.equal(moment("1973-01-21T04:30:00+00:00").tz("America/Santo_Domingo").zone(), 300, "1973-01-21T04:30:00+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-10-28T04:59:59+00:00").tz("America/Santo_Domingo").zone(), 300, "1973-10-28T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-10-28T05:00:00+00:00").tz("America/Santo_Domingo").zone(), 270, "1973-10-28T05:00:00+00:00 should be 270 minutes offset in EHDT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-21T04:29:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1974-01-21T04:29:59+00:00 should be 23:59:59 EHDT"); - t.equal(moment("1974-01-21T04:30:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:30:00", "1974-01-21T04:30:00+00:00 should be 23:30:00 EST"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "23:59:59", "1974-10-27T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "01:00:00", "1974-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1974-01-21T04:29:59+00:00").tz("America/Santo_Domingo").zone(), 270, "1974-01-21T04:29:59+00:00 should be 270 minutes offset in EHDT"); - t.equal(moment("1974-01-21T04:30:00+00:00").tz("America/Santo_Domingo").zone(), 300, "1974-01-21T04:30:00+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("America/Santo_Domingo").zone(), 300, "1974-10-27T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("America/Santo_Domingo").zone(), 240, "1974-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("2000-12-03T05:59:59+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "00:59:59", "2000-12-03T05:59:59+00:00 should be 00:59:59 EST"); - t.equal(moment("2000-12-03T06:00:00+00:00").tz("America/Santo_Domingo").format("HH:mm:ss"), "02:00:00", "2000-12-03T06:00:00+00:00 should be 02:00:00 AST"); - - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Santo_Domingo").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Santo_Domingo").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-12-03T05:59:59+00:00").tz("America/Santo_Domingo").zone(), 300, "2000-12-03T05:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-12-03T06:00:00+00:00").tz("America/Santo_Domingo").zone(), 240, "2000-12-03T06:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/sao_paulo.js b/tests/america/sao_paulo.js deleted file mode 100644 index 5c063cc1..00000000 --- a/tests/america/sao_paulo.js +++ /dev/null @@ -1,924 +0,0 @@ -var moment = require("../../index"); - -exports["America/Sao_Paulo"] = { - - "1914" : function (t) { - t.equal(moment("1914-01-01T03:06:27+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1914-01-01T03:06:27+00:00 should be 23:59:59 LMT"); - t.equal(moment("1914-01-01T03:06:28+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "00:06:28", "1914-01-01T03:06:28+00:00 should be 00:06:28 BRT"); - - t.equal(moment("1914-01-01T03:06:27+00:00").tz("America/Sao_Paulo").zone(), 11188 / 60, "1914-01-01T03:06:27+00:00 should be 11188 / 60 minutes offset in LMT"); - t.equal(moment("1914-01-01T03:06:28+00:00").tz("America/Sao_Paulo").zone(), 180, "1914-01-01T03:06:28+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "10:59:59", "1931-10-03T13:59:59+00:00 should be 10:59:59 BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "12:00:00", "1931-10-03T14:00:00+00:00 should be 12:00:00 BRST"); - - t.equal(moment("1931-10-03T13:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1931-10-03T13:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1931-10-03T14:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1931-10-03T14:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1932-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1932-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1932-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1932-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1932-04-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1932-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1932-04-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1932-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1932-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1932-10-03T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1932-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1933-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1933-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1933-04-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1933-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1933-04-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1933-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1949-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1949-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1949-12-01T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1949-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1949-12-01T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1949-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "00:59:59", "1950-04-16T02:59:59+00:00 should be 00:59:59 BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "00:00:00", "1950-04-16T03:00:00+00:00 should be 00:00:00 BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1950-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1950-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1950-04-16T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1950-04-16T02:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1950-04-16T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1950-04-16T03:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1950-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1950-12-01T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1950-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1951-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1951-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1951-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1951-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1951-04-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1951-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1951-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1951-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1951-12-01T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1951-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1952-04-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1952-04-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1952-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1952-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1952-04-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1952-04-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1952-04-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1952-04-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1952-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1952-12-01T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1952-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1953-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1953-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1953-03-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1953-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1953-03-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1953-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-10-23T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1963-10-23T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1963-10-23T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1963-10-23T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1963-10-23T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1963-10-23T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1963-10-23T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1963-10-23T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1964-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1964-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1964-03-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1964-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1964-03-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1964-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1965-01-31T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1965-01-31T03:00:00+00:00 should be 01:00:00 BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1965-03-31T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1965-03-31T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1965-12-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1965-12-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1965-01-31T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1965-01-31T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-01-31T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1965-01-31T03:00:00+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1965-03-31T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1965-03-31T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1965-03-31T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1965-12-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1965-12-01T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1965-12-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1966-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1966-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1966-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1966-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1966-03-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1966-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1966-03-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1966-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1966-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1966-11-01T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1966-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1967-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1967-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1967-11-01T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1967-11-01T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1967-03-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1967-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1967-03-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1967-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1967-11-01T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1967-11-01T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1967-11-01T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1968-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1968-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - - t.equal(moment("1968-03-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1968-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1968-03-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1968-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1985-11-02T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1985-11-02T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1985-11-02T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1985-11-02T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1985-11-02T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1985-11-02T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1986-03-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1986-03-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1986-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1986-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1986-03-15T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1986-03-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1986-03-15T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1986-03-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1986-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1986-10-25T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1986-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1987-02-14T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1987-02-14T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1987-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1987-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1987-02-14T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1987-02-14T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1987-02-14T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1987-02-14T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1987-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1987-10-25T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1987-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1988-02-07T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1988-02-07T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1988-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1988-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1988-02-07T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1988-02-07T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1988-02-07T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1988-02-07T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1988-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1988-10-16T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1988-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1989-01-29T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1989-01-29T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1989-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1989-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1989-01-29T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1989-01-29T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1989-01-29T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1989-01-29T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1989-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1989-10-15T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1989-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1990-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1990-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1990-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1990-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1990-02-11T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1990-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1990-02-11T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1990-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1990-10-21T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1990-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1990-10-21T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1990-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-02-17T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1991-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1991-02-17T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1991-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1991-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1991-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1991-02-17T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1991-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1991-02-17T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1991-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1991-10-20T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1991-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1991-10-20T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1991-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-09T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1992-02-09T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1992-02-09T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1992-02-09T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1992-10-25T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1992-10-25T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1992-10-25T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1992-10-25T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1992-02-09T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1992-02-09T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1992-02-09T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1992-02-09T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1992-10-25T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1992-10-25T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1992-10-25T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1992-10-25T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-01-31T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1993-01-31T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1993-01-31T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1993-01-31T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1993-10-17T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1993-10-17T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1993-10-17T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1993-10-17T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1993-01-31T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1993-01-31T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1993-01-31T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1993-01-31T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1993-10-17T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1993-10-17T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1993-10-17T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1993-10-17T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-02-20T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1994-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1994-02-20T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1994-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1994-10-16T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1994-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1994-10-16T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1994-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1994-02-20T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1994-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1994-02-20T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1994-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1994-10-16T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1994-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1994-10-16T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1994-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-02-19T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1995-02-19T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1995-02-19T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1995-02-19T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1995-10-15T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1995-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1995-10-15T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1995-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1995-02-19T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1995-02-19T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1995-02-19T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1995-02-19T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1995-10-15T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1995-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1995-10-15T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1995-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-02-11T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1996-02-11T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1996-02-11T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1996-02-11T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1996-10-06T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1996-10-06T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1996-10-06T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1996-10-06T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1996-02-11T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1996-02-11T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1996-02-11T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1996-02-11T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1996-10-06T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1996-10-06T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1996-10-06T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1996-10-06T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-02-16T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1997-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1997-02-16T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1997-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1997-10-06T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1997-10-06T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1997-10-06T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1997-10-06T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1997-02-16T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1997-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1997-02-16T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1997-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1997-10-06T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1997-10-06T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1997-10-06T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1997-10-06T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-01T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1998-03-01T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1998-03-01T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1998-03-01T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1998-10-11T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1998-10-11T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1998-10-11T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1998-10-11T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1998-03-01T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1998-03-01T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1998-03-01T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1998-03-01T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1998-10-11T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1998-10-11T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1998-10-11T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1998-10-11T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-02-21T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1999-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("1999-02-21T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "1999-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "1999-10-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "1999-10-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("1999-02-21T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "1999-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("1999-02-21T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "1999-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1999-10-03T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "1999-10-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("1999-10-03T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "1999-10-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2000-02-27T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2000-02-27T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2000-10-08T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2000-10-08T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2000-02-27T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2000-02-27T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2000-02-27T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2000-02-27T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2000-10-08T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2000-10-08T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2000-10-08T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-02-18T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2001-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2001-02-18T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2001-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2001-10-14T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2001-10-14T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2001-02-18T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2001-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2001-02-18T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2001-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2001-10-14T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2001-10-14T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2001-10-14T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2001-10-14T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2002-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2002-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2002-11-03T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2002-11-03T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2002-11-03T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2002-11-03T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2002-02-17T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2002-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2002-02-17T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2002-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2002-11-03T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2002-11-03T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2002-11-03T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2002-11-03T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-02-16T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2003-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2003-02-16T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2003-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2003-10-19T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2003-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2003-10-19T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2003-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2003-02-16T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2003-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2003-02-16T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2003-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2003-10-19T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2003-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2003-10-19T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2003-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-02-15T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2004-02-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2004-02-15T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2004-02-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2004-11-02T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2004-11-02T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2004-11-02T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2004-11-02T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2004-02-15T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2004-02-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2004-02-15T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2004-02-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2004-11-02T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2004-11-02T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2004-11-02T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2004-11-02T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-02-20T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2005-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2005-02-20T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2005-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2005-10-16T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2005-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2005-10-16T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2005-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2005-02-20T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2005-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2005-02-20T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2005-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2005-10-16T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2005-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2005-10-16T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2005-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-02-19T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2006-02-19T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2006-02-19T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2006-02-19T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2006-11-05T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2006-11-05T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2006-11-05T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2006-11-05T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2006-02-19T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2006-02-19T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2006-02-19T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2006-02-19T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2006-11-05T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2006-11-05T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2006-11-05T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2006-11-05T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-02-25T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2007-02-25T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2007-02-25T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2007-02-25T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2007-10-14T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2007-10-14T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2007-10-14T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2007-10-14T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2007-02-25T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2007-02-25T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2007-02-25T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2007-02-25T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2007-10-14T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2007-10-14T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2007-10-14T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2007-10-14T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-02-17T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2008-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2008-02-17T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2008-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2008-10-19T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2008-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2008-10-19T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2008-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2008-02-17T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2008-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2008-02-17T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2008-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2008-10-19T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2008-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2008-10-19T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2008-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-02-15T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2009-02-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2009-02-15T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2009-02-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2009-10-18T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2009-10-18T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2009-10-18T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2009-10-18T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2009-02-15T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2009-02-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2009-02-15T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2009-02-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2009-10-18T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2009-10-18T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2009-10-18T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2009-10-18T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-02-21T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2010-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2010-02-21T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2010-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2010-10-17T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2010-10-17T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2010-10-17T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2010-10-17T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2010-02-21T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2010-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2010-02-21T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2010-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2010-10-17T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2010-10-17T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2010-10-17T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2010-10-17T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-02-20T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2011-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2011-02-20T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2011-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2011-10-16T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2011-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2011-10-16T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2011-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2011-02-20T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2011-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2011-02-20T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2011-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2011-10-16T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2011-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2011-10-16T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2011-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-02-26T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2012-02-26T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2012-02-26T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2012-02-26T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2012-10-21T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2012-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2012-10-21T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2012-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2012-02-26T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2012-02-26T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2012-02-26T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2012-02-26T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2012-10-21T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2012-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2012-10-21T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2012-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-02-17T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2013-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2013-02-17T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2013-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2013-10-20T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2013-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2013-10-20T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2013-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2013-02-17T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2013-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2013-02-17T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2013-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2013-10-20T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2013-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2013-10-20T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2013-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-02-16T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2014-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2014-02-16T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2014-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2014-10-19T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2014-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2014-10-19T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2014-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2014-02-16T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2014-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2014-02-16T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2014-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2014-10-19T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2014-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2014-10-19T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2014-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-02-22T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2015-02-22T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2015-02-22T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2015-02-22T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2015-10-18T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2015-10-18T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2015-10-18T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2015-10-18T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2015-02-22T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2015-02-22T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2015-02-22T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2015-02-22T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2015-10-18T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2015-10-18T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2015-10-18T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2015-10-18T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-02-21T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2016-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2016-02-21T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2016-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2016-10-16T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2016-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2016-10-16T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2016-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2016-02-21T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2016-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2016-02-21T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2016-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2016-10-16T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2016-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2016-10-16T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2016-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-02-19T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2017-02-19T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2017-02-19T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2017-02-19T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2017-10-15T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2017-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2017-10-15T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2017-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2017-02-19T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2017-02-19T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2017-02-19T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2017-02-19T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2017-10-15T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2017-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2017-10-15T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2017-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-02-18T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2018-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2018-02-18T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2018-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2018-10-21T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2018-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2018-10-21T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2018-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2018-02-18T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2018-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2018-02-18T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2018-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2018-10-21T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2018-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2018-10-21T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2018-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-02-17T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2019-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2019-02-17T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2019-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2019-10-20T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2019-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2019-10-20T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2019-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2019-02-17T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2019-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2019-02-17T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2019-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2019-10-20T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2019-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2019-10-20T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2019-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-02-16T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2020-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2020-02-16T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2020-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2020-10-18T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2020-10-18T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2020-10-18T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2020-10-18T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2020-02-16T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2020-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2020-02-16T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2020-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2020-10-18T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2020-10-18T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2020-10-18T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2020-10-18T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-02-21T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2021-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2021-02-21T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2021-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2021-10-17T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2021-10-17T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2021-10-17T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2021-10-17T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2021-02-21T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2021-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2021-02-21T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2021-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2021-10-17T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2021-10-17T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2021-10-17T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2021-10-17T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-02-20T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2022-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2022-02-20T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2022-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2022-10-16T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2022-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2022-10-16T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2022-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2022-02-20T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2022-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2022-02-20T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2022-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2022-10-16T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2022-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2022-10-16T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2022-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-02-26T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2023-02-26T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2023-02-26T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2023-02-26T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2023-10-15T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2023-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2023-10-15T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2023-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2023-02-26T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2023-02-26T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2023-02-26T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2023-02-26T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2023-10-15T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2023-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2023-10-15T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2023-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-02-18T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2024-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2024-02-18T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2024-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2024-10-20T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2024-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2024-10-20T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2024-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2024-02-18T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2024-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2024-02-18T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2024-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2024-10-20T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2024-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2024-10-20T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2024-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-02-16T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2025-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2025-02-16T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2025-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2025-10-19T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2025-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2025-10-19T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2025-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2025-02-16T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2025-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2025-02-16T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2025-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2025-10-19T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2025-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2025-10-19T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2025-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-02-22T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2026-02-22T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2026-02-22T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2026-02-22T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2026-10-18T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2026-10-18T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2026-10-18T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2026-10-18T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2026-02-22T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2026-02-22T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2026-02-22T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2026-02-22T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2026-10-18T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2026-10-18T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2026-10-18T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2026-10-18T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-02-21T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2027-02-21T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2027-02-21T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2027-02-21T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2027-10-17T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2027-10-17T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2027-10-17T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2027-10-17T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2027-02-21T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2027-02-21T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2027-02-21T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2027-02-21T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2027-10-17T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2027-10-17T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2027-10-17T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2027-10-17T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-02-20T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2028-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2028-02-20T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2028-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2028-10-15T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2028-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2028-10-15T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2028-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2028-02-20T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2028-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2028-02-20T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2028-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2028-10-15T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2028-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2028-10-15T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2028-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-02-18T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2029-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2029-02-18T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2029-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2029-10-21T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2029-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2029-10-21T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2029-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2029-02-18T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2029-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2029-02-18T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2029-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2029-10-21T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2029-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2029-10-21T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2029-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-02-17T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2030-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2030-02-17T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2030-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2030-10-20T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2030-10-20T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2030-10-20T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2030-10-20T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2030-02-17T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2030-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2030-02-17T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2030-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2030-10-20T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2030-10-20T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2030-10-20T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2030-10-20T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-02-16T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2031-02-16T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2031-02-16T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2031-02-16T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2031-10-19T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2031-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2031-10-19T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2031-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2031-02-16T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2031-02-16T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2031-02-16T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2031-02-16T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2031-10-19T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2031-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2031-10-19T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2031-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-02-15T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2032-02-15T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2032-02-15T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2032-02-15T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2032-10-17T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2032-10-17T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2032-10-17T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2032-10-17T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2032-02-15T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2032-02-15T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2032-02-15T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2032-02-15T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2032-10-17T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2032-10-17T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2032-10-17T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2032-10-17T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-02-20T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2033-02-20T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2033-02-20T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2033-02-20T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2033-10-16T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2033-10-16T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2033-10-16T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2033-10-16T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2033-02-20T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2033-02-20T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2033-02-20T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2033-02-20T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2033-10-16T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2033-10-16T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2033-10-16T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2033-10-16T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-02-26T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2034-02-26T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2034-02-26T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2034-02-26T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2034-10-15T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2034-10-15T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2034-10-15T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2034-10-15T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2034-02-26T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2034-02-26T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2034-02-26T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2034-02-26T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2034-10-15T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2034-10-15T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2034-10-15T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2034-10-15T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-02-18T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2035-02-18T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2035-02-18T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2035-02-18T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2035-10-21T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2035-10-21T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2035-10-21T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2035-10-21T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2035-02-18T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2035-02-18T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2035-02-18T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2035-02-18T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2035-10-21T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2035-10-21T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2035-10-21T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2035-10-21T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-02-17T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2036-02-17T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2036-02-17T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2036-02-17T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2036-10-19T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2036-10-19T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2036-10-19T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2036-10-19T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2036-02-17T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2036-02-17T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2036-02-17T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2036-02-17T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2036-10-19T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2036-10-19T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2036-10-19T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2036-10-19T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-02-22T01:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2037-02-22T01:59:59+00:00 should be 23:59:59 BRST"); - t.equal(moment("2037-02-22T02:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:00:00", "2037-02-22T02:00:00+00:00 should be 23:00:00 BRT"); - t.equal(moment("2037-10-18T02:59:59+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "23:59:59", "2037-10-18T02:59:59+00:00 should be 23:59:59 BRT"); - t.equal(moment("2037-10-18T03:00:00+00:00").tz("America/Sao_Paulo").format("HH:mm:ss"), "01:00:00", "2037-10-18T03:00:00+00:00 should be 01:00:00 BRST"); - - t.equal(moment("2037-02-22T01:59:59+00:00").tz("America/Sao_Paulo").zone(), 120, "2037-02-22T01:59:59+00:00 should be 120 minutes offset in BRST"); - t.equal(moment("2037-02-22T02:00:00+00:00").tz("America/Sao_Paulo").zone(), 180, "2037-02-22T02:00:00+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2037-10-18T02:59:59+00:00").tz("America/Sao_Paulo").zone(), 180, "2037-10-18T02:59:59+00:00 should be 180 minutes offset in BRT"); - t.equal(moment("2037-10-18T03:00:00+00:00").tz("America/Sao_Paulo").zone(), 120, "2037-10-18T03:00:00+00:00 should be 120 minutes offset in BRST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/scoresbysund.js b/tests/america/scoresbysund.js deleted file mode 100644 index e3ad1ff0..00000000 --- a/tests/america/scoresbysund.js +++ /dev/null @@ -1,826 +0,0 @@ -var moment = require("../../index"); - -exports["America/Scoresbysund"] = { - - "1916" : function (t) { - t.equal(moment("1916-07-28T01:27:51+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1916-07-28T01:27:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1916-07-28T01:27:52+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:27:52", "1916-07-28T01:27:52+00:00 should be 23:27:52 CGT"); - - t.equal(moment("1916-07-28T01:27:51+00:00").tz("America/Scoresbysund").zone(), 5272 / 60, "1916-07-28T01:27:51+00:00 should be 5272 / 60 minutes offset in LMT"); - t.equal(moment("1916-07-28T01:27:52+00:00").tz("America/Scoresbysund").zone(), 120, "1916-07-28T01:27:52+00:00 should be 120 minutes offset in CGT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T03:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:59:59", "1980-04-06T03:59:59+00:00 should be 01:59:59 CGT"); - t.equal(moment("1980-04-06T04:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "03:00:00", "1980-04-06T04:00:00+00:00 should be 03:00:00 CGST"); - t.equal(moment("1980-09-28T03:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "02:59:59", "1980-09-28T03:59:59+00:00 should be 02:59:59 CGST"); - t.equal(moment("1980-09-28T04:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "02:00:00", "1980-09-28T04:00:00+00:00 should be 02:00:00 CGT"); - - t.equal(moment("1980-04-06T03:59:59+00:00").tz("America/Scoresbysund").zone(), 120, "1980-04-06T03:59:59+00:00 should be 120 minutes offset in CGT"); - t.equal(moment("1980-04-06T04:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1980-04-06T04:00:00+00:00 should be 60 minutes offset in CGST"); - t.equal(moment("1980-09-28T03:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1980-09-28T03:59:59+00:00 should be 60 minutes offset in CGST"); - t.equal(moment("1980-09-28T04:00:00+00:00").tz("America/Scoresbysund").zone(), 120, "1980-09-28T04:00:00+00:00 should be 120 minutes offset in CGT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T01:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1981-03-29T01:59:59+00:00 should be 23:59:59 CGT"); - t.equal(moment("1981-03-29T02:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "02:00:00", "1981-03-29T02:00:00+00:00 should be 02:00:00 EGST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1981-09-27T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1981-09-27T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1981-03-29T01:59:59+00:00").tz("America/Scoresbysund").zone(), 120, "1981-03-29T01:59:59+00:00 should be 120 minutes offset in CGT"); - t.equal(moment("1981-03-29T02:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1981-03-29T02:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1981-09-27T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1981-09-27T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1982-03-28T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1982-03-28T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1982-09-26T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1982-09-26T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1982-03-28T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1982-03-28T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1982-09-26T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1982-09-26T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1983-03-27T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1983-03-27T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1983-09-25T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1983-09-25T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1983-03-27T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1983-03-27T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1983-09-25T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1983-09-25T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1984-03-25T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1984-03-25T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1984-09-30T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1984-09-30T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1984-03-25T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1984-03-25T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1984-09-30T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1984-09-30T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1985-03-31T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1985-03-31T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1985-09-29T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1985-09-29T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1985-03-31T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1985-03-31T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1985-09-29T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1985-09-29T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1986-03-30T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1986-03-30T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1986-09-28T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1986-09-28T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1986-03-30T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1986-03-30T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1986-09-28T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1986-09-28T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1987-03-29T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1987-03-29T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1987-09-27T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1987-09-27T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1987-03-29T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1987-03-29T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1987-09-27T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1987-09-27T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1988-03-27T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1988-03-27T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1988-09-25T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1988-09-25T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1988-03-27T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1988-03-27T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1988-09-25T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1988-09-25T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1989-03-26T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1989-03-26T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1989-09-24T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1989-09-24T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1989-03-26T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1989-03-26T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1989-09-24T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1989-09-24T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1990-03-25T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1990-03-25T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1990-09-30T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1990-09-30T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1990-03-25T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1990-03-25T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1990-09-30T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1990-09-30T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1991-03-31T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1991-03-31T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1991-09-29T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1991-09-29T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1991-03-31T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1991-03-31T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1991-09-29T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1991-09-29T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1992-03-29T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1992-03-29T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1992-09-27T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1992-09-27T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1992-03-29T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1992-03-29T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1992-09-27T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1992-09-27T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1993-03-28T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1993-03-28T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1993-09-26T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1993-09-26T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1993-03-28T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1993-03-28T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1993-09-26T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1993-09-26T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1994-03-27T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1994-03-27T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1994-09-25T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1994-09-25T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1994-03-27T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1994-03-27T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1994-09-25T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1994-09-25T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1995-03-26T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1995-03-26T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1995-09-24T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1995-09-24T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1995-03-26T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1995-03-26T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1995-09-24T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1995-09-24T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1996-03-31T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1996-03-31T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1996-10-27T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1996-10-27T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1996-03-31T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1996-03-31T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1996-10-27T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1996-10-27T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1997-03-30T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1997-03-30T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1997-10-26T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1997-10-26T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1997-03-30T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1997-03-30T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1997-10-26T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1997-10-26T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1998-03-29T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1998-03-29T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1998-10-25T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1998-10-25T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1998-03-29T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1998-03-29T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1998-10-25T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1998-10-25T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "1999-03-28T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "1999-03-28T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "1999-10-31T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "1999-10-31T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "1999-03-28T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "1999-03-28T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "1999-10-31T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "1999-10-31T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2000-03-26T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2000-03-26T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2000-10-29T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2000-10-29T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2000-03-26T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2000-03-26T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2000-10-29T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2000-10-29T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2001-03-25T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2001-03-25T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2001-10-28T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2001-10-28T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2001-03-25T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2001-03-25T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2001-10-28T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2001-10-28T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2002-03-31T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2002-03-31T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2002-10-27T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2002-10-27T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2002-03-31T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2002-03-31T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2002-10-27T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2002-10-27T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2003-03-30T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2003-03-30T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2003-10-26T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2003-10-26T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2003-03-30T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2003-03-30T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2003-10-26T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2003-10-26T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2004-03-28T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2004-03-28T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2004-10-31T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2004-10-31T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2004-03-28T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2004-03-28T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2004-10-31T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2004-10-31T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2005-03-27T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2005-03-27T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2005-10-30T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2005-10-30T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2005-03-27T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2005-03-27T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2005-10-30T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2005-10-30T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2006-03-26T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2006-03-26T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2006-10-29T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2006-10-29T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2006-03-26T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2006-03-26T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2006-10-29T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2006-10-29T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2007-03-25T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2007-03-25T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2007-10-28T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2007-10-28T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2007-03-25T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2007-03-25T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2007-10-28T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2007-10-28T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2008-03-30T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2008-03-30T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2008-10-26T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2008-10-26T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2008-03-30T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2008-03-30T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2008-10-26T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2008-10-26T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2009-03-29T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2009-03-29T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2009-10-25T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2009-10-25T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2009-03-29T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2009-03-29T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2009-10-25T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2009-10-25T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2010-03-28T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2010-03-28T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2010-10-31T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2010-10-31T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2010-03-28T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2010-03-28T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2010-10-31T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2010-10-31T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2011-03-27T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2011-03-27T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2011-10-30T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2011-10-30T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2011-03-27T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2011-03-27T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2011-10-30T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2011-10-30T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2012-03-25T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2012-03-25T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2012-10-28T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2012-10-28T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2012-03-25T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2012-03-25T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2012-10-28T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2012-10-28T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2013-03-31T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2013-03-31T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2013-10-27T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2013-10-27T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2013-03-31T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2013-03-31T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2013-10-27T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2013-10-27T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2014-03-30T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2014-03-30T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2014-10-26T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2014-10-26T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2014-03-30T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2014-03-30T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2014-10-26T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2014-10-26T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2015-03-29T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2015-03-29T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2015-10-25T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2015-10-25T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2015-03-29T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2015-03-29T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2015-10-25T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2015-10-25T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2016-03-27T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2016-03-27T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2016-10-30T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2016-10-30T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2016-03-27T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2016-03-27T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2016-10-30T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2016-10-30T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2017-03-26T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2017-03-26T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2017-10-29T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2017-10-29T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2017-03-26T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2017-03-26T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2017-10-29T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2017-10-29T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2018-03-25T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2018-03-25T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2018-10-28T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2018-10-28T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2018-03-25T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2018-03-25T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2018-10-28T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2018-10-28T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2019-03-31T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2019-03-31T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2019-10-27T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2019-10-27T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2019-03-31T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2019-03-31T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2019-10-27T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2019-10-27T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2020-03-29T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2020-03-29T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2020-10-25T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2020-10-25T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2020-03-29T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2020-03-29T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2020-10-25T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2020-10-25T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2021-03-28T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2021-03-28T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2021-10-31T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2021-10-31T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2021-03-28T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2021-03-28T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2021-10-31T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2021-10-31T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2022-03-27T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2022-03-27T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2022-10-30T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2022-10-30T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2022-03-27T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2022-03-27T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2022-10-30T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2022-10-30T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2023-03-26T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2023-03-26T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2023-10-29T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2023-10-29T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2023-03-26T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2023-03-26T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2023-10-29T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2023-10-29T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2024-03-31T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2024-03-31T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2024-10-27T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2024-10-27T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2024-03-31T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2024-03-31T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2024-10-27T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2024-10-27T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2025-03-30T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2025-03-30T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2025-10-26T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2025-10-26T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2025-03-30T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2025-03-30T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2025-10-26T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2025-10-26T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2026-03-29T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2026-03-29T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2026-10-25T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2026-10-25T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2026-03-29T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2026-03-29T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2026-10-25T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2026-10-25T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2027-03-28T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2027-03-28T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2027-10-31T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2027-10-31T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2027-03-28T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2027-03-28T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2027-10-31T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2027-10-31T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2028-03-26T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2028-03-26T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2028-10-29T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2028-10-29T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2028-03-26T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2028-03-26T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2028-10-29T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2028-10-29T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2029-03-25T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2029-03-25T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2029-10-28T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2029-10-28T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2029-03-25T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2029-03-25T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2029-10-28T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2029-10-28T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2030-03-31T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2030-03-31T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2030-10-27T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2030-10-27T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2030-03-31T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2030-03-31T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2030-10-27T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2030-10-27T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2031-03-30T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2031-03-30T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2031-10-26T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2031-10-26T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2031-03-30T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2031-03-30T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2031-10-26T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2031-10-26T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2032-03-28T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2032-03-28T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2032-10-31T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2032-10-31T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2032-03-28T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2032-03-28T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2032-10-31T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2032-10-31T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2033-03-27T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2033-03-27T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2033-10-30T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2033-10-30T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2033-03-27T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2033-03-27T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2033-10-30T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2033-10-30T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2034-03-26T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2034-03-26T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2034-10-29T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2034-10-29T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2034-03-26T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2034-03-26T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2034-10-29T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2034-10-29T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2035-03-25T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2035-03-25T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2035-10-28T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2035-10-28T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2035-03-25T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2035-03-25T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2035-10-28T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2035-10-28T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2036-03-30T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2036-03-30T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2036-10-26T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2036-10-26T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2036-03-30T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2036-03-30T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2036-10-26T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2036-10-26T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "23:59:59", "2037-03-29T00:59:59+00:00 should be 23:59:59 EGT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "01:00:00", "2037-03-29T01:00:00+00:00 should be 01:00:00 EGST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:59:59", "2037-10-25T00:59:59+00:00 should be 00:59:59 EGST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("America/Scoresbysund").format("HH:mm:ss"), "00:00:00", "2037-10-25T01:00:00+00:00 should be 00:00:00 EGT"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("America/Scoresbysund").zone(), 60, "2037-03-29T00:59:59+00:00 should be 60 minutes offset in EGT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("America/Scoresbysund").zone(), 0, "2037-03-29T01:00:00+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("America/Scoresbysund").zone(), 0, "2037-10-25T00:59:59+00:00 should be 0 minutes offset in EGST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("America/Scoresbysund").zone(), 60, "2037-10-25T01:00:00+00:00 should be 60 minutes offset in EGT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/sitka.js b/tests/america/sitka.js deleted file mode 100644 index 48996662..00000000 --- a/tests/america/sitka.js +++ /dev/null @@ -1,998 +0,0 @@ -var moment = require("../../index"); - -exports["America/Sitka"] = { - - "1942" : function (t) { - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1942-02-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1942-02-09T10:00:00+00:00 should be 03:00:00 PWT"); - - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1942-02-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1942-02-09T10:00:00+00:00 should be 420 minutes offset in PWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "15:59:59", "1945-08-14T22:59:59+00:00 should be 15:59:59 PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "16:00:00", "1945-08-14T23:00:00+00:00 should be 16:00:00 PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1945-09-30T08:59:59+00:00 should be 01:59:59 PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1945-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Sitka").zone(), 420, "1945-08-14T22:59:59+00:00 should be 420 minutes offset in PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Sitka").zone(), 420, "1945-08-14T23:00:00+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1945-09-30T08:59:59+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1945-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1969-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1969-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1969-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1969-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1969-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1969-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1969-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1969-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1970-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1970-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1970-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1970-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1970-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1970-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1970-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1970-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1971-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1971-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1971-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1971-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1971-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1971-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1971-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1971-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1972-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1972-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1972-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1972-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1972-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1972-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1972-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1972-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1973-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1973-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1973-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1973-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1973-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1973-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1973-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1973-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1974-01-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1974-01-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1974-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1974-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1974-01-06T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1974-01-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1974-01-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1974-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1974-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1975-02-23T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1975-02-23T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1975-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1975-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1975-02-23T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1975-02-23T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1975-02-23T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1975-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1975-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1976-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1976-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1976-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1976-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1976-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1976-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1976-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1976-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1977-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1977-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1977-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1977-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1977-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1977-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1977-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1977-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1978-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1978-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1978-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1978-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1978-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1978-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1978-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1978-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1979-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1979-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1979-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1979-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1979-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1979-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1979-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1979-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1980-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1980-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1980-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1980-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1980-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1980-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Sitka").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "00:00:00", "1983-10-30T09:00:00+00:00 should be 00:00:00 YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "23:59:59", "1983-11-30T08:59:59+00:00 should be 23:59:59 YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "00:00:00", "1983-11-30T09:00:00+00:00 should be 00:00:00 AKST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Sitka").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Sitka").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Sitka").zone(), 540, "1983-10-30T09:00:00+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Sitka").zone(), 540, "1983-11-30T08:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Sitka").zone(), 540, "1983-11-30T09:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1984-04-29T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1984-04-29T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1984-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1984-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1984-04-29T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1984-04-29T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1984-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1984-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1985-04-28T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1985-04-28T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1985-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1985-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1985-04-28T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1985-04-28T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1985-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1985-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1986-04-27T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1986-04-27T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1986-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1986-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1986-04-27T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1986-04-27T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1986-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1986-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1987-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1987-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1987-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1987-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1987-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1987-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1987-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1987-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1988-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1988-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1988-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1988-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1988-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1988-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1988-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1988-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1989-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1989-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1989-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1989-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1989-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1989-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1989-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1989-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1990-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1990-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1990-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1990-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1990-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1990-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1990-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1990-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1991-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1991-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1991-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1991-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1991-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1991-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1991-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1991-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1992-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1992-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1992-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1992-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1992-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1992-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1992-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1992-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1993-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1993-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1993-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1993-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1993-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1993-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1993-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1993-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1994-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1994-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1994-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1994-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1994-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1994-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1994-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1994-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1995-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1995-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1995-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1995-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1995-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1995-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1995-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1995-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1996-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1996-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1996-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1996-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1996-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1996-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1996-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1996-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1997-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1997-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1997-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1997-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1997-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1997-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1997-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1997-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1998-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1998-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1998-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1998-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1998-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1998-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1998-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1998-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1999-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "1999-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "1999-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "1999-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Sitka").zone(), 540, "1999-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Sitka").zone(), 480, "1999-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Sitka").zone(), 480, "1999-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Sitka").zone(), 540, "1999-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2000-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2000-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2000-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2000-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2000-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2000-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2000-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2000-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2001-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2001-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2001-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2001-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2001-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2001-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2001-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2001-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2002-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2002-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2002-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2002-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2002-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2002-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2002-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2002-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2003-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2003-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2003-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2003-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2003-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2003-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2003-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2003-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2004-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2004-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2004-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2004-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2004-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2004-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2004-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2004-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2005-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2005-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2005-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2005-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2005-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2005-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2005-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2005-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2006-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2006-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2006-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2006-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2006-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2006-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2006-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2006-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2007-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2007-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2007-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2007-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2007-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2007-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2007-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2007-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2008-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2008-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2008-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2008-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2008-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2008-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2008-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2008-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2009-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2009-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2009-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2009-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2009-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2009-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2009-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2009-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2010-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2010-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2010-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2010-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2010-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2010-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2010-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2010-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2011-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2011-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2011-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2011-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2011-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2011-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2011-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2011-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2012-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2012-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2012-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2012-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2012-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2012-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2012-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2012-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2013-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2013-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2013-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2013-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2013-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2013-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2013-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2013-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2014-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2014-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2014-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2014-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2014-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2014-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2014-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2014-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2015-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2015-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2015-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2015-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2015-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2015-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2015-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2015-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2016-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2016-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2016-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2016-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2016-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2016-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2016-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2016-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2017-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2017-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2017-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2017-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2017-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2017-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2017-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2017-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2018-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2018-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2018-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2018-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2018-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2018-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2018-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2018-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2019-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2019-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2019-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2019-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2019-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2019-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2019-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2019-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2020-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2020-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2020-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2020-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2020-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2020-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2020-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2020-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2021-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2021-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2021-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2021-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2021-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2021-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2021-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2021-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2022-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2022-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2022-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2022-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2022-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2022-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2022-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2022-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2023-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2023-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2023-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2023-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2023-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2023-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2023-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2023-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2024-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2024-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2024-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2024-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2024-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2024-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2024-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2024-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2025-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2025-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2025-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2025-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2025-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2025-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2025-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2025-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2026-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2026-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2026-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2026-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2026-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2026-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2026-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2026-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2027-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2027-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2027-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2027-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2027-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2027-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2027-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2027-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2028-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2028-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2028-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2028-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2028-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2028-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2028-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2028-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2029-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2029-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2029-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2029-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2029-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2029-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2029-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2029-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2030-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2030-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2030-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2030-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2030-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2030-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2030-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2030-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2031-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2031-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2031-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2031-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2031-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2031-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2031-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2031-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2032-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2032-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2032-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2032-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2032-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2032-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2032-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2032-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2033-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2033-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2033-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2033-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2033-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2033-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2033-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2033-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2034-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2034-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2034-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2034-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2034-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2034-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2034-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2034-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2035-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2035-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2035-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2035-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2035-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2035-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2035-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2035-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2036-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2036-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2036-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2036-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2036-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2036-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2036-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2036-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2037-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "03:00:00", "2037-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:59:59", "2037-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Sitka").format("HH:mm:ss"), "01:00:00", "2037-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Sitka").zone(), 540, "2037-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Sitka").zone(), 480, "2037-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Sitka").zone(), 480, "2037-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Sitka").zone(), 540, "2037-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/st_johns.js b/tests/america/st_johns.js deleted file mode 100644 index cd4aa115..00000000 --- a/tests/america/st_johns.js +++ /dev/null @@ -1,1670 +0,0 @@ -var moment = require("../../index"); - -exports["America/St_Johns"] = { - - "1917" : function (t) { - t.equal(moment("1917-04-08T05:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1917-04-08T05:30:51+00:00 should be 01:59:59 NST"); - t.equal(moment("1917-04-08T05:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1917-04-08T05:30:52+00:00 should be 03:00:00 NDT"); - t.equal(moment("1917-09-17T04:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1917-09-17T04:30:51+00:00 should be 01:59:59 NDT"); - t.equal(moment("1917-09-17T04:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1917-09-17T04:30:52+00:00 should be 01:00:00 NST"); - - t.equal(moment("1917-04-08T05:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1917-04-08T05:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1917-04-08T05:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1917-04-08T05:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1917-09-17T04:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1917-09-17T04:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1917-09-17T04:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1917-09-17T04:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-14T05:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1918-04-14T05:30:51+00:00 should be 01:59:59 NST"); - t.equal(moment("1918-04-14T05:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1918-04-14T05:30:52+00:00 should be 03:00:00 NDT"); - t.equal(moment("1918-10-27T04:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1918-10-27T04:30:51+00:00 should be 01:59:59 NDT"); - t.equal(moment("1918-10-27T04:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1918-10-27T04:30:52+00:00 should be 01:00:00 NST"); - - t.equal(moment("1918-04-14T05:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1918-04-14T05:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1918-04-14T05:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1918-04-14T05:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1918-10-27T04:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1918-10-27T04:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1918-10-27T04:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1918-10-27T04:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-05-06T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1919-05-06T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1919-05-06T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1919-05-06T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1919-08-13T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1919-08-13T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1919-08-13T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1919-08-13T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1919-05-06T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1919-05-06T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1919-05-06T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1919-05-06T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1919-08-13T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1919-08-13T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1919-08-13T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1919-08-13T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-05-03T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1920-05-03T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1920-05-03T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1920-05-03T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1920-11-01T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1920-11-01T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1920-11-01T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1920-11-01T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1920-05-03T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1920-05-03T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1920-05-03T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1920-05-03T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1920-11-01T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1920-11-01T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1920-11-01T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1920-11-01T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-05-02T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1921-05-02T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1921-05-02T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1921-05-02T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1921-10-31T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1921-10-31T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1921-10-31T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1921-10-31T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1921-05-02T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1921-05-02T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1921-05-02T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1921-05-02T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1921-10-31T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1921-10-31T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1921-10-31T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1921-10-31T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-05-08T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1922-05-08T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1922-05-08T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1922-05-08T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1922-10-30T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1922-10-30T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1922-10-30T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1922-10-30T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1922-05-08T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1922-05-08T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1922-05-08T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1922-05-08T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1922-10-30T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1922-10-30T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1922-10-30T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1922-10-30T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-05-07T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1923-05-07T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1923-05-07T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1923-05-07T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1923-10-29T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1923-10-29T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1923-10-29T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1923-10-29T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1923-05-07T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1923-05-07T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1923-05-07T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1923-05-07T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1923-10-29T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1923-10-29T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1923-10-29T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1923-10-29T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-05-05T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1924-05-05T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1924-05-05T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1924-05-05T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1924-10-27T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1924-10-27T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1924-10-27T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1924-10-27T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1924-05-05T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1924-05-05T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1924-05-05T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1924-05-05T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1924-10-27T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1924-10-27T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1924-10-27T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1924-10-27T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-05-04T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1925-05-04T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1925-05-04T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1925-05-04T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1925-10-26T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1925-10-26T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1925-10-26T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1925-10-26T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1925-05-04T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1925-05-04T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1925-05-04T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1925-05-04T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1925-10-26T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1925-10-26T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1925-10-26T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1925-10-26T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-05-03T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1926-05-03T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1926-05-03T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1926-05-03T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1926-11-01T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1926-11-01T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1926-11-01T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1926-11-01T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1926-05-03T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1926-05-03T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1926-05-03T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1926-05-03T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1926-11-01T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1926-11-01T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1926-11-01T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1926-11-01T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-05-02T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1927-05-02T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1927-05-02T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1927-05-02T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1927-10-31T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1927-10-31T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1927-10-31T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1927-10-31T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1927-05-02T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1927-05-02T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1927-05-02T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1927-05-02T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1927-10-31T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1927-10-31T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1927-10-31T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1927-10-31T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-05-07T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1928-05-07T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1928-05-07T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1928-05-07T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1928-10-29T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1928-10-29T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1928-10-29T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1928-10-29T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1928-05-07T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1928-05-07T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1928-05-07T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1928-05-07T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1928-10-29T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1928-10-29T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1928-10-29T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1928-10-29T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-05-06T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1929-05-06T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1929-05-06T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1929-05-06T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1929-10-28T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1929-10-28T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1929-10-28T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1929-10-28T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1929-05-06T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1929-05-06T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1929-05-06T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1929-05-06T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1929-10-28T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1929-10-28T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1929-10-28T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1929-10-28T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-05-05T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1930-05-05T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1930-05-05T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1930-05-05T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1930-10-27T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1930-10-27T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1930-10-27T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1930-10-27T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1930-05-05T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1930-05-05T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1930-05-05T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1930-05-05T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1930-10-27T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1930-10-27T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1930-10-27T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1930-10-27T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-04T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1931-05-04T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1931-05-04T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1931-05-04T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1931-10-26T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1931-10-26T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1931-10-26T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1931-10-26T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1931-05-04T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1931-05-04T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1931-05-04T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1931-05-04T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1931-10-26T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1931-10-26T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1931-10-26T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1931-10-26T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-05-02T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1932-05-02T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1932-05-02T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1932-05-02T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1932-10-31T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1932-10-31T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1932-10-31T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1932-10-31T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1932-05-02T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1932-05-02T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1932-05-02T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1932-05-02T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1932-10-31T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1932-10-31T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1932-10-31T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1932-10-31T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-05-08T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1933-05-08T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1933-05-08T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1933-05-08T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1933-10-30T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1933-10-30T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1933-10-30T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1933-10-30T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1933-05-08T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1933-05-08T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1933-05-08T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1933-05-08T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1933-10-30T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1933-10-30T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1933-10-30T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1933-10-30T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-05-07T02:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1934-05-07T02:30:51+00:00 should be 22:59:59 NST"); - t.equal(moment("1934-05-07T02:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1934-05-07T02:30:52+00:00 should be 00:00:00 NDT"); - t.equal(moment("1934-10-29T01:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1934-10-29T01:30:51+00:00 should be 22:59:59 NDT"); - t.equal(moment("1934-10-29T01:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1934-10-29T01:30:52+00:00 should be 22:00:00 NST"); - - t.equal(moment("1934-05-07T02:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1934-05-07T02:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1934-05-07T02:30:52+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1934-05-07T02:30:52+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1934-10-29T01:30:51+00:00").tz("America/St_Johns").zone(), 9052 / 60, "1934-10-29T01:30:51+00:00 should be 9052 / 60 minutes offset in NDT"); - t.equal(moment("1934-10-29T01:30:52+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1934-10-29T01:30:52+00:00 should be 12652 / 60 minutes offset in NST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-30T03:30:51+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1935-03-30T03:30:51+00:00 should be 23:59:59 NST"); - t.equal(moment("1935-03-30T03:30:52+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:52", "1935-03-30T03:30:52+00:00 should be 00:00:52 NST"); - t.equal(moment("1935-05-06T02:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1935-05-06T02:29:59+00:00 should be 22:59:59 NST"); - t.equal(moment("1935-05-06T02:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:00", "1935-05-06T02:30:00+00:00 should be 00:00:00 NDT"); - t.equal(moment("1935-10-28T01:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:59:59", "1935-10-28T01:29:59+00:00 should be 22:59:59 NDT"); - t.equal(moment("1935-10-28T01:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:00:00", "1935-10-28T01:30:00+00:00 should be 22:00:00 NST"); - - t.equal(moment("1935-03-30T03:30:51+00:00").tz("America/St_Johns").zone(), 12652 / 60, "1935-03-30T03:30:51+00:00 should be 12652 / 60 minutes offset in NST"); - t.equal(moment("1935-03-30T03:30:52+00:00").tz("America/St_Johns").zone(), 210, "1935-03-30T03:30:52+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1935-05-06T02:29:59+00:00").tz("America/St_Johns").zone(), 210, "1935-05-06T02:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1935-05-06T02:30:00+00:00").tz("America/St_Johns").zone(), 150, "1935-05-06T02:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1935-10-28T01:29:59+00:00").tz("America/St_Johns").zone(), 150, "1935-10-28T01:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1935-10-28T01:30:00+00:00").tz("America/St_Johns").zone(), 210, "1935-10-28T01:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-05-11T03:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1936-05-11T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1936-05-11T03:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1936-05-11T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1936-10-05T02:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1936-10-05T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1936-10-05T02:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:00:00", "1936-10-05T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1936-05-11T03:29:59+00:00").tz("America/St_Johns").zone(), 210, "1936-05-11T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1936-05-11T03:30:00+00:00").tz("America/St_Johns").zone(), 150, "1936-05-11T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1936-10-05T02:29:59+00:00").tz("America/St_Johns").zone(), 150, "1936-10-05T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1936-10-05T02:30:00+00:00").tz("America/St_Johns").zone(), 210, "1936-10-05T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-05-10T03:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1937-05-10T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1937-05-10T03:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1937-05-10T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1937-10-04T02:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1937-10-04T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1937-10-04T02:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:00:00", "1937-10-04T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1937-05-10T03:29:59+00:00").tz("America/St_Johns").zone(), 210, "1937-05-10T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1937-05-10T03:30:00+00:00").tz("America/St_Johns").zone(), 150, "1937-05-10T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1937-10-04T02:29:59+00:00").tz("America/St_Johns").zone(), 150, "1937-10-04T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1937-10-04T02:30:00+00:00").tz("America/St_Johns").zone(), 210, "1937-10-04T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-05-09T03:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1938-05-09T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1938-05-09T03:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1938-05-09T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1938-10-03T02:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1938-10-03T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1938-10-03T02:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:00:00", "1938-10-03T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1938-05-09T03:29:59+00:00").tz("America/St_Johns").zone(), 210, "1938-05-09T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1938-05-09T03:30:00+00:00").tz("America/St_Johns").zone(), 150, "1938-05-09T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1938-10-03T02:29:59+00:00").tz("America/St_Johns").zone(), 150, "1938-10-03T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1938-10-03T02:30:00+00:00").tz("America/St_Johns").zone(), 210, "1938-10-03T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-05-15T03:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1939-05-15T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1939-05-15T03:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1939-05-15T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1939-10-02T02:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1939-10-02T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1939-10-02T02:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:00:00", "1939-10-02T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1939-05-15T03:29:59+00:00").tz("America/St_Johns").zone(), 210, "1939-05-15T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1939-05-15T03:30:00+00:00").tz("America/St_Johns").zone(), 150, "1939-05-15T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1939-10-02T02:29:59+00:00").tz("America/St_Johns").zone(), 150, "1939-10-02T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1939-10-02T02:30:00+00:00").tz("America/St_Johns").zone(), 210, "1939-10-02T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-05-13T03:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1940-05-13T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1940-05-13T03:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1940-05-13T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1940-10-07T02:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1940-10-07T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1940-10-07T02:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:00:00", "1940-10-07T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1940-05-13T03:29:59+00:00").tz("America/St_Johns").zone(), 210, "1940-05-13T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1940-05-13T03:30:00+00:00").tz("America/St_Johns").zone(), 150, "1940-05-13T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1940-10-07T02:29:59+00:00").tz("America/St_Johns").zone(), 150, "1940-10-07T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1940-10-07T02:30:00+00:00").tz("America/St_Johns").zone(), 210, "1940-10-07T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-05-12T03:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1941-05-12T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1941-05-12T03:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1941-05-12T03:30:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1941-10-06T02:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1941-10-06T02:29:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1941-10-06T02:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:00:00", "1941-10-06T02:30:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1941-05-12T03:29:59+00:00").tz("America/St_Johns").zone(), 210, "1941-05-12T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1941-05-12T03:30:00+00:00").tz("America/St_Johns").zone(), 150, "1941-05-12T03:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1941-10-06T02:29:59+00:00").tz("America/St_Johns").zone(), 150, "1941-10-06T02:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1941-10-06T02:30:00+00:00").tz("America/St_Johns").zone(), 210, "1941-10-06T02:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-05-11T03:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:59:59", "1942-05-11T03:29:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1942-05-11T03:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1942-05-11T03:30:00+00:00 should be 01:00:00 NWT"); - - t.equal(moment("1942-05-11T03:29:59+00:00").tz("America/St_Johns").zone(), 210, "1942-05-11T03:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1942-05-11T03:30:00+00:00").tz("America/St_Johns").zone(), 150, "1942-05-11T03:30:00+00:00 should be 150 minutes offset in NWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "20:29:59", "1945-08-14T22:59:59+00:00 should be 20:29:59 NWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "20:30:00", "1945-08-14T23:00:00+00:00 should be 20:30:00 NPT"); - t.equal(moment("1945-09-30T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1945-09-30T04:29:59+00:00 should be 01:59:59 NPT"); - t.equal(moment("1945-09-30T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1945-09-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/St_Johns").zone(), 150, "1945-08-14T22:59:59+00:00 should be 150 minutes offset in NWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/St_Johns").zone(), 150, "1945-08-14T23:00:00+00:00 should be 150 minutes offset in NPT"); - t.equal(moment("1945-09-30T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1945-09-30T04:29:59+00:00 should be 150 minutes offset in NPT"); - t.equal(moment("1945-09-30T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1945-09-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-05-12T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1946-05-12T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1946-05-12T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1946-05-12T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1946-10-06T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1946-10-06T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1946-10-06T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1946-10-06T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1946-05-12T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1946-05-12T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1946-05-12T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1946-05-12T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1946-10-06T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1946-10-06T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1946-10-06T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1946-10-06T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-05-11T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1947-05-11T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1947-05-11T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1947-05-11T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1947-10-05T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1947-10-05T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1947-10-05T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1947-10-05T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1947-05-11T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1947-05-11T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1947-05-11T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1947-05-11T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1947-10-05T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1947-10-05T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1947-10-05T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1947-10-05T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-05-09T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1948-05-09T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1948-05-09T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1948-05-09T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1948-10-03T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1948-10-03T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1948-10-03T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1948-10-03T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1948-05-09T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1948-05-09T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1948-05-09T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1948-05-09T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1948-10-03T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1948-10-03T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1948-10-03T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1948-10-03T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-05-08T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1949-05-08T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1949-05-08T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1949-05-08T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1949-10-02T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1949-10-02T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1949-10-02T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1949-10-02T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1949-05-08T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1949-05-08T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1949-05-08T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1949-05-08T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1949-10-02T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1949-10-02T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1949-10-02T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1949-10-02T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-05-14T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1950-05-14T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1950-05-14T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1950-05-14T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1950-10-08T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1950-10-08T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1950-10-08T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1950-10-08T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1950-05-14T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1950-05-14T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1950-05-14T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1950-05-14T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1950-10-08T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1950-10-08T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1950-10-08T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1950-10-08T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1951-04-29T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1951-04-29T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1951-04-29T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1951-09-30T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1951-09-30T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1951-09-30T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1951-09-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1951-04-29T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1951-04-29T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1951-04-29T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1951-04-29T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1951-09-30T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1951-09-30T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1951-09-30T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1951-09-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1952-04-27T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1952-04-27T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1952-04-27T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1952-09-28T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1952-09-28T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1952-09-28T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1952-09-28T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1952-04-27T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1952-04-27T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1952-04-27T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1952-04-27T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1952-09-28T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1952-09-28T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1952-09-28T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1952-09-28T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1953-04-26T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1953-04-26T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1953-04-26T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1953-09-27T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1953-09-27T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1953-09-27T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1953-09-27T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1953-04-26T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1953-04-26T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1953-04-26T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1953-04-26T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1953-09-27T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1953-09-27T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1953-09-27T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1953-09-27T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1954-04-25T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1954-04-25T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1954-04-25T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1954-09-26T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1954-09-26T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1954-09-26T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1954-09-26T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1954-04-25T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1954-04-25T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1954-04-25T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1954-04-25T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1954-09-26T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1954-09-26T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1954-09-26T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1954-09-26T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1955-04-24T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1955-04-24T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1955-04-24T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1955-09-25T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1955-09-25T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1955-09-25T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1955-09-25T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1955-04-24T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1955-04-24T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1955-04-24T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1955-04-24T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1955-09-25T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1955-09-25T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1955-09-25T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1955-09-25T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1956-04-29T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1956-04-29T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1956-04-29T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1956-09-30T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1956-09-30T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1956-09-30T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1956-09-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1956-04-29T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1956-04-29T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1956-04-29T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1956-04-29T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1956-09-30T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1956-09-30T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1956-09-30T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1956-09-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1957-04-28T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1957-04-28T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1957-04-28T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1957-09-29T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1957-09-29T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1957-09-29T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1957-09-29T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1957-04-28T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1957-04-28T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1957-04-28T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1957-04-28T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1957-09-29T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1957-09-29T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1957-09-29T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1957-09-29T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1958-04-27T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1958-04-27T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1958-04-27T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1958-09-28T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1958-09-28T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1958-09-28T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1958-09-28T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1958-04-27T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1958-04-27T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1958-04-27T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1958-04-27T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1958-09-28T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1958-09-28T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1958-09-28T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1958-09-28T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1959-04-26T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1959-04-26T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1959-04-26T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1959-09-27T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1959-09-27T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1959-09-27T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1959-09-27T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1959-04-26T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1959-04-26T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1959-04-26T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1959-04-26T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1959-09-27T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1959-09-27T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1959-09-27T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1959-09-27T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1960-04-24T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1960-04-24T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1960-04-24T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1960-10-30T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1960-10-30T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1960-10-30T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1960-10-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1960-04-24T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1960-04-24T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1960-04-24T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1960-04-24T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1960-10-30T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1960-10-30T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1960-10-30T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1960-10-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1961-04-30T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1961-04-30T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1961-04-30T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1961-10-29T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1961-10-29T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1961-10-29T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1961-10-29T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1961-04-30T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1961-04-30T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1961-04-30T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1961-04-30T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1961-10-29T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1961-10-29T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1961-10-29T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1961-10-29T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1962-04-29T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1962-04-29T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1962-04-29T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1962-10-28T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1962-10-28T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1962-10-28T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1962-10-28T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1962-04-29T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1962-04-29T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1962-04-29T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1962-04-29T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1962-10-28T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1962-10-28T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1962-10-28T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1962-10-28T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1963-04-28T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1963-04-28T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1963-04-28T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1963-10-27T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1963-10-27T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1963-10-27T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1963-10-27T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1963-04-28T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1963-04-28T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1963-04-28T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1963-04-28T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1963-10-27T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1963-10-27T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1963-10-27T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1963-10-27T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1964-04-26T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1964-04-26T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1964-04-26T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1964-10-25T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1964-10-25T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1964-10-25T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1964-10-25T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1964-04-26T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1964-04-26T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1964-04-26T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1964-04-26T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1964-10-25T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1964-10-25T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1964-10-25T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1964-10-25T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1965-04-25T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1965-04-25T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1965-04-25T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1965-10-31T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1965-10-31T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1965-10-31T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1965-10-31T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1965-04-25T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1965-04-25T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1965-04-25T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1965-04-25T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1965-10-31T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1965-10-31T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1965-10-31T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1965-10-31T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1966-04-24T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1966-04-24T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1966-04-24T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1966-10-30T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1966-10-30T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1966-10-30T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1966-10-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1966-04-24T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1966-04-24T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1966-04-24T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1966-04-24T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1966-10-30T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1966-10-30T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1966-10-30T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1966-10-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1967-04-30T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1967-04-30T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1967-04-30T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1967-10-29T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1967-10-29T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1967-10-29T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1967-10-29T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1967-04-30T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1967-04-30T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1967-04-30T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1967-04-30T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1967-10-29T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1967-10-29T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1967-10-29T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1967-10-29T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1968-04-28T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1968-04-28T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1968-04-28T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1968-10-27T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1968-10-27T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1968-10-27T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1968-10-27T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1968-04-28T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1968-04-28T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1968-04-28T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1968-04-28T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1968-10-27T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1968-10-27T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1968-10-27T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1968-10-27T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1969-04-27T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1969-04-27T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1969-04-27T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1969-10-26T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1969-10-26T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1969-10-26T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1969-10-26T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1969-04-27T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1969-04-27T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1969-04-27T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1969-04-27T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1969-10-26T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1969-10-26T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1969-10-26T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1969-10-26T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1970-04-26T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1970-04-26T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1970-04-26T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1970-10-25T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1970-10-25T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1970-10-25T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1970-10-25T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1970-04-26T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1970-04-26T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1970-04-26T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1970-04-26T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1970-10-25T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1970-10-25T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1970-10-25T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1970-10-25T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1971-04-25T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1971-04-25T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1971-04-25T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1971-10-31T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1971-10-31T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1971-10-31T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1971-10-31T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1971-04-25T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1971-04-25T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1971-04-25T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1971-04-25T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1971-10-31T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1971-10-31T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1971-10-31T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1971-10-31T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1972-04-30T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1972-04-30T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1972-04-30T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1972-10-29T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1972-10-29T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1972-10-29T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1972-10-29T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1972-04-30T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1972-04-30T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1972-04-30T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1972-04-30T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1972-10-29T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1972-10-29T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1972-10-29T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1972-10-29T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1973-04-29T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1973-04-29T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1973-04-29T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1973-10-28T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1973-10-28T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1973-10-28T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1973-10-28T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1973-04-29T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1973-04-29T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1973-04-29T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1973-04-29T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1973-10-28T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1973-10-28T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1973-10-28T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1973-10-28T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1974-04-28T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1974-04-28T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1974-04-28T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1974-10-27T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1974-10-27T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1974-10-27T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1974-10-27T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1974-04-28T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1974-04-28T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1974-04-28T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1974-04-28T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1974-10-27T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1974-10-27T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1974-10-27T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1974-10-27T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1975-04-27T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1975-04-27T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1975-04-27T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1975-10-26T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1975-10-26T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1975-10-26T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1975-10-26T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1975-04-27T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1975-04-27T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1975-04-27T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1975-04-27T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1975-10-26T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1975-10-26T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1975-10-26T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1975-10-26T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1976-04-25T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1976-04-25T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1976-04-25T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1976-10-31T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1976-10-31T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1976-10-31T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1976-10-31T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1976-04-25T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1976-04-25T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1976-04-25T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1976-04-25T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1976-10-31T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1976-10-31T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1976-10-31T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1976-10-31T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1977-04-24T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1977-04-24T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1977-04-24T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1977-10-30T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1977-10-30T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1977-10-30T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1977-10-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1977-04-24T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1977-04-24T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1977-04-24T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1977-04-24T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1977-10-30T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1977-10-30T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1977-10-30T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1977-10-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1978-04-30T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1978-04-30T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1978-04-30T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1978-10-29T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1978-10-29T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1978-10-29T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1978-10-29T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1978-04-30T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1978-04-30T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1978-04-30T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1978-04-30T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1978-10-29T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1978-10-29T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1978-10-29T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1978-10-29T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1979-04-29T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1979-04-29T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1979-04-29T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1979-10-28T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1979-10-28T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1979-10-28T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1979-10-28T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1979-04-29T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1979-04-29T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1979-04-29T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1979-04-29T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1979-10-28T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1979-10-28T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1979-10-28T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1979-10-28T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1980-04-27T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1980-04-27T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1980-04-27T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1980-10-26T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1980-10-26T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1980-10-26T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1980-10-26T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1980-04-27T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1980-04-27T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1980-04-27T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1980-04-27T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1980-10-26T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1980-10-26T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1980-10-26T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1980-10-26T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1981-04-26T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1981-04-26T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1981-04-26T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1981-10-25T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1981-10-25T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1981-10-25T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1981-10-25T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1981-04-26T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1981-04-26T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1981-04-26T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1981-04-26T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1981-10-25T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1981-10-25T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1981-10-25T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1981-10-25T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1982-04-25T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1982-04-25T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1982-04-25T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1982-10-31T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1982-10-31T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1982-10-31T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1982-10-31T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1982-04-25T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1982-04-25T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1982-04-25T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1982-04-25T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1982-10-31T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1982-10-31T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1982-10-31T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1982-10-31T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1983-04-24T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1983-04-24T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1983-04-24T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1983-10-30T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1983-10-30T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1983-10-30T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1983-10-30T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1983-04-24T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1983-04-24T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1983-04-24T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1983-04-24T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1983-10-30T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1983-10-30T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1983-10-30T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1983-10-30T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1984-04-29T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1984-04-29T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1984-04-29T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1984-10-28T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1984-10-28T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1984-10-28T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1984-10-28T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1984-04-29T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1984-04-29T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1984-04-29T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1984-04-29T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1984-10-28T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1984-10-28T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1984-10-28T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1984-10-28T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1985-04-28T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1985-04-28T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1985-04-28T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1985-10-27T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1985-10-27T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1985-10-27T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1985-10-27T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1985-04-28T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1985-04-28T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1985-04-28T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1985-04-28T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1985-10-27T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1985-10-27T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1985-10-27T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1985-10-27T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1986-04-27T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("1986-04-27T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "1986-04-27T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("1986-10-26T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "1986-10-26T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("1986-10-26T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "1986-10-26T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("1986-04-27T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "1986-04-27T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1986-04-27T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "1986-04-27T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1986-10-26T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "1986-10-26T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1986-10-26T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "1986-10-26T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1987-04-05T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1987-04-05T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1987-04-05T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1987-10-25T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1987-10-25T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1987-10-25T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1987-10-25T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1987-04-05T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1987-04-05T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1987-04-05T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1987-04-05T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1987-10-25T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1987-10-25T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1987-10-25T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1987-10-25T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1988-04-03T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1988-04-03T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "02:01:00", "1988-04-03T03:31:00+00:00 should be 02:01:00 NDDT"); - t.equal(moment("1988-10-30T01:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1988-10-30T01:30:59+00:00 should be 00:00:59 NDDT"); - t.equal(moment("1988-10-30T01:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "22:01:00", "1988-10-30T01:31:00+00:00 should be 22:01:00 NST"); - - t.equal(moment("1988-04-03T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1988-04-03T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1988-04-03T03:31:00+00:00").tz("America/St_Johns").zone(), 90, "1988-04-03T03:31:00+00:00 should be 90 minutes offset in NDDT"); - t.equal(moment("1988-10-30T01:30:59+00:00").tz("America/St_Johns").zone(), 90, "1988-10-30T01:30:59+00:00 should be 90 minutes offset in NDDT"); - t.equal(moment("1988-10-30T01:31:00+00:00").tz("America/St_Johns").zone(), 210, "1988-10-30T01:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1989-04-02T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1989-04-02T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1989-04-02T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1989-10-29T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1989-10-29T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1989-10-29T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1989-10-29T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1989-04-02T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1989-04-02T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1989-04-02T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1989-04-02T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1989-10-29T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1989-10-29T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1989-10-29T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1989-10-29T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1990-04-01T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1990-04-01T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1990-04-01T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1990-10-28T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1990-10-28T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1990-10-28T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1990-10-28T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1990-04-01T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1990-04-01T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1990-04-01T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1990-04-01T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1990-10-28T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1990-10-28T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1990-10-28T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1990-10-28T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1991-04-07T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1991-04-07T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1991-04-07T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1991-10-27T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1991-10-27T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1991-10-27T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1991-10-27T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1991-04-07T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1991-04-07T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1991-04-07T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1991-04-07T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1991-10-27T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1991-10-27T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1991-10-27T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1991-10-27T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1992-04-05T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1992-04-05T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1992-04-05T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1992-10-25T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1992-10-25T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1992-10-25T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1992-10-25T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1992-04-05T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1992-04-05T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1992-04-05T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1992-04-05T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1992-10-25T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1992-10-25T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1992-10-25T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1992-10-25T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1993-04-04T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1993-04-04T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1993-04-04T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1993-10-31T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1993-10-31T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1993-10-31T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1993-10-31T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1993-04-04T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1993-04-04T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1993-04-04T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1993-04-04T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1993-10-31T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1993-10-31T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1993-10-31T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1993-10-31T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1994-04-03T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1994-04-03T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1994-04-03T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1994-10-30T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1994-10-30T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1994-10-30T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1994-10-30T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1994-04-03T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1994-04-03T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1994-04-03T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1994-04-03T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1994-10-30T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1994-10-30T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1994-10-30T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1994-10-30T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1995-04-02T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1995-04-02T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1995-04-02T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1995-10-29T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1995-10-29T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1995-10-29T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1995-10-29T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1995-04-02T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1995-04-02T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1995-04-02T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1995-04-02T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1995-10-29T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1995-10-29T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1995-10-29T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1995-10-29T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1996-04-07T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1996-04-07T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1996-04-07T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1996-10-27T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1996-10-27T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1996-10-27T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1996-10-27T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1996-04-07T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1996-04-07T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1996-04-07T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1996-04-07T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1996-10-27T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1996-10-27T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1996-10-27T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1996-10-27T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1997-04-06T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1997-04-06T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1997-04-06T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1997-10-26T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1997-10-26T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1997-10-26T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1997-10-26T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1997-04-06T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1997-04-06T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1997-04-06T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1997-04-06T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1997-10-26T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1997-10-26T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1997-10-26T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1997-10-26T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1998-04-05T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1998-04-05T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1998-04-05T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1998-10-25T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1998-10-25T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1998-10-25T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1998-10-25T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1998-04-05T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1998-04-05T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1998-04-05T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1998-04-05T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1998-10-25T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1998-10-25T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1998-10-25T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1998-10-25T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1999-04-04T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("1999-04-04T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "1999-04-04T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("1999-10-31T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "1999-10-31T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("1999-10-31T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "1999-10-31T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("1999-04-04T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "1999-04-04T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("1999-04-04T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "1999-04-04T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1999-10-31T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "1999-10-31T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("1999-10-31T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "1999-10-31T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2000-04-02T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2000-04-02T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2000-04-02T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2000-10-29T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2000-10-29T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2000-10-29T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2000-10-29T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2000-04-02T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2000-04-02T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2000-04-02T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2000-04-02T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2000-10-29T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2000-10-29T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2000-10-29T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2000-10-29T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2001-04-01T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2001-04-01T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2001-04-01T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2001-10-28T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2001-10-28T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2001-10-28T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2001-10-28T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2001-04-01T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2001-04-01T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2001-04-01T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2001-04-01T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2001-10-28T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2001-10-28T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2001-10-28T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2001-10-28T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2002-04-07T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2002-04-07T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2002-04-07T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2002-10-27T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2002-10-27T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2002-10-27T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2002-10-27T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2002-04-07T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2002-04-07T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2002-04-07T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2002-04-07T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2002-10-27T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2002-10-27T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2002-10-27T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2002-10-27T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2003-04-06T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2003-04-06T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2003-04-06T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2003-10-26T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2003-10-26T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2003-10-26T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2003-10-26T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2003-04-06T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2003-04-06T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2003-04-06T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2003-04-06T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2003-10-26T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2003-10-26T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2003-10-26T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2003-10-26T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2004-04-04T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2004-04-04T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2004-04-04T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2004-10-31T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2004-10-31T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2004-10-31T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2004-10-31T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2004-04-04T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2004-04-04T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2004-04-04T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2004-04-04T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2004-10-31T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2004-10-31T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2004-10-31T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2004-10-31T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2005-04-03T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2005-04-03T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2005-04-03T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2005-10-30T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2005-10-30T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2005-10-30T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2005-10-30T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2005-04-03T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2005-04-03T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2005-04-03T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2005-04-03T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2005-10-30T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2005-10-30T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2005-10-30T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2005-10-30T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2006-04-02T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2006-04-02T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2006-04-02T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2006-10-29T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2006-10-29T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2006-10-29T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2006-10-29T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2006-04-02T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2006-04-02T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2006-04-02T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2006-04-02T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2006-10-29T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2006-10-29T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2006-10-29T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2006-10-29T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2007-03-11T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2007-03-11T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2007-03-11T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2007-11-04T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2007-11-04T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2007-11-04T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2007-11-04T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2007-03-11T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2007-03-11T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2007-03-11T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2007-03-11T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2007-11-04T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2007-11-04T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2007-11-04T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2007-11-04T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2008-03-09T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2008-03-09T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2008-03-09T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2008-11-02T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2008-11-02T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2008-11-02T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2008-11-02T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2008-03-09T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2008-03-09T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2008-03-09T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2008-03-09T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2008-11-02T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2008-11-02T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2008-11-02T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2008-11-02T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2009-03-08T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2009-03-08T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2009-03-08T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2009-11-01T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2009-11-01T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2009-11-01T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2009-11-01T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2009-03-08T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2009-03-08T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2009-03-08T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2009-03-08T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2009-11-01T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2009-11-01T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2009-11-01T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2009-11-01T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2010-03-14T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2010-03-14T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2010-03-14T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2010-11-07T02:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2010-11-07T02:30:59+00:00 should be 00:00:59 NDT"); - t.equal(moment("2010-11-07T02:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "23:01:00", "2010-11-07T02:31:00+00:00 should be 23:01:00 NST"); - - t.equal(moment("2010-03-14T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2010-03-14T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2010-03-14T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2010-03-14T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2010-11-07T02:30:59+00:00").tz("America/St_Johns").zone(), 150, "2010-11-07T02:30:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2010-11-07T02:31:00+00:00").tz("America/St_Johns").zone(), 210, "2010-11-07T02:31:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T03:30:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "00:00:59", "2011-03-13T03:30:59+00:00 should be 00:00:59 NST"); - t.equal(moment("2011-03-13T03:31:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:01:00", "2011-03-13T03:31:00+00:00 should be 01:01:00 NDT"); - t.equal(moment("2011-11-06T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2011-11-06T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2011-11-06T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2011-11-06T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2011-03-13T03:30:59+00:00").tz("America/St_Johns").zone(), 210, "2011-03-13T03:30:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2011-03-13T03:31:00+00:00").tz("America/St_Johns").zone(), 150, "2011-03-13T03:31:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2011-11-06T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2011-11-06T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2011-11-06T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2011-11-06T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2012-03-11T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2012-03-11T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2012-03-11T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2012-11-04T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2012-11-04T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2012-11-04T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2012-11-04T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2012-03-11T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2012-03-11T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2012-03-11T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2012-03-11T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2012-11-04T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2012-11-04T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2012-11-04T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2012-11-04T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2013-03-10T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2013-03-10T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2013-03-10T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2013-11-03T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2013-11-03T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2013-11-03T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2013-11-03T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2013-03-10T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2013-03-10T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2013-03-10T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2013-03-10T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2013-11-03T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2013-11-03T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2013-11-03T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2013-11-03T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2014-03-09T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2014-03-09T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2014-03-09T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2014-11-02T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2014-11-02T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2014-11-02T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2014-11-02T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2014-03-09T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2014-03-09T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2014-03-09T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2014-03-09T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2014-11-02T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2014-11-02T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2014-11-02T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2014-11-02T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2015-03-08T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2015-03-08T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2015-03-08T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2015-11-01T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2015-11-01T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2015-11-01T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2015-11-01T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2015-03-08T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2015-03-08T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2015-03-08T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2015-03-08T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2015-11-01T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2015-11-01T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2015-11-01T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2015-11-01T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2016-03-13T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2016-03-13T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2016-03-13T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2016-11-06T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2016-11-06T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2016-11-06T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2016-11-06T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2016-03-13T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2016-03-13T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2016-03-13T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2016-03-13T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2016-11-06T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2016-11-06T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2016-11-06T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2016-11-06T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2017-03-12T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2017-03-12T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2017-03-12T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2017-11-05T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2017-11-05T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2017-11-05T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2017-11-05T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2017-03-12T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2017-03-12T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2017-03-12T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2017-03-12T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2017-11-05T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2017-11-05T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2017-11-05T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2017-11-05T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2018-03-11T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2018-03-11T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2018-03-11T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2018-11-04T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2018-11-04T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2018-11-04T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2018-11-04T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2018-03-11T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2018-03-11T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2018-03-11T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2018-03-11T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2018-11-04T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2018-11-04T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2018-11-04T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2018-11-04T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2019-03-10T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2019-03-10T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2019-03-10T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2019-11-03T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2019-11-03T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2019-11-03T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2019-11-03T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2019-03-10T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2019-03-10T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2019-03-10T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2019-03-10T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2019-11-03T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2019-11-03T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2019-11-03T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2019-11-03T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2020-03-08T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2020-03-08T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2020-03-08T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2020-11-01T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2020-11-01T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2020-11-01T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2020-11-01T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2020-03-08T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2020-03-08T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2020-03-08T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2020-03-08T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2020-11-01T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2020-11-01T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2020-11-01T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2020-11-01T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2021-03-14T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2021-03-14T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2021-03-14T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2021-11-07T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2021-11-07T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2021-11-07T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2021-11-07T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2021-03-14T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2021-03-14T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2021-03-14T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2021-03-14T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2021-11-07T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2021-11-07T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2021-11-07T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2021-11-07T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2022-03-13T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2022-03-13T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2022-03-13T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2022-11-06T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2022-11-06T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2022-11-06T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2022-11-06T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2022-03-13T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2022-03-13T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2022-03-13T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2022-03-13T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2022-11-06T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2022-11-06T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2022-11-06T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2022-11-06T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2023-03-12T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2023-03-12T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2023-03-12T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2023-11-05T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2023-11-05T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2023-11-05T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2023-11-05T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2023-03-12T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2023-03-12T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2023-03-12T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2023-03-12T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2023-11-05T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2023-11-05T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2023-11-05T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2023-11-05T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2024-03-10T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2024-03-10T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2024-03-10T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2024-11-03T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2024-11-03T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2024-11-03T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2024-11-03T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2024-03-10T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2024-03-10T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2024-03-10T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2024-03-10T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2024-11-03T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2024-11-03T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2024-11-03T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2024-11-03T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2025-03-09T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2025-03-09T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2025-03-09T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2025-11-02T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2025-11-02T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2025-11-02T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2025-11-02T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2025-03-09T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2025-03-09T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2025-03-09T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2025-03-09T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2025-11-02T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2025-11-02T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2025-11-02T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2025-11-02T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2026-03-08T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2026-03-08T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2026-03-08T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2026-11-01T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2026-11-01T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2026-11-01T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2026-11-01T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2026-03-08T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2026-03-08T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2026-03-08T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2026-03-08T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2026-11-01T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2026-11-01T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2026-11-01T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2026-11-01T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2027-03-14T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2027-03-14T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2027-03-14T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2027-11-07T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2027-11-07T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2027-11-07T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2027-11-07T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2027-03-14T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2027-03-14T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2027-03-14T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2027-03-14T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2027-11-07T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2027-11-07T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2027-11-07T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2027-11-07T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2028-03-12T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2028-03-12T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2028-03-12T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2028-11-05T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2028-11-05T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2028-11-05T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2028-11-05T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2028-03-12T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2028-03-12T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2028-03-12T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2028-03-12T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2028-11-05T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2028-11-05T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2028-11-05T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2028-11-05T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2029-03-11T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2029-03-11T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2029-03-11T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2029-11-04T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2029-11-04T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2029-11-04T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2029-11-04T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2029-03-11T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2029-03-11T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2029-03-11T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2029-03-11T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2029-11-04T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2029-11-04T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2029-11-04T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2029-11-04T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2030-03-10T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2030-03-10T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2030-03-10T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2030-11-03T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2030-11-03T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2030-11-03T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2030-11-03T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2030-03-10T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2030-03-10T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2030-03-10T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2030-03-10T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2030-11-03T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2030-11-03T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2030-11-03T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2030-11-03T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2031-03-09T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2031-03-09T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2031-03-09T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2031-11-02T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2031-11-02T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2031-11-02T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2031-11-02T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2031-03-09T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2031-03-09T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2031-03-09T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2031-03-09T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2031-11-02T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2031-11-02T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2031-11-02T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2031-11-02T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2032-03-14T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2032-03-14T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2032-03-14T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2032-11-07T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2032-11-07T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2032-11-07T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2032-11-07T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2032-03-14T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2032-03-14T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2032-03-14T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2032-03-14T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2032-11-07T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2032-11-07T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2032-11-07T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2032-11-07T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2033-03-13T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2033-03-13T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2033-03-13T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2033-11-06T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2033-11-06T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2033-11-06T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2033-11-06T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2033-03-13T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2033-03-13T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2033-03-13T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2033-03-13T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2033-11-06T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2033-11-06T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2033-11-06T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2033-11-06T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2034-03-12T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2034-03-12T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2034-03-12T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2034-11-05T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2034-11-05T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2034-11-05T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2034-11-05T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2034-03-12T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2034-03-12T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2034-03-12T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2034-03-12T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2034-11-05T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2034-11-05T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2034-11-05T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2034-11-05T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2035-03-11T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2035-03-11T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2035-03-11T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2035-11-04T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2035-11-04T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2035-11-04T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2035-11-04T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2035-03-11T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2035-03-11T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2035-03-11T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2035-03-11T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2035-11-04T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2035-11-04T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2035-11-04T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2035-11-04T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2036-03-09T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2036-03-09T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2036-03-09T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2036-11-02T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2036-11-02T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2036-11-02T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2036-11-02T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2036-03-09T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2036-03-09T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2036-03-09T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2036-03-09T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2036-11-02T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2036-11-02T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2036-11-02T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2036-11-02T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T05:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2037-03-08T05:29:59+00:00 should be 01:59:59 NST"); - t.equal(moment("2037-03-08T05:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "03:00:00", "2037-03-08T05:30:00+00:00 should be 03:00:00 NDT"); - t.equal(moment("2037-11-01T04:29:59+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:59:59", "2037-11-01T04:29:59+00:00 should be 01:59:59 NDT"); - t.equal(moment("2037-11-01T04:30:00+00:00").tz("America/St_Johns").format("HH:mm:ss"), "01:00:00", "2037-11-01T04:30:00+00:00 should be 01:00:00 NST"); - - t.equal(moment("2037-03-08T05:29:59+00:00").tz("America/St_Johns").zone(), 210, "2037-03-08T05:29:59+00:00 should be 210 minutes offset in NST"); - t.equal(moment("2037-03-08T05:30:00+00:00").tz("America/St_Johns").zone(), 150, "2037-03-08T05:30:00+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2037-11-01T04:29:59+00:00").tz("America/St_Johns").zone(), 150, "2037-11-01T04:29:59+00:00 should be 150 minutes offset in NDT"); - t.equal(moment("2037-11-01T04:30:00+00:00").tz("America/St_Johns").zone(), 210, "2037-11-01T04:30:00+00:00 should be 210 minutes offset in NST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/st_kitts.js b/tests/america/st_kitts.js deleted file mode 100644 index b3e41b72..00000000 --- a/tests/america/st_kitts.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/St_Kitts"] = { - - "1912" : function (t) { - t.equal(moment("1912-03-02T04:10:51+00:00").tz("America/St_Kitts").format("HH:mm:ss"), "23:59:59", "1912-03-02T04:10:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-03-02T04:10:52+00:00").tz("America/St_Kitts").format("HH:mm:ss"), "00:10:52", "1912-03-02T04:10:52+00:00 should be 00:10:52 AST"); - - t.equal(moment("1912-03-02T04:10:51+00:00").tz("America/St_Kitts").zone(), 15052 / 60, "1912-03-02T04:10:51+00:00 should be 15052 / 60 minutes offset in LMT"); - t.equal(moment("1912-03-02T04:10:52+00:00").tz("America/St_Kitts").zone(), 240, "1912-03-02T04:10:52+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/st_lucia.js b/tests/america/st_lucia.js deleted file mode 100644 index 259316c2..00000000 --- a/tests/america/st_lucia.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/St_Lucia"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T04:03:59+00:00").tz("America/St_Lucia").format("HH:mm:ss"), "23:59:59", "1912-01-01T04:03:59+00:00 should be 23:59:59 CMT"); - t.equal(moment("1912-01-01T04:04:00+00:00").tz("America/St_Lucia").format("HH:mm:ss"), "00:04:00", "1912-01-01T04:04:00+00:00 should be 00:04:00 AST"); - - t.equal(moment("1912-01-01T04:03:59+00:00").tz("America/St_Lucia").zone(), 244, "1912-01-01T04:03:59+00:00 should be 244 minutes offset in CMT"); - t.equal(moment("1912-01-01T04:04:00+00:00").tz("America/St_Lucia").zone(), 240, "1912-01-01T04:04:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/st_thomas.js b/tests/america/st_thomas.js deleted file mode 100644 index 144104c7..00000000 --- a/tests/america/st_thomas.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/St_Thomas"] = { - - "1911" : function (t) { - t.equal(moment("1911-07-01T04:19:43+00:00").tz("America/St_Thomas").format("HH:mm:ss"), "23:59:59", "1911-07-01T04:19:43+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-07-01T04:19:44+00:00").tz("America/St_Thomas").format("HH:mm:ss"), "00:19:44", "1911-07-01T04:19:44+00:00 should be 00:19:44 AST"); - - t.equal(moment("1911-07-01T04:19:43+00:00").tz("America/St_Thomas").zone(), 15584 / 60, "1911-07-01T04:19:43+00:00 should be 15584 / 60 minutes offset in LMT"); - t.equal(moment("1911-07-01T04:19:44+00:00").tz("America/St_Thomas").zone(), 240, "1911-07-01T04:19:44+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/st_vincent.js b/tests/america/st_vincent.js deleted file mode 100644 index 9c077c01..00000000 --- a/tests/america/st_vincent.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/St_Vincent"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T04:04:55+00:00").tz("America/St_Vincent").format("HH:mm:ss"), "23:59:59", "1912-01-01T04:04:55+00:00 should be 23:59:59 KMT"); - t.equal(moment("1912-01-01T04:04:56+00:00").tz("America/St_Vincent").format("HH:mm:ss"), "00:04:56", "1912-01-01T04:04:56+00:00 should be 00:04:56 AST"); - - t.equal(moment("1912-01-01T04:04:55+00:00").tz("America/St_Vincent").zone(), 14696 / 60, "1912-01-01T04:04:55+00:00 should be 14696 / 60 minutes offset in KMT"); - t.equal(moment("1912-01-01T04:04:56+00:00").tz("America/St_Vincent").zone(), 240, "1912-01-01T04:04:56+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/swift_current.js b/tests/america/swift_current.js deleted file mode 100644 index d1d89bc5..00000000 --- a/tests/america/swift_current.js +++ /dev/null @@ -1,174 +0,0 @@ -var moment = require("../../index"); - -exports["America/Swift_Current"] = { - - "1905" : function (t) { - t.equal(moment("1905-09-01T07:11:19+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "23:59:59", "1905-09-01T07:11:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1905-09-01T07:11:20+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "00:11:20", "1905-09-01T07:11:20+00:00 should be 00:11:20 MST"); - - t.equal(moment("1905-09-01T07:11:19+00:00").tz("America/Swift_Current").zone(), 25880 / 60, "1905-09-01T07:11:19+00:00 should be 25880 / 60 minutes offset in LMT"); - t.equal(moment("1905-09-01T07:11:20+00:00").tz("America/Swift_Current").zone(), 420, "1905-09-01T07:11:20+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-14T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1918-04-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1918-04-14T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1918-04-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1918-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1918-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-04-14T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1918-04-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1918-04-14T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1918-04-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1918-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1918-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1946-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1946-04-28T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1946-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1946-10-13T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1946-10-13T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1946-10-13T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1946-10-13T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1946-04-28T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1946-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1946-04-28T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1946-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1946-10-13T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1946-10-13T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1946-10-13T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1946-10-13T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1947-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1947-04-27T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1947-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1947-09-28T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1947-09-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1947-09-28T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1947-09-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1947-04-27T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1947-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1947-04-27T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1947-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1947-09-28T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1947-09-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1947-09-28T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1947-09-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1948-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1948-04-25T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1948-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1948-09-26T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1948-09-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1948-09-26T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1948-09-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1948-04-25T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1948-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1948-04-25T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1948-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1948-09-26T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1948-09-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1948-09-26T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1948-09-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1949-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1949-04-24T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1949-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1949-09-25T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1949-09-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1949-09-25T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1949-09-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1949-04-24T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1949-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1949-04-24T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1949-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1949-09-25T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1949-09-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1949-09-25T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1949-09-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1957-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1957-04-28T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1957-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1957-10-27T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1957-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1957-10-27T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1957-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1957-04-28T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1957-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1957-04-28T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1957-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1957-10-27T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1957-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1957-10-27T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1957-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1959-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1959-04-26T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1959-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1959-10-25T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1959-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1959-10-25T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1959-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1959-04-26T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1959-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1959-04-26T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1959-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1959-10-25T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1959-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1959-10-25T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1959-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1960-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1960-04-24T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1960-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1960-09-25T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1960-09-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1960-09-25T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1960-09-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1960-04-24T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1960-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1960-04-24T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1960-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1960-09-25T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1960-09-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1960-09-25T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1960-09-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1961-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1961-04-30T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1961-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1961-09-24T07:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1961-09-24T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1961-09-24T08:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:00:00", "1961-09-24T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1961-04-30T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1961-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1961-04-30T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1961-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1961-09-24T07:59:59+00:00").tz("America/Swift_Current").zone(), 360, "1961-09-24T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1961-09-24T08:00:00+00:00").tz("America/Swift_Current").zone(), 420, "1961-09-24T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "01:59:59", "1972-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/Swift_Current").format("HH:mm:ss"), "03:00:00", "1972-04-30T09:00:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1972-04-30T08:59:59+00:00").tz("America/Swift_Current").zone(), 420, "1972-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("America/Swift_Current").zone(), 360, "1972-04-30T09:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/tegucigalpa.js b/tests/america/tegucigalpa.js deleted file mode 100644 index b0ed6b28..00000000 --- a/tests/america/tegucigalpa.js +++ /dev/null @@ -1,56 +0,0 @@ -var moment = require("../../index"); - -exports["America/Tegucigalpa"] = { - - "1921" : function (t) { - t.equal(moment("1921-04-01T05:48:51+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:59:59", "1921-04-01T05:48:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1921-04-01T05:48:52+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:48:52", "1921-04-01T05:48:52+00:00 should be 23:48:52 CST"); - - t.equal(moment("1921-04-01T05:48:51+00:00").tz("America/Tegucigalpa").zone(), 20932 / 60, "1921-04-01T05:48:51+00:00 should be 20932 / 60 minutes offset in LMT"); - t.equal(moment("1921-04-01T05:48:52+00:00").tz("America/Tegucigalpa").zone(), 360, "1921-04-01T05:48:52+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-05-03T05:59:59+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:59:59", "1987-05-03T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1987-05-03T06:00:00+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "01:00:00", "1987-05-03T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1987-09-27T04:59:59+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:59:59", "1987-09-27T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1987-09-27T05:00:00+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:00:00", "1987-09-27T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1987-05-03T05:59:59+00:00").tz("America/Tegucigalpa").zone(), 360, "1987-05-03T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-05-03T06:00:00+00:00").tz("America/Tegucigalpa").zone(), 300, "1987-05-03T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-09-27T04:59:59+00:00").tz("America/Tegucigalpa").zone(), 300, "1987-09-27T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-09-27T05:00:00+00:00").tz("America/Tegucigalpa").zone(), 360, "1987-09-27T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-05-01T05:59:59+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:59:59", "1988-05-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1988-05-01T06:00:00+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "01:00:00", "1988-05-01T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1988-09-25T04:59:59+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:59:59", "1988-09-25T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1988-09-25T05:00:00+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:00:00", "1988-09-25T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1988-05-01T05:59:59+00:00").tz("America/Tegucigalpa").zone(), 360, "1988-05-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-05-01T06:00:00+00:00").tz("America/Tegucigalpa").zone(), 300, "1988-05-01T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-09-25T04:59:59+00:00").tz("America/Tegucigalpa").zone(), 300, "1988-09-25T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-09-25T05:00:00+00:00").tz("America/Tegucigalpa").zone(), 360, "1988-09-25T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-05-07T05:59:59+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:59:59", "2006-05-07T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("2006-05-07T06:00:00+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "01:00:00", "2006-05-07T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("2006-08-07T04:59:59+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:59:59", "2006-08-07T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("2006-08-07T05:00:00+00:00").tz("America/Tegucigalpa").format("HH:mm:ss"), "23:00:00", "2006-08-07T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("2006-05-07T05:59:59+00:00").tz("America/Tegucigalpa").zone(), 360, "2006-05-07T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-05-07T06:00:00+00:00").tz("America/Tegucigalpa").zone(), 300, "2006-05-07T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-08-07T04:59:59+00:00").tz("America/Tegucigalpa").zone(), 300, "2006-08-07T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-08-07T05:00:00+00:00").tz("America/Tegucigalpa").zone(), 360, "2006-08-07T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/thule.js b/tests/america/thule.js deleted file mode 100644 index a3fab9f8..00000000 --- a/tests/america/thule.js +++ /dev/null @@ -1,672 +0,0 @@ -var moment = require("../../index"); - -exports["America/Thule"] = { - - "1916" : function (t) { - t.equal(moment("1916-07-28T04:35:07+00:00").tz("America/Thule").format("HH:mm:ss"), "23:59:59", "1916-07-28T04:35:07+00:00 should be 23:59:59 LMT"); - t.equal(moment("1916-07-28T04:35:08+00:00").tz("America/Thule").format("HH:mm:ss"), "00:35:08", "1916-07-28T04:35:08+00:00 should be 00:35:08 AST"); - - t.equal(moment("1916-07-28T04:35:07+00:00").tz("America/Thule").zone(), 16508 / 60, "1916-07-28T04:35:07+00:00 should be 16508 / 60 minutes offset in LMT"); - t.equal(moment("1916-07-28T04:35:08+00:00").tz("America/Thule").zone(), 240, "1916-07-28T04:35:08+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1991-03-31T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1991-03-31T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "1991-03-31T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1991-09-29T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1991-09-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1991-09-29T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "1991-09-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1991-03-31T05:59:59+00:00").tz("America/Thule").zone(), 240, "1991-03-31T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1991-03-31T06:00:00+00:00").tz("America/Thule").zone(), 180, "1991-03-31T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-09-29T04:59:59+00:00").tz("America/Thule").zone(), 180, "1991-09-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-09-29T05:00:00+00:00").tz("America/Thule").zone(), 240, "1991-09-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1992-03-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1992-03-29T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "1992-03-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1992-09-27T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1992-09-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1992-09-27T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "1992-09-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1992-03-29T05:59:59+00:00").tz("America/Thule").zone(), 240, "1992-03-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1992-03-29T06:00:00+00:00").tz("America/Thule").zone(), 180, "1992-03-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-09-27T04:59:59+00:00").tz("America/Thule").zone(), 180, "1992-09-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-09-27T05:00:00+00:00").tz("America/Thule").zone(), 240, "1992-09-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1993-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "1993-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1993-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "1993-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1993-04-04T05:59:59+00:00").tz("America/Thule").zone(), 240, "1993-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("America/Thule").zone(), 180, "1993-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("America/Thule").zone(), 180, "1993-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("America/Thule").zone(), 240, "1993-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1994-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "1994-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1994-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "1994-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1994-04-03T05:59:59+00:00").tz("America/Thule").zone(), 240, "1994-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("America/Thule").zone(), 180, "1994-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("America/Thule").zone(), 180, "1994-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("America/Thule").zone(), 240, "1994-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1995-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "1995-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1995-10-29T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1995-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1995-10-29T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "1995-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1995-04-02T05:59:59+00:00").tz("America/Thule").zone(), 240, "1995-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("America/Thule").zone(), 180, "1995-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T04:59:59+00:00").tz("America/Thule").zone(), 180, "1995-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T05:00:00+00:00").tz("America/Thule").zone(), 240, "1995-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1996-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "1996-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1996-10-27T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1996-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1996-10-27T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "1996-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1996-04-07T05:59:59+00:00").tz("America/Thule").zone(), 240, "1996-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("America/Thule").zone(), 180, "1996-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T04:59:59+00:00").tz("America/Thule").zone(), 180, "1996-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T05:00:00+00:00").tz("America/Thule").zone(), 240, "1996-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1997-04-06T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "1997-04-06T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1997-10-26T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1997-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1997-10-26T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "1997-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1997-04-06T05:59:59+00:00").tz("America/Thule").zone(), 240, "1997-04-06T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("America/Thule").zone(), 180, "1997-04-06T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T04:59:59+00:00").tz("America/Thule").zone(), 180, "1997-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T05:00:00+00:00").tz("America/Thule").zone(), 240, "1997-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1998-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1998-04-05T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "1998-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1998-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "1998-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1998-04-05T05:59:59+00:00").tz("America/Thule").zone(), 240, "1998-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1998-04-05T06:00:00+00:00").tz("America/Thule").zone(), 180, "1998-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("America/Thule").zone(), 180, "1998-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("America/Thule").zone(), 240, "1998-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1999-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1999-04-04T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "1999-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "1999-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "1999-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1999-04-04T05:59:59+00:00").tz("America/Thule").zone(), 240, "1999-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1999-04-04T06:00:00+00:00").tz("America/Thule").zone(), 180, "1999-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("America/Thule").zone(), 180, "1999-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("America/Thule").zone(), 240, "1999-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2000-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2000-04-02T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2000-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2000-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2000-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2000-04-02T05:59:59+00:00").tz("America/Thule").zone(), 240, "2000-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2000-04-02T06:00:00+00:00").tz("America/Thule").zone(), 180, "2000-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("America/Thule").zone(), 180, "2000-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("America/Thule").zone(), 240, "2000-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2001-04-01T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2001-04-01T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2001-04-01T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2001-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2001-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2001-04-01T05:59:59+00:00").tz("America/Thule").zone(), 240, "2001-04-01T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2001-04-01T06:00:00+00:00").tz("America/Thule").zone(), 180, "2001-04-01T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("America/Thule").zone(), 180, "2001-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("America/Thule").zone(), 240, "2001-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2002-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2002-04-07T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2002-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2002-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2002-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2002-04-07T05:59:59+00:00").tz("America/Thule").zone(), 240, "2002-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2002-04-07T06:00:00+00:00").tz("America/Thule").zone(), 180, "2002-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("America/Thule").zone(), 180, "2002-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("America/Thule").zone(), 240, "2002-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2003-04-06T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2003-04-06T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2003-04-06T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2003-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2003-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2003-04-06T05:59:59+00:00").tz("America/Thule").zone(), 240, "2003-04-06T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2003-04-06T06:00:00+00:00").tz("America/Thule").zone(), 180, "2003-04-06T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("America/Thule").zone(), 180, "2003-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("America/Thule").zone(), 240, "2003-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2004-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2004-04-04T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2004-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2004-10-31T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2004-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2004-10-31T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2004-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2004-04-04T05:59:59+00:00").tz("America/Thule").zone(), 240, "2004-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2004-04-04T06:00:00+00:00").tz("America/Thule").zone(), 180, "2004-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T04:59:59+00:00").tz("America/Thule").zone(), 180, "2004-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T05:00:00+00:00").tz("America/Thule").zone(), 240, "2004-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2005-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2005-04-03T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2005-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2005-10-30T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2005-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2005-10-30T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2005-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2005-04-03T05:59:59+00:00").tz("America/Thule").zone(), 240, "2005-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2005-04-03T06:00:00+00:00").tz("America/Thule").zone(), 180, "2005-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T04:59:59+00:00").tz("America/Thule").zone(), 180, "2005-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T05:00:00+00:00").tz("America/Thule").zone(), 240, "2005-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2006-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2006-04-02T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2006-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2006-10-29T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2006-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2006-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2006-04-02T05:59:59+00:00").tz("America/Thule").zone(), 240, "2006-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2006-04-02T06:00:00+00:00").tz("America/Thule").zone(), 180, "2006-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T04:59:59+00:00").tz("America/Thule").zone(), 180, "2006-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("America/Thule").zone(), 240, "2006-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2007-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2007-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2007-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2007-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2007-03-11T05:59:59+00:00").tz("America/Thule").zone(), 240, "2007-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("America/Thule").zone(), 180, "2007-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("America/Thule").zone(), 180, "2007-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("America/Thule").zone(), 240, "2007-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2008-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2008-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2008-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2008-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2008-03-09T05:59:59+00:00").tz("America/Thule").zone(), 240, "2008-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("America/Thule").zone(), 180, "2008-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("America/Thule").zone(), 180, "2008-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("America/Thule").zone(), 240, "2008-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2009-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2009-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2009-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2009-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2009-03-08T05:59:59+00:00").tz("America/Thule").zone(), 240, "2009-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("America/Thule").zone(), 180, "2009-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("America/Thule").zone(), 180, "2009-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("America/Thule").zone(), 240, "2009-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2010-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2010-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2010-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2010-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2010-03-14T05:59:59+00:00").tz("America/Thule").zone(), 240, "2010-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("America/Thule").zone(), 180, "2010-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("America/Thule").zone(), 180, "2010-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("America/Thule").zone(), 240, "2010-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2011-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2011-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2011-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2011-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2011-03-13T05:59:59+00:00").tz("America/Thule").zone(), 240, "2011-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("America/Thule").zone(), 180, "2011-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("America/Thule").zone(), 180, "2011-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("America/Thule").zone(), 240, "2011-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2012-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2012-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2012-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2012-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2012-03-11T05:59:59+00:00").tz("America/Thule").zone(), 240, "2012-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("America/Thule").zone(), 180, "2012-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("America/Thule").zone(), 180, "2012-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("America/Thule").zone(), 240, "2012-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2013-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2013-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2013-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2013-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2013-03-10T05:59:59+00:00").tz("America/Thule").zone(), 240, "2013-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("America/Thule").zone(), 180, "2013-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("America/Thule").zone(), 180, "2013-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("America/Thule").zone(), 240, "2013-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2014-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2014-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2014-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2014-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2014-03-09T05:59:59+00:00").tz("America/Thule").zone(), 240, "2014-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("America/Thule").zone(), 180, "2014-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("America/Thule").zone(), 180, "2014-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("America/Thule").zone(), 240, "2014-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2015-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2015-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2015-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2015-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2015-03-08T05:59:59+00:00").tz("America/Thule").zone(), 240, "2015-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("America/Thule").zone(), 180, "2015-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("America/Thule").zone(), 180, "2015-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("America/Thule").zone(), 240, "2015-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2016-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2016-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2016-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2016-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2016-03-13T05:59:59+00:00").tz("America/Thule").zone(), 240, "2016-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("America/Thule").zone(), 180, "2016-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("America/Thule").zone(), 180, "2016-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("America/Thule").zone(), 240, "2016-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2017-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2017-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2017-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2017-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2017-03-12T05:59:59+00:00").tz("America/Thule").zone(), 240, "2017-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("America/Thule").zone(), 180, "2017-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("America/Thule").zone(), 180, "2017-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("America/Thule").zone(), 240, "2017-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2018-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2018-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2018-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2018-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2018-03-11T05:59:59+00:00").tz("America/Thule").zone(), 240, "2018-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("America/Thule").zone(), 180, "2018-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("America/Thule").zone(), 180, "2018-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("America/Thule").zone(), 240, "2018-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2019-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2019-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2019-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2019-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2019-03-10T05:59:59+00:00").tz("America/Thule").zone(), 240, "2019-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("America/Thule").zone(), 180, "2019-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("America/Thule").zone(), 180, "2019-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("America/Thule").zone(), 240, "2019-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2020-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2020-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2020-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2020-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2020-03-08T05:59:59+00:00").tz("America/Thule").zone(), 240, "2020-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("America/Thule").zone(), 180, "2020-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("America/Thule").zone(), 180, "2020-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("America/Thule").zone(), 240, "2020-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2021-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2021-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2021-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2021-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2021-03-14T05:59:59+00:00").tz("America/Thule").zone(), 240, "2021-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("America/Thule").zone(), 180, "2021-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("America/Thule").zone(), 180, "2021-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("America/Thule").zone(), 240, "2021-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2022-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2022-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2022-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2022-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2022-03-13T05:59:59+00:00").tz("America/Thule").zone(), 240, "2022-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("America/Thule").zone(), 180, "2022-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("America/Thule").zone(), 180, "2022-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("America/Thule").zone(), 240, "2022-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2023-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2023-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2023-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2023-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2023-03-12T05:59:59+00:00").tz("America/Thule").zone(), 240, "2023-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("America/Thule").zone(), 180, "2023-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("America/Thule").zone(), 180, "2023-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("America/Thule").zone(), 240, "2023-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2024-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2024-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2024-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2024-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2024-03-10T05:59:59+00:00").tz("America/Thule").zone(), 240, "2024-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("America/Thule").zone(), 180, "2024-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("America/Thule").zone(), 180, "2024-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("America/Thule").zone(), 240, "2024-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2025-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2025-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2025-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2025-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2025-03-09T05:59:59+00:00").tz("America/Thule").zone(), 240, "2025-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("America/Thule").zone(), 180, "2025-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("America/Thule").zone(), 180, "2025-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("America/Thule").zone(), 240, "2025-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2026-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2026-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2026-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2026-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2026-03-08T05:59:59+00:00").tz("America/Thule").zone(), 240, "2026-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("America/Thule").zone(), 180, "2026-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("America/Thule").zone(), 180, "2026-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("America/Thule").zone(), 240, "2026-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2027-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2027-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2027-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2027-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2027-03-14T05:59:59+00:00").tz("America/Thule").zone(), 240, "2027-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("America/Thule").zone(), 180, "2027-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("America/Thule").zone(), 180, "2027-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("America/Thule").zone(), 240, "2027-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2028-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2028-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2028-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2028-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2028-03-12T05:59:59+00:00").tz("America/Thule").zone(), 240, "2028-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("America/Thule").zone(), 180, "2028-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("America/Thule").zone(), 180, "2028-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("America/Thule").zone(), 240, "2028-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2029-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2029-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2029-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2029-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2029-03-11T05:59:59+00:00").tz("America/Thule").zone(), 240, "2029-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("America/Thule").zone(), 180, "2029-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("America/Thule").zone(), 180, "2029-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("America/Thule").zone(), 240, "2029-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2030-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2030-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2030-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2030-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2030-03-10T05:59:59+00:00").tz("America/Thule").zone(), 240, "2030-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("America/Thule").zone(), 180, "2030-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("America/Thule").zone(), 180, "2030-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("America/Thule").zone(), 240, "2030-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2031-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2031-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2031-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2031-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2031-03-09T05:59:59+00:00").tz("America/Thule").zone(), 240, "2031-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("America/Thule").zone(), 180, "2031-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("America/Thule").zone(), 180, "2031-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("America/Thule").zone(), 240, "2031-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2032-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2032-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2032-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2032-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2032-03-14T05:59:59+00:00").tz("America/Thule").zone(), 240, "2032-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("America/Thule").zone(), 180, "2032-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("America/Thule").zone(), 180, "2032-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("America/Thule").zone(), 240, "2032-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2033-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2033-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2033-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2033-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2033-03-13T05:59:59+00:00").tz("America/Thule").zone(), 240, "2033-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("America/Thule").zone(), 180, "2033-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("America/Thule").zone(), 180, "2033-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("America/Thule").zone(), 240, "2033-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2034-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2034-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2034-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2034-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2034-03-12T05:59:59+00:00").tz("America/Thule").zone(), 240, "2034-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("America/Thule").zone(), 180, "2034-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("America/Thule").zone(), 180, "2034-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("America/Thule").zone(), 240, "2034-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2035-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2035-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2035-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2035-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2035-03-11T05:59:59+00:00").tz("America/Thule").zone(), 240, "2035-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("America/Thule").zone(), 180, "2035-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("America/Thule").zone(), 180, "2035-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("America/Thule").zone(), 240, "2035-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2036-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2036-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2036-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2036-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2036-03-09T05:59:59+00:00").tz("America/Thule").zone(), 240, "2036-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("America/Thule").zone(), 180, "2036-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("America/Thule").zone(), 180, "2036-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("America/Thule").zone(), 240, "2036-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2037-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "03:00:00", "2037-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Thule").format("HH:mm:ss"), "01:59:59", "2037-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Thule").format("HH:mm:ss"), "01:00:00", "2037-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2037-03-08T05:59:59+00:00").tz("America/Thule").zone(), 240, "2037-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("America/Thule").zone(), 180, "2037-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("America/Thule").zone(), 180, "2037-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("America/Thule").zone(), 240, "2037-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/thunder_bay.js b/tests/america/thunder_bay.js deleted file mode 100644 index 808f6cc8..00000000 --- a/tests/america/thunder_bay.js +++ /dev/null @@ -1,976 +0,0 @@ -var moment = require("../../index"); - -exports["America/Thunder_Bay"] = { - - "1910" : function (t) { - t.equal(moment("1910-01-01T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "23:59:59", "1910-01-01T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1910-01-01T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1910-01-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1910-01-01T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 360, "1910-01-01T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1910-01-01T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1910-01-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1942-02-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1942-02-09T07:00:00+00:00 should be 03:00:00 EWT"); - - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1942-02-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1942-02-09T07:00:00+00:00 should be 240 minutes offset in EWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "18:59:59", "1945-08-14T22:59:59+00:00 should be 18:59:59 EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "19:00:00", "1945-08-14T23:00:00+00:00 should be 19:00:00 EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1945-09-30T05:59:59+00:00 should be 01:59:59 EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1945-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1945-08-14T22:59:59+00:00 should be 240 minutes offset in EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1945-08-14T23:00:00+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1945-09-30T05:59:59+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1945-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1974-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1974-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1974-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1974-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1975-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1975-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1975-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1975-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/tijuana.js b/tests/america/tijuana.js deleted file mode 100644 index f4057dd7..00000000 --- a/tests/america/tijuana.js +++ /dev/null @@ -1,1068 +0,0 @@ -var moment = require("../../index"); - -exports["America/Tijuana"] = { - - "1922" : function (t) { - t.equal(moment("1922-01-01T07:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "00:11:55", "1922-01-01T07:59:59+00:00 should be 00:11:55 LMT"); - t.equal(moment("1922-01-01T08:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1922-01-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1922-01-01T07:59:59+00:00").tz("America/Tijuana").zone(), 28084 / 60, "1922-01-01T07:59:59+00:00 should be 28084 / 60 minutes offset in LMT"); - t.equal(moment("1922-01-01T08:00:00+00:00").tz("America/Tijuana").zone(), 420, "1922-01-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-01-01T06:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:59:59", "1924-01-01T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1924-01-01T07:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:00:00", "1924-01-01T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1924-01-01T06:59:59+00:00").tz("America/Tijuana").zone(), 420, "1924-01-01T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1924-01-01T07:00:00+00:00").tz("America/Tijuana").zone(), 480, "1924-01-01T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-06-11T06:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "22:59:59", "1927-06-11T06:59:59+00:00 should be 22:59:59 PST"); - t.equal(moment("1927-06-11T07:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "00:00:00", "1927-06-11T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1927-06-11T06:59:59+00:00").tz("America/Tijuana").zone(), 480, "1927-06-11T06:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1927-06-11T07:00:00+00:00").tz("America/Tijuana").zone(), 420, "1927-06-11T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-11-15T06:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:59:59", "1930-11-15T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1930-11-15T07:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:00:00", "1930-11-15T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1930-11-15T06:59:59+00:00").tz("America/Tijuana").zone(), 420, "1930-11-15T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1930-11-15T07:00:00+00:00").tz("America/Tijuana").zone(), 480, "1930-11-15T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-01T07:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:59:59", "1931-04-01T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1931-04-01T08:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1931-04-01T08:00:00+00:00 should be 01:00:00 PDT"); - t.equal(moment("1931-09-30T06:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:59:59", "1931-09-30T06:59:59+00:00 should be 23:59:59 PDT"); - t.equal(moment("1931-09-30T07:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:00:00", "1931-09-30T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1931-04-01T07:59:59+00:00").tz("America/Tijuana").zone(), 480, "1931-04-01T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1931-04-01T08:00:00+00:00").tz("America/Tijuana").zone(), 420, "1931-04-01T08:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1931-09-30T06:59:59+00:00").tz("America/Tijuana").zone(), 420, "1931-09-30T06:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1931-09-30T07:00:00+00:00").tz("America/Tijuana").zone(), 480, "1931-09-30T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-24T07:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:59:59", "1942-04-24T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1942-04-24T08:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1942-04-24T08:00:00+00:00 should be 01:00:00 PWT"); - - t.equal(moment("1942-04-24T07:59:59+00:00").tz("America/Tijuana").zone(), 480, "1942-04-24T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1942-04-24T08:00:00+00:00").tz("America/Tijuana").zone(), 420, "1942-04-24T08:00:00+00:00 should be 420 minutes offset in PWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "15:59:59", "1945-08-14T22:59:59+00:00 should be 15:59:59 PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "16:00:00", "1945-08-14T23:00:00+00:00 should be 16:00:00 PPT"); - t.equal(moment("1945-11-12T06:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:59:59", "1945-11-12T06:59:59+00:00 should be 23:59:59 PPT"); - t.equal(moment("1945-11-12T07:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:00:00", "1945-11-12T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Tijuana").zone(), 420, "1945-08-14T22:59:59+00:00 should be 420 minutes offset in PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Tijuana").zone(), 420, "1945-08-14T23:00:00+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-11-12T06:59:59+00:00").tz("America/Tijuana").zone(), 420, "1945-11-12T06:59:59+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-11-12T07:00:00+00:00").tz("America/Tijuana").zone(), 480, "1945-11-12T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-05T07:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:59:59", "1948-04-05T07:59:59+00:00 should be 23:59:59 PST"); - t.equal(moment("1948-04-05T08:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1948-04-05T08:00:00+00:00 should be 01:00:00 PDT"); - - t.equal(moment("1948-04-05T07:59:59+00:00").tz("America/Tijuana").zone(), 480, "1948-04-05T07:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1948-04-05T08:00:00+00:00").tz("America/Tijuana").zone(), 420, "1948-04-05T08:00:00+00:00 should be 420 minutes offset in PDT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:59:59", "1949-01-14T06:59:59+00:00 should be 23:59:59 PDT"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "23:00:00", "1949-01-14T07:00:00+00:00 should be 23:00:00 PST"); - - t.equal(moment("1949-01-14T06:59:59+00:00").tz("America/Tijuana").zone(), 420, "1949-01-14T06:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1949-01-14T07:00:00+00:00").tz("America/Tijuana").zone(), 480, "1949-01-14T07:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1954-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1954-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1954-09-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1954-09-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1954-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1954-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1954-09-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1954-09-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1955-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1955-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1955-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1955-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1955-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1955-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1955-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1955-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1956-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1956-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1956-09-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1956-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1956-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1956-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1956-09-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1956-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1957-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1957-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1957-09-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1957-09-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1957-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1957-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1957-09-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1957-09-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1958-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1958-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1958-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1958-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1958-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1958-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1958-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1958-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1959-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1959-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1959-09-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1959-09-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1959-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1959-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1959-09-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1959-09-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1960-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1960-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1960-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1960-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1960-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1960-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1960-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1960-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1976-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1976-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1976-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1976-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1976-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1976-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1976-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1976-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1977-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1977-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1977-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1977-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1977-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1977-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1977-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1977-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1978-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1978-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1978-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1978-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1978-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1978-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1978-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1978-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1979-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1979-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1979-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1979-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1979-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1979-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1979-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1979-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1980-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1980-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1980-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1980-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1980-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1980-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1983-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1983-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1984-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1984-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1984-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1984-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1984-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1984-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1984-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1984-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1985-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1985-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1985-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1985-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1985-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1985-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1985-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1985-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1986-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1986-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1986-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1986-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1986-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1986-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1986-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1986-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1987-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1987-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1987-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1987-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1987-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1987-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1987-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1987-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1988-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1988-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1988-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1988-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1988-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1988-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1988-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1988-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1989-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1989-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1989-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1989-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1989-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1989-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1989-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1989-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1990-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1990-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1990-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1990-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1990-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1990-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1990-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1990-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1991-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1991-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1991-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1991-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1991-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1991-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1991-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1991-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1992-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1992-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1992-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1992-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1992-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1992-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1992-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1992-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1993-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1993-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1993-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1993-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1993-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1993-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1993-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1993-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1994-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1994-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1994-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1994-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1994-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1994-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1994-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1994-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1995-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1995-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1995-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1995-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1995-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1995-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1995-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1995-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1996-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1996-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1996-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1996-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1996-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1996-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1996-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1996-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1997-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1997-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1997-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1997-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1997-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1997-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1997-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1997-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1998-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1998-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1998-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1998-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1998-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1998-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1998-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1998-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1999-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "1999-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "1999-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "1999-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "1999-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "1999-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "1999-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "1999-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2000-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2000-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2000-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2000-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2000-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2000-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2000-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2000-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2001-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2001-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2001-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2001-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2001-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2001-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2001-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2001-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2002-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2002-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2002-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2002-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2002-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2002-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2002-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2002-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2003-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2003-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2003-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2003-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2003-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2003-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2003-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2003-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2004-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2004-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2004-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2004-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2004-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2004-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2004-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2004-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2005-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2005-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2005-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2005-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2005-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2005-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2005-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2005-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2006-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2006-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2006-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2006-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2006-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2006-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2006-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2006-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-01T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2007-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2007-04-01T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2007-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2007-10-28T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2007-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2007-10-28T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2007-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2007-04-01T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2007-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2007-04-01T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2007-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-10-28T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2007-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-10-28T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2007-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-06T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2008-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2008-04-06T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2008-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2008-10-26T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2008-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2008-10-26T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2008-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2008-04-06T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2008-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2008-04-06T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2008-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-10-26T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2008-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-10-26T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2008-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-05T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2009-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2009-04-05T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2009-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2009-10-25T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2009-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2009-10-25T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2009-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2009-04-05T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2009-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2009-04-05T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2009-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-10-25T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2009-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-10-25T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2009-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2010-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2010-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2010-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2010-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2010-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2010-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2010-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2010-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2011-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2011-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2011-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2011-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2011-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2011-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2011-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2011-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2012-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2012-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2012-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2012-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2012-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2012-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2012-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2012-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2013-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2013-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2013-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2013-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2013-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2013-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2013-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2013-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2014-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2014-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2014-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2014-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2014-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2014-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2014-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2014-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2015-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2015-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2015-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2015-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2015-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2015-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2015-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2015-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2016-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2016-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2016-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2016-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2016-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2016-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2016-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2016-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2017-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2017-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2017-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2017-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2017-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2017-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2017-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2017-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2018-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2018-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2018-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2018-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2018-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2018-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2018-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2018-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2019-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2019-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2019-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2019-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2019-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2019-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2019-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2019-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2020-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2020-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2020-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2020-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2020-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2020-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2020-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2020-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2021-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2021-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2021-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2021-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2021-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2021-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2021-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2021-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2022-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2022-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2022-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2022-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2022-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2022-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2022-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2022-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2023-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2023-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2023-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2023-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2023-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2023-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2023-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2023-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2024-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2024-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2024-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2024-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2024-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2024-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2024-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2024-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2025-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2025-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2025-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2025-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2025-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2025-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2025-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2025-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2026-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2026-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2026-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2026-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2026-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2026-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2026-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2026-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2027-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2027-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2027-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2027-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2027-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2027-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2027-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2027-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2028-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2028-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2028-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2028-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2028-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2028-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2028-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2028-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2029-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2029-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2029-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2029-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2029-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2029-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2029-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2029-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2030-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2030-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2030-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2030-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2030-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2030-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2030-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2030-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2031-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2031-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2031-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2031-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2031-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2031-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2031-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2031-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2032-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2032-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2032-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2032-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2032-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2032-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2032-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2032-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2033-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2033-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2033-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2033-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2033-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2033-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2033-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2033-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2034-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2034-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2034-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2034-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2034-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2034-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2034-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2034-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2035-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2035-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2035-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2035-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2035-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2035-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2035-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2035-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2036-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2036-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2036-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2036-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2036-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2036-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2036-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2036-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2037-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "03:00:00", "2037-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:59:59", "2037-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Tijuana").format("HH:mm:ss"), "01:00:00", "2037-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Tijuana").zone(), 480, "2037-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Tijuana").zone(), 420, "2037-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Tijuana").zone(), 420, "2037-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Tijuana").zone(), 480, "2037-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/toronto.js b/tests/america/toronto.js deleted file mode 100644 index 4c42de7a..00000000 --- a/tests/america/toronto.js +++ /dev/null @@ -1,1634 +0,0 @@ -var moment = require("../../index"); - -exports["America/Toronto"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1918-04-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1918-04-14T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1918-04-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1918-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1918-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1918-04-14T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1918-04-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1918-04-14T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1918-04-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1918-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1918-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-31T04:29:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:29:59", "1919-03-31T04:29:59+00:00 should be 23:29:59 EST"); - t.equal(moment("1919-03-31T04:30:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "00:30:00", "1919-03-31T04:30:00+00:00 should be 00:30:00 EDT"); - t.equal(moment("1919-10-26T03:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:59:59", "1919-10-26T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1919-10-26T04:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:00:00", "1919-10-26T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1919-03-31T04:29:59+00:00").tz("America/Toronto").zone(), 300, "1919-03-31T04:29:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1919-03-31T04:30:00+00:00").tz("America/Toronto").zone(), 240, "1919-03-31T04:30:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1919-10-26T03:59:59+00:00").tz("America/Toronto").zone(), 240, "1919-10-26T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1919-10-26T04:00:00+00:00").tz("America/Toronto").zone(), 300, "1919-10-26T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-05-02T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1920-05-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1920-05-02T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1920-05-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1920-09-26T03:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:59:59", "1920-09-26T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1920-09-26T04:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:00:00", "1920-09-26T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1920-05-02T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1920-05-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1920-05-02T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1920-05-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1920-09-26T03:59:59+00:00").tz("America/Toronto").zone(), 240, "1920-09-26T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1920-09-26T04:00:00+00:00").tz("America/Toronto").zone(), 300, "1920-09-26T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-05-15T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1921-05-15T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1921-05-15T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1921-05-15T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1921-09-15T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1921-09-15T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1921-09-15T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1921-09-15T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1921-05-15T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1921-05-15T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1921-05-15T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1921-05-15T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1921-09-15T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1921-09-15T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1921-09-15T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1921-09-15T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-05-14T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1922-05-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1922-05-14T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1922-05-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1922-09-17T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1922-09-17T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1922-09-17T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1922-09-17T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1922-05-14T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1922-05-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1922-05-14T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1922-05-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1922-09-17T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1922-09-17T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1922-09-17T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1922-09-17T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-05-13T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1923-05-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1923-05-13T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1923-05-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1923-09-16T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1923-09-16T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1923-09-16T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1923-09-16T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1923-05-13T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1923-05-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1923-05-13T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1923-05-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1923-09-16T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1923-09-16T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1923-09-16T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1923-09-16T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-05-04T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1924-05-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1924-05-04T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1924-05-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1924-09-21T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1924-09-21T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1924-09-21T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1924-09-21T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1924-05-04T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1924-05-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1924-05-04T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1924-05-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1924-09-21T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1924-09-21T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1924-09-21T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1924-09-21T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-05-03T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1925-05-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1925-05-03T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1925-05-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1925-09-20T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1925-09-20T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1925-09-20T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1925-09-20T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1925-05-03T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1925-05-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1925-05-03T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1925-05-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1925-09-20T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1925-09-20T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1925-09-20T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1925-09-20T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-05-02T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1926-05-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1926-05-02T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1926-05-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1926-09-19T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1926-09-19T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1926-09-19T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1926-09-19T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1926-05-02T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1926-05-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1926-05-02T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1926-05-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1926-09-19T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1926-09-19T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1926-09-19T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1926-09-19T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-05-01T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1927-05-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1927-05-01T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1927-05-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1927-09-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1927-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1927-09-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1927-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1927-05-01T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1927-05-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1927-05-01T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1927-05-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1927-09-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1927-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1927-09-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1927-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-29T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1928-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1928-04-29T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1928-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1928-09-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1928-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1928-09-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1928-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1928-04-29T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1928-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1928-04-29T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1928-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1928-09-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1928-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1928-09-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1928-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-28T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1929-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1929-04-28T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1929-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1929-09-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1929-09-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1929-09-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1929-09-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1929-04-28T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1929-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1929-04-28T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1929-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1929-09-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1929-09-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1929-09-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1929-09-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-27T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1930-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1930-04-27T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1930-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1930-09-28T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1930-09-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1930-09-28T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1930-09-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1930-04-27T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1930-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1930-04-27T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1930-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1930-09-28T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1930-09-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1930-09-28T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1930-09-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-26T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1931-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1931-04-26T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1931-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1931-09-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1931-09-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1931-09-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1931-09-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1931-04-26T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1931-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1931-04-26T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1931-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1931-09-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1931-09-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1931-09-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1931-09-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-05-01T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1932-05-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1932-05-01T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1932-05-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1932-09-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1932-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1932-09-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1932-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1932-05-01T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1932-05-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1932-05-01T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1932-05-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1932-09-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1932-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1932-09-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1932-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-30T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1933-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1933-04-30T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1933-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1933-10-01T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1933-10-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1933-10-01T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1933-10-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1933-04-30T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1933-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1933-04-30T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1933-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1933-10-01T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1933-10-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1933-10-01T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1933-10-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-29T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1934-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1934-04-29T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1934-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1934-09-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1934-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1934-09-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1934-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1934-04-29T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1934-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1934-04-29T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1934-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1934-09-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1934-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1934-09-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1934-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-28T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1935-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1935-04-28T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1935-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1935-09-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1935-09-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1935-09-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1935-09-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1935-04-28T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1935-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1935-04-28T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1935-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1935-09-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1935-09-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1935-09-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1935-09-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-26T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1936-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1936-04-26T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1936-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1936-09-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1936-09-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1936-09-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1936-09-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1936-04-26T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1936-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1936-04-26T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1936-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1936-09-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1936-09-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1936-09-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1936-09-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-25T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1937-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1937-04-25T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1937-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1937-09-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1937-09-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1937-09-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1937-09-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1937-04-25T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1937-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1937-04-25T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1937-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1937-09-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1937-09-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1937-09-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1937-09-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-24T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1938-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1938-04-24T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1938-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1938-09-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1938-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1938-09-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1938-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1938-04-24T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1938-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1938-04-24T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1938-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1938-09-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1938-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1938-09-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1938-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-30T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1939-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1939-04-30T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1939-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1939-09-24T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1939-09-24T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1939-09-24T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1939-09-24T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1939-04-30T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1939-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1939-04-30T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1939-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1939-09-24T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1939-09-24T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1939-09-24T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1939-09-24T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-28T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1940-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1940-04-28T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1940-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - - t.equal(moment("1940-04-28T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1940-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1940-04-28T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1940-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "02:59:59", "1942-02-09T06:59:59+00:00 should be 02:59:59 EDT"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1942-02-09T07:00:00+00:00 should be 03:00:00 EWT"); - - t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Toronto").zone(), 240, "1942-02-09T06:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1942-02-09T07:00:00+00:00 should be 240 minutes offset in EWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "18:59:59", "1945-08-14T22:59:59+00:00 should be 18:59:59 EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "19:00:00", "1945-08-14T23:00:00+00:00 should be 19:00:00 EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1945-09-30T05:59:59+00:00 should be 01:59:59 EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1945-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Toronto").zone(), 240, "1945-08-14T22:59:59+00:00 should be 240 minutes offset in EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Toronto").zone(), 240, "1945-08-14T23:00:00+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1945-09-30T05:59:59+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1945-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1946-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1946-04-28T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1946-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1946-09-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1946-09-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1946-09-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1946-09-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1946-04-28T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1946-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1946-04-28T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1946-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1946-09-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1946-09-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1946-09-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1946-09-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T04:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:59:59", "1947-04-27T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1947-04-27T05:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1947-04-27T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1947-09-28T03:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:59:59", "1947-09-28T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1947-09-28T04:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:00:00", "1947-09-28T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1947-04-27T04:59:59+00:00").tz("America/Toronto").zone(), 300, "1947-04-27T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1947-04-27T05:00:00+00:00").tz("America/Toronto").zone(), 240, "1947-04-27T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1947-09-28T03:59:59+00:00").tz("America/Toronto").zone(), 240, "1947-09-28T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1947-09-28T04:00:00+00:00").tz("America/Toronto").zone(), 300, "1947-09-28T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T04:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:59:59", "1948-04-25T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1948-04-25T05:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1948-04-25T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1948-09-26T03:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:59:59", "1948-09-26T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1948-09-26T04:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:00:00", "1948-09-26T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1948-04-25T04:59:59+00:00").tz("America/Toronto").zone(), 300, "1948-04-25T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1948-04-25T05:00:00+00:00").tz("America/Toronto").zone(), 240, "1948-04-25T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1948-09-26T03:59:59+00:00").tz("America/Toronto").zone(), 240, "1948-09-26T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1948-09-26T04:00:00+00:00").tz("America/Toronto").zone(), 300, "1948-09-26T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T04:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:59:59", "1949-04-24T04:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1949-04-24T05:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1949-04-24T05:00:00+00:00 should be 01:00:00 EDT"); - t.equal(moment("1949-11-27T03:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:59:59", "1949-11-27T03:59:59+00:00 should be 23:59:59 EDT"); - t.equal(moment("1949-11-27T04:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "23:00:00", "1949-11-27T04:00:00+00:00 should be 23:00:00 EST"); - - t.equal(moment("1949-04-24T04:59:59+00:00").tz("America/Toronto").zone(), 300, "1949-04-24T04:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1949-04-24T05:00:00+00:00").tz("America/Toronto").zone(), 240, "1949-04-24T05:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1949-11-27T03:59:59+00:00").tz("America/Toronto").zone(), 240, "1949-11-27T03:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1949-11-27T04:00:00+00:00").tz("America/Toronto").zone(), 300, "1949-11-27T04:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1950-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1950-04-30T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1950-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1950-11-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1950-11-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1950-11-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1950-11-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1950-04-30T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1950-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1950-04-30T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1950-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1950-11-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1950-11-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1950-11-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1950-11-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1951-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1951-04-29T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1951-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1951-09-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1951-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1951-09-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1951-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1951-04-29T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1951-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1951-04-29T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1951-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1951-09-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1951-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1951-09-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1951-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1952-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1952-04-27T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1952-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1952-09-28T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1952-09-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1952-09-28T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1952-09-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1952-04-27T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1952-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1952-04-27T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1952-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1952-09-28T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1952-09-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1952-09-28T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1952-09-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1953-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1953-04-26T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1953-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1953-09-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1953-09-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1953-09-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1953-09-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1953-04-26T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1953-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1953-04-26T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1953-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1953-09-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1953-09-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1953-09-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1953-09-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1954-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1954-04-25T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1954-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1954-09-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1954-09-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1954-09-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1954-09-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1954-04-25T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1954-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1954-04-25T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1954-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1954-09-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1954-09-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1954-09-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1954-09-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1955-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1955-04-24T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1955-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1955-09-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1955-09-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1955-09-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1955-09-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1955-04-24T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1955-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1955-04-24T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1955-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1955-09-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1955-09-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1955-09-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1955-09-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1956-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1956-04-29T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1956-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1956-09-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1956-09-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1956-09-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1956-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1956-04-29T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1956-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1956-04-29T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1956-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1956-09-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1956-09-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1956-09-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1956-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1957-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1957-04-28T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1957-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1957-10-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1957-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1957-10-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1957-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1957-04-28T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1957-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1957-04-28T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1957-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1957-10-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1957-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1957-10-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1957-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1958-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1958-04-27T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1958-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1958-10-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1958-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1958-10-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1958-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1958-04-27T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1958-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1958-04-27T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1958-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1958-10-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1958-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1958-10-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1958-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1959-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1959-04-26T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1959-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1959-10-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1959-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1959-10-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1959-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1959-04-26T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1959-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1959-04-26T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1959-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1959-10-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1959-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1959-10-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1959-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1960-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1960-04-24T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1960-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1960-10-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1960-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1960-10-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1960-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1960-04-24T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1960-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1960-04-24T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1960-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1960-10-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1960-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1960-10-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1960-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1961-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1961-04-30T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1961-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1961-10-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1961-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1961-10-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1961-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1961-04-30T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1961-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1961-04-30T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1961-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1961-10-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1961-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1961-10-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1961-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1962-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1962-04-29T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1962-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1962-10-28T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1962-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1962-10-28T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1962-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1962-04-29T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1962-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1962-04-29T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1962-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1962-10-28T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1962-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1962-10-28T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1962-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1963-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1963-04-28T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1963-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1963-10-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1963-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1963-10-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1963-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1963-04-28T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1963-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1963-04-28T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1963-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1963-10-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1963-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1963-10-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1963-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1964-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1964-04-26T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1964-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1964-10-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1964-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1964-10-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1964-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1964-04-26T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1964-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1964-04-26T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1964-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1964-10-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1964-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1964-10-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1964-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1965-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1965-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1965-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1965-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1965-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1965-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1965-10-31T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1965-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1965-10-31T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1965-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1966-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1966-04-24T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1966-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1966-10-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1966-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1966-10-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1966-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1966-04-24T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1966-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1966-04-24T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1966-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1966-10-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1966-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1966-10-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1966-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1967-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1967-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1967-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1967-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1967-04-30T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1967-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1967-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1967-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1967-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1968-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1968-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1968-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1968-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1968-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1968-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1968-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1968-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1973-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1973-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1973-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1973-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1973-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1973-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1974-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1974-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1974-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1974-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1975-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1975-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1975-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1975-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Toronto").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Toronto").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Toronto").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Toronto").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Toronto").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("America/Toronto").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("America/Toronto").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("America/Toronto").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("America/Toronto").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/tortola.js b/tests/america/tortola.js deleted file mode 100644 index a8e79476..00000000 --- a/tests/america/tortola.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["America/Tortola"] = { - - "1911" : function (t) { - t.equal(moment("1911-07-01T04:18:27+00:00").tz("America/Tortola").format("HH:mm:ss"), "23:59:59", "1911-07-01T04:18:27+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-07-01T04:18:28+00:00").tz("America/Tortola").format("HH:mm:ss"), "00:18:28", "1911-07-01T04:18:28+00:00 should be 00:18:28 AST"); - - t.equal(moment("1911-07-01T04:18:27+00:00").tz("America/Tortola").zone(), 15508 / 60, "1911-07-01T04:18:27+00:00 should be 15508 / 60 minutes offset in LMT"); - t.equal(moment("1911-07-01T04:18:28+00:00").tz("America/Tortola").zone(), 240, "1911-07-01T04:18:28+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/vancouver.js b/tests/america/vancouver.js deleted file mode 100644 index 82014d57..00000000 --- a/tests/america/vancouver.js +++ /dev/null @@ -1,1330 +0,0 @@ -var moment = require("../../index"); - -exports["America/Vancouver"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1918-04-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1918-04-14T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1918-04-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1918-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1918-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1918-04-14T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1918-04-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1918-04-14T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1918-04-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1918-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1918-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1942-02-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1942-02-09T10:00:00+00:00 should be 03:00:00 PWT"); - - t.equal(moment("1942-02-09T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1942-02-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1942-02-09T10:00:00+00:00 should be 420 minutes offset in PWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "15:59:59", "1945-08-14T22:59:59+00:00 should be 15:59:59 PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "16:00:00", "1945-08-14T23:00:00+00:00 should be 16:00:00 PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1945-09-30T08:59:59+00:00 should be 01:59:59 PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1945-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Vancouver").zone(), 420, "1945-08-14T22:59:59+00:00 should be 420 minutes offset in PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Vancouver").zone(), 420, "1945-08-14T23:00:00+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1945-09-30T08:59:59+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1945-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-28T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1946-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1946-04-28T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1946-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1946-10-13T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1946-10-13T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1946-10-13T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1946-10-13T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1946-04-28T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1946-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1946-04-28T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1946-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1946-10-13T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1946-10-13T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1946-10-13T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1946-10-13T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1947-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1947-04-27T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1947-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1947-09-28T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1947-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1947-09-28T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1947-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1947-04-27T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1947-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1947-04-27T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1947-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1947-09-28T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1947-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1947-09-28T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1947-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1948-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1948-04-25T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1948-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1948-09-26T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1948-09-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1948-09-26T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1948-09-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1948-04-25T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1948-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1948-04-25T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1948-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1948-09-26T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1948-09-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1948-09-26T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1948-09-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1949-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1949-04-24T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1949-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1949-09-25T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1949-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1949-09-25T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1949-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1949-04-24T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1949-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1949-04-24T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1949-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1949-09-25T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1949-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1949-09-25T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1949-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1950-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1950-04-30T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1950-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1950-09-24T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1950-09-24T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1950-09-24T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1950-09-24T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1950-04-30T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1950-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1950-04-30T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1950-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1950-09-24T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1950-09-24T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1950-09-24T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1950-09-24T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1951-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1951-04-29T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1951-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1951-09-30T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1951-09-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1951-09-30T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1951-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1951-04-29T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1951-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1951-04-29T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1951-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1951-09-30T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1951-09-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1951-09-30T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1951-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1952-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1952-04-27T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1952-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1952-09-28T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1952-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1952-09-28T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1952-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1952-04-27T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1952-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1952-04-27T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1952-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1952-09-28T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1952-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1952-09-28T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1952-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1953-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1953-04-26T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1953-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1953-09-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1953-09-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1953-09-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1953-09-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1953-04-26T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1953-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1953-04-26T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1953-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1953-09-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1953-09-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1953-09-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1953-09-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1954-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1954-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1954-09-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1954-09-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1954-04-25T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1954-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1954-04-25T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1954-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1954-09-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1954-09-26T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1954-09-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1955-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1955-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1955-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1955-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1955-04-24T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1955-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1955-04-24T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1955-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1955-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1955-09-25T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1955-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1956-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1956-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1956-09-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1956-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1956-04-29T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1956-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1956-04-29T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1956-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1956-09-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1956-09-30T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1956-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1957-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1957-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1957-09-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1957-09-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1957-04-28T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1957-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1957-04-28T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1957-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1957-09-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1957-09-29T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1957-09-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1958-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1958-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1958-09-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1958-09-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1958-04-27T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1958-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1958-04-27T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1958-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1958-09-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1958-09-28T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1958-09-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1959-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1959-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1959-09-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1959-09-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1959-04-26T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1959-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1959-04-26T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1959-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1959-09-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1959-09-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1959-09-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1960-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1960-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1960-09-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1960-09-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1960-04-24T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1960-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1960-04-24T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1960-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1960-09-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1960-09-25T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1960-09-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1961-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1961-04-30T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1961-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1961-09-24T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1961-09-24T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1961-09-24T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1961-09-24T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1961-04-30T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1961-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1961-04-30T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1961-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1961-09-24T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1961-09-24T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1961-09-24T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1961-09-24T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-29T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1962-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1962-04-29T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1962-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1962-10-28T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1962-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1962-10-28T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1962-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1962-04-29T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1962-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1962-04-29T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1962-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1962-10-28T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1962-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1962-10-28T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1962-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1963-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1963-04-28T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1963-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1963-10-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1963-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1963-10-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1963-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1963-04-28T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1963-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1963-04-28T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1963-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1963-10-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1963-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1963-10-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1963-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-26T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1964-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1964-04-26T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1964-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1964-10-25T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1964-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1964-10-25T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1964-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1964-04-26T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1964-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1964-04-26T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1964-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1964-10-25T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1964-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1964-10-25T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1964-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1965-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1965-04-25T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1965-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1965-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1965-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1965-04-25T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1965-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1965-04-25T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1965-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1965-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1965-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1966-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1966-04-24T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1966-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1966-10-30T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1966-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1966-10-30T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1966-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1966-04-24T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1966-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1966-04-24T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1966-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1966-10-30T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1966-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1966-10-30T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1966-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1967-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1967-04-30T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1967-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1967-10-29T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1967-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1967-10-29T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1967-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1967-04-30T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1967-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1967-04-30T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1967-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1967-10-29T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1967-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1967-10-29T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1967-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1968-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1968-04-28T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1968-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1968-10-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1968-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1968-10-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1968-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1968-04-28T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1968-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1968-04-28T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1968-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1968-10-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1968-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1968-10-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1968-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1969-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1969-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1969-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1969-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1969-04-27T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1969-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1969-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1969-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1969-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1970-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1970-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1970-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1970-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1970-04-26T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1970-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1970-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1970-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1970-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1971-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1971-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1971-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1971-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1971-04-25T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1971-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1971-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1971-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1971-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1972-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1972-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1972-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1972-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1972-04-30T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1972-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1972-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1972-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1972-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1973-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1973-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1973-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1973-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1973-04-29T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1973-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1973-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1973-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1973-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1974-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1974-04-28T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1974-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1974-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1974-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1974-04-28T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1974-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1974-04-28T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1974-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1974-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1974-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1975-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1975-04-27T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1975-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1975-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1975-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1975-04-27T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1975-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1975-04-27T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1975-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1975-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1975-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1976-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1976-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1976-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1976-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1976-04-25T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1976-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1976-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1976-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1976-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1977-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1977-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1977-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1977-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1977-04-24T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1977-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1977-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1977-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1977-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1978-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1978-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1978-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1978-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1978-04-30T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1978-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1978-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1978-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1978-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1979-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1979-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1979-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1979-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1979-04-29T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1979-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1979-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1979-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1979-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1980-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1980-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1980-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1980-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1980-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1980-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1983-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1983-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1984-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1984-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1984-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1984-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1984-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1984-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1984-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1984-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1985-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1985-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1985-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1985-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1985-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1985-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1985-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1985-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1986-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1986-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1986-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1986-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1986-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1986-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1986-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1986-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1987-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1987-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1987-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1987-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1987-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1987-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1987-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1987-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1988-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1988-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1988-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1988-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1988-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1988-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1988-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1988-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1989-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1989-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1989-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1989-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1989-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1989-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1989-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1989-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1990-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1990-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1990-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1990-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1990-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1990-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1990-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1990-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1991-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1991-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1991-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1991-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1991-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1991-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1991-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1991-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1992-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1992-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1992-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1992-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1992-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1992-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1992-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1992-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1993-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1993-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1993-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1993-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1993-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1993-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1993-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1993-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1994-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1994-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1994-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1994-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1994-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1994-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1994-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1994-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1995-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1995-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1995-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1995-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1995-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1995-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1995-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1995-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1996-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1996-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1996-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1996-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1996-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1996-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1996-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1996-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1997-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1997-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1997-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1997-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1997-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1997-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1997-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1997-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1998-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1998-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1998-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1998-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1998-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1998-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1998-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1998-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1999-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "1999-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "1999-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "1999-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "1999-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "1999-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "1999-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "1999-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2000-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2000-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2000-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2000-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2000-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2000-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2000-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2000-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2001-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2001-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2001-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2001-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2001-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2001-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2001-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2001-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2002-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2002-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2002-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2002-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2002-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2002-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2002-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2002-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2003-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2003-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2003-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2003-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2003-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2003-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2003-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2003-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2004-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2004-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2004-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2004-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2004-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2004-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2004-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2004-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2005-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2005-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2005-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2005-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2005-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2005-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2005-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2005-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2006-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2006-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2006-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2006-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2006-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2006-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2006-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2006-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2007-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2007-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2007-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2007-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2007-03-11T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2007-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2007-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2007-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2007-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2008-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2008-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2008-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2008-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2008-03-09T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2008-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2008-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2008-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2008-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2009-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2009-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2009-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2009-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2009-03-08T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2009-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2009-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2009-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2009-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2010-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2010-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2010-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2010-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2010-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2010-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2010-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2010-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2011-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2011-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2011-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2011-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2011-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2011-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2011-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2011-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2012-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2012-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2012-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2012-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2012-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2012-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2012-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2012-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2013-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2013-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2013-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2013-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2013-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2013-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2013-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2013-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2014-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2014-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2014-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2014-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2014-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2014-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2014-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2014-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2015-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2015-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2015-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2015-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2015-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2015-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2015-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2015-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2016-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2016-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2016-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2016-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2016-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2016-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2016-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2016-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2017-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2017-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2017-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2017-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2017-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2017-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2017-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2017-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2018-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2018-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2018-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2018-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2018-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2018-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2018-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2018-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2019-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2019-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2019-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2019-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2019-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2019-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2019-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2019-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2020-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2020-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2020-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2020-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2020-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2020-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2020-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2020-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2021-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2021-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2021-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2021-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2021-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2021-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2021-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2021-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2022-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2022-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2022-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2022-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2022-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2022-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2022-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2022-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2023-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2023-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2023-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2023-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2023-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2023-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2023-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2023-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2024-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2024-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2024-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2024-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2024-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2024-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2024-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2024-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2025-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2025-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2025-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2025-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2025-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2025-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2025-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2025-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2026-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2026-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2026-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2026-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2026-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2026-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2026-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2026-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2027-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2027-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2027-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2027-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2027-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2027-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2027-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2027-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2028-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2028-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2028-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2028-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2028-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2028-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2028-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2028-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2029-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2029-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2029-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2029-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2029-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2029-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2029-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2029-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2030-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2030-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2030-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2030-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2030-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2030-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2030-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2030-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2031-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2031-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2031-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2031-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2031-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2031-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2031-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2031-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2032-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2032-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2032-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2032-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2032-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2032-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2032-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2032-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2033-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2033-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2033-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2033-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2033-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2033-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2033-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2033-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2034-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2034-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2034-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2034-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2034-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2034-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2034-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2034-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2035-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2035-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2035-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2035-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2035-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2035-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2035-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2035-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2036-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2036-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2036-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2036-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2036-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2036-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2036-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2036-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2037-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "03:00:00", "2037-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:59:59", "2037-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Vancouver").format("HH:mm:ss"), "01:00:00", "2037-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Vancouver").zone(), 480, "2037-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Vancouver").zone(), 420, "2037-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Vancouver").zone(), 420, "2037-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Vancouver").zone(), 480, "2037-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/whitehorse.js b/tests/america/whitehorse.js deleted file mode 100644 index 46cc7a19..00000000 --- a/tests/america/whitehorse.js +++ /dev/null @@ -1,892 +0,0 @@ -var moment = require("../../index"); - -exports["America/Whitehorse"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-14T10:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1918-04-14T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1918-04-14T11:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1918-04-14T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1918-10-27T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1918-10-27T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1918-10-27T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1918-10-27T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1918-04-14T10:59:59+00:00").tz("America/Whitehorse").zone(), 540, "1918-04-14T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1918-04-14T11:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1918-04-14T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1918-10-27T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1918-10-27T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1918-10-27T10:00:00+00:00").tz("America/Whitehorse").zone(), 540, "1918-10-27T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-05-25T10:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1919-05-25T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1919-05-25T11:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1919-05-25T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1919-11-01T07:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "23:59:59", "1919-11-01T07:59:59+00:00 should be 23:59:59 YDT"); - t.equal(moment("1919-11-01T08:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "23:00:00", "1919-11-01T08:00:00+00:00 should be 23:00:00 YST"); - - t.equal(moment("1919-05-25T10:59:59+00:00").tz("America/Whitehorse").zone(), 540, "1919-05-25T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1919-05-25T11:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1919-05-25T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1919-11-01T07:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1919-11-01T07:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1919-11-01T08:00:00+00:00").tz("America/Whitehorse").zone(), 540, "1919-11-01T08:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T10:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1942-02-09T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1942-02-09T11:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1942-02-09T11:00:00+00:00 should be 03:00:00 YWT"); - - t.equal(moment("1942-02-09T10:59:59+00:00").tz("America/Whitehorse").zone(), 540, "1942-02-09T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1942-02-09T11:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1942-02-09T11:00:00+00:00 should be 480 minutes offset in YWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "14:59:59", "1945-08-14T22:59:59+00:00 should be 14:59:59 YWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "15:00:00", "1945-08-14T23:00:00+00:00 should be 15:00:00 YPT"); - t.equal(moment("1945-09-30T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1945-09-30T09:59:59+00:00 should be 01:59:59 YPT"); - t.equal(moment("1945-09-30T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1945-09-30T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1945-08-14T22:59:59+00:00 should be 480 minutes offset in YWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1945-08-14T23:00:00+00:00 should be 480 minutes offset in YPT"); - t.equal(moment("1945-09-30T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1945-09-30T09:59:59+00:00 should be 480 minutes offset in YPT"); - t.equal(moment("1945-09-30T10:00:00+00:00").tz("America/Whitehorse").zone(), 540, "1945-09-30T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "23:59:59", "1965-04-25T08:59:59+00:00 should be 23:59:59 YST"); - t.equal(moment("1965-04-25T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "02:00:00", "1965-04-25T09:00:00+00:00 should be 02:00:00 YDDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1965-10-31T08:59:59+00:00 should be 01:59:59 YDDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "00:00:00", "1965-10-31T09:00:00+00:00 should be 00:00:00 YST"); - - t.equal(moment("1965-04-25T08:59:59+00:00").tz("America/Whitehorse").zone(), 540, "1965-04-25T08:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1965-04-25T09:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1965-04-25T09:00:00+00:00 should be 420 minutes offset in YDDT"); - t.equal(moment("1965-10-31T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1965-10-31T08:59:59+00:00 should be 420 minutes offset in YDDT"); - t.equal(moment("1965-10-31T09:00:00+00:00").tz("America/Whitehorse").zone(), 540, "1965-10-31T09:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-07-01T10:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1966-07-01T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1966-07-01T11:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1966-07-01T11:00:00+00:00 should be 03:00:00 PST"); - - t.equal(moment("1966-07-01T10:59:59+00:00").tz("America/Whitehorse").zone(), 540, "1966-07-01T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1966-07-01T11:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1966-07-01T11:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1980-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1980-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1980-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1980-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1980-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1980-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1983-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1983-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1984-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1984-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1984-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1984-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1984-04-29T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1984-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1984-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1984-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1984-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1985-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1985-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1985-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1985-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1985-04-28T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1985-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1985-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1985-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1985-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1986-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1986-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1986-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1986-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1986-04-27T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1986-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1986-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1986-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1986-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1987-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1987-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1987-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1987-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1987-04-05T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1987-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1987-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1987-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1987-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1988-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1988-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1988-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1988-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1988-04-03T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1988-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1988-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1988-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1988-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1989-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1989-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1989-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1989-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1989-04-02T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1989-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1989-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1989-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1989-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1990-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1990-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1990-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1990-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1990-04-01T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1990-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1990-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1990-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1990-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1991-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1991-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1991-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1991-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1991-04-07T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1991-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1991-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1991-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1991-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1992-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1992-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1992-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1992-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1992-04-05T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1992-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1992-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1992-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1992-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1993-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1993-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1993-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1993-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1993-04-04T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1993-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1993-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1993-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1993-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1994-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1994-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1994-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1994-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1994-04-03T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1994-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1994-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1994-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1994-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1995-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1995-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1995-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1995-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1995-04-02T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1995-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1995-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1995-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1995-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1996-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1996-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1996-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1996-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1996-04-07T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1996-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1996-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1996-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1996-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1997-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1997-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1997-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1997-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1997-04-06T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1997-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1997-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1997-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1997-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1998-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1998-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1998-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1998-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1998-04-05T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1998-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1998-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1998-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1998-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1999-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "1999-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "1999-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "1999-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1999-04-04T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "1999-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "1999-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "1999-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "1999-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2000-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2000-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2000-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2000-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2000-04-02T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2000-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2000-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2000-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2000-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2001-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2001-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2001-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2001-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2001-04-01T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2001-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2001-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2001-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2001-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2002-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2002-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2002-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2002-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2002-04-07T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2002-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2002-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2002-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2002-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2003-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2003-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2003-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2003-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2003-04-06T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2003-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2003-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2003-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2003-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2004-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2004-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2004-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2004-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2004-04-04T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2004-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2004-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2004-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2004-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2005-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2005-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2005-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2005-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2005-04-03T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2005-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2005-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2005-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2005-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2006-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2006-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2006-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2006-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2006-04-02T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2006-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2006-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2006-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2006-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2007-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2007-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2007-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2007-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2007-03-11T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2007-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2007-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2007-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2007-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2008-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2008-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2008-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2008-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2008-03-09T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2008-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2008-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2008-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2008-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2009-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2009-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2009-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2009-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2009-03-08T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2009-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2009-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2009-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2009-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2010-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2010-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2010-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2010-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2010-03-14T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2010-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2010-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2010-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2010-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2011-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2011-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2011-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2011-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2011-03-13T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2011-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2011-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2011-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2011-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2012-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2012-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2012-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2012-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2012-03-11T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2012-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2012-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2012-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2012-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2013-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2013-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2013-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2013-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2013-03-10T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2013-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2013-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2013-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2013-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2014-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2014-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2014-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2014-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2014-03-09T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2014-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2014-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2014-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2014-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2015-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2015-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2015-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2015-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2015-03-08T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2015-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2015-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2015-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2015-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2016-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2016-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2016-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2016-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2016-03-13T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2016-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2016-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2016-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2016-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2017-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2017-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2017-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2017-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2017-03-12T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2017-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2017-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2017-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2017-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2018-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2018-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2018-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2018-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2018-03-11T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2018-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2018-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2018-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2018-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2019-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2019-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2019-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2019-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2019-03-10T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2019-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2019-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2019-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2019-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2020-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2020-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2020-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2020-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2020-03-08T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2020-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2020-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2020-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2020-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2021-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2021-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2021-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2021-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2021-03-14T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2021-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2021-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2021-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2021-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2022-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2022-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2022-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2022-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2022-03-13T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2022-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2022-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2022-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2022-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2023-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2023-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2023-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2023-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2023-03-12T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2023-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2023-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2023-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2023-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2024-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2024-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2024-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2024-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2024-03-10T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2024-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2024-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2024-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2024-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2025-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2025-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2025-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2025-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2025-03-09T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2025-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2025-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2025-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2025-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2026-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2026-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2026-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2026-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2026-03-08T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2026-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2026-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2026-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2026-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2027-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2027-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2027-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2027-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2027-03-14T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2027-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2027-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2027-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2027-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2028-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2028-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2028-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2028-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2028-03-12T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2028-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2028-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2028-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2028-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2029-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2029-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2029-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2029-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2029-03-11T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2029-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2029-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2029-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2029-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2030-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2030-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2030-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2030-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2030-03-10T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2030-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2030-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2030-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2030-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2031-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2031-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2031-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2031-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2031-03-09T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2031-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2031-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2031-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2031-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2032-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2032-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2032-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2032-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2032-03-14T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2032-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2032-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2032-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2032-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2033-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2033-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2033-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2033-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2033-03-13T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2033-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2033-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2033-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2033-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2034-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2034-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2034-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2034-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2034-03-12T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2034-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2034-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2034-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2034-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2035-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2035-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2035-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2035-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2035-03-11T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2035-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2035-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2035-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2035-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2036-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2036-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2036-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2036-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2036-03-09T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2036-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2036-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2036-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2036-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2037-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "03:00:00", "2037-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:59:59", "2037-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Whitehorse").format("HH:mm:ss"), "01:00:00", "2037-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2037-03-08T09:59:59+00:00").tz("America/Whitehorse").zone(), 480, "2037-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("America/Whitehorse").zone(), 420, "2037-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("America/Whitehorse").zone(), 420, "2037-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("America/Whitehorse").zone(), 480, "2037-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/winnipeg.js b/tests/america/winnipeg.js deleted file mode 100644 index 16352621..00000000 --- a/tests/america/winnipeg.js +++ /dev/null @@ -1,1302 +0,0 @@ -var moment = require("../../index"); - -exports["America/Winnipeg"] = { - - "1916" : function (t) { - t.equal(moment("1916-04-23T05:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "23:59:59", "1916-04-23T05:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1916-04-23T06:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1916-04-23T06:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1916-09-17T04:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "23:59:59", "1916-09-17T04:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1916-09-17T05:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "23:00:00", "1916-09-17T05:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1916-04-23T05:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1916-04-23T05:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1916-04-23T06:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1916-04-23T06:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1916-09-17T04:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1916-09-17T04:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1916-09-17T05:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1916-09-17T05:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-14T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1918-04-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-04-14T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1918-04-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-04-14T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1918-04-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-04-14T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1918-04-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-05-16T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1937-05-16T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1937-05-16T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1937-05-16T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1937-09-26T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1937-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1937-09-26T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1937-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1937-05-16T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1937-05-16T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1937-05-16T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1937-05-16T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1937-09-26T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1937-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1937-09-26T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1937-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-05-12T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1946-05-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1946-05-12T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1946-05-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1946-10-13T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1946-10-13T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1946-10-13T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1946-10-13T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1946-05-12T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1946-05-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1946-05-12T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1946-05-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-10-13T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1946-10-13T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1946-10-13T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1946-10-13T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1947-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1947-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1947-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1947-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1947-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1947-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1947-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1947-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1948-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1948-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1948-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1948-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1948-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1948-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1948-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1948-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1949-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1949-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1949-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1949-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1949-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1949-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1949-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1949-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-05-01T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1950-05-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1950-05-01T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1950-05-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1950-09-30T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1950-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1950-09-30T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1950-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1950-05-01T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1950-05-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1950-05-01T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1950-05-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-30T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1950-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1950-09-30T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1950-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1951-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1951-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1951-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1951-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1951-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1951-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1951-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1951-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1952-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1952-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1952-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1952-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1952-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1952-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1952-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1952-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1955-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1955-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1955-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1955-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1955-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1955-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1955-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1955-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1956-09-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1956-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1956-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1956-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1957-09-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1957-09-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1957-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1957-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1958-09-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1958-09-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1958-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1958-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1959-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1959-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1959-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1959-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1960-09-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1960-09-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1960-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1960-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1963-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1963-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1963-09-22T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1963-09-22T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1963-09-22T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1963-09-22T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1963-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1963-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-09-22T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1963-09-22T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1963-09-22T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1963-09-22T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1966-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1966-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1966-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1966-10-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1966-10-30T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1966-10-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1966-10-30T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1966-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1966-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1966-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1966-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1966-10-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1966-10-30T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1966-10-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1966-10-30T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1967-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1967-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1967-10-29T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1967-10-29T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1967-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1967-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1967-10-29T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1967-10-29T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1968-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1968-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1968-10-27T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1968-10-27T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1968-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1968-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1968-10-27T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1968-10-27T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1969-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1969-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1969-10-26T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1969-10-26T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1969-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1969-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1969-10-26T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1969-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1970-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1970-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1970-10-25T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1970-10-25T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1970-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1970-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1970-10-25T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1970-10-25T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1971-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1971-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1971-10-31T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1971-10-31T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1971-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1971-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1971-10-31T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1971-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1972-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1972-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1972-10-29T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1972-10-29T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1972-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1972-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1972-10-29T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1972-10-29T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1973-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1973-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1973-10-28T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1973-10-28T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1973-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1973-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1973-10-28T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1973-10-28T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1974-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1974-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1974-10-27T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1974-10-27T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1974-04-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1974-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1974-04-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1974-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1974-10-27T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1974-10-27T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1975-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1975-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1975-10-26T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1975-10-26T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1975-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1975-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1975-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1975-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1975-10-26T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1975-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1976-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1976-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1976-10-31T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1976-10-31T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1976-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1976-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1976-10-31T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1976-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1977-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1977-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1977-10-30T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1977-10-30T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1977-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1977-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1977-10-30T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1977-10-30T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1978-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1978-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1978-10-29T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1978-10-29T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1978-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1978-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1978-10-29T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1978-10-29T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1979-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1979-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1979-10-28T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1979-10-28T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1979-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1979-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1979-10-28T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1979-10-28T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1980-10-26T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1980-10-26T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1980-10-26T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1980-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1981-10-25T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1981-10-25T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1981-10-25T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1981-10-25T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1982-10-31T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1982-10-31T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1982-10-31T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1982-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1983-10-30T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1983-10-30T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1983-10-30T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1983-10-30T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1984-10-28T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1984-10-28T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1984-10-28T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1984-10-28T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1985-10-27T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1985-10-27T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1985-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1985-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1985-10-27T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1985-10-27T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1986-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1986-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1986-10-26T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1986-10-26T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1986-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1986-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1986-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1986-10-26T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1986-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1987-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1987-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1987-10-25T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1987-10-25T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1987-04-05T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1987-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1987-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1987-10-25T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1987-10-25T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1988-10-30T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1988-10-30T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1988-10-30T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1988-10-30T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1989-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1989-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1989-10-29T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1989-10-29T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1989-04-02T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1989-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1989-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1989-10-29T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1989-10-29T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1990-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1990-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1990-10-28T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1990-10-28T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1990-04-01T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1990-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1990-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1990-10-28T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1990-10-28T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1991-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1991-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1991-10-27T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1991-10-27T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1991-04-07T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1991-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1991-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1991-10-27T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1991-10-27T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1992-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1992-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1992-10-25T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1992-10-25T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1992-04-05T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1992-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1992-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1992-10-25T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1992-10-25T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1993-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1993-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1993-10-31T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1993-10-31T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1993-04-04T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1993-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1993-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1993-10-31T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1993-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1994-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1994-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1994-10-30T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1994-10-30T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1994-04-03T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1994-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1994-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1994-10-30T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1994-10-30T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1995-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1995-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1995-10-29T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1995-10-29T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1995-04-02T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1995-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1995-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1995-10-29T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1995-10-29T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1996-10-27T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1996-10-27T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1996-10-27T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1996-10-27T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1997-10-26T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1997-10-26T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1997-10-26T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1997-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1998-10-25T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1998-10-25T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1998-10-25T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1998-10-25T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1999-10-31T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1999-10-31T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1999-10-31T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1999-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "2000-10-29T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "2000-10-29T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2000-10-29T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2000-10-29T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2001-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2001-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "2001-10-28T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "2001-10-28T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("2001-04-01T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2001-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2001-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2001-10-28T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2001-10-28T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "2002-10-27T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "2002-10-27T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2002-10-27T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2002-10-27T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "2003-10-26T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "2003-10-26T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2003-10-26T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2003-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "2004-10-31T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "2004-10-31T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2004-10-31T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2004-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "2005-10-30T07:59:59+00:00 should be 02:59:59 CDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "2005-10-30T08:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2005-10-30T07:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2005-10-30T08:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/yakutat.js b/tests/america/yakutat.js deleted file mode 100644 index 54fa15c3..00000000 --- a/tests/america/yakutat.js +++ /dev/null @@ -1,998 +0,0 @@ -var moment = require("../../index"); - -exports["America/Yakutat"] = { - - "1942" : function (t) { - t.equal(moment("1942-02-09T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1942-02-09T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1942-02-09T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1942-02-09T11:00:00+00:00 should be 03:00:00 YWT"); - - t.equal(moment("1942-02-09T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1942-02-09T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1942-02-09T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1942-02-09T11:00:00+00:00 should be 480 minutes offset in YWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "14:59:59", "1945-08-14T22:59:59+00:00 should be 14:59:59 YWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "15:00:00", "1945-08-14T23:00:00+00:00 should be 15:00:00 YPT"); - t.equal(moment("1945-09-30T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1945-09-30T09:59:59+00:00 should be 01:59:59 YPT"); - t.equal(moment("1945-09-30T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1945-09-30T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Yakutat").zone(), 480, "1945-08-14T22:59:59+00:00 should be 480 minutes offset in YWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Yakutat").zone(), 480, "1945-08-14T23:00:00+00:00 should be 480 minutes offset in YPT"); - t.equal(moment("1945-09-30T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1945-09-30T09:59:59+00:00 should be 480 minutes offset in YPT"); - t.equal(moment("1945-09-30T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1945-09-30T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1969-04-27T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1969-04-27T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1969-04-27T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1969-10-26T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1969-10-26T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1969-10-26T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1969-10-26T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1969-04-27T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1969-04-27T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1969-04-27T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1969-04-27T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1969-10-26T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1969-10-26T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1969-10-26T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1969-10-26T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1970-04-26T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1970-04-26T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1970-04-26T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1970-10-25T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1970-10-25T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1970-10-25T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1970-10-25T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1970-04-26T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1970-04-26T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1970-04-26T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1970-04-26T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1970-10-25T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1970-10-25T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1970-10-25T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1970-10-25T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1971-04-25T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1971-04-25T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1971-04-25T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1971-10-31T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1971-10-31T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1971-10-31T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1971-10-31T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1971-04-25T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1971-04-25T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1971-04-25T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1971-04-25T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1971-10-31T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1971-10-31T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1971-10-31T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1971-10-31T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1972-04-30T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1972-04-30T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1972-04-30T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1972-10-29T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1972-10-29T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1972-10-29T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1972-10-29T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1972-04-30T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1972-04-30T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1972-04-30T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1972-04-30T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1972-10-29T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1972-10-29T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1972-10-29T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1972-10-29T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1973-04-29T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1973-04-29T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1973-04-29T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1973-10-28T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1973-10-28T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1973-10-28T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1973-10-28T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1973-04-29T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1973-04-29T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1973-04-29T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1973-04-29T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1973-10-28T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1973-10-28T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1973-10-28T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1973-10-28T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1974-01-06T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1974-01-06T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1974-01-06T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1974-10-27T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1974-10-27T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1974-10-27T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1974-10-27T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1974-01-06T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1974-01-06T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1974-01-06T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1974-01-06T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1974-10-27T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1974-10-27T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1974-10-27T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1974-10-27T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1975-02-23T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1975-02-23T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1975-02-23T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1975-10-26T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1975-10-26T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1975-10-26T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1975-10-26T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1975-02-23T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1975-02-23T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1975-02-23T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1975-02-23T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1975-10-26T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1975-10-26T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1975-10-26T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1975-10-26T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1976-04-25T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1976-04-25T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1976-04-25T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1976-10-31T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1976-10-31T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1976-10-31T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1976-10-31T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1976-04-25T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1976-04-25T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1976-04-25T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1976-04-25T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1976-10-31T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1976-10-31T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1976-10-31T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1976-10-31T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1977-04-24T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1977-04-24T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1977-04-24T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1977-10-30T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1977-10-30T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1977-10-30T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1977-10-30T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1977-04-24T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1977-04-24T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1977-04-24T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1977-04-24T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1977-10-30T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1977-10-30T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1977-10-30T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1977-10-30T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1978-04-30T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1978-04-30T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1978-04-30T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1978-10-29T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1978-10-29T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1978-10-29T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1978-10-29T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1978-04-30T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1978-04-30T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1978-04-30T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1978-04-30T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1978-10-29T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1978-10-29T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1978-10-29T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1978-10-29T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1979-04-29T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1979-04-29T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1979-04-29T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1979-10-28T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1979-10-28T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1979-10-28T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1979-10-28T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1979-04-29T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1979-04-29T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1979-04-29T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1979-04-29T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1979-10-28T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1979-10-28T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1979-10-28T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1979-10-28T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1980-04-27T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1980-04-27T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1980-04-27T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1980-10-26T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1980-10-26T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1980-10-26T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1980-10-26T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1980-04-27T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1980-04-27T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1980-04-27T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1980-04-27T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1980-10-26T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1980-10-26T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1980-10-26T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1980-10-26T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1981-04-26T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1981-04-26T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1981-04-26T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1981-10-25T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1981-10-25T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1981-10-25T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1981-10-25T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1981-04-26T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1981-04-26T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1981-04-26T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1981-04-26T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1981-10-25T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1981-10-25T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1981-10-25T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1981-10-25T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1982-04-25T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1982-04-25T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1982-04-25T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1982-10-31T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1982-10-31T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1982-10-31T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1982-10-31T10:00:00+00:00 should be 01:00:00 YST"); - - t.equal(moment("1982-04-25T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1982-04-25T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1982-04-25T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1982-04-25T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1982-10-31T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1982-10-31T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1982-10-31T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1982-10-31T10:00:00+00:00 should be 540 minutes offset in YST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1983-04-24T10:59:59+00:00 should be 01:59:59 YST"); - t.equal(moment("1983-04-24T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1983-04-24T11:00:00+00:00 should be 03:00:00 YDT"); - t.equal(moment("1983-10-30T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1983-10-30T09:59:59+00:00 should be 01:59:59 YDT"); - t.equal(moment("1983-10-30T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1983-10-30T10:00:00+00:00 should be 01:00:00 YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "23:59:59", "1983-11-30T08:59:59+00:00 should be 23:59:59 YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "00:00:00", "1983-11-30T09:00:00+00:00 should be 00:00:00 AKST"); - - t.equal(moment("1983-04-24T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1983-04-24T10:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-04-24T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1983-04-24T11:00:00+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1983-10-30T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1983-10-30T09:59:59+00:00 should be 480 minutes offset in YDT"); - t.equal(moment("1983-10-30T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1983-10-30T10:00:00+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T08:59:59+00:00").tz("America/Yakutat").zone(), 540, "1983-11-30T08:59:59+00:00 should be 540 minutes offset in YST"); - t.equal(moment("1983-11-30T09:00:00+00:00").tz("America/Yakutat").zone(), 540, "1983-11-30T09:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1984-04-29T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1984-04-29T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1984-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1984-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1984-04-29T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1984-04-29T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1984-04-29T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1984-04-29T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1984-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1984-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1985-04-28T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1985-04-28T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1985-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1985-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1985-04-28T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1985-04-28T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1985-04-28T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1985-04-28T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1985-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1985-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1986-04-27T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1986-04-27T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1986-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1986-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1986-04-27T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1986-04-27T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1986-04-27T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1986-04-27T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1986-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1986-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1987-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1987-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1987-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1987-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1987-04-05T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1987-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1987-04-05T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1987-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1987-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1987-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1988-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1988-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1988-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1988-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1988-04-03T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1988-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1988-04-03T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1988-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1988-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1988-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1989-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1989-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1989-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1989-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1989-04-02T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1989-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1989-04-02T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1989-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1989-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1989-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1990-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1990-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1990-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1990-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1990-04-01T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1990-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1990-04-01T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1990-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1990-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1990-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1991-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1991-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1991-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1991-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1991-04-07T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1991-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1991-04-07T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1991-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1991-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1991-10-27T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1991-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1992-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1992-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1992-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1992-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1992-04-05T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1992-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1992-04-05T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1992-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1992-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1992-10-25T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1992-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1993-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1993-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1993-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1993-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1993-04-04T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1993-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1993-04-04T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1993-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1993-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1993-10-31T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1993-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1994-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1994-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1994-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1994-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1994-04-03T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1994-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1994-04-03T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1994-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1994-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1994-10-30T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1994-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1995-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1995-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1995-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1995-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1995-04-02T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1995-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1995-04-02T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1995-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1995-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1995-10-29T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1995-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1996-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1996-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1996-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1996-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1996-04-07T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1996-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1996-04-07T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1996-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1996-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1996-10-27T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1996-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1997-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1997-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1997-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1997-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1997-04-06T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1997-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1997-04-06T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1997-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1997-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1997-10-26T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1997-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1998-04-05T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1998-04-05T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1998-10-25T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1998-10-25T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1998-04-05T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1998-04-05T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1998-04-05T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1998-04-05T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1998-10-25T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1998-10-25T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1998-10-25T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1999-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "1999-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "1999-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "1999-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("1999-04-04T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "1999-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("1999-04-04T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "1999-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "1999-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("1999-10-31T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "1999-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2000-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2000-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2000-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2000-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2000-04-02T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2000-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2000-04-02T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2000-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2000-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2000-10-29T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2000-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2001-04-01T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2001-04-01T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2001-10-28T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2001-10-28T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2001-04-01T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2001-04-01T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2001-04-01T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2001-04-01T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2001-10-28T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2001-10-28T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2001-10-28T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2002-04-07T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2002-04-07T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2002-10-27T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2002-10-27T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2002-04-07T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2002-04-07T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2002-04-07T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2002-04-07T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2002-10-27T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2002-10-27T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2002-10-27T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2003-04-06T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2003-04-06T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2003-10-26T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2003-10-26T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2003-04-06T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2003-04-06T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2003-04-06T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2003-04-06T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2003-10-26T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2003-10-26T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2003-10-26T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2004-04-04T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2004-04-04T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2004-10-31T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2004-10-31T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2004-04-04T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2004-04-04T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2004-04-04T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2004-04-04T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2004-10-31T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2004-10-31T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2004-10-31T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2005-04-03T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2005-04-03T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2005-10-30T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2005-10-30T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2005-04-03T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2005-04-03T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2005-04-03T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2005-04-03T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2005-10-30T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2005-10-30T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2005-10-30T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2006-04-02T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2006-04-02T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2006-10-29T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2006-10-29T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2006-04-02T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2006-04-02T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2006-04-02T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2006-04-02T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2006-10-29T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2006-10-29T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2006-10-29T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2007-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2007-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2007-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2007-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2007-03-11T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2007-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2007-03-11T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2007-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2007-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2007-11-04T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2007-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2008-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2008-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2008-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2008-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2008-03-09T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2008-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2008-03-09T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2008-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2008-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2008-11-02T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2008-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2009-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2009-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2009-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2009-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2009-03-08T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2009-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2009-03-08T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2009-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2009-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2009-11-01T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2009-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2010-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2010-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2010-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2010-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2010-03-14T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2010-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2010-03-14T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2010-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2010-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2010-11-07T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2010-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2011-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2011-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2011-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2011-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2011-03-13T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2011-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2011-03-13T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2011-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2011-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2011-11-06T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2011-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2012-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2012-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2012-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2012-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2012-03-11T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2012-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2012-03-11T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2012-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2012-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2012-11-04T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2012-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2013-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2013-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2013-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2013-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2013-03-10T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2013-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2013-03-10T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2013-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2013-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2013-11-03T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2013-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2014-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2014-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2014-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2014-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2014-03-09T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2014-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2014-03-09T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2014-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2014-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2014-11-02T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2014-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2015-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2015-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2015-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2015-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2015-03-08T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2015-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2015-03-08T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2015-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2015-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2015-11-01T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2015-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2016-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2016-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2016-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2016-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2016-03-13T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2016-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2016-03-13T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2016-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2016-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2016-11-06T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2016-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2017-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2017-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2017-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2017-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2017-03-12T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2017-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2017-03-12T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2017-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2017-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2017-11-05T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2017-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2018-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2018-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2018-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2018-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2018-03-11T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2018-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2018-03-11T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2018-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2018-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2018-11-04T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2018-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2019-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2019-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2019-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2019-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2019-03-10T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2019-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2019-03-10T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2019-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2019-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2019-11-03T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2019-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2020-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2020-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2020-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2020-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2020-03-08T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2020-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2020-03-08T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2020-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2020-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2020-11-01T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2020-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2021-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2021-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2021-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2021-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2021-03-14T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2021-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2021-03-14T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2021-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2021-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2021-11-07T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2021-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2022-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2022-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2022-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2022-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2022-03-13T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2022-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2022-03-13T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2022-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2022-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2022-11-06T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2022-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2023-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2023-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2023-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2023-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2023-03-12T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2023-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2023-03-12T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2023-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2023-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2023-11-05T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2023-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2024-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2024-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2024-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2024-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2024-03-10T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2024-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2024-03-10T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2024-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2024-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2024-11-03T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2024-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2025-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2025-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2025-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2025-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2025-03-09T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2025-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2025-03-09T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2025-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2025-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2025-11-02T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2025-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2026-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2026-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2026-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2026-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2026-03-08T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2026-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2026-03-08T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2026-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2026-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2026-11-01T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2026-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2027-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2027-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2027-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2027-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2027-03-14T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2027-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2027-03-14T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2027-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2027-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2027-11-07T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2027-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2028-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2028-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2028-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2028-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2028-03-12T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2028-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2028-03-12T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2028-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2028-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2028-11-05T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2028-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2029-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2029-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2029-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2029-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2029-03-11T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2029-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2029-03-11T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2029-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2029-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2029-11-04T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2029-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2030-03-10T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2030-03-10T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2030-11-03T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2030-11-03T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2030-03-10T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2030-03-10T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2030-03-10T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2030-03-10T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2030-11-03T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2030-11-03T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2030-11-03T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2031-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2031-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2031-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2031-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2031-03-09T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2031-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2031-03-09T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2031-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2031-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2031-11-02T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2031-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2032-03-14T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2032-03-14T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2032-11-07T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2032-11-07T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2032-03-14T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2032-03-14T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2032-03-14T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2032-03-14T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2032-11-07T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2032-11-07T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2032-11-07T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2033-03-13T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2033-03-13T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2033-11-06T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2033-11-06T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2033-03-13T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2033-03-13T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2033-03-13T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2033-03-13T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2033-11-06T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2033-11-06T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2033-11-06T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2034-03-12T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2034-03-12T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2034-11-05T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2034-11-05T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2034-03-12T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2034-03-12T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2034-03-12T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2034-03-12T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2034-11-05T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2034-11-05T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2034-11-05T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2035-03-11T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2035-03-11T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2035-11-04T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2035-11-04T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2035-03-11T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2035-03-11T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2035-03-11T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2035-03-11T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2035-11-04T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2035-11-04T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2035-11-04T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2036-03-09T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2036-03-09T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2036-11-02T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2036-11-02T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2036-03-09T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2036-03-09T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2036-03-09T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2036-03-09T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2036-11-02T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2036-11-02T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2036-11-02T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2037-03-08T10:59:59+00:00 should be 01:59:59 AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "03:00:00", "2037-03-08T11:00:00+00:00 should be 03:00:00 AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:59:59", "2037-11-01T09:59:59+00:00 should be 01:59:59 AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Yakutat").format("HH:mm:ss"), "01:00:00", "2037-11-01T10:00:00+00:00 should be 01:00:00 AKST"); - - t.equal(moment("2037-03-08T10:59:59+00:00").tz("America/Yakutat").zone(), 540, "2037-03-08T10:59:59+00:00 should be 540 minutes offset in AKST"); - t.equal(moment("2037-03-08T11:00:00+00:00").tz("America/Yakutat").zone(), 480, "2037-03-08T11:00:00+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T09:59:59+00:00").tz("America/Yakutat").zone(), 480, "2037-11-01T09:59:59+00:00 should be 480 minutes offset in AKDT"); - t.equal(moment("2037-11-01T10:00:00+00:00").tz("America/Yakutat").zone(), 540, "2037-11-01T10:00:00+00:00 should be 540 minutes offset in AKST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/america/yellowknife.js b/tests/america/yellowknife.js deleted file mode 100644 index 5d7087b6..00000000 --- a/tests/america/yellowknife.js +++ /dev/null @@ -1,870 +0,0 @@ -var moment = require("../../index"); - -exports["America/Yellowknife"] = { - - "1934" : function (t) { - t.equal(moment("1934-12-31T23:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "23:59:59", "1934-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1934-12-31T23:59:59+00:00").tz("America/Yellowknife").zone(), 0, "1934-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-01-01T00:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "17:00:00", "1935-01-01T00:00:00+00:00 should be 17:00:00 MST"); - - t.equal(moment("1935-01-01T00:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1935-01-01T00:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "23:59:59", "1965-04-25T06:59:59+00:00 should be 23:59:59 MST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "02:00:00", "1965-04-25T07:00:00+00:00 should be 02:00:00 MDDT"); - t.equal(moment("1965-10-31T06:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1965-10-31T06:59:59+00:00 should be 01:59:59 MDDT"); - t.equal(moment("1965-10-31T07:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "00:00:00", "1965-10-31T07:00:00+00:00 should be 00:00:00 MST"); - - t.equal(moment("1965-04-25T06:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1965-04-25T06:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1965-04-25T07:00:00+00:00").tz("America/Yellowknife").zone(), 300, "1965-04-25T07:00:00+00:00 should be 300 minutes offset in MDDT"); - t.equal(moment("1965-10-31T06:59:59+00:00").tz("America/Yellowknife").zone(), 300, "1965-10-31T06:59:59+00:00 should be 300 minutes offset in MDDT"); - t.equal(moment("1965-10-31T07:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1965-10-31T07:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1992-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1992-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1993-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1993-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1993-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1993-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1993-04-04T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1993-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1993-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1993-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1993-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1994-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1994-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1994-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1994-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1994-04-03T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1994-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1994-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1994-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1994-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1995-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1995-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1995-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1995-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1995-04-02T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1995-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1995-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1995-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1995-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2001-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2001-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2001-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2001-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-04-01T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2001-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2001-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2001-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2001-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2007-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2007-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2007-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2007-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-03-11T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2007-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2007-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2007-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2007-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2008-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2008-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2008-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2008-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-03-09T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2008-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2008-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2008-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2008-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2009-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2009-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2009-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2009-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-03-08T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2009-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2009-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2009-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2009-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2010-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2010-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2010-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2010-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-03-14T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2010-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2010-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2010-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2010-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2011-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2011-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2011-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2011-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-03-13T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2011-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2011-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2011-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2011-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2012-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2012-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2012-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2012-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-03-11T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2012-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2012-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2012-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2012-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2013-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2013-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2013-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2013-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-03-10T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2013-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2013-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2013-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2013-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2014-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2014-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2014-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2014-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-03-09T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2014-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2014-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2014-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2014-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2015-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2015-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2015-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2015-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-03-08T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2015-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2015-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2015-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2015-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2016-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2016-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2016-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2016-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-03-13T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2016-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2016-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2016-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2016-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2017-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2017-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2017-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2017-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-03-12T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2017-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2017-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2017-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2017-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2018-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2018-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2018-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2018-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-03-11T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2018-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2018-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2018-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2018-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2019-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2019-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2019-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2019-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-03-10T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2019-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2019-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2019-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2019-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2020-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2020-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2020-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2020-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-03-08T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2020-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2020-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2020-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2020-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2021-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2021-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2021-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2021-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-03-14T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2021-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2021-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2021-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2021-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2022-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2022-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2022-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2022-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-03-13T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2022-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2022-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2022-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2022-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2023-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2023-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2023-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2023-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-03-12T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2023-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2023-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2023-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2023-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2024-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2024-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2024-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2024-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-03-10T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2024-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2024-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2024-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2024-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2025-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2025-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2025-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2025-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-03-09T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2025-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2025-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2025-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2025-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2026-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2026-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2026-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2026-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-03-08T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2026-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2026-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2026-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2026-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2027-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2027-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2027-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2027-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-03-14T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2027-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2027-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2027-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2027-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2028-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2028-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2028-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2028-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-03-12T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2028-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2028-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2028-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2028-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2029-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2029-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2029-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2029-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-03-11T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2029-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2029-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2029-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2029-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2030-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2030-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2030-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2030-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-03-10T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2030-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2030-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2030-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2030-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2031-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2031-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2031-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2031-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-03-09T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2031-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2031-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2031-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2031-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2032-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2032-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2032-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2032-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-03-14T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2032-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2032-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2032-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2032-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2033-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2033-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2033-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2033-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-03-13T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2033-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2033-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2033-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2033-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2034-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2034-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2034-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2034-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-03-12T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2034-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2034-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2034-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2034-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2035-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2035-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2035-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2035-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-03-11T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2035-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2035-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2035-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2035-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2036-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2036-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2036-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2036-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-03-09T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2036-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2036-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2036-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2036-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2037-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "03:00:00", "2037-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:59:59", "2037-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Yellowknife").format("HH:mm:ss"), "01:00:00", "2037-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-03-08T08:59:59+00:00").tz("America/Yellowknife").zone(), 420, "2037-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("America/Yellowknife").zone(), 360, "2037-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("America/Yellowknife").zone(), 360, "2037-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("America/Yellowknife").zone(), 420, "2037-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/casey.js b/tests/antarctica/casey.js deleted file mode 100644 index 3703f0e0..00000000 --- a/tests/antarctica/casey.js +++ /dev/null @@ -1,60 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/Casey"] = { - - "1968" : function (t) { - t.equal(moment("1968-12-31T23:59:59+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "23:59:59", "1968-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1968-12-31T23:59:59+00:00").tz("Antarctica/Casey").zone(), 0, "1968-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-01-01T00:00:00+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "08:00:00", "1969-01-01T00:00:00+00:00 should be 08:00:00 WST"); - - t.equal(moment("1969-01-01T00:00:00+00:00").tz("Antarctica/Casey").zone(), -480, "1969-01-01T00:00:00+00:00 should be -480 minutes offset in WST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-10-17T17:59:59+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "01:59:59", "2009-10-17T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("2009-10-17T18:00:00+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "05:00:00", "2009-10-17T18:00:00+00:00 should be 05:00:00 CAST"); - - t.equal(moment("2009-10-17T17:59:59+00:00").tz("Antarctica/Casey").zone(), -480, "2009-10-17T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("2009-10-17T18:00:00+00:00").tz("Antarctica/Casey").zone(), -660, "2009-10-17T18:00:00+00:00 should be -660 minutes offset in CAST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-04T14:59:59+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "01:59:59", "2010-03-04T14:59:59+00:00 should be 01:59:59 CAST"); - t.equal(moment("2010-03-04T15:00:00+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "23:00:00", "2010-03-04T15:00:00+00:00 should be 23:00:00 WST"); - - t.equal(moment("2010-03-04T14:59:59+00:00").tz("Antarctica/Casey").zone(), -660, "2010-03-04T14:59:59+00:00 should be -660 minutes offset in CAST"); - t.equal(moment("2010-03-04T15:00:00+00:00").tz("Antarctica/Casey").zone(), -480, "2010-03-04T15:00:00+00:00 should be -480 minutes offset in WST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-10-27T17:59:59+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "01:59:59", "2011-10-27T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("2011-10-27T18:00:00+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "05:00:00", "2011-10-27T18:00:00+00:00 should be 05:00:00 CAST"); - - t.equal(moment("2011-10-27T17:59:59+00:00").tz("Antarctica/Casey").zone(), -480, "2011-10-27T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("2011-10-27T18:00:00+00:00").tz("Antarctica/Casey").zone(), -660, "2011-10-27T18:00:00+00:00 should be -660 minutes offset in CAST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-02-21T16:59:59+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "03:59:59", "2012-02-21T16:59:59+00:00 should be 03:59:59 CAST"); - t.equal(moment("2012-02-21T17:00:00+00:00").tz("Antarctica/Casey").format("HH:mm:ss"), "01:00:00", "2012-02-21T17:00:00+00:00 should be 01:00:00 WST"); - - t.equal(moment("2012-02-21T16:59:59+00:00").tz("Antarctica/Casey").zone(), -660, "2012-02-21T16:59:59+00:00 should be -660 minutes offset in CAST"); - t.equal(moment("2012-02-21T17:00:00+00:00").tz("Antarctica/Casey").zone(), -480, "2012-02-21T17:00:00+00:00 should be -480 minutes offset in WST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/davis.js b/tests/antarctica/davis.js deleted file mode 100644 index c6375796..00000000 --- a/tests/antarctica/davis.js +++ /dev/null @@ -1,74 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/Davis"] = { - - "1957" : function (t) { - t.equal(moment("1957-01-12T23:59:59+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "23:59:59", "1957-01-12T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1957-01-13T00:00:00+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "07:00:00", "1957-01-13T00:00:00+00:00 should be 07:00:00 DAVT"); - - t.equal(moment("1957-01-12T23:59:59+00:00").tz("Antarctica/Davis").zone(), 0, "1957-01-12T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1957-01-13T00:00:00+00:00").tz("Antarctica/Davis").zone(), -420, "1957-01-13T00:00:00+00:00 should be -420 minutes offset in DAVT"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-10-31T16:59:59+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "23:59:59", "1964-10-31T16:59:59+00:00 should be 23:59:59 DAVT"); - t.equal(moment("1964-10-31T17:00:00+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "17:00:00", "1964-10-31T17:00:00+00:00 should be 17:00:00 zzz"); - - t.equal(moment("1964-10-31T16:59:59+00:00").tz("Antarctica/Davis").zone(), -420, "1964-10-31T16:59:59+00:00 should be -420 minutes offset in DAVT"); - t.equal(moment("1964-10-31T17:00:00+00:00").tz("Antarctica/Davis").zone(), 0, "1964-10-31T17:00:00+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-01-31T23:59:59+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "23:59:59", "1969-01-31T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1969-02-01T00:00:00+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "07:00:00", "1969-02-01T00:00:00+00:00 should be 07:00:00 DAVT"); - - t.equal(moment("1969-01-31T23:59:59+00:00").tz("Antarctica/Davis").zone(), 0, "1969-01-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1969-02-01T00:00:00+00:00").tz("Antarctica/Davis").zone(), -420, "1969-02-01T00:00:00+00:00 should be -420 minutes offset in DAVT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-10-17T18:59:59+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "01:59:59", "2009-10-17T18:59:59+00:00 should be 01:59:59 DAVT"); - t.equal(moment("2009-10-17T19:00:00+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "00:00:00", "2009-10-17T19:00:00+00:00 should be 00:00:00 DAVT"); - - t.equal(moment("2009-10-17T18:59:59+00:00").tz("Antarctica/Davis").zone(), -420, "2009-10-17T18:59:59+00:00 should be -420 minutes offset in DAVT"); - t.equal(moment("2009-10-17T19:00:00+00:00").tz("Antarctica/Davis").zone(), -300, "2009-10-17T19:00:00+00:00 should be -300 minutes offset in DAVT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-10T19:59:59+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "00:59:59", "2010-03-10T19:59:59+00:00 should be 00:59:59 DAVT"); - t.equal(moment("2010-03-10T20:00:00+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "03:00:00", "2010-03-10T20:00:00+00:00 should be 03:00:00 DAVT"); - - t.equal(moment("2010-03-10T19:59:59+00:00").tz("Antarctica/Davis").zone(), -300, "2010-03-10T19:59:59+00:00 should be -300 minutes offset in DAVT"); - t.equal(moment("2010-03-10T20:00:00+00:00").tz("Antarctica/Davis").zone(), -420, "2010-03-10T20:00:00+00:00 should be -420 minutes offset in DAVT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-10-27T18:59:59+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "01:59:59", "2011-10-27T18:59:59+00:00 should be 01:59:59 DAVT"); - t.equal(moment("2011-10-27T19:00:00+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "00:00:00", "2011-10-27T19:00:00+00:00 should be 00:00:00 DAVT"); - - t.equal(moment("2011-10-27T18:59:59+00:00").tz("Antarctica/Davis").zone(), -420, "2011-10-27T18:59:59+00:00 should be -420 minutes offset in DAVT"); - t.equal(moment("2011-10-27T19:00:00+00:00").tz("Antarctica/Davis").zone(), -300, "2011-10-27T19:00:00+00:00 should be -300 minutes offset in DAVT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-02-21T19:59:59+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "00:59:59", "2012-02-21T19:59:59+00:00 should be 00:59:59 DAVT"); - t.equal(moment("2012-02-21T20:00:00+00:00").tz("Antarctica/Davis").format("HH:mm:ss"), "03:00:00", "2012-02-21T20:00:00+00:00 should be 03:00:00 DAVT"); - - t.equal(moment("2012-02-21T19:59:59+00:00").tz("Antarctica/Davis").zone(), -300, "2012-02-21T19:59:59+00:00 should be -300 minutes offset in DAVT"); - t.equal(moment("2012-02-21T20:00:00+00:00").tz("Antarctica/Davis").zone(), -420, "2012-02-21T20:00:00+00:00 should be -420 minutes offset in DAVT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/dumontdurville.js b/tests/antarctica/dumontdurville.js deleted file mode 100644 index e4a17ef7..00000000 --- a/tests/antarctica/dumontdurville.js +++ /dev/null @@ -1,40 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/DumontDUrville"] = { - - "1946" : function (t) { - t.equal(moment("1946-12-31T23:59:59+00:00").tz("Antarctica/DumontDUrville").format("HH:mm:ss"), "23:59:59", "1946-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1946-12-31T23:59:59+00:00").tz("Antarctica/DumontDUrville").zone(), 0, "1946-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-01-01T00:00:00+00:00").tz("Antarctica/DumontDUrville").format("HH:mm:ss"), "10:00:00", "1947-01-01T00:00:00+00:00 should be 10:00:00 PMT"); - - t.equal(moment("1947-01-01T00:00:00+00:00").tz("Antarctica/DumontDUrville").zone(), -600, "1947-01-01T00:00:00+00:00 should be -600 minutes offset in PMT"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-01-13T13:59:59+00:00").tz("Antarctica/DumontDUrville").format("HH:mm:ss"), "23:59:59", "1952-01-13T13:59:59+00:00 should be 23:59:59 PMT"); - t.equal(moment("1952-01-13T14:00:00+00:00").tz("Antarctica/DumontDUrville").format("HH:mm:ss"), "14:00:00", "1952-01-13T14:00:00+00:00 should be 14:00:00 zzz"); - - t.equal(moment("1952-01-13T13:59:59+00:00").tz("Antarctica/DumontDUrville").zone(), -600, "1952-01-13T13:59:59+00:00 should be -600 minutes offset in PMT"); - t.equal(moment("1952-01-13T14:00:00+00:00").tz("Antarctica/DumontDUrville").zone(), 0, "1952-01-13T14:00:00+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-10-31T23:59:59+00:00").tz("Antarctica/DumontDUrville").format("HH:mm:ss"), "23:59:59", "1956-10-31T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1956-11-01T00:00:00+00:00").tz("Antarctica/DumontDUrville").format("HH:mm:ss"), "10:00:00", "1956-11-01T00:00:00+00:00 should be 10:00:00 DDUT"); - - t.equal(moment("1956-10-31T23:59:59+00:00").tz("Antarctica/DumontDUrville").zone(), 0, "1956-10-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1956-11-01T00:00:00+00:00").tz("Antarctica/DumontDUrville").zone(), -600, "1956-11-01T00:00:00+00:00 should be -600 minutes offset in DDUT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/macquarie.js b/tests/antarctica/macquarie.js deleted file mode 100644 index 5b93fc94..00000000 --- a/tests/antarctica/macquarie.js +++ /dev/null @@ -1,652 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/Macquarie"] = { - - "1916" : function (t) { - t.equal(moment("1916-09-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1916-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1916-09-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1916-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1916-09-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1916-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1916-09-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1916-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1917-03-24T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1917-03-24T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1917-03-24T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-31T13:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "23:59:59", "1919-03-31T13:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1919-03-31T14:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "14:00:00", "1919-03-31T14:00:00+00:00 should be 14:00:00 zzz"); - - t.equal(moment("1919-03-31T13:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1919-03-31T13:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1919-03-31T14:00:00+00:00").tz("Antarctica/Macquarie").zone(), 0, "1919-03-31T14:00:00+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-03-24T23:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "23:59:59", "1948-03-24T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1948-03-25T00:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "10:00:00", "1948-03-25T00:00:00+00:00 should be 10:00:00 EST"); - - t.equal(moment("1948-03-24T23:59:59+00:00").tz("Antarctica/Macquarie").zone(), 0, "1948-03-24T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1948-03-25T00:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1948-03-25T00:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-09-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1967-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1967-09-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1967-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1967-09-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1967-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1967-09-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1967-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1968-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1968-03-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1968-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1968-10-26T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1968-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1968-10-26T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1968-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1968-03-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1968-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1968-03-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1968-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1968-10-26T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1968-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1968-10-26T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1968-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-03-08T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1969-03-08T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1969-03-08T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1969-03-08T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1969-10-25T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1969-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-10-25T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1969-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1969-03-08T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1969-03-08T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1969-03-08T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1969-03-08T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1969-10-25T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1969-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1969-10-25T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1969-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-03-07T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1970-03-07T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1970-03-07T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1970-03-07T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1970-10-24T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1970-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-10-24T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1970-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1970-03-07T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1970-03-07T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1970-03-07T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1970-03-07T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1970-10-24T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1970-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1970-10-24T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1970-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-03-13T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1971-03-13T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1971-03-13T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1971-03-13T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1971-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1971-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1971-03-13T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1971-03-13T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1971-03-13T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1971-03-13T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1971-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1971-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1972-02-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1972-02-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1972-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1972-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1972-02-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1972-02-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1972-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1972-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1973-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1973-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1973-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1973-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1973-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1973-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1973-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1973-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1974-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1974-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1974-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1974-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1974-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1974-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1974-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1974-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1975-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1975-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1975-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1975-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1975-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1975-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1975-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1975-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1976-03-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1976-03-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1976-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1976-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1976-03-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1976-03-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1976-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1976-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1977-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1977-03-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1977-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1977-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1977-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1977-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1977-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1977-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1978-03-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1978-03-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1978-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1978-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1978-03-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1978-03-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1978-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1978-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1979-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1979-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1979-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1979-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1979-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1979-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1979-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1979-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1980-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1980-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1980-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1980-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1980-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1980-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1980-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1980-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1981-02-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1981-02-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1981-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1981-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1981-02-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1981-02-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1981-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1981-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-27T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1982-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1982-03-27T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1982-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1982-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1982-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1982-03-27T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1982-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1982-03-27T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1982-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1982-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1982-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-26T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1983-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1983-03-26T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1983-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1983-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1983-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1983-03-26T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1983-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1983-03-26T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1983-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1983-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1983-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1984-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1984-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1984-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1984-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1984-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1984-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1984-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1984-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1985-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1985-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1985-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1985-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1985-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1985-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1985-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1985-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-01T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1986-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1986-03-01T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1986-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1986-10-18T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1986-10-18T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1986-03-01T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1986-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1986-03-01T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1986-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1986-10-18T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1986-10-18T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1987-03-14T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1987-03-14T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1987-10-24T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1987-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-10-24T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1987-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1987-03-14T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1987-03-14T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-24T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1987-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-24T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1987-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1988-03-19T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1988-03-19T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1988-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1988-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1988-03-19T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1988-03-19T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1988-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1988-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1989-03-18T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1989-03-18T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1989-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1989-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1989-03-18T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1989-03-18T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1989-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1989-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-17T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1990-03-17T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1990-03-17T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1990-03-17T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1990-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1990-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1990-03-17T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1990-03-17T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1990-03-17T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1990-03-17T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1990-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1990-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1991-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1991-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1991-10-05T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1991-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-10-05T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1991-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1991-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1991-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-05T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1991-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-05T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1991-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1992-03-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1992-03-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1992-10-03T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1992-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-10-03T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1992-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1992-03-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1992-03-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-03T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1992-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-03T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1992-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1993-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1993-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1993-10-02T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1993-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-10-02T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1993-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1993-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1993-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-02T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1993-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-02T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1993-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1994-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1994-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1994-10-01T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1994-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-10-01T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1994-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1994-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1994-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-01T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1994-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-01T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1994-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1995-03-25T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1995-03-25T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1995-09-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1995-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-09-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1995-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1995-03-25T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1995-03-25T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-09-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1995-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-09-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1995-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1996-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1996-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1996-10-05T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1996-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-10-05T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1996-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1996-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1996-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-05T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1996-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-05T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1996-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1997-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1997-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1997-10-04T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1997-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-10-04T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1997-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1997-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1997-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-04T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1997-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-04T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1997-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1998-03-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1998-03-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1998-10-03T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1998-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-10-03T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1998-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1998-03-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1998-03-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-03T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1998-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-03T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1998-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "1999-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "1999-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1999-10-02T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "1999-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-10-02T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "1999-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "1999-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "1999-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-02T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "1999-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-02T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "1999-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2000-03-25T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2000-03-25T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2000-08-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2000-08-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2000-03-25T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2000-03-25T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2000-08-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2000-08-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2001-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2001-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2001-10-06T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2001-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-10-06T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2001-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2001-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2001-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-06T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2001-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-06T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2001-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2002-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2002-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2002-10-05T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2002-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-10-05T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2002-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2002-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2002-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-05T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2002-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-05T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2002-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2003-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2003-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2003-10-04T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2003-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-10-04T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2003-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2003-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2003-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-04T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2003-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-04T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2003-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2004-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2004-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2004-10-02T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2004-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-10-02T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2004-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2004-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2004-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-02T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2004-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-02T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2004-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2005-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2005-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2005-10-01T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2005-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-10-01T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2005-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2005-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2005-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-01T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2005-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-01T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2005-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2006-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2006-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2006-09-30T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2006-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-09-30T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2006-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2006-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2006-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-09-30T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2006-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-09-30T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2006-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2007-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2007-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2007-10-06T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2007-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-10-06T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2007-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2007-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2007-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-06T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2007-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-06T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2007-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2008-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2008-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2008-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2008-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2008-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2008-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2008-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2008-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2009-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:00:00", "2009-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "01:59:59", "2009-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2009-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2009-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -600, "2009-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -600, "2009-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2009-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "02:59:59", "2010-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Antarctica/Macquarie").format("HH:mm:ss"), "03:00:00", "2010-04-03T16:00:00+00:00 should be 03:00:00 MIST"); - - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Antarctica/Macquarie").zone(), -660, "2010-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Antarctica/Macquarie").zone(), -660, "2010-04-03T16:00:00+00:00 should be -660 minutes offset in MIST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/mawson.js b/tests/antarctica/mawson.js deleted file mode 100644 index 10e2b6a1..00000000 --- a/tests/antarctica/mawson.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/Mawson"] = { - - "1954" : function (t) { - t.equal(moment("1954-02-12T23:59:59+00:00").tz("Antarctica/Mawson").format("HH:mm:ss"), "23:59:59", "1954-02-12T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1954-02-13T00:00:00+00:00").tz("Antarctica/Mawson").format("HH:mm:ss"), "06:00:00", "1954-02-13T00:00:00+00:00 should be 06:00:00 MAWT"); - - t.equal(moment("1954-02-12T23:59:59+00:00").tz("Antarctica/Mawson").zone(), 0, "1954-02-12T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1954-02-13T00:00:00+00:00").tz("Antarctica/Mawson").zone(), -360, "1954-02-13T00:00:00+00:00 should be -360 minutes offset in MAWT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-10-17T19:59:59+00:00").tz("Antarctica/Mawson").format("HH:mm:ss"), "01:59:59", "2009-10-17T19:59:59+00:00 should be 01:59:59 MAWT"); - t.equal(moment("2009-10-17T20:00:00+00:00").tz("Antarctica/Mawson").format("HH:mm:ss"), "01:00:00", "2009-10-17T20:00:00+00:00 should be 01:00:00 MAWT"); - - t.equal(moment("2009-10-17T19:59:59+00:00").tz("Antarctica/Mawson").zone(), -360, "2009-10-17T19:59:59+00:00 should be -360 minutes offset in MAWT"); - t.equal(moment("2009-10-17T20:00:00+00:00").tz("Antarctica/Mawson").zone(), -300, "2009-10-17T20:00:00+00:00 should be -300 minutes offset in MAWT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/mcmurdo.js b/tests/antarctica/mcmurdo.js deleted file mode 100644 index f025d1b0..00000000 --- a/tests/antarctica/mcmurdo.js +++ /dev/null @@ -1,912 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/McMurdo"] = { - - "1955" : function (t) { - t.equal(moment("1955-12-31T23:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "23:59:59", "1955-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1955-12-31T23:59:59+00:00").tz("Antarctica/McMurdo").zone(), 0, "1955-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-01-01T00:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "12:00:00", "1956-01-01T00:00:00+00:00 should be 12:00:00 NZST"); - - t.equal(moment("1956-01-01T00:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1956-01-01T00:00:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-11-02T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1974-11-02T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1974-11-02T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1974-11-02T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1974-11-02T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1974-11-02T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1974-11-02T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1974-11-02T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-22T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1975-02-22T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1975-02-22T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1975-02-22T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1975-10-25T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1975-10-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1975-10-25T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1975-10-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1975-02-22T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1975-02-22T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1975-02-22T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1975-02-22T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1975-10-25T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1975-10-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1975-10-25T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1975-10-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1976-03-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1976-03-06T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1976-03-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1976-10-30T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1976-10-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1976-10-30T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1976-10-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1976-03-06T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1976-03-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1976-03-06T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1976-03-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1976-10-30T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1976-10-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1976-10-30T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1976-10-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1977-03-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1977-03-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1977-03-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1977-10-29T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1977-10-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1977-10-29T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1977-10-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1977-03-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1977-03-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1977-03-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1977-03-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1977-10-29T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1977-10-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1977-10-29T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1977-10-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1978-03-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1978-03-04T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1978-03-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1978-10-28T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1978-10-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1978-10-28T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1978-10-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1978-03-04T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1978-03-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1978-03-04T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1978-03-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1978-10-28T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1978-10-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1978-10-28T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1978-10-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1979-03-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1979-03-03T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1979-03-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1979-10-27T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1979-10-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1979-10-27T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1979-10-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1979-03-03T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1979-03-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1979-03-03T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1979-03-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1979-10-27T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1979-10-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1979-10-27T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1979-10-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1980-03-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1980-03-01T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1980-03-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1980-10-25T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1980-10-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1980-10-25T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1980-10-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1980-03-01T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1980-03-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1980-03-01T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1980-03-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1980-10-25T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1980-10-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1980-10-25T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1980-10-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1981-02-28T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1981-02-28T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1981-02-28T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1981-10-24T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1981-10-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1981-10-24T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1981-10-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1981-02-28T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1981-02-28T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1981-02-28T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1981-02-28T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1981-10-24T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1981-10-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1981-10-24T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1981-10-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-06T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1982-03-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1982-03-06T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1982-03-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1982-10-30T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1982-10-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1982-10-30T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1982-10-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1982-03-06T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1982-03-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1982-03-06T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1982-03-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1982-10-30T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1982-10-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1982-10-30T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1982-10-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1983-03-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1983-03-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1983-03-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1983-10-29T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1983-10-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1983-10-29T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1983-10-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1983-03-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1983-03-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1983-03-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1983-03-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1983-10-29T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1983-10-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1983-10-29T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1983-10-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1984-03-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1984-03-03T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1984-03-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1984-10-27T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1984-10-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1984-10-27T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1984-10-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1984-03-03T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1984-03-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1984-03-03T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1984-03-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1984-10-27T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1984-10-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1984-10-27T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1984-10-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1985-03-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1985-03-02T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1985-03-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1985-10-26T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1985-10-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1985-10-26T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1985-10-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1985-03-02T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1985-03-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1985-03-02T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1985-03-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1985-10-26T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1985-10-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1985-10-26T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1985-10-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-01T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1986-03-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1986-03-01T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1986-03-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1986-10-25T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1986-10-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1986-10-25T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1986-10-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1986-03-01T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1986-03-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1986-03-01T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1986-03-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1986-10-25T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1986-10-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1986-10-25T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1986-10-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-28T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1987-02-28T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1987-02-28T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1987-02-28T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1987-10-24T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1987-10-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1987-10-24T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1987-10-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1987-02-28T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1987-02-28T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1987-02-28T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1987-02-28T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1987-10-24T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1987-10-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1987-10-24T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1987-10-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1988-03-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1988-03-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1988-03-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1988-10-29T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1988-10-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1988-10-29T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1988-10-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1988-03-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1988-03-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1988-03-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1988-03-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1988-10-29T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1988-10-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1988-10-29T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1988-10-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-04T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1989-03-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1989-03-04T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1989-03-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1989-10-07T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1989-10-07T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1989-10-07T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1989-10-07T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1989-03-04T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1989-03-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1989-03-04T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1989-03-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1989-10-07T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1989-10-07T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1989-10-07T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1989-10-07T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-17T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1990-03-17T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1990-03-17T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1990-03-17T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1990-10-06T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1990-10-06T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1990-10-06T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1990-10-06T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1990-03-17T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1990-03-17T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1990-03-17T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1990-03-17T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1990-10-06T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1990-10-06T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1990-10-06T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1990-10-06T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-16T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1991-03-16T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1991-03-16T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1991-03-16T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1991-10-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1991-10-05T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1991-10-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1991-10-05T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1991-03-16T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1991-03-16T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1991-03-16T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1991-03-16T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1991-10-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1991-10-05T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1991-10-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1991-10-05T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-14T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1992-03-14T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1992-03-14T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1992-03-14T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1992-10-03T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1992-10-03T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1992-10-03T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1992-10-03T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1992-03-14T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1992-03-14T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1992-03-14T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1992-03-14T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1992-10-03T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1992-10-03T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1992-10-03T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1992-10-03T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-20T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1993-03-20T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1993-03-20T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1993-03-20T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1993-10-02T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1993-10-02T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1993-10-02T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1993-10-02T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1993-03-20T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1993-03-20T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1993-03-20T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1993-03-20T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1993-10-02T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1993-10-02T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1993-10-02T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1993-10-02T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-19T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1994-03-19T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1994-03-19T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1994-03-19T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1994-10-01T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1994-10-01T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1994-10-01T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1994-10-01T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1994-03-19T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1994-03-19T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1994-03-19T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1994-03-19T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1994-10-01T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1994-10-01T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1994-10-01T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1994-10-01T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-18T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1995-03-18T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1995-03-18T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1995-03-18T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1995-09-30T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1995-09-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1995-09-30T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1995-09-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1995-03-18T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1995-03-18T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1995-03-18T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1995-03-18T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1995-09-30T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1995-09-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1995-09-30T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1995-09-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-16T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1996-03-16T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1996-03-16T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1996-03-16T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1996-10-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1996-10-05T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1996-10-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1996-10-05T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1996-03-16T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1996-03-16T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1996-03-16T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1996-03-16T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1996-10-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1996-10-05T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1996-10-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1996-10-05T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-15T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1997-03-15T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1997-03-15T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1997-03-15T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1997-10-04T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1997-10-04T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1997-10-04T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1997-10-04T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1997-03-15T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1997-03-15T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1997-03-15T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1997-03-15T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1997-10-04T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1997-10-04T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1997-10-04T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1997-10-04T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-14T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1998-03-14T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1998-03-14T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1998-03-14T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1998-10-03T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1998-10-03T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1998-10-03T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1998-10-03T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1998-03-14T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1998-03-14T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1998-03-14T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1998-03-14T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1998-10-03T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1998-10-03T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1998-10-03T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1998-10-03T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-20T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "1999-03-20T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1999-03-20T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "1999-03-20T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1999-10-02T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "1999-10-02T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1999-10-02T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "1999-10-02T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1999-03-20T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "1999-03-20T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1999-03-20T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "1999-03-20T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1999-10-02T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "1999-10-02T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1999-10-02T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "1999-10-02T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-18T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2000-03-18T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2000-03-18T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2000-03-18T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2000-09-30T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2000-09-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2000-09-30T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2000-09-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2000-03-18T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2000-03-18T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2000-03-18T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2000-03-18T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2000-09-30T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2000-09-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2000-09-30T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2000-09-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-17T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2001-03-17T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2001-03-17T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2001-03-17T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2001-10-06T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2001-10-06T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2001-10-06T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2001-10-06T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2001-03-17T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2001-03-17T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2001-03-17T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2001-03-17T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2001-10-06T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2001-10-06T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2001-10-06T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2001-10-06T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-16T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2002-03-16T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2002-03-16T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2002-03-16T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2002-10-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2002-10-05T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2002-10-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2002-10-05T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2002-03-16T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2002-03-16T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2002-03-16T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2002-03-16T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2002-10-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2002-10-05T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2002-10-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2002-10-05T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-15T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2003-03-15T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2003-03-15T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2003-03-15T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2003-10-04T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2003-10-04T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2003-10-04T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2003-10-04T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2003-03-15T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2003-03-15T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2003-03-15T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2003-03-15T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2003-10-04T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2003-10-04T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2003-10-04T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2003-10-04T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-20T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2004-03-20T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2004-03-20T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2004-03-20T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2004-10-02T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2004-10-02T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2004-10-02T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2004-10-02T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2004-03-20T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2004-03-20T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2004-03-20T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2004-03-20T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2004-10-02T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2004-10-02T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2004-10-02T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2004-10-02T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-19T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2005-03-19T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2005-03-19T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2005-03-19T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2005-10-01T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2005-10-01T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2005-10-01T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2005-10-01T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2005-03-19T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2005-03-19T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2005-03-19T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2005-03-19T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2005-10-01T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2005-10-01T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2005-10-01T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2005-10-01T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-18T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2006-03-18T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2006-03-18T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2006-03-18T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2006-09-30T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2006-09-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2006-09-30T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2006-09-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2006-03-18T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2006-03-18T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2006-03-18T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2006-03-18T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2006-09-30T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2006-09-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2006-09-30T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2006-09-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-17T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2007-03-17T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2007-03-17T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2007-03-17T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2007-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2007-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2007-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2007-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2007-03-17T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2007-03-17T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2007-03-17T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2007-03-17T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2007-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2007-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2007-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2007-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2008-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2008-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2008-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2008-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2008-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2008-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2008-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2008-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2008-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2008-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2008-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2008-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2008-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2008-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2008-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2009-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2009-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2009-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2009-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2009-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2009-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2009-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2009-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2009-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2009-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2009-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2009-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2009-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2009-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2009-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2010-04-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2010-04-03T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2010-04-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2010-09-25T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2010-09-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2010-09-25T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2010-09-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2010-04-03T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2010-04-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2010-04-03T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2010-04-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2010-09-25T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2010-09-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2010-09-25T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2010-09-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2011-04-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2011-04-02T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2011-04-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2011-09-24T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2011-09-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2011-09-24T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2011-09-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2011-04-02T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2011-04-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2011-04-02T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2011-04-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2011-09-24T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2011-09-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2011-09-24T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2011-09-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2012-03-31T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2012-03-31T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2012-03-31T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2012-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2012-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2012-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2012-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2012-03-31T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2012-03-31T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2012-03-31T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2012-03-31T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2012-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2012-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2012-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2012-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2013-04-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2013-04-06T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2013-04-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2013-09-28T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2013-09-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2013-09-28T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2013-09-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2013-04-06T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2013-04-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2013-04-06T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2013-04-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2013-09-28T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2013-09-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2013-09-28T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2013-09-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2014-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2014-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2014-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2014-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2014-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2014-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2014-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2014-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2014-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2014-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2014-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2014-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2014-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2014-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2014-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2015-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2015-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2015-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2015-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2015-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2015-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2015-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2015-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2015-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2015-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2015-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2015-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2015-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2015-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2015-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2016-04-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2016-04-02T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2016-04-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2016-09-24T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2016-09-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2016-09-24T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2016-09-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2016-04-02T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2016-04-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2016-04-02T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2016-04-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2016-09-24T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2016-09-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2016-09-24T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2016-09-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2017-04-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2017-04-01T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2017-04-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2017-09-23T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2017-09-23T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2017-09-23T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2017-09-23T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2017-04-01T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2017-04-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2017-04-01T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2017-04-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2017-09-23T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2017-09-23T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2017-09-23T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2017-09-23T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2018-03-31T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2018-03-31T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2018-03-31T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2018-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2018-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2018-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2018-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2018-03-31T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2018-03-31T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2018-03-31T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2018-03-31T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2018-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2018-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2018-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2018-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2019-04-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2019-04-06T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2019-04-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2019-09-28T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2019-09-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2019-09-28T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2019-09-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2019-04-06T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2019-04-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2019-04-06T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2019-04-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2019-09-28T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2019-09-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2019-09-28T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2019-09-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2020-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2020-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2020-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2020-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2020-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2020-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2020-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2020-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2020-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2020-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2020-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2020-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2020-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2020-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2020-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2021-04-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2021-04-03T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2021-04-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2021-09-25T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2021-09-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2021-09-25T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2021-09-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2021-04-03T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2021-04-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2021-04-03T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2021-04-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2021-09-25T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2021-09-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2021-09-25T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2021-09-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2022-04-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2022-04-02T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2022-04-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2022-09-24T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2022-09-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2022-09-24T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2022-09-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2022-04-02T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2022-04-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2022-04-02T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2022-04-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2022-09-24T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2022-09-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2022-09-24T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2022-09-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2023-04-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2023-04-01T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2023-04-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2023-09-23T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2023-09-23T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2023-09-23T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2023-09-23T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2023-04-01T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2023-04-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2023-04-01T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2023-04-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2023-09-23T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2023-09-23T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2023-09-23T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2023-09-23T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2024-04-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2024-04-06T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2024-04-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2024-09-28T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2024-09-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2024-09-28T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2024-09-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2024-04-06T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2024-04-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2024-04-06T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2024-04-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2024-09-28T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2024-09-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2024-09-28T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2024-09-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2025-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2025-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2025-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2025-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2025-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2025-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2025-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2025-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2025-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2025-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2025-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2025-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2025-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2025-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2025-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2026-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2026-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2026-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2026-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2026-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2026-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2026-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2026-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2026-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2026-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2026-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2026-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2026-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2026-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2026-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2027-04-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2027-04-03T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2027-04-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2027-09-25T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2027-09-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2027-09-25T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2027-09-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2027-04-03T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2027-04-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2027-04-03T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2027-04-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2027-09-25T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2027-09-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2027-09-25T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2027-09-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2028-04-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2028-04-01T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2028-04-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2028-09-23T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2028-09-23T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2028-09-23T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2028-09-23T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2028-04-01T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2028-04-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2028-04-01T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2028-04-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2028-09-23T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2028-09-23T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2028-09-23T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2028-09-23T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2029-03-31T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2029-03-31T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2029-03-31T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2029-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2029-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2029-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2029-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2029-03-31T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2029-03-31T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2029-03-31T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2029-03-31T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2029-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2029-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2029-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2029-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2030-04-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2030-04-06T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2030-04-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2030-09-28T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2030-09-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2030-09-28T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2030-09-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2030-04-06T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2030-04-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2030-04-06T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2030-04-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2030-09-28T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2030-09-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2030-09-28T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2030-09-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2031-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2031-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2031-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2031-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2031-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2031-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2031-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2031-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2031-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2031-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2031-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2031-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2031-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2031-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2031-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2032-04-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2032-04-03T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2032-04-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2032-09-25T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2032-09-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2032-09-25T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2032-09-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2032-04-03T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2032-04-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2032-04-03T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2032-04-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2032-09-25T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2032-09-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2032-09-25T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2032-09-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2033-04-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2033-04-02T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2033-04-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2033-09-24T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2033-09-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2033-09-24T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2033-09-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2033-04-02T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2033-04-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2033-04-02T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2033-04-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2033-09-24T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2033-09-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2033-09-24T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2033-09-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2034-04-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2034-04-01T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2034-04-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2034-09-23T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2034-09-23T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2034-09-23T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2034-09-23T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2034-04-01T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2034-04-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2034-04-01T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2034-04-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2034-09-23T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2034-09-23T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2034-09-23T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2034-09-23T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2035-03-31T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2035-03-31T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2035-03-31T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2035-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2035-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2035-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2035-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2035-03-31T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2035-03-31T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2035-03-31T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2035-03-31T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2035-09-29T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2035-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2035-09-29T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2035-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2036-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2036-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2036-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2036-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2036-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2036-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2036-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2036-04-05T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2036-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2036-04-05T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2036-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2036-09-27T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2036-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2036-09-27T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2036-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:59:59", "2037-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2037-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "02:00:00", "2037-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2037-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "01:59:59", "2037-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2037-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").format("HH:mm:ss"), "03:00:00", "2037-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2037-04-04T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -780, "2037-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2037-04-04T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -720, "2037-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2037-09-26T13:59:59+00:00").tz("Antarctica/McMurdo").zone(), -720, "2037-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2037-09-26T14:00:00+00:00").tz("Antarctica/McMurdo").zone(), -780, "2037-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/palmer.js b/tests/antarctica/palmer.js deleted file mode 100644 index afd3b0f3..00000000 --- a/tests/antarctica/palmer.js +++ /dev/null @@ -1,882 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/Palmer"] = { - - "1964" : function (t) { - t.equal(moment("1964-12-31T23:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1964-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1964-12-31T23:59:59+00:00").tz("Antarctica/Palmer").zone(), 0, "1964-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-01-01T00:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "21:00:00", "1965-01-01T00:00:00+00:00 should be 21:00:00 ARST"); - t.equal(moment("1965-03-01T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1965-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1965-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1965-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1965-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1965-01-01T00:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1965-01-01T00:00:00+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1965-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1965-03-01T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1965-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1965-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1965-10-15T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1965-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-01T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1966-03-01T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1966-03-01T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1966-10-15T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1966-10-15T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1966-03-01T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1966-03-01T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1966-03-01T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1966-03-01T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1966-10-15T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1966-10-15T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1966-10-15T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1967-04-02T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1967-04-02T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1967-10-01T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1967-10-01T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1967-04-02T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1967-04-02T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1967-04-02T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1967-04-02T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1967-10-01T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1967-10-01T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1967-10-01T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1968-04-07T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1968-04-07T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1968-10-06T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1968-10-06T04:00:00+00:00 should be 01:00:00 ARST"); - - t.equal(moment("1968-04-07T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1968-04-07T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1968-04-07T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1968-04-07T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1968-10-06T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1968-10-06T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1968-10-06T04:00:00+00:00 should be 180 minutes offset in ARST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-06T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1969-04-06T02:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1969-04-06T03:00:00+00:00 should be 23:00:00 ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1969-10-05T03:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1969-10-05T04:00:00+00:00 should be 01:00:00 ART"); - - t.equal(moment("1969-04-06T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1969-04-06T02:59:59+00:00 should be 180 minutes offset in ARST"); - t.equal(moment("1969-04-06T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1969-04-06T03:00:00+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1969-10-05T03:59:59+00:00 should be 240 minutes offset in ART"); - t.equal(moment("1969-10-05T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1969-10-05T04:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-23T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1974-01-23T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1974-01-23T03:00:00+00:00 should be 01:00:00 ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1974-05-01T01:59:59+00:00 should be 23:59:59 ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1974-05-01T02:00:00+00:00 should be 23:00:00 ART"); - - t.equal(moment("1974-01-23T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1974-01-23T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1974-01-23T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 120, "1974-01-23T03:00:00+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T01:59:59+00:00").tz("Antarctica/Palmer").zone(), 120, "1974-05-01T01:59:59+00:00 should be 120 minutes offset in ARST"); - t.equal(moment("1974-05-01T02:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1974-05-01T02:00:00+00:00 should be 180 minutes offset in ART"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-05-01T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1982-05-01T02:59:59+00:00 should be 23:59:59 ART"); - t.equal(moment("1982-05-01T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1982-05-01T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1982-10-10T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1982-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1982-10-10T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1982-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1982-05-01T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1982-05-01T02:59:59+00:00 should be 180 minutes offset in ART"); - t.equal(moment("1982-05-01T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1982-05-01T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1982-10-10T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1982-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1982-10-10T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1982-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-13T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1983-03-13T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1983-03-13T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1983-03-13T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1983-10-09T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1983-10-09T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1983-10-09T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1983-10-09T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1983-03-13T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1983-03-13T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1983-03-13T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1983-03-13T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1983-10-09T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1983-10-09T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1983-10-09T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1983-10-09T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-11T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1984-03-11T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1984-03-11T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1984-03-11T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1984-10-14T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1984-10-14T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1984-10-14T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1984-10-14T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1984-03-11T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1984-03-11T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1984-03-11T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1984-03-11T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1984-10-14T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1984-10-14T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1984-10-14T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1984-10-14T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-10T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1985-03-10T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1985-03-10T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1985-03-10T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1985-10-13T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1985-10-13T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1985-10-13T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1985-10-13T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1985-03-10T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1985-03-10T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1985-03-10T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1985-03-10T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1985-10-13T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1985-10-13T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1985-10-13T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1985-10-13T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-09T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1986-03-09T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1986-03-09T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1986-03-09T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1986-10-12T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1986-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1986-10-12T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1986-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1986-03-09T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1986-03-09T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1986-03-09T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1986-03-09T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1986-10-12T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1986-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1986-10-12T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1986-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-12T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1987-04-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1987-04-12T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1987-04-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1987-10-11T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1987-10-11T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1987-10-11T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1987-10-11T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1987-04-12T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1987-04-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1987-04-12T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1987-04-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1987-10-11T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1987-10-11T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1987-10-11T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1987-10-11T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-13T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1988-03-13T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1988-03-13T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1988-03-13T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1988-10-02T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1988-10-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1988-10-02T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1988-10-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1988-03-13T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1988-03-13T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1988-03-13T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1988-03-13T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1988-10-02T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1988-10-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1988-10-02T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1988-10-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-12T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1989-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1989-03-12T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1989-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1989-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1989-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1989-03-12T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1989-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1989-03-12T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1989-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1989-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1989-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-18T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1990-03-18T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1990-03-18T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1990-03-18T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1990-09-16T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1990-09-16T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1990-09-16T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1990-09-16T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1990-03-18T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1990-03-18T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1990-03-18T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1990-03-18T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1990-09-16T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1990-09-16T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1990-09-16T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1990-09-16T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-10T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1991-03-10T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1991-03-10T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1991-03-10T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1991-10-13T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1991-10-13T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1991-10-13T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1991-10-13T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1991-03-10T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1991-03-10T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1991-03-10T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1991-03-10T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1991-10-13T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1991-10-13T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1991-10-13T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1991-10-13T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-15T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1992-03-15T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1992-03-15T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1992-03-15T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1992-10-11T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1992-10-11T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1992-10-11T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1992-10-11T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1992-03-15T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1992-03-15T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1992-03-15T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1992-03-15T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1992-10-11T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1992-10-11T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1992-10-11T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1992-10-11T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-14T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1993-03-14T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1993-03-14T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1993-03-14T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1993-10-10T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1993-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1993-10-10T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1993-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1993-03-14T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1993-03-14T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1993-03-14T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1993-03-14T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1993-10-10T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1993-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1993-10-10T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1993-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-13T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1994-03-13T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1994-03-13T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1994-03-13T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1994-10-09T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1994-10-09T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1994-10-09T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1994-10-09T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1994-03-13T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1994-03-13T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1994-03-13T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1994-03-13T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1994-10-09T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1994-10-09T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1994-10-09T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1994-10-09T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-12T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1995-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1995-03-12T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1995-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1995-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1995-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1995-03-12T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1995-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1995-03-12T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1995-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1995-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1995-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-10T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1996-03-10T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1996-03-10T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1996-03-10T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1996-10-13T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1996-10-13T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1996-10-13T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1996-10-13T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1996-03-10T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1996-03-10T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1996-03-10T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1996-03-10T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1996-10-13T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1996-10-13T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1996-10-13T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1996-10-13T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1997-03-30T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1997-03-30T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1997-03-30T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1997-10-12T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1997-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1997-10-12T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1997-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1997-03-30T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1997-03-30T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1997-03-30T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1997-03-30T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1997-10-12T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1997-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1997-10-12T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1997-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-15T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1998-03-15T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1998-03-15T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1998-03-15T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1998-09-27T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1998-09-27T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1998-09-27T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1998-09-27T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1998-03-15T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1998-03-15T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1998-03-15T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1998-03-15T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1998-09-27T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1998-09-27T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1998-09-27T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1998-09-27T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1999-04-04T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("1999-04-04T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "1999-04-04T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("1999-10-10T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "1999-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("1999-10-10T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "1999-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("1999-04-04T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "1999-04-04T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("1999-04-04T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "1999-04-04T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1999-10-10T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "1999-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("1999-10-10T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "1999-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-12T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2000-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2000-03-12T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2000-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2000-10-15T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2000-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2000-10-15T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2000-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2000-03-12T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2000-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2000-03-12T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2000-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2000-10-15T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2000-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2000-10-15T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2000-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-11T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2001-03-11T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2001-03-11T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2001-03-11T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2001-10-14T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2001-10-14T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2001-03-11T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2001-03-11T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2001-03-11T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2001-03-11T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2001-10-14T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2001-10-14T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-10T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2002-03-10T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2002-03-10T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2002-03-10T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2002-10-13T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2002-10-13T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2002-10-13T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2002-10-13T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2002-03-10T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2002-03-10T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2002-03-10T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2002-03-10T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2002-10-13T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2002-10-13T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2002-10-13T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2002-10-13T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-09T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2003-03-09T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2003-03-09T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2003-03-09T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2003-10-12T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2003-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2003-10-12T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2003-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2003-03-09T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2003-03-09T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2003-03-09T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2003-03-09T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2003-10-12T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2003-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2003-10-12T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2003-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-14T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2004-03-14T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2004-03-14T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2004-03-14T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2004-10-10T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2004-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2004-10-10T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2004-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2004-03-14T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2004-03-14T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2004-03-14T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2004-03-14T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2004-10-10T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2004-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2004-10-10T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2004-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-13T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2005-03-13T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2005-03-13T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2005-03-13T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2005-10-09T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2005-10-09T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2005-10-09T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2005-10-09T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2005-03-13T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2005-03-13T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2005-03-13T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2005-03-13T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2005-10-09T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2005-10-09T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2005-10-09T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2005-10-09T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-12T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2006-03-12T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2006-03-12T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2006-03-12T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2006-10-15T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2006-10-15T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2006-10-15T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2006-10-15T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2006-03-12T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2006-03-12T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2006-03-12T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2006-03-12T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2006-10-15T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2006-10-15T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2006-10-15T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2006-10-15T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2007-03-11T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2007-03-11T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2007-03-11T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2007-10-14T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2007-10-14T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2007-03-11T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2007-03-11T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2007-03-11T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2007-03-11T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2007-10-14T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2007-10-14T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2008-03-30T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2008-03-30T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2008-03-30T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2008-10-12T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2008-10-12T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2008-10-12T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2008-10-12T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2008-03-30T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2008-03-30T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2008-03-30T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2008-03-30T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2008-10-12T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2008-10-12T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2008-10-12T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2008-10-12T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-15T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2009-03-15T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2009-03-15T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2009-03-15T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2009-10-11T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2009-10-11T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2009-10-11T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2009-10-11T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2009-03-15T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2009-03-15T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2009-03-15T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2009-03-15T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2009-10-11T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2009-10-11T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2009-10-11T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2009-10-11T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2010-04-04T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2010-04-04T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2010-04-04T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2010-10-10T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2010-10-10T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2010-10-10T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2010-10-10T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2010-04-04T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2010-04-04T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2010-04-04T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2010-04-04T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2010-10-10T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2010-10-10T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2010-10-10T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2010-10-10T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-05-08T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2011-05-08T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2011-05-08T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2011-05-08T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2011-08-21T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2011-08-21T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2011-08-21T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2011-08-21T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2011-05-08T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2011-05-08T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2011-05-08T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2011-05-08T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2011-08-21T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2011-08-21T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2011-08-21T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2011-08-21T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-29T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2012-04-29T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2012-04-29T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2012-04-29T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2012-09-02T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2012-09-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2012-09-02T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2012-09-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2012-04-29T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2012-04-29T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2012-04-29T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2012-04-29T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2012-09-02T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2012-09-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2012-09-02T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2012-09-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-28T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2013-04-28T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2013-04-28T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2013-04-28T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2013-09-08T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2013-09-08T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2013-09-08T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2013-09-08T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2013-04-28T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2013-04-28T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2013-04-28T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2013-04-28T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2013-09-08T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2013-09-08T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2013-09-08T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2013-09-08T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-27T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2014-04-27T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2014-04-27T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2014-04-27T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2014-09-07T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2014-09-07T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2014-09-07T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2014-09-07T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2014-04-27T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2014-04-27T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2014-04-27T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2014-04-27T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2014-09-07T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2014-09-07T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2014-09-07T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2014-09-07T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-26T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2015-04-26T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2015-04-26T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2015-04-26T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2015-09-06T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2015-09-06T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2015-09-06T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2015-09-06T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2015-04-26T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2015-04-26T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2015-04-26T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2015-04-26T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2015-09-06T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2015-09-06T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2015-09-06T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2015-09-06T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-24T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2016-04-24T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2016-04-24T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2016-04-24T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2016-09-04T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2016-09-04T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2016-09-04T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2016-09-04T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2016-04-24T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2016-04-24T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2016-04-24T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2016-04-24T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2016-09-04T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2016-09-04T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2016-09-04T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2016-09-04T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-23T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2017-04-23T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2017-04-23T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2017-04-23T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2017-09-03T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2017-09-03T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2017-09-03T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2017-09-03T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2017-04-23T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2017-04-23T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2017-04-23T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2017-04-23T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2017-09-03T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2017-09-03T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2017-09-03T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2017-09-03T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-29T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2018-04-29T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2018-04-29T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2018-04-29T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2018-09-02T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2018-09-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2018-09-02T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2018-09-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2018-04-29T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2018-04-29T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2018-04-29T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2018-04-29T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2018-09-02T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2018-09-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2018-09-02T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2018-09-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-28T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2019-04-28T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2019-04-28T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2019-04-28T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2019-09-08T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2019-09-08T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2019-09-08T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2019-09-08T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2019-04-28T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2019-04-28T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2019-04-28T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2019-04-28T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2019-09-08T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2019-09-08T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2019-09-08T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2019-09-08T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-26T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2020-04-26T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2020-04-26T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2020-04-26T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2020-09-06T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2020-09-06T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2020-09-06T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2020-09-06T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2020-04-26T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2020-04-26T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2020-04-26T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2020-04-26T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2020-09-06T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2020-09-06T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2020-09-06T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2020-09-06T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-25T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2021-04-25T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2021-04-25T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2021-04-25T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2021-09-05T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2021-09-05T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2021-09-05T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2021-09-05T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2021-04-25T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2021-04-25T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2021-04-25T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2021-04-25T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2021-09-05T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2021-09-05T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2021-09-05T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2021-09-05T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-24T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2022-04-24T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2022-04-24T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2022-04-24T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2022-09-04T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2022-09-04T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2022-09-04T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2022-09-04T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2022-04-24T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2022-04-24T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2022-04-24T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2022-04-24T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2022-09-04T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2022-09-04T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2022-09-04T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2022-09-04T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-23T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2023-04-23T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2023-04-23T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2023-04-23T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2023-09-03T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2023-09-03T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2023-09-03T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2023-09-03T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2023-04-23T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2023-04-23T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2023-04-23T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2023-04-23T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2023-09-03T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2023-09-03T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2023-09-03T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2023-09-03T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-28T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2024-04-28T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2024-04-28T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2024-04-28T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2024-09-08T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2024-09-08T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2024-09-08T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2024-09-08T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2024-04-28T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2024-04-28T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2024-04-28T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2024-04-28T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2024-09-08T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2024-09-08T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2024-09-08T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2024-09-08T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-27T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2025-04-27T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2025-04-27T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2025-04-27T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2025-09-07T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2025-09-07T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2025-09-07T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2025-09-07T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2025-04-27T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2025-04-27T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2025-04-27T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2025-04-27T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2025-09-07T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2025-09-07T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2025-09-07T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2025-09-07T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-26T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2026-04-26T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2026-04-26T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2026-04-26T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2026-09-06T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2026-09-06T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2026-09-06T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2026-09-06T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2026-04-26T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2026-04-26T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2026-04-26T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2026-04-26T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2026-09-06T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2026-09-06T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2026-09-06T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2026-09-06T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-25T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2027-04-25T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2027-04-25T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2027-04-25T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2027-09-05T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2027-09-05T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2027-09-05T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2027-09-05T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2027-04-25T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2027-04-25T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2027-04-25T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2027-04-25T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2027-09-05T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2027-09-05T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2027-09-05T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2027-09-05T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-23T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2028-04-23T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2028-04-23T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2028-04-23T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2028-09-03T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2028-09-03T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2028-09-03T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2028-09-03T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2028-04-23T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2028-04-23T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2028-04-23T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2028-04-23T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2028-09-03T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2028-09-03T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2028-09-03T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2028-09-03T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-29T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2029-04-29T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2029-04-29T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2029-04-29T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2029-09-02T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2029-09-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2029-09-02T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2029-09-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2029-04-29T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2029-04-29T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2029-04-29T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2029-04-29T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2029-09-02T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2029-09-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2029-09-02T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2029-09-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-28T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2030-04-28T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2030-04-28T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2030-04-28T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2030-09-08T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2030-09-08T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2030-09-08T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2030-09-08T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2030-04-28T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2030-04-28T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2030-04-28T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2030-04-28T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2030-09-08T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2030-09-08T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2030-09-08T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2030-09-08T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-27T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2031-04-27T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2031-04-27T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2031-04-27T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2031-09-07T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2031-09-07T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2031-09-07T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2031-09-07T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2031-04-27T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2031-04-27T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2031-04-27T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2031-04-27T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2031-09-07T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2031-09-07T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2031-09-07T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2031-09-07T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-25T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2032-04-25T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2032-04-25T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2032-04-25T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2032-09-05T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2032-09-05T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2032-09-05T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2032-09-05T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2032-04-25T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2032-04-25T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2032-04-25T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2032-04-25T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2032-09-05T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2032-09-05T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2032-09-05T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2032-09-05T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-24T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2033-04-24T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2033-04-24T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2033-04-24T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2033-09-04T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2033-09-04T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2033-09-04T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2033-09-04T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2033-04-24T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2033-04-24T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2033-04-24T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2033-04-24T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2033-09-04T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2033-09-04T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2033-09-04T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2033-09-04T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-23T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2034-04-23T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2034-04-23T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2034-04-23T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2034-09-03T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2034-09-03T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2034-09-03T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2034-09-03T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2034-04-23T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2034-04-23T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2034-04-23T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2034-04-23T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2034-09-03T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2034-09-03T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2034-09-03T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2034-09-03T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-29T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2035-04-29T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2035-04-29T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2035-04-29T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2035-09-02T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2035-09-02T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2035-09-02T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2035-09-02T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2035-04-29T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2035-04-29T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2035-04-29T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2035-04-29T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2035-09-02T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2035-09-02T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2035-09-02T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2035-09-02T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-27T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2036-04-27T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2036-04-27T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2036-04-27T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2036-09-07T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2036-09-07T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2036-09-07T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2036-09-07T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2036-04-27T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2036-04-27T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2036-04-27T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2036-04-27T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2036-09-07T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2036-09-07T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2036-09-07T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2036-09-07T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-26T02:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2037-04-26T02:59:59+00:00 should be 23:59:59 CLST"); - t.equal(moment("2037-04-26T03:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:00:00", "2037-04-26T03:00:00+00:00 should be 23:00:00 CLT"); - t.equal(moment("2037-09-06T03:59:59+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "23:59:59", "2037-09-06T03:59:59+00:00 should be 23:59:59 CLT"); - t.equal(moment("2037-09-06T04:00:00+00:00").tz("Antarctica/Palmer").format("HH:mm:ss"), "01:00:00", "2037-09-06T04:00:00+00:00 should be 01:00:00 CLST"); - - t.equal(moment("2037-04-26T02:59:59+00:00").tz("Antarctica/Palmer").zone(), 180, "2037-04-26T02:59:59+00:00 should be 180 minutes offset in CLST"); - t.equal(moment("2037-04-26T03:00:00+00:00").tz("Antarctica/Palmer").zone(), 240, "2037-04-26T03:00:00+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2037-09-06T03:59:59+00:00").tz("Antarctica/Palmer").zone(), 240, "2037-09-06T03:59:59+00:00 should be 240 minutes offset in CLT"); - t.equal(moment("2037-09-06T04:00:00+00:00").tz("Antarctica/Palmer").zone(), 180, "2037-09-06T04:00:00+00:00 should be 180 minutes offset in CLST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/rothera.js b/tests/antarctica/rothera.js deleted file mode 100644 index 0f2cc954..00000000 --- a/tests/antarctica/rothera.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/Rothera"] = { - - "1976" : function (t) { - t.equal(moment("1976-11-30T23:59:59+00:00").tz("Antarctica/Rothera").format("HH:mm:ss"), "23:59:59", "1976-11-30T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1976-12-01T00:00:00+00:00").tz("Antarctica/Rothera").format("HH:mm:ss"), "21:00:00", "1976-12-01T00:00:00+00:00 should be 21:00:00 ROTT"); - - t.equal(moment("1976-11-30T23:59:59+00:00").tz("Antarctica/Rothera").zone(), 0, "1976-11-30T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1976-12-01T00:00:00+00:00").tz("Antarctica/Rothera").zone(), 180, "1976-12-01T00:00:00+00:00 should be 180 minutes offset in ROTT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/syowa.js b/tests/antarctica/syowa.js deleted file mode 100644 index de8b9841..00000000 --- a/tests/antarctica/syowa.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/Syowa"] = { - - "1957" : function (t) { - t.equal(moment("1957-01-28T23:59:59+00:00").tz("Antarctica/Syowa").format("HH:mm:ss"), "23:59:59", "1957-01-28T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1957-01-29T00:00:00+00:00").tz("Antarctica/Syowa").format("HH:mm:ss"), "03:00:00", "1957-01-29T00:00:00+00:00 should be 03:00:00 SYOT"); - - t.equal(moment("1957-01-28T23:59:59+00:00").tz("Antarctica/Syowa").zone(), 0, "1957-01-28T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1957-01-29T00:00:00+00:00").tz("Antarctica/Syowa").zone(), -180, "1957-01-29T00:00:00+00:00 should be -180 minutes offset in SYOT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/antarctica/vostok.js b/tests/antarctica/vostok.js deleted file mode 100644 index a228085e..00000000 --- a/tests/antarctica/vostok.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Antarctica/Vostok"] = { - - "1957" : function (t) { - t.equal(moment("1957-12-15T23:59:59+00:00").tz("Antarctica/Vostok").format("HH:mm:ss"), "23:59:59", "1957-12-15T23:59:59+00:00 should be 23:59:59 zzz"); - t.equal(moment("1957-12-16T00:00:00+00:00").tz("Antarctica/Vostok").format("HH:mm:ss"), "06:00:00", "1957-12-16T00:00:00+00:00 should be 06:00:00 VOST"); - - t.equal(moment("1957-12-15T23:59:59+00:00").tz("Antarctica/Vostok").zone(), 0, "1957-12-15T23:59:59+00:00 should be 0 minutes offset in zzz"); - t.equal(moment("1957-12-16T00:00:00+00:00").tz("Antarctica/Vostok").zone(), -360, "1957-12-16T00:00:00+00:00 should be -360 minutes offset in VOST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/aden.js b/tests/asia/aden.js deleted file mode 100644 index d12a5954..00000000 --- a/tests/asia/aden.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Aden"] = { - - "1949" : function (t) { - t.equal(moment("1949-12-31T21:00:05+00:00").tz("Asia/Aden").format("HH:mm:ss"), "23:59:59", "1949-12-31T21:00:05+00:00 should be 23:59:59 LMT"); - t.equal(moment("1949-12-31T21:00:06+00:00").tz("Asia/Aden").format("HH:mm:ss"), "00:00:06", "1949-12-31T21:00:06+00:00 should be 00:00:06 AST"); - - t.equal(moment("1949-12-31T21:00:05+00:00").tz("Asia/Aden").zone(), -10794 / 60, "1949-12-31T21:00:05+00:00 should be -10794 / 60 minutes offset in LMT"); - t.equal(moment("1949-12-31T21:00:06+00:00").tz("Asia/Aden").zone(), -180, "1949-12-31T21:00:06+00:00 should be -180 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/almaty.js b/tests/asia/almaty.js deleted file mode 100644 index 5686f139..00000000 --- a/tests/asia/almaty.js +++ /dev/null @@ -1,346 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Almaty"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T18:52:11+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:59:59", "1924-05-01T18:52:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T18:52:12+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:52:12", "1924-05-01T18:52:12+00:00 should be 23:52:12 ALMT"); - - t.equal(moment("1924-05-01T18:52:11+00:00").tz("Asia/Almaty").zone(), -18468 / 60, "1924-05-01T18:52:11+00:00 should be -18468 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T18:52:12+00:00").tz("Asia/Almaty").zone(), -300, "1924-05-01T18:52:12+00:00 should be -300 minutes offset in ALMT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:59:59", "1930-06-20T18:59:59+00:00 should be 23:59:59 ALMT"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:00:00", "1930-06-20T19:00:00+00:00 should be 01:00:00 ALMT"); - - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Almaty").zone(), -300, "1930-06-20T18:59:59+00:00 should be -300 minutes offset in ALMT"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1930-06-20T19:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:59:59", "1981-03-31T17:59:59+00:00 should be 23:59:59 ALMT"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:00:00", "1981-03-31T18:00:00+00:00 should be 01:00:00 ALMST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:59:59", "1981-09-30T16:59:59+00:00 should be 23:59:59 ALMST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:00:00", "1981-09-30T17:00:00+00:00 should be 23:00:00 ALMT"); - - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1981-03-31T17:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1981-03-31T18:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1981-09-30T16:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1981-09-30T17:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 ALMT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:00:00", "1982-03-31T18:00:00+00:00 should be 01:00:00 ALMST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:59:59", "1982-09-30T16:59:59+00:00 should be 23:59:59 ALMST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:00:00", "1982-09-30T17:00:00+00:00 should be 23:00:00 ALMT"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1982-03-31T18:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1982-09-30T16:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1982-09-30T17:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:59:59", "1983-03-31T17:59:59+00:00 should be 23:59:59 ALMT"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:00:00", "1983-03-31T18:00:00+00:00 should be 01:00:00 ALMST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:59:59", "1983-09-30T16:59:59+00:00 should be 23:59:59 ALMST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:00:00", "1983-09-30T17:00:00+00:00 should be 23:00:00 ALMT"); - - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1983-03-31T17:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1983-03-31T18:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1983-09-30T16:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1983-09-30T17:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "23:59:59", "1984-03-31T17:59:59+00:00 should be 23:59:59 ALMT"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:00:00", "1984-03-31T18:00:00+00:00 should be 01:00:00 ALMST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1984-09-29T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1984-09-29T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1984-03-31T17:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1984-03-31T18:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1984-09-29T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1984-09-29T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1985-03-30T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1985-03-30T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1985-09-28T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1985-09-28T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1985-03-30T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1985-03-30T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1985-09-28T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1985-09-28T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1986-03-29T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1986-03-29T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1986-09-27T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1986-09-27T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1986-03-29T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1986-03-29T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1986-09-27T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1986-09-27T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1987-03-28T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1987-03-28T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1987-09-26T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1987-09-26T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1987-03-28T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1987-03-28T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1987-09-26T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1987-09-26T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1988-03-26T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1988-03-26T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1988-09-24T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1988-09-24T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1988-03-26T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1988-03-26T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1988-09-24T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1988-09-24T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1989-03-25T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1989-03-25T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1989-09-23T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1989-09-23T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1989-03-25T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1989-03-25T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1989-09-23T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1989-09-23T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1990-03-24T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1990-03-24T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1990-09-29T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1990-09-29T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1990-03-24T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1990-03-24T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1990-09-29T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1990-09-29T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T16:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "22:59:59", "1992-03-28T16:59:59+00:00 should be 22:59:59 ALMT"); - t.equal(moment("1992-03-28T17:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "00:00:00", "1992-03-28T17:00:00+00:00 should be 00:00:00 ALMST"); - t.equal(moment("1992-09-26T15:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "22:59:59", "1992-09-26T15:59:59+00:00 should be 22:59:59 ALMST"); - t.equal(moment("1992-09-26T16:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "22:00:00", "1992-09-26T16:00:00+00:00 should be 22:00:00 ALMT"); - - t.equal(moment("1992-03-28T16:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1992-03-28T16:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1992-03-28T17:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1992-03-28T17:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1992-09-26T15:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1992-09-26T15:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1992-09-26T16:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1992-09-26T16:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1993-03-27T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1993-03-27T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1993-03-27T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1993-09-25T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1993-09-25T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1993-03-27T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1993-03-27T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1993-03-27T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1993-03-27T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1993-09-25T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1993-09-25T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1994-03-26T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1994-03-26T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1994-03-26T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1994-09-24T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1994-09-24T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1994-03-26T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1994-03-26T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1994-03-26T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1994-03-26T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1994-09-24T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1994-09-24T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1995-03-25T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1995-03-25T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1995-09-23T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1995-09-23T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1995-03-25T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1995-03-25T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1995-09-23T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1995-09-23T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1996-03-30T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1996-03-30T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1996-10-26T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1996-10-26T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1996-10-26T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1996-10-26T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1996-03-30T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1996-03-30T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1996-10-26T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1996-10-26T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1996-10-26T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1996-10-26T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1997-03-29T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1997-03-29T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1997-03-29T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1997-10-25T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1997-10-25T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1997-10-25T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1997-10-25T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1997-03-29T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1997-03-29T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1997-03-29T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1997-03-29T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1997-10-25T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1997-10-25T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1997-10-25T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1997-10-25T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1998-03-28T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1998-03-28T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1998-10-24T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1998-10-24T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1998-10-24T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1998-10-24T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1998-03-28T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1998-03-28T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1998-10-24T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1998-10-24T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1998-10-24T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1998-10-24T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "1999-03-27T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "1999-03-27T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("1999-10-30T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "1999-10-30T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("1999-10-30T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "1999-10-30T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "1999-03-27T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "1999-03-27T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1999-10-30T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "1999-10-30T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("1999-10-30T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "1999-10-30T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "2000-03-25T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "2000-03-25T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("2000-10-28T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "2000-10-28T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("2000-10-28T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "2000-10-28T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "2000-03-25T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "2000-03-25T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2000-10-28T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "2000-10-28T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2000-10-28T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "2000-10-28T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "2001-03-24T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "2001-03-24T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("2001-10-27T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "2001-10-27T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("2001-10-27T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "2001-10-27T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "2001-03-24T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "2001-03-24T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2001-10-27T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "2001-10-27T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2001-10-27T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "2001-10-27T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "2002-03-30T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "2002-03-30T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("2002-10-26T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "2002-10-26T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("2002-10-26T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "2002-10-26T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "2002-03-30T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "2002-03-30T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2002-10-26T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "2002-10-26T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2002-10-26T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "2002-10-26T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "2003-03-29T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "2003-03-29T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("2003-10-25T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "2003-10-25T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("2003-10-25T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "2003-10-25T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "2003-03-29T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "2003-03-29T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2003-10-25T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "2003-10-25T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2003-10-25T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "2003-10-25T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "01:59:59", "2004-03-27T19:59:59+00:00 should be 01:59:59 ALMT"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "03:00:00", "2004-03-27T20:00:00+00:00 should be 03:00:00 ALMST"); - t.equal(moment("2004-10-30T19:59:59+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:59:59", "2004-10-30T19:59:59+00:00 should be 02:59:59 ALMST"); - t.equal(moment("2004-10-30T20:00:00+00:00").tz("Asia/Almaty").format("HH:mm:ss"), "02:00:00", "2004-10-30T20:00:00+00:00 should be 02:00:00 ALMT"); - - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Almaty").zone(), -360, "2004-03-27T19:59:59+00:00 should be -360 minutes offset in ALMT"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Almaty").zone(), -420, "2004-03-27T20:00:00+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2004-10-30T19:59:59+00:00").tz("Asia/Almaty").zone(), -420, "2004-10-30T19:59:59+00:00 should be -420 minutes offset in ALMST"); - t.equal(moment("2004-10-30T20:00:00+00:00").tz("Asia/Almaty").zone(), -360, "2004-10-30T20:00:00+00:00 should be -360 minutes offset in ALMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/amman.js b/tests/asia/amman.js deleted file mode 100644 index 7edd254b..00000000 --- a/tests/asia/amman.js +++ /dev/null @@ -1,832 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Amman"] = { - - "1930" : function (t) { - t.equal(moment("1930-12-31T21:36:15+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1930-12-31T21:36:15+00:00 should be 23:59:59 LMT"); - t.equal(moment("1930-12-31T21:36:16+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:36:16", "1930-12-31T21:36:16+00:00 should be 23:36:16 EET"); - - t.equal(moment("1930-12-31T21:36:15+00:00").tz("Asia/Amman").zone(), -8624 / 60, "1930-12-31T21:36:15+00:00 should be -8624 / 60 minutes offset in LMT"); - t.equal(moment("1930-12-31T21:36:16+00:00").tz("Asia/Amman").zone(), -120, "1930-12-31T21:36:16+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-06-05T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1973-06-05T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1973-06-05T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1973-06-05T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1973-09-30T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1973-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1973-09-30T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1973-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1973-06-05T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1973-06-05T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1973-06-05T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1973-06-05T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-09-30T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1973-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-09-30T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1973-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1974-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1974-04-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1974-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1974-09-30T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1974-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1974-09-30T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1974-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1974-04-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1974-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1974-04-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1974-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-09-30T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1974-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-09-30T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1974-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1975-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1975-04-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1975-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1975-09-30T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1975-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1975-09-30T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1975-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1975-04-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1975-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1975-04-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1975-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-09-30T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1975-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-09-30T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1975-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1976-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1976-04-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1976-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1976-10-31T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1976-10-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1976-10-31T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1976-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1976-04-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1976-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1976-04-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1976-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-10-31T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1976-10-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-10-31T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1976-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1977-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1977-04-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1977-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1977-09-30T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1977-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1977-09-30T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1977-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1977-04-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1977-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1977-04-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1977-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-30T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1977-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-30T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1977-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1978-04-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1978-04-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1978-04-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1978-09-29T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1978-09-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1978-09-29T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1978-09-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1978-04-29T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1978-04-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1978-04-29T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1978-04-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-09-29T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1978-09-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-09-29T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1978-09-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1985-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1985-03-31T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1985-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1985-09-30T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1985-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1985-09-30T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1985-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1985-03-31T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1985-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1985-03-31T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1985-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-30T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1985-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-30T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1985-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-03T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1986-04-03T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1986-04-03T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1986-04-03T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1986-10-02T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1986-10-02T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1986-10-02T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1986-10-02T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1986-04-03T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1986-04-03T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-04-03T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1986-04-03T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-10-02T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1986-10-02T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-10-02T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1986-10-02T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-02T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1987-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1987-04-02T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1987-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1987-10-01T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1987-10-01T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1987-10-01T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1987-10-01T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1987-04-02T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1987-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-04-02T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1987-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-10-01T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1987-10-01T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-10-01T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1987-10-01T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-31T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1988-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1988-03-31T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1988-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1988-10-06T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1988-10-06T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1988-10-06T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1988-10-06T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1988-03-31T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1988-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-03-31T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1988-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-10-06T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1988-10-06T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-10-06T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1988-10-06T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-05-07T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1989-05-07T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1989-05-07T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1989-05-07T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1989-10-05T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1989-10-05T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1989-10-05T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1989-10-05T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1989-05-07T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1989-05-07T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-05-07T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1989-05-07T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-10-05T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1989-10-05T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-10-05T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1989-10-05T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1990-04-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1990-04-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1990-04-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1990-10-04T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1990-10-04T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1990-10-04T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1990-10-04T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1990-04-26T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1990-04-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-04-26T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1990-04-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-10-04T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1990-10-04T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-10-04T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1990-10-04T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-16T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1991-04-16T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1991-04-16T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1991-04-16T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1991-09-26T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1991-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1991-09-26T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1991-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1991-04-16T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1991-04-16T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-04-16T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1991-04-16T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-26T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1991-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-26T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1991-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-09T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1992-04-09T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-04-09T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1992-04-09T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-10-01T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1992-10-01T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-10-01T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1992-10-01T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-04-09T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1992-04-09T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-04-09T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1992-04-09T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-10-01T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1992-10-01T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-10-01T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1992-10-01T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-01T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1993-04-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-04-01T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1993-04-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-30T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1993-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-30T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1993-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-04-01T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1993-04-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-04-01T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1993-04-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-30T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1993-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-30T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1993-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1994-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1994-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-15T20:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1994-09-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-15T21:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:00:00", "1994-09-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1994-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1994-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-15T20:59:59+00:00").tz("Asia/Amman").zone(), -180, "1994-09-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-15T21:00:00+00:00").tz("Asia/Amman").zone(), -120, "1994-09-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-06T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1995-04-06T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1995-04-06T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1995-04-06T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1995-09-14T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "1995-09-14T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1995-09-14T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "1995-09-14T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1995-04-06T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1995-04-06T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-04-06T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1995-04-06T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-14T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "1995-09-14T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-14T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "1995-09-14T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-04T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1996-04-04T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-04-04T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1996-04-04T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-09-19T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "1996-09-19T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1996-09-19T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "1996-09-19T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1996-04-04T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1996-04-04T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-04-04T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1996-04-04T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-19T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "1996-09-19T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-19T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "1996-09-19T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-03T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1997-04-03T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1997-04-03T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1997-04-03T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1997-09-18T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "1997-09-18T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1997-09-18T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "1997-09-18T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1997-04-03T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1997-04-03T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-04-03T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1997-04-03T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-18T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "1997-09-18T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-18T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "1997-09-18T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-02T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1998-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1998-04-02T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1998-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1998-09-17T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "1998-09-17T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1998-09-17T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "1998-09-17T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1998-04-02T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1998-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-04-02T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1998-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-17T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "1998-09-17T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-17T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "1998-09-17T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-06-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "1999-06-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1999-06-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "1999-06-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1999-09-23T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "1999-09-23T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1999-09-23T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "1999-09-23T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1999-06-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "1999-06-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-06-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "1999-06-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-09-23T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "1999-09-23T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-09-23T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "1999-09-23T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2000-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2000-03-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2000-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2000-09-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2000-09-28T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2000-09-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2000-09-28T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2000-03-29T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2000-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-29T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2000-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-09-28T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2000-09-28T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-09-28T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2000-09-28T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2001-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2001-03-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2001-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2001-09-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2001-09-27T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2001-09-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2001-09-27T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2001-03-28T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2001-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-28T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2001-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-09-27T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2001-09-27T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-09-27T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2001-09-27T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2002-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2002-03-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2002-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2002-09-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2002-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2002-09-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2002-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2002-03-28T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2002-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-28T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2002-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-09-26T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2002-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-09-26T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2002-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2003-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2003-03-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2003-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2003-10-23T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2003-10-23T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2003-10-23T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2003-10-23T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2003-03-27T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2003-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-27T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2003-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-23T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2003-10-23T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-23T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2003-10-23T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-25T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2004-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2004-03-25T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2004-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2004-10-14T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2004-10-14T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2004-10-14T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2004-10-14T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2004-03-25T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2004-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-25T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2004-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-14T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2004-10-14T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-14T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2004-10-14T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-31T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2005-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2005-03-31T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2005-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2005-09-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2005-09-29T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2005-09-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2005-09-29T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2005-03-31T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2005-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-31T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2005-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-09-29T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2005-09-29T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-09-29T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2005-09-29T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2006-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2006-03-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2006-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2006-10-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2006-10-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2006-10-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2006-10-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2006-03-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2006-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2006-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-26T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2006-10-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-26T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2006-10-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2007-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2007-03-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2007-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2007-10-25T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2007-10-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2007-10-25T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2007-10-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2007-03-29T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2007-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-29T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2007-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-25T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2007-10-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-25T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2007-10-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2008-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2008-03-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2008-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2008-10-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2008-10-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2008-10-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2008-10-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2008-03-27T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2008-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-27T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2008-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-30T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2008-10-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-30T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2008-10-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2009-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2009-03-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2009-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2009-10-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2009-10-29T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2009-10-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2009-10-29T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2009-03-26T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2009-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-26T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2009-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-29T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2009-10-29T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-29T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2009-10-29T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-25T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2010-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2010-03-25T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2010-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2010-10-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2010-10-28T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2010-10-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2010-10-28T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2010-03-25T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2010-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-25T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2010-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-28T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2010-10-28T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-28T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2010-10-28T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-31T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2011-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2011-03-31T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2011-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2011-10-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2011-10-27T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2011-10-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2011-10-27T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2011-03-31T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2011-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-31T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2011-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-27T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2011-10-27T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-27T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2011-10-27T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2012-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2012-03-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2012-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - - t.equal(moment("2012-03-29T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2012-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-29T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2012-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-10-24T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2013-10-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2013-10-24T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2013-10-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2013-10-24T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2013-10-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-24T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2013-10-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2014-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2014-03-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2014-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2014-10-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2014-10-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2014-10-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2014-10-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2014-03-27T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2014-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-27T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2014-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-30T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2014-10-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-30T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2014-10-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2015-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2015-03-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2015-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2015-10-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2015-10-29T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2015-10-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2015-10-29T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2015-03-26T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2015-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-26T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2015-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-29T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2015-10-29T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-29T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2015-10-29T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-31T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2016-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2016-03-31T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2016-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2016-10-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2016-10-27T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2016-10-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2016-10-27T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2016-03-31T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2016-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-31T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2016-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-27T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2016-10-27T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-27T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2016-10-27T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2017-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2017-03-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2017-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2017-10-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2017-10-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2017-10-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2017-10-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2017-03-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2017-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2017-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-26T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2017-10-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-26T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2017-10-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2018-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2018-03-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2018-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2018-10-25T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2018-10-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2018-10-25T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2018-10-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2018-03-29T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2018-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-29T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2018-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-25T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2018-10-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-25T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2018-10-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2019-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2019-03-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2019-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2019-10-24T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2019-10-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2019-10-24T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2019-10-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2019-03-28T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2019-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-28T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2019-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-24T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2019-10-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-24T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2019-10-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2020-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2020-03-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2020-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2020-10-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2020-10-29T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2020-10-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2020-10-29T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2020-03-26T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2020-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-26T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2020-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-29T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2020-10-29T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-29T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2020-10-29T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-25T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2021-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2021-03-25T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2021-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2021-10-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2021-10-28T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2021-10-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2021-10-28T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2021-03-25T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2021-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-25T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2021-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-28T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2021-10-28T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-28T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2021-10-28T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-31T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2022-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2022-03-31T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2022-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2022-10-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2022-10-27T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2022-10-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2022-10-27T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2022-03-31T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2022-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-31T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2022-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-27T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2022-10-27T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-27T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2022-10-27T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2023-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2023-03-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2023-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2023-10-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2023-10-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2023-10-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2023-10-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2023-03-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2023-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2023-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-26T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2023-10-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-26T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2023-10-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2024-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2024-03-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2024-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2024-10-24T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2024-10-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2024-10-24T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2024-10-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2024-03-28T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2024-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-28T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2024-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-24T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2024-10-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-24T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2024-10-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2025-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2025-03-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2025-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2025-10-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2025-10-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2025-10-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2025-10-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2025-03-27T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2025-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-27T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2025-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-30T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2025-10-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-30T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2025-10-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2026-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2026-03-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2026-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2026-10-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2026-10-29T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2026-10-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2026-10-29T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2026-03-26T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2026-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-26T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2026-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-29T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2026-10-29T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-29T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2026-10-29T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-25T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2027-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2027-03-25T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2027-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2027-10-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2027-10-28T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2027-10-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2027-10-28T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2027-03-25T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2027-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-25T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2027-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-28T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2027-10-28T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-28T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2027-10-28T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2028-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2028-03-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2028-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2028-10-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2028-10-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2028-10-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2028-10-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2028-03-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2028-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2028-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-26T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2028-10-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-26T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2028-10-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2029-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2029-03-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2029-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2029-10-25T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2029-10-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2029-10-25T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2029-10-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2029-03-29T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2029-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-29T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2029-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-25T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2029-10-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-25T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2029-10-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2030-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2030-03-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2030-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2030-10-24T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2030-10-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2030-10-24T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2030-10-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2030-03-28T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2030-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-28T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2030-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-24T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2030-10-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-24T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2030-10-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2031-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2031-03-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2031-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2031-10-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2031-10-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2031-10-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2031-10-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2031-03-27T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2031-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-27T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2031-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-30T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2031-10-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-30T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2031-10-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-25T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2032-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2032-03-25T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2032-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2032-10-28T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2032-10-28T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2032-10-28T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2032-10-28T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2032-03-25T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2032-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-25T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2032-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-28T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2032-10-28T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-28T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2032-10-28T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-31T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2033-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2033-03-31T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2033-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2033-10-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2033-10-27T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2033-10-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2033-10-27T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2033-03-31T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2033-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-31T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2033-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-27T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2033-10-27T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-27T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2033-10-27T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2034-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2034-03-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2034-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2034-10-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2034-10-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2034-10-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2034-10-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2034-03-30T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2034-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-30T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2034-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-26T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2034-10-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-26T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2034-10-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2035-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2035-03-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2035-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2035-10-25T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2035-10-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2035-10-25T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2035-10-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2035-03-29T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2035-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-29T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2035-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-25T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2035-10-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-25T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2035-10-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-27T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2036-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2036-03-27T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2036-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2036-10-30T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2036-10-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2036-10-30T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2036-10-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2036-03-27T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2036-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-27T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2036-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-30T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2036-10-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-30T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2036-10-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-26T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "23:59:59", "2037-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2037-03-26T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "01:00:00", "2037-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2037-10-29T21:59:59+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:59:59", "2037-10-29T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2037-10-29T22:00:00+00:00").tz("Asia/Amman").format("HH:mm:ss"), "00:00:00", "2037-10-29T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2037-03-26T21:59:59+00:00").tz("Asia/Amman").zone(), -120, "2037-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-26T22:00:00+00:00").tz("Asia/Amman").zone(), -180, "2037-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-29T21:59:59+00:00").tz("Asia/Amman").zone(), -180, "2037-10-29T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-29T22:00:00+00:00").tz("Asia/Amman").zone(), -120, "2037-10-29T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/anadyr.js b/tests/asia/anadyr.js deleted file mode 100644 index c378e1f5..00000000 --- a/tests/asia/anadyr.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Anadyr"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T12:10:03+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:59:59", "1924-05-01T12:10:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T12:10:04+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "00:10:04", "1924-05-01T12:10:04+00:00 should be 00:10:04 ANAT"); - - t.equal(moment("1924-05-01T12:10:03+00:00").tz("Asia/Anadyr").zone(), -42596 / 60, "1924-05-01T12:10:03+00:00 should be -42596 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T12:10:04+00:00").tz("Asia/Anadyr").zone(), -720, "1924-05-01T12:10:04+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T11:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:59:59", "1930-06-20T11:59:59+00:00 should be 23:59:59 ANAT"); - t.equal(moment("1930-06-20T12:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:00:00", "1930-06-20T12:00:00+00:00 should be 01:00:00 ANAT"); - - t.equal(moment("1930-06-20T11:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1930-06-20T11:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1930-06-20T12:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1930-06-20T12:00:00+00:00 should be -780 minutes offset in ANAT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T10:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:59:59", "1981-03-31T10:59:59+00:00 should be 23:59:59 ANAT"); - t.equal(moment("1981-03-31T11:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:00:00", "1981-03-31T11:00:00+00:00 should be 01:00:00 ANAST"); - t.equal(moment("1981-09-30T09:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:59:59", "1981-09-30T09:59:59+00:00 should be 23:59:59 ANAST"); - t.equal(moment("1981-09-30T10:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:00:00", "1981-09-30T10:00:00+00:00 should be 23:00:00 ANAT"); - - t.equal(moment("1981-03-31T10:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1981-03-31T10:59:59+00:00 should be -780 minutes offset in ANAT"); - t.equal(moment("1981-03-31T11:00:00+00:00").tz("Asia/Anadyr").zone(), -840, "1981-03-31T11:00:00+00:00 should be -840 minutes offset in ANAST"); - t.equal(moment("1981-09-30T09:59:59+00:00").tz("Asia/Anadyr").zone(), -840, "1981-09-30T09:59:59+00:00 should be -840 minutes offset in ANAST"); - t.equal(moment("1981-09-30T10:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1981-09-30T10:00:00+00:00 should be -780 minutes offset in ANAT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T10:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:59:59", "1982-03-31T10:59:59+00:00 should be 23:59:59 ANAT"); - t.equal(moment("1982-03-31T11:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "00:00:00", "1982-03-31T11:00:00+00:00 should be 00:00:00 ANAST"); - t.equal(moment("1982-09-30T10:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:59:59", "1982-09-30T10:59:59+00:00 should be 23:59:59 ANAST"); - t.equal(moment("1982-09-30T11:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:00:00", "1982-09-30T11:00:00+00:00 should be 23:00:00 ANAT"); - - t.equal(moment("1982-03-31T10:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1982-03-31T10:59:59+00:00 should be -780 minutes offset in ANAT"); - t.equal(moment("1982-03-31T11:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1982-03-31T11:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1982-09-30T10:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1982-09-30T10:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1982-09-30T11:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1982-09-30T11:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T11:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:59:59", "1983-03-31T11:59:59+00:00 should be 23:59:59 ANAT"); - t.equal(moment("1983-03-31T12:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:00:00", "1983-03-31T12:00:00+00:00 should be 01:00:00 ANAST"); - t.equal(moment("1983-09-30T10:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:59:59", "1983-09-30T10:59:59+00:00 should be 23:59:59 ANAST"); - t.equal(moment("1983-09-30T11:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:00:00", "1983-09-30T11:00:00+00:00 should be 23:00:00 ANAT"); - - t.equal(moment("1983-03-31T11:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1983-03-31T11:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1983-03-31T12:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1983-03-31T12:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1983-09-30T10:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1983-09-30T10:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1983-09-30T11:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1983-09-30T11:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T11:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "23:59:59", "1984-03-31T11:59:59+00:00 should be 23:59:59 ANAT"); - t.equal(moment("1984-03-31T12:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:00:00", "1984-03-31T12:00:00+00:00 should be 01:00:00 ANAST"); - t.equal(moment("1984-09-29T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1984-09-29T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1984-09-29T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1984-09-29T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1984-03-31T11:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1984-03-31T11:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1984-03-31T12:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1984-03-31T12:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1984-09-29T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1984-09-29T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1984-09-29T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1984-09-29T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1985-03-30T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1985-03-30T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1985-03-30T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1985-09-28T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1985-09-28T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1985-09-28T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1985-09-28T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1985-03-30T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1985-03-30T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1985-03-30T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1985-03-30T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1985-09-28T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1985-09-28T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1985-09-28T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1985-09-28T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1986-03-29T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1986-03-29T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1986-03-29T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1986-09-27T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1986-09-27T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1986-09-27T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1986-09-27T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1986-03-29T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1986-03-29T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1986-03-29T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1986-03-29T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1986-09-27T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1986-09-27T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1986-09-27T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1986-09-27T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1987-03-28T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1987-03-28T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1987-03-28T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1987-09-26T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1987-09-26T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1987-09-26T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1987-09-26T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1987-03-28T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1987-03-28T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1987-03-28T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1987-03-28T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1987-09-26T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1987-09-26T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1987-09-26T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1987-09-26T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1988-03-26T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1988-03-26T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1988-03-26T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1988-09-24T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1988-09-24T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1988-09-24T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1988-09-24T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1988-03-26T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1988-03-26T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1988-03-26T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1988-03-26T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1988-09-24T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1988-09-24T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1988-09-24T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1988-09-24T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1989-03-25T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1989-03-25T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1989-03-25T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1989-09-23T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1989-09-23T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1989-09-23T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1989-09-23T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1989-03-25T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1989-03-25T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1989-03-25T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1989-03-25T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1989-09-23T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1989-09-23T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1989-09-23T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1989-09-23T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1990-03-24T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1990-03-24T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1990-03-24T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1990-09-29T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1990-09-29T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1990-09-29T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1990-09-29T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1990-03-24T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1990-03-24T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1990-03-24T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1990-03-24T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1990-09-29T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1990-09-29T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1990-09-29T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1990-09-29T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1991-03-30T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1991-03-30T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1991-03-30T14:00:00+00:00 should be 02:00:00 ANAST"); - t.equal(moment("1991-09-28T14:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1991-09-28T14:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1991-09-28T15:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1991-09-28T15:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1991-03-30T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1991-03-30T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1991-03-30T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1991-03-30T14:00:00+00:00 should be -720 minutes offset in ANAST"); - t.equal(moment("1991-09-28T14:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1991-09-28T14:59:59+00:00 should be -720 minutes offset in ANAST"); - t.equal(moment("1991-09-28T15:00:00+00:00").tz("Asia/Anadyr").zone(), -660, "1991-09-28T15:00:00+00:00 should be -660 minutes offset in ANAT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T14:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1992-01-18T14:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1992-01-18T15:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1992-01-18T15:00:00+00:00 should be 03:00:00 ANAT"); - t.equal(moment("1992-03-28T10:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "22:59:59", "1992-03-28T10:59:59+00:00 should be 22:59:59 ANAT"); - t.equal(moment("1992-03-28T11:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "00:00:00", "1992-03-28T11:00:00+00:00 should be 00:00:00 ANAST"); - t.equal(moment("1992-09-26T09:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "22:59:59", "1992-09-26T09:59:59+00:00 should be 22:59:59 ANAST"); - t.equal(moment("1992-09-26T10:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "22:00:00", "1992-09-26T10:00:00+00:00 should be 22:00:00 ANAT"); - - t.equal(moment("1992-01-18T14:59:59+00:00").tz("Asia/Anadyr").zone(), -660, "1992-01-18T14:59:59+00:00 should be -660 minutes offset in ANAT"); - t.equal(moment("1992-01-18T15:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1992-01-18T15:00:00+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1992-03-28T10:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1992-03-28T10:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1992-03-28T11:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1992-03-28T11:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1992-09-26T09:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1992-09-26T09:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1992-09-26T10:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1992-09-26T10:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1993-03-27T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1993-03-27T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1993-03-27T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1993-09-25T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1993-09-25T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1993-09-25T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1993-09-25T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1993-03-27T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1993-03-27T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1993-03-27T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1993-03-27T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1993-09-25T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1993-09-25T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1993-09-25T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1993-09-25T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1994-03-26T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1994-03-26T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1994-03-26T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1994-09-24T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1994-09-24T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1994-09-24T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1994-09-24T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1994-03-26T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1994-03-26T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1994-03-26T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1994-03-26T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1994-09-24T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1994-09-24T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1994-09-24T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1994-09-24T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1995-03-25T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1995-03-25T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1995-03-25T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1995-09-23T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1995-09-23T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1995-09-23T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1995-09-23T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1995-03-25T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1995-03-25T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1995-03-25T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1995-03-25T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1995-09-23T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1995-09-23T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1995-09-23T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1995-09-23T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1996-03-30T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1996-03-30T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1996-03-30T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1996-10-26T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1996-10-26T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1996-10-26T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1996-10-26T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1996-03-30T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1996-03-30T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1996-03-30T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1996-03-30T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1996-10-26T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1996-10-26T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1996-10-26T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1996-10-26T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1997-03-29T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1997-03-29T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1997-03-29T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1997-10-25T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1997-10-25T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1997-10-25T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1997-10-25T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1997-03-29T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1997-03-29T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1997-03-29T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1997-03-29T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1997-10-25T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1997-10-25T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1997-10-25T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1997-10-25T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1998-03-28T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1998-03-28T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1998-03-28T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1998-10-24T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1998-10-24T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1998-10-24T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1998-10-24T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1998-03-28T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1998-03-28T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1998-03-28T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1998-03-28T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1998-10-24T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1998-10-24T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1998-10-24T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1998-10-24T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "1999-03-27T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("1999-03-27T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "1999-03-27T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("1999-10-30T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "1999-10-30T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("1999-10-30T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "1999-10-30T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("1999-03-27T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "1999-03-27T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("1999-03-27T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "1999-03-27T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1999-10-30T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "1999-10-30T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("1999-10-30T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "1999-10-30T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2000-03-25T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2000-03-25T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2000-03-25T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2000-10-28T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2000-10-28T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2000-10-28T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2000-10-28T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2000-03-25T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2000-03-25T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2000-03-25T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2000-03-25T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2000-10-28T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2000-10-28T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2000-10-28T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2000-10-28T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2001-03-24T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2001-03-24T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2001-03-24T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2001-10-27T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2001-10-27T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2001-10-27T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2001-10-27T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2001-03-24T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2001-03-24T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2001-03-24T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2001-03-24T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2001-10-27T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2001-10-27T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2001-10-27T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2001-10-27T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2002-03-30T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2002-03-30T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2002-03-30T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2002-10-26T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2002-10-26T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2002-10-26T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2002-10-26T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2002-03-30T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2002-03-30T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2002-03-30T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2002-03-30T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2002-10-26T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2002-10-26T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2002-10-26T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2002-10-26T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2003-03-29T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2003-03-29T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2003-03-29T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2003-10-25T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2003-10-25T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2003-10-25T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2003-10-25T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2003-03-29T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2003-03-29T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2003-03-29T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2003-03-29T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2003-10-25T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2003-10-25T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2003-10-25T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2003-10-25T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2004-03-27T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2004-03-27T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2004-03-27T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2004-10-30T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2004-10-30T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2004-10-30T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2004-10-30T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2004-03-27T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2004-03-27T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2004-03-27T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2004-03-27T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2004-10-30T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2004-10-30T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2004-10-30T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2004-10-30T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2005-03-26T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2005-03-26T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2005-03-26T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2005-10-29T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2005-10-29T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2005-10-29T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2005-10-29T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2005-03-26T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2005-03-26T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2005-03-26T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2005-03-26T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2005-10-29T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2005-10-29T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2005-10-29T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2005-10-29T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2006-03-25T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2006-03-25T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2006-03-25T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2006-10-28T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2006-10-28T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2006-10-28T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2006-10-28T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2006-03-25T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2006-03-25T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2006-03-25T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2006-03-25T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2006-10-28T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2006-10-28T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2006-10-28T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2006-10-28T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2007-03-24T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2007-03-24T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2007-03-24T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2007-10-27T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2007-10-27T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2007-10-27T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2007-10-27T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2007-03-24T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2007-03-24T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2007-03-24T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2007-03-24T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2007-10-27T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2007-10-27T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2007-10-27T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2007-10-27T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2008-03-29T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2008-03-29T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2008-03-29T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2008-10-25T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2008-10-25T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2008-10-25T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2008-10-25T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2008-03-29T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2008-03-29T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2008-03-29T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2008-03-29T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2008-10-25T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2008-10-25T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2008-10-25T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2008-10-25T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2009-03-28T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2009-03-28T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2009-03-28T14:00:00+00:00 should be 03:00:00 ANAST"); - t.equal(moment("2009-10-24T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2009-10-24T13:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2009-10-24T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2009-10-24T14:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2009-03-28T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2009-03-28T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2009-03-28T14:00:00+00:00").tz("Asia/Anadyr").zone(), -780, "2009-03-28T14:00:00+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2009-10-24T13:59:59+00:00").tz("Asia/Anadyr").zone(), -780, "2009-10-24T13:59:59+00:00 should be -780 minutes offset in ANAST"); - t.equal(moment("2009-10-24T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2009-10-24T14:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T13:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2010-03-27T13:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2010-03-27T14:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2010-03-27T14:00:00+00:00 should be 02:00:00 ANAST"); - t.equal(moment("2010-10-30T14:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:59:59", "2010-10-30T14:59:59+00:00 should be 02:59:59 ANAST"); - t.equal(moment("2010-10-30T15:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "02:00:00", "2010-10-30T15:00:00+00:00 should be 02:00:00 ANAT"); - - t.equal(moment("2010-03-27T13:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2010-03-27T13:59:59+00:00 should be -720 minutes offset in ANAT"); - t.equal(moment("2010-03-27T14:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2010-03-27T14:00:00+00:00 should be -720 minutes offset in ANAST"); - t.equal(moment("2010-10-30T14:59:59+00:00").tz("Asia/Anadyr").zone(), -720, "2010-10-30T14:59:59+00:00 should be -720 minutes offset in ANAST"); - t.equal(moment("2010-10-30T15:00:00+00:00").tz("Asia/Anadyr").zone(), -660, "2010-10-30T15:00:00+00:00 should be -660 minutes offset in ANAT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T14:59:59+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "01:59:59", "2011-03-26T14:59:59+00:00 should be 01:59:59 ANAT"); - t.equal(moment("2011-03-26T15:00:00+00:00").tz("Asia/Anadyr").format("HH:mm:ss"), "03:00:00", "2011-03-26T15:00:00+00:00 should be 03:00:00 ANAT"); - - t.equal(moment("2011-03-26T14:59:59+00:00").tz("Asia/Anadyr").zone(), -660, "2011-03-26T14:59:59+00:00 should be -660 minutes offset in ANAT"); - t.equal(moment("2011-03-26T15:00:00+00:00").tz("Asia/Anadyr").zone(), -720, "2011-03-26T15:00:00+00:00 should be -720 minutes offset in ANAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/aqtau.js b/tests/asia/aqtau.js deleted file mode 100644 index b7f5d8da..00000000 --- a/tests/asia/aqtau.js +++ /dev/null @@ -1,372 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Aqtau"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T20:38:55+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1924-05-01T20:38:55+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T20:38:56+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "00:38:56", "1924-05-01T20:38:56+00:00 should be 00:38:56 FORT"); - - t.equal(moment("1924-05-01T20:38:55+00:00").tz("Asia/Aqtau").zone(), -12064 / 60, "1924-05-01T20:38:55+00:00 should be -12064 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T20:38:56+00:00").tz("Asia/Aqtau").zone(), -240, "1924-05-01T20:38:56+00:00 should be -240 minutes offset in FORT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1930-06-20T19:59:59+00:00 should be 23:59:59 FORT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:00:00", "1930-06-20T20:00:00+00:00 should be 01:00:00 FORT"); - - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "1930-06-20T19:59:59+00:00 should be -240 minutes offset in FORT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1930-06-20T20:00:00+00:00 should be -300 minutes offset in FORT"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-12-31T18:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1962-12-31T18:59:59+00:00 should be 23:59:59 FORT"); - t.equal(moment("1962-12-31T19:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "00:00:00", "1962-12-31T19:00:00+00:00 should be 00:00:00 SHET"); - - t.equal(moment("1962-12-31T18:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1962-12-31T18:59:59+00:00 should be -300 minutes offset in FORT"); - t.equal(moment("1962-12-31T19:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1962-12-31T19:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1981-09-30T18:59:59+00:00 should be 23:59:59 SHET"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:00:00", "1981-09-30T19:00:00+00:00 should be 01:00:00 SHET"); - - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1981-09-30T18:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1981-09-30T19:00:00+00:00 should be -360 minutes offset in SHET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 SHET"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "00:00:00", "1982-03-31T18:00:00+00:00 should be 00:00:00 SHEST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1982-09-30T17:59:59+00:00 should be 23:59:59 SHEST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:00:00", "1982-09-30T18:00:00+00:00 should be 23:00:00 SHET"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in SHET"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1982-03-31T18:00:00+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1982-09-30T17:59:59+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1982-09-30T18:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1983-03-31T18:59:59+00:00 should be 23:59:59 SHET"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:00:00", "1983-03-31T19:00:00+00:00 should be 01:00:00 SHEST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1983-09-30T17:59:59+00:00 should be 23:59:59 SHEST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:00:00", "1983-09-30T18:00:00+00:00 should be 23:00:00 SHET"); - - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1983-03-31T18:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1983-03-31T19:00:00+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1983-09-30T17:59:59+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1983-09-30T18:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1984-03-31T18:59:59+00:00 should be 23:59:59 SHET"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:00:00", "1984-03-31T19:00:00+00:00 should be 01:00:00 SHEST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1984-09-29T20:59:59+00:00 should be 02:59:59 SHEST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1984-09-29T21:00:00+00:00 should be 02:00:00 SHET"); - - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1984-03-31T18:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1984-03-31T19:00:00+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1984-09-29T20:59:59+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1984-09-29T21:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1985-03-30T20:59:59+00:00 should be 01:59:59 SHET"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1985-03-30T21:00:00+00:00 should be 03:00:00 SHEST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1985-09-28T20:59:59+00:00 should be 02:59:59 SHEST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1985-09-28T21:00:00+00:00 should be 02:00:00 SHET"); - - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1985-03-30T20:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1985-03-30T21:00:00+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1985-09-28T20:59:59+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1985-09-28T21:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1986-03-29T20:59:59+00:00 should be 01:59:59 SHET"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1986-03-29T21:00:00+00:00 should be 03:00:00 SHEST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1986-09-27T20:59:59+00:00 should be 02:59:59 SHEST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1986-09-27T21:00:00+00:00 should be 02:00:00 SHET"); - - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1986-03-29T20:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1986-03-29T21:00:00+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1986-09-27T20:59:59+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1986-09-27T21:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1987-03-28T20:59:59+00:00 should be 01:59:59 SHET"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1987-03-28T21:00:00+00:00 should be 03:00:00 SHEST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1987-09-26T20:59:59+00:00 should be 02:59:59 SHEST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1987-09-26T21:00:00+00:00 should be 02:00:00 SHET"); - - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1987-03-28T20:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1987-03-28T21:00:00+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1987-09-26T20:59:59+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1987-09-26T21:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1988-03-26T20:59:59+00:00 should be 01:59:59 SHET"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1988-03-26T21:00:00+00:00 should be 03:00:00 SHEST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1988-09-24T20:59:59+00:00 should be 02:59:59 SHEST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1988-09-24T21:00:00+00:00 should be 02:00:00 SHET"); - - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1988-03-26T20:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1988-03-26T21:00:00+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1988-09-24T20:59:59+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1988-09-24T21:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1989-03-25T20:59:59+00:00 should be 01:59:59 SHET"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1989-03-25T21:00:00+00:00 should be 03:00:00 SHEST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1989-09-23T20:59:59+00:00 should be 02:59:59 SHEST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1989-09-23T21:00:00+00:00 should be 02:00:00 SHET"); - - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1989-03-25T20:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1989-03-25T21:00:00+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1989-09-23T20:59:59+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1989-09-23T21:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1990-03-24T20:59:59+00:00 should be 01:59:59 SHET"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1990-03-24T21:00:00+00:00 should be 03:00:00 SHEST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1990-09-29T20:59:59+00:00 should be 02:59:59 SHEST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1990-09-29T21:00:00+00:00 should be 02:00:00 SHET"); - - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1990-03-24T20:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1990-03-24T21:00:00+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1990-09-29T20:59:59+00:00 should be -360 minutes offset in SHEST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1990-09-29T21:00:00+00:00 should be -300 minutes offset in SHET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-12-15T18:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "1991-12-15T18:59:59+00:00 should be 23:59:59 SHET"); - t.equal(moment("1991-12-15T19:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "00:00:00", "1991-12-15T19:00:00+00:00 should be 00:00:00 AQTT"); - - t.equal(moment("1991-12-15T18:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1991-12-15T18:59:59+00:00 should be -300 minutes offset in SHET"); - t.equal(moment("1991-12-15T19:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1991-12-15T19:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T17:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "22:59:59", "1992-03-28T17:59:59+00:00 should be 22:59:59 AQTT"); - t.equal(moment("1992-03-28T18:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "00:00:00", "1992-03-28T18:00:00+00:00 should be 00:00:00 AQTST"); - t.equal(moment("1992-09-26T16:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "22:59:59", "1992-09-26T16:59:59+00:00 should be 22:59:59 AQTST"); - t.equal(moment("1992-09-26T17:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "22:00:00", "1992-09-26T17:00:00+00:00 should be 22:00:00 AQTT"); - - t.equal(moment("1992-03-28T17:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1992-03-28T17:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1992-03-28T18:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1992-03-28T18:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1992-09-26T16:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1992-09-26T16:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1992-09-26T17:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1992-09-26T17:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1993-03-27T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1993-03-27T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1993-03-27T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1993-09-25T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1993-09-25T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1993-03-27T20:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1993-03-27T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1993-03-27T21:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1993-03-27T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1993-09-25T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1993-09-25T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1994-03-26T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1994-03-26T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1994-03-26T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1994-09-24T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1994-09-24T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1994-03-26T20:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1994-03-26T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1994-03-26T21:00:00+00:00").tz("Asia/Aqtau").zone(), -360, "1994-03-26T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Aqtau").zone(), -360, "1994-09-24T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1994-09-24T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T20:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1995-03-25T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1995-03-25T21:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1995-03-25T21:00:00+00:00 should be 02:00:00 AQTST"); - t.equal(moment("1995-09-23T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1995-09-23T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1995-09-23T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1995-09-23T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1995-03-25T20:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1995-03-25T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1995-03-25T21:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1995-03-25T21:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1995-09-23T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1995-09-23T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1995-09-23T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "1995-09-23T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1996-03-30T21:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1996-03-30T22:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1996-10-26T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1996-10-26T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1996-10-26T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1996-10-26T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "1996-03-30T21:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1996-03-30T22:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1996-10-26T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1996-10-26T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1996-10-26T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "1996-10-26T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1997-03-29T21:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1997-03-29T22:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1997-10-25T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1997-10-25T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1997-10-25T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1997-10-25T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "1997-03-29T21:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1997-03-29T22:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1997-10-25T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1997-10-25T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1997-10-25T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "1997-10-25T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1998-03-28T21:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1998-03-28T22:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1998-10-24T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1998-10-24T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1998-10-24T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1998-10-24T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "1998-03-28T21:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1998-03-28T22:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1998-10-24T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1998-10-24T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1998-10-24T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "1998-10-24T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "1999-03-27T21:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "1999-03-27T22:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1999-10-30T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "1999-10-30T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1999-10-30T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "1999-10-30T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "1999-03-27T21:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "1999-03-27T22:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1999-10-30T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "1999-10-30T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("1999-10-30T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "1999-10-30T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "2000-03-25T21:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "2000-03-25T22:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2000-10-28T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "2000-10-28T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2000-10-28T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "2000-10-28T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "2000-03-25T21:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "2000-03-25T22:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2000-10-28T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "2000-10-28T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2000-10-28T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "2000-10-28T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "2001-03-24T21:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "2001-03-24T22:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2001-10-27T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "2001-10-27T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2001-10-27T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "2001-10-27T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "2001-03-24T21:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "2001-03-24T22:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2001-10-27T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "2001-10-27T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2001-10-27T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "2001-10-27T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "2002-03-30T21:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "2002-03-30T22:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2002-10-26T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "2002-10-26T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2002-10-26T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "2002-10-26T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "2002-03-30T21:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "2002-03-30T22:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2002-10-26T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "2002-10-26T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2002-10-26T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "2002-10-26T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "2003-03-29T21:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "2003-03-29T22:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2003-10-25T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "2003-10-25T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2003-10-25T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "2003-10-25T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "2003-03-29T21:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "2003-03-29T22:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2003-10-25T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "2003-10-25T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2003-10-25T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "2003-10-25T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:59:59", "2004-03-27T21:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "03:00:00", "2004-03-27T22:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2004-10-30T21:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:59:59", "2004-10-30T21:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2004-10-30T22:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "02:00:00", "2004-10-30T22:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "2004-03-27T21:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "2004-03-27T22:00:00+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2004-10-30T21:59:59+00:00").tz("Asia/Aqtau").zone(), -300, "2004-10-30T21:59:59+00:00 should be -300 minutes offset in AQTST"); - t.equal(moment("2004-10-30T22:00:00+00:00").tz("Asia/Aqtau").zone(), -240, "2004-10-30T22:00:00+00:00 should be -240 minutes offset in AQTT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-14T19:59:59+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "23:59:59", "2005-03-14T19:59:59+00:00 should be 23:59:59 AQTT"); - t.equal(moment("2005-03-14T20:00:00+00:00").tz("Asia/Aqtau").format("HH:mm:ss"), "01:00:00", "2005-03-14T20:00:00+00:00 should be 01:00:00 AQTT"); - - t.equal(moment("2005-03-14T19:59:59+00:00").tz("Asia/Aqtau").zone(), -240, "2005-03-14T19:59:59+00:00 should be -240 minutes offset in AQTT"); - t.equal(moment("2005-03-14T20:00:00+00:00").tz("Asia/Aqtau").zone(), -300, "2005-03-14T20:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/aqtobe.js b/tests/asia/aqtobe.js deleted file mode 100644 index c97822a6..00000000 --- a/tests/asia/aqtobe.js +++ /dev/null @@ -1,356 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Aqtobe"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T20:11:19+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1924-05-01T20:11:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T20:11:20+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "00:11:20", "1924-05-01T20:11:20+00:00 should be 00:11:20 AKTT"); - - t.equal(moment("1924-05-01T20:11:19+00:00").tz("Asia/Aqtobe").zone(), -13720 / 60, "1924-05-01T20:11:19+00:00 should be -13720 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T20:11:20+00:00").tz("Asia/Aqtobe").zone(), -240, "1924-05-01T20:11:20+00:00 should be -240 minutes offset in AKTT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1930-06-20T19:59:59+00:00 should be 23:59:59 AKTT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:00:00", "1930-06-20T20:00:00+00:00 should be 01:00:00 AKTT"); - - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Aqtobe").zone(), -240, "1930-06-20T19:59:59+00:00 should be -240 minutes offset in AKTT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1930-06-20T20:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1981-03-31T18:59:59+00:00 should be 23:59:59 AKTT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:00:00", "1981-03-31T19:00:00+00:00 should be 01:00:00 AKTST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1981-09-30T17:59:59+00:00 should be 23:59:59 AKTST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "00:00:00", "1981-09-30T18:00:00+00:00 should be 00:00:00 AKTT"); - - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1981-03-31T18:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1981-03-31T19:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1981-09-30T17:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1981-09-30T18:00:00+00:00 should be -360 minutes offset in AKTT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 AKTT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "00:00:00", "1982-03-31T18:00:00+00:00 should be 00:00:00 AKTST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1982-09-30T17:59:59+00:00 should be 23:59:59 AKTST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:00:00", "1982-09-30T18:00:00+00:00 should be 23:00:00 AKTT"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in AKTT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1982-03-31T18:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1982-09-30T17:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1982-09-30T18:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1983-03-31T18:59:59+00:00 should be 23:59:59 AKTT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:00:00", "1983-03-31T19:00:00+00:00 should be 01:00:00 AKTST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1983-09-30T17:59:59+00:00 should be 23:59:59 AKTST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:00:00", "1983-09-30T18:00:00+00:00 should be 23:00:00 AKTT"); - - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1983-03-31T18:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1983-03-31T19:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1983-09-30T17:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1983-09-30T18:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1984-03-31T18:59:59+00:00 should be 23:59:59 AKTT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:00:00", "1984-03-31T19:00:00+00:00 should be 01:00:00 AKTST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1984-09-29T20:59:59+00:00 should be 02:59:59 AKTST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1984-09-29T21:00:00+00:00 should be 02:00:00 AKTT"); - - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1984-03-31T18:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1984-03-31T19:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1984-09-29T20:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1984-09-29T21:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1985-03-30T20:59:59+00:00 should be 01:59:59 AKTT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1985-03-30T21:00:00+00:00 should be 03:00:00 AKTST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1985-09-28T20:59:59+00:00 should be 02:59:59 AKTST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1985-09-28T21:00:00+00:00 should be 02:00:00 AKTT"); - - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1985-03-30T20:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1985-03-30T21:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1985-09-28T20:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1985-09-28T21:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1986-03-29T20:59:59+00:00 should be 01:59:59 AKTT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1986-03-29T21:00:00+00:00 should be 03:00:00 AKTST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1986-09-27T20:59:59+00:00 should be 02:59:59 AKTST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1986-09-27T21:00:00+00:00 should be 02:00:00 AKTT"); - - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1986-03-29T20:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1986-03-29T21:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1986-09-27T20:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1986-09-27T21:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1987-03-28T20:59:59+00:00 should be 01:59:59 AKTT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1987-03-28T21:00:00+00:00 should be 03:00:00 AKTST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1987-09-26T20:59:59+00:00 should be 02:59:59 AKTST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1987-09-26T21:00:00+00:00 should be 02:00:00 AKTT"); - - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1987-03-28T20:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1987-03-28T21:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1987-09-26T20:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1987-09-26T21:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1988-03-26T20:59:59+00:00 should be 01:59:59 AKTT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1988-03-26T21:00:00+00:00 should be 03:00:00 AKTST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1988-09-24T20:59:59+00:00 should be 02:59:59 AKTST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1988-09-24T21:00:00+00:00 should be 02:00:00 AKTT"); - - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1988-03-26T20:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1988-03-26T21:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1988-09-24T20:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1988-09-24T21:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1989-03-25T20:59:59+00:00 should be 01:59:59 AKTT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1989-03-25T21:00:00+00:00 should be 03:00:00 AKTST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1989-09-23T20:59:59+00:00 should be 02:59:59 AKTST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1989-09-23T21:00:00+00:00 should be 02:00:00 AKTT"); - - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1989-03-25T20:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1989-03-25T21:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1989-09-23T20:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1989-09-23T21:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1990-03-24T20:59:59+00:00 should be 01:59:59 AKTT"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1990-03-24T21:00:00+00:00 should be 03:00:00 AKTST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1990-09-29T20:59:59+00:00 should be 02:59:59 AKTST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1990-09-29T21:00:00+00:00 should be 02:00:00 AKTT"); - - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1990-03-24T20:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1990-03-24T21:00:00+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1990-09-29T20:59:59+00:00 should be -360 minutes offset in AKTST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1990-09-29T21:00:00+00:00 should be -300 minutes offset in AKTT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-12-15T18:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "23:59:59", "1991-12-15T18:59:59+00:00 should be 23:59:59 AKTT"); - t.equal(moment("1991-12-15T19:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "00:00:00", "1991-12-15T19:00:00+00:00 should be 00:00:00 AQTT"); - - t.equal(moment("1991-12-15T18:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1991-12-15T18:59:59+00:00 should be -300 minutes offset in AKTT"); - t.equal(moment("1991-12-15T19:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1991-12-15T19:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T17:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "22:59:59", "1992-03-28T17:59:59+00:00 should be 22:59:59 AQTT"); - t.equal(moment("1992-03-28T18:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "00:00:00", "1992-03-28T18:00:00+00:00 should be 00:00:00 AQTST"); - t.equal(moment("1992-09-26T16:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "22:59:59", "1992-09-26T16:59:59+00:00 should be 22:59:59 AQTST"); - t.equal(moment("1992-09-26T17:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "22:00:00", "1992-09-26T17:00:00+00:00 should be 22:00:00 AQTT"); - - t.equal(moment("1992-03-28T17:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1992-03-28T17:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1992-03-28T18:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1992-03-28T18:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1992-09-26T16:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1992-09-26T16:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1992-09-26T17:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1992-09-26T17:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1993-03-27T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1993-03-27T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1993-03-27T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1993-09-25T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1993-09-25T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1993-03-27T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1993-03-27T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1993-03-27T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1993-03-27T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1993-09-25T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1993-09-25T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1994-03-26T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1994-03-26T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1994-03-26T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1994-09-24T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1994-09-24T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1994-03-26T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1994-03-26T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1994-03-26T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1994-03-26T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1994-09-24T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1994-09-24T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1995-03-25T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1995-03-25T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1995-03-25T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1995-09-23T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1995-09-23T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1995-03-25T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1995-03-25T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1995-03-25T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1995-03-25T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1995-09-23T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1995-09-23T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1996-03-30T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1996-03-30T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1996-03-30T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1996-10-26T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1996-10-26T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1996-03-30T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1996-03-30T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1996-03-30T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1996-03-30T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1996-10-26T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1996-10-26T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1997-03-29T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1997-03-29T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1997-03-29T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1997-10-25T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1997-10-25T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1997-10-25T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1997-10-25T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1997-03-29T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1997-03-29T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1997-03-29T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1997-03-29T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1997-10-25T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1997-10-25T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1997-10-25T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1997-10-25T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1998-03-28T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1998-03-28T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1998-03-28T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1998-10-24T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1998-10-24T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1998-10-24T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1998-10-24T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1998-03-28T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1998-03-28T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1998-03-28T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1998-03-28T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1998-10-24T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1998-10-24T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1998-10-24T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1998-10-24T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "1999-03-27T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("1999-03-27T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "1999-03-27T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("1999-10-30T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "1999-10-30T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("1999-10-30T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "1999-10-30T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("1999-03-27T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "1999-03-27T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("1999-03-27T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "1999-03-27T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1999-10-30T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "1999-10-30T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("1999-10-30T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "1999-10-30T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "2000-03-25T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2000-03-25T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "2000-03-25T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2000-10-28T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "2000-10-28T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2000-10-28T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "2000-10-28T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2000-03-25T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "2000-03-25T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("2000-03-25T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "2000-03-25T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2000-10-28T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "2000-10-28T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2000-10-28T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "2000-10-28T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "2001-03-24T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2001-03-24T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "2001-03-24T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2001-10-27T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "2001-10-27T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2001-10-27T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "2001-10-27T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2001-03-24T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "2001-03-24T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("2001-03-24T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "2001-03-24T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2001-10-27T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "2001-10-27T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2001-10-27T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "2001-10-27T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "2002-03-30T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2002-03-30T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "2002-03-30T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2002-10-26T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "2002-10-26T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2002-10-26T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "2002-10-26T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2002-03-30T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "2002-03-30T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("2002-03-30T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "2002-03-30T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2002-10-26T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "2002-10-26T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2002-10-26T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "2002-10-26T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "2003-03-29T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2003-03-29T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "2003-03-29T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2003-10-25T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "2003-10-25T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2003-10-25T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "2003-10-25T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2003-03-29T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "2003-03-29T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("2003-03-29T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "2003-03-29T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2003-10-25T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "2003-10-25T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2003-10-25T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "2003-10-25T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "01:59:59", "2004-03-27T20:59:59+00:00 should be 01:59:59 AQTT"); - t.equal(moment("2004-03-27T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "03:00:00", "2004-03-27T21:00:00+00:00 should be 03:00:00 AQTST"); - t.equal(moment("2004-10-30T20:59:59+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:59:59", "2004-10-30T20:59:59+00:00 should be 02:59:59 AQTST"); - t.equal(moment("2004-10-30T21:00:00+00:00").tz("Asia/Aqtobe").format("HH:mm:ss"), "02:00:00", "2004-10-30T21:00:00+00:00 should be 02:00:00 AQTT"); - - t.equal(moment("2004-03-27T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -300, "2004-03-27T20:59:59+00:00 should be -300 minutes offset in AQTT"); - t.equal(moment("2004-03-27T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -360, "2004-03-27T21:00:00+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2004-10-30T20:59:59+00:00").tz("Asia/Aqtobe").zone(), -360, "2004-10-30T20:59:59+00:00 should be -360 minutes offset in AQTST"); - t.equal(moment("2004-10-30T21:00:00+00:00").tz("Asia/Aqtobe").zone(), -300, "2004-10-30T21:00:00+00:00 should be -300 minutes offset in AQTT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/ashgabat.js b/tests/asia/ashgabat.js deleted file mode 100644 index 3b957a28..00000000 --- a/tests/asia/ashgabat.js +++ /dev/null @@ -1,192 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Ashgabat"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T20:06:27+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1924-05-01T20:06:27+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T20:06:28+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "00:06:28", "1924-05-01T20:06:28+00:00 should be 00:06:28 ASHT"); - - t.equal(moment("1924-05-01T20:06:27+00:00").tz("Asia/Ashgabat").zone(), -14012 / 60, "1924-05-01T20:06:27+00:00 should be -14012 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T20:06:28+00:00").tz("Asia/Ashgabat").zone(), -240, "1924-05-01T20:06:28+00:00 should be -240 minutes offset in ASHT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1930-06-20T19:59:59+00:00 should be 23:59:59 ASHT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:00:00", "1930-06-20T20:00:00+00:00 should be 01:00:00 ASHT"); - - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Ashgabat").zone(), -240, "1930-06-20T19:59:59+00:00 should be -240 minutes offset in ASHT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1930-06-20T20:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1981-03-31T18:59:59+00:00 should be 23:59:59 ASHT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:00:00", "1981-03-31T19:00:00+00:00 should be 01:00:00 ASHST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1981-09-30T17:59:59+00:00 should be 23:59:59 ASHST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:00:00", "1981-09-30T18:00:00+00:00 should be 23:00:00 ASHT"); - - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1981-03-31T18:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1981-03-31T19:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1981-09-30T17:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1981-09-30T18:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T18:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1982-03-31T18:59:59+00:00 should be 23:59:59 ASHT"); - t.equal(moment("1982-03-31T19:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:00:00", "1982-03-31T19:00:00+00:00 should be 01:00:00 ASHST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1982-09-30T17:59:59+00:00 should be 23:59:59 ASHST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:00:00", "1982-09-30T18:00:00+00:00 should be 23:00:00 ASHT"); - - t.equal(moment("1982-03-31T18:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1982-03-31T18:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1982-03-31T19:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1982-03-31T19:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1982-09-30T17:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1982-09-30T18:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1983-03-31T18:59:59+00:00 should be 23:59:59 ASHT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:00:00", "1983-03-31T19:00:00+00:00 should be 01:00:00 ASHST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1983-09-30T17:59:59+00:00 should be 23:59:59 ASHST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:00:00", "1983-09-30T18:00:00+00:00 should be 23:00:00 ASHT"); - - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1983-03-31T18:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1983-03-31T19:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1983-09-30T17:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1983-09-30T18:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1984-03-31T18:59:59+00:00 should be 23:59:59 ASHT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:00:00", "1984-03-31T19:00:00+00:00 should be 01:00:00 ASHST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:59:59", "1984-09-29T20:59:59+00:00 should be 02:59:59 ASHST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:00:00", "1984-09-29T21:00:00+00:00 should be 02:00:00 ASHT"); - - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1984-03-31T18:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1984-03-31T19:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1984-09-29T20:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1984-09-29T21:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:59:59", "1985-03-30T20:59:59+00:00 should be 01:59:59 ASHT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "03:00:00", "1985-03-30T21:00:00+00:00 should be 03:00:00 ASHST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:59:59", "1985-09-28T20:59:59+00:00 should be 02:59:59 ASHST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:00:00", "1985-09-28T21:00:00+00:00 should be 02:00:00 ASHT"); - - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1985-03-30T20:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1985-03-30T21:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1985-09-28T20:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1985-09-28T21:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:59:59", "1986-03-29T20:59:59+00:00 should be 01:59:59 ASHT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "03:00:00", "1986-03-29T21:00:00+00:00 should be 03:00:00 ASHST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:59:59", "1986-09-27T20:59:59+00:00 should be 02:59:59 ASHST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:00:00", "1986-09-27T21:00:00+00:00 should be 02:00:00 ASHT"); - - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1986-03-29T20:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1986-03-29T21:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1986-09-27T20:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1986-09-27T21:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:59:59", "1987-03-28T20:59:59+00:00 should be 01:59:59 ASHT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "03:00:00", "1987-03-28T21:00:00+00:00 should be 03:00:00 ASHST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:59:59", "1987-09-26T20:59:59+00:00 should be 02:59:59 ASHST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:00:00", "1987-09-26T21:00:00+00:00 should be 02:00:00 ASHT"); - - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1987-03-28T20:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1987-03-28T21:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1987-09-26T20:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1987-09-26T21:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:59:59", "1988-03-26T20:59:59+00:00 should be 01:59:59 ASHT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "03:00:00", "1988-03-26T21:00:00+00:00 should be 03:00:00 ASHST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:59:59", "1988-09-24T20:59:59+00:00 should be 02:59:59 ASHST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:00:00", "1988-09-24T21:00:00+00:00 should be 02:00:00 ASHT"); - - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1988-03-26T20:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1988-03-26T21:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1988-09-24T20:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1988-09-24T21:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:59:59", "1989-03-25T20:59:59+00:00 should be 01:59:59 ASHT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "03:00:00", "1989-03-25T21:00:00+00:00 should be 03:00:00 ASHST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:59:59", "1989-09-23T20:59:59+00:00 should be 02:59:59 ASHST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:00:00", "1989-09-23T21:00:00+00:00 should be 02:00:00 ASHT"); - - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1989-03-25T20:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1989-03-25T21:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1989-09-23T20:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1989-09-23T21:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:59:59", "1990-03-24T20:59:59+00:00 should be 01:59:59 ASHT"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "03:00:00", "1990-03-24T21:00:00+00:00 should be 03:00:00 ASHST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:59:59", "1990-09-29T20:59:59+00:00 should be 02:59:59 ASHST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:00:00", "1990-09-29T21:00:00+00:00 should be 02:00:00 ASHT"); - - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1990-03-24T20:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -360, "1990-03-24T21:00:00+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -360, "1990-09-29T20:59:59+00:00 should be -360 minutes offset in ASHST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1990-09-29T21:00:00+00:00 should be -300 minutes offset in ASHT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T20:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:59:59", "1991-03-30T20:59:59+00:00 should be 01:59:59 ASHT"); - t.equal(moment("1991-03-30T21:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:00:00", "1991-03-30T21:00:00+00:00 should be 02:00:00 ASHST"); - t.equal(moment("1991-09-28T21:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:59:59", "1991-09-28T21:59:59+00:00 should be 02:59:59 ASHST"); - t.equal(moment("1991-09-28T22:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "02:00:00", "1991-09-28T22:00:00+00:00 should be 02:00:00 ASHT"); - t.equal(moment("1991-10-26T19:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "23:59:59", "1991-10-26T19:59:59+00:00 should be 23:59:59 ASHT"); - t.equal(moment("1991-10-26T20:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "00:00:00", "1991-10-26T20:00:00+00:00 should be 00:00:00 TMT"); - - t.equal(moment("1991-03-30T20:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1991-03-30T20:59:59+00:00 should be -300 minutes offset in ASHT"); - t.equal(moment("1991-03-30T21:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1991-03-30T21:00:00+00:00 should be -300 minutes offset in ASHST"); - t.equal(moment("1991-09-28T21:59:59+00:00").tz("Asia/Ashgabat").zone(), -300, "1991-09-28T21:59:59+00:00 should be -300 minutes offset in ASHST"); - t.equal(moment("1991-09-28T22:00:00+00:00").tz("Asia/Ashgabat").zone(), -240, "1991-09-28T22:00:00+00:00 should be -240 minutes offset in ASHT"); - t.equal(moment("1991-10-26T19:59:59+00:00").tz("Asia/Ashgabat").zone(), -240, "1991-10-26T19:59:59+00:00 should be -240 minutes offset in ASHT"); - t.equal(moment("1991-10-26T20:00:00+00:00").tz("Asia/Ashgabat").zone(), -240, "1991-10-26T20:00:00+00:00 should be -240 minutes offset in TMT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T21:59:59+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "01:59:59", "1992-01-18T21:59:59+00:00 should be 01:59:59 TMT"); - t.equal(moment("1992-01-18T22:00:00+00:00").tz("Asia/Ashgabat").format("HH:mm:ss"), "03:00:00", "1992-01-18T22:00:00+00:00 should be 03:00:00 TMT"); - - t.equal(moment("1992-01-18T21:59:59+00:00").tz("Asia/Ashgabat").zone(), -240, "1992-01-18T21:59:59+00:00 should be -240 minutes offset in TMT"); - t.equal(moment("1992-01-18T22:00:00+00:00").tz("Asia/Ashgabat").zone(), -300, "1992-01-18T22:00:00+00:00 should be -300 minutes offset in TMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/baghdad.js b/tests/asia/baghdad.js deleted file mode 100644 index de7a71d4..00000000 --- a/tests/asia/baghdad.js +++ /dev/null @@ -1,378 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Baghdad"] = { - - "1917" : function (t) { - t.equal(moment("1917-12-31T21:02:23+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:59:59", "1917-12-31T21:02:23+00:00 should be 23:59:59 BMT"); - t.equal(moment("1917-12-31T21:02:24+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "00:02:24", "1917-12-31T21:02:24+00:00 should be 00:02:24 AST"); - - t.equal(moment("1917-12-31T21:02:23+00:00").tz("Asia/Baghdad").zone(), -10656 / 60, "1917-12-31T21:02:23+00:00 should be -10656 / 60 minutes offset in BMT"); - t.equal(moment("1917-12-31T21:02:24+00:00").tz("Asia/Baghdad").zone(), -180, "1917-12-31T21:02:24+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-30T20:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:59:59", "1982-04-30T20:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1982-04-30T21:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1982-04-30T21:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1982-04-30T20:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1982-04-30T20:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1982-04-30T21:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1982-04-30T21:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-30T20:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:59:59", "1983-03-30T20:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1983-03-30T21:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1983-03-30T21:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1983-03-30T20:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1983-03-30T20:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1983-03-30T21:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1983-03-30T21:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1984-09-30T19:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:59:59", "1984-09-30T19:59:59+00:00 should be 23:59:59 ADT"); - t.equal(moment("1984-09-30T20:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:00:00", "1984-09-30T20:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1984-09-30T19:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1984-09-30T19:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1984-09-30T20:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1984-09-30T20:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T20:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "23:59:59", "1985-03-31T20:59:59+00:00 should be 23:59:59 AST"); - t.equal(moment("1985-03-31T21:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1985-03-31T21:00:00+00:00 should be 01:00:00 ADT"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:59:59", "1985-09-28T21:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1985-09-28T22:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1985-03-31T20:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1985-03-31T20:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1985-03-31T21:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1985-03-31T21:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1985-09-28T21:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1985-09-28T22:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "00:59:59", "1986-03-29T21:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:00:00", "1986-03-29T22:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:59:59", "1986-09-27T21:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1986-09-27T22:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1986-03-29T21:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1986-03-29T22:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1986-09-27T21:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1986-09-27T22:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "00:59:59", "1987-03-28T21:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:00:00", "1987-03-28T22:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:59:59", "1987-09-26T21:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1987-09-26T22:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1987-03-28T21:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1987-03-28T22:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1987-09-26T21:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1987-09-26T22:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "00:59:59", "1988-03-26T21:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:00:00", "1988-03-26T22:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:59:59", "1988-09-24T21:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1988-09-24T22:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1988-03-26T21:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1988-03-26T22:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1988-09-24T21:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1988-09-24T22:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "00:59:59", "1989-03-25T21:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:00:00", "1989-03-25T22:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:59:59", "1989-09-23T21:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1989-09-23T22:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1989-03-25T21:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1989-03-25T22:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1989-09-23T21:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1989-09-23T22:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "00:59:59", "1990-03-24T21:59:59+00:00 should be 00:59:59 AST"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:00:00", "1990-03-24T22:00:00+00:00 should be 02:00:00 ADT"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:59:59", "1990-09-29T21:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "01:00:00", "1990-09-29T22:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1990-03-24T21:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1990-03-24T22:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1990-09-29T21:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1990-09-29T22:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "1991-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("1991-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "1991-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("1991-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "1991-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("1991-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "1991-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("1991-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1991-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1991-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1991-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1991-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1991-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1991-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1991-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "1992-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("1992-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "1992-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("1992-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "1992-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("1992-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "1992-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("1992-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1992-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1992-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1992-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1992-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1992-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1992-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1992-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "1993-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("1993-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "1993-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("1993-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "1993-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("1993-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "1993-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("1993-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1993-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1993-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1993-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1993-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1993-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1993-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1993-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "1994-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("1994-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "1994-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("1994-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "1994-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("1994-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "1994-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("1994-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1994-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1994-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1994-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1994-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1994-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1994-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1994-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "1995-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("1995-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "1995-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("1995-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "1995-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("1995-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "1995-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("1995-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1995-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1995-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1995-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1995-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1995-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1995-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1995-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "1996-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("1996-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "1996-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("1996-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "1996-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("1996-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "1996-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("1996-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1996-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1996-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1996-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1996-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1996-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1996-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1996-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "1997-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("1997-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "1997-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("1997-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "1997-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("1997-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "1997-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("1997-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1997-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1997-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1997-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1997-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1997-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1997-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1997-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "1998-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("1998-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "1998-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("1998-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "1998-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("1998-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "1998-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("1998-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1998-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1998-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1998-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1998-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1998-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1998-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1998-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "1999-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("1999-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "1999-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("1999-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "1999-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("1999-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "1999-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("1999-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "1999-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("1999-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "1999-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1999-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "1999-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("1999-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "1999-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "2000-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("2000-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "2000-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("2000-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "2000-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("2000-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "2000-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("2000-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "2000-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("2000-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "2000-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2000-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "2000-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2000-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "2000-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "2001-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("2001-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "2001-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("2001-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "2001-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("2001-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "2001-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("2001-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "2001-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("2001-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "2001-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2001-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "2001-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2001-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "2001-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "2002-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("2002-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "2002-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("2002-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "2002-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("2002-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "2002-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("2002-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "2002-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("2002-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "2002-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2002-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "2002-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2002-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "2002-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "2003-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("2003-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "2003-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("2003-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "2003-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("2003-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "2003-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("2003-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "2003-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("2003-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "2003-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2003-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "2003-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2003-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "2003-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "2004-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("2004-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "2004-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("2004-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "2004-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("2004-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "2004-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("2004-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "2004-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("2004-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "2004-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2004-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "2004-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2004-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "2004-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "2005-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("2005-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "2005-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("2005-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "2005-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("2005-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "2005-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("2005-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "2005-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("2005-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "2005-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2005-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "2005-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2005-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "2005-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "2006-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("2006-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "2006-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("2006-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "2006-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("2006-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "2006-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("2006-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "2006-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("2006-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "2006-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2006-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "2006-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2006-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "2006-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-31T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "02:59:59", "2007-03-31T23:59:59+00:00 should be 02:59:59 AST"); - t.equal(moment("2007-04-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "04:00:00", "2007-04-01T00:00:00+00:00 should be 04:00:00 ADT"); - t.equal(moment("2007-09-30T23:59:59+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:59:59", "2007-09-30T23:59:59+00:00 should be 03:59:59 ADT"); - t.equal(moment("2007-10-01T00:00:00+00:00").tz("Asia/Baghdad").format("HH:mm:ss"), "03:00:00", "2007-10-01T00:00:00+00:00 should be 03:00:00 AST"); - - t.equal(moment("2007-03-31T23:59:59+00:00").tz("Asia/Baghdad").zone(), -180, "2007-03-31T23:59:59+00:00 should be -180 minutes offset in AST"); - t.equal(moment("2007-04-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -240, "2007-04-01T00:00:00+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2007-09-30T23:59:59+00:00").tz("Asia/Baghdad").zone(), -240, "2007-09-30T23:59:59+00:00 should be -240 minutes offset in ADT"); - t.equal(moment("2007-10-01T00:00:00+00:00").tz("Asia/Baghdad").zone(), -180, "2007-10-01T00:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/bahrain.js b/tests/asia/bahrain.js deleted file mode 100644 index d7eb7676..00000000 --- a/tests/asia/bahrain.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Bahrain"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T20:37:39+00:00").tz("Asia/Bahrain").format("HH:mm:ss"), "23:59:59", "1919-12-31T20:37:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-31T20:37:40+00:00").tz("Asia/Bahrain").format("HH:mm:ss"), "00:37:40", "1919-12-31T20:37:40+00:00 should be 00:37:40 GST"); - - t.equal(moment("1919-12-31T20:37:39+00:00").tz("Asia/Bahrain").zone(), -12140 / 60, "1919-12-31T20:37:39+00:00 should be -12140 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-31T20:37:40+00:00").tz("Asia/Bahrain").zone(), -240, "1919-12-31T20:37:40+00:00 should be -240 minutes offset in GST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-05-31T19:59:59+00:00").tz("Asia/Bahrain").format("HH:mm:ss"), "23:59:59", "1972-05-31T19:59:59+00:00 should be 23:59:59 GST"); - t.equal(moment("1972-05-31T20:00:00+00:00").tz("Asia/Bahrain").format("HH:mm:ss"), "23:00:00", "1972-05-31T20:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1972-05-31T19:59:59+00:00").tz("Asia/Bahrain").zone(), -240, "1972-05-31T19:59:59+00:00 should be -240 minutes offset in GST"); - t.equal(moment("1972-05-31T20:00:00+00:00").tz("Asia/Bahrain").zone(), -180, "1972-05-31T20:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/baku.js b/tests/asia/baku.js deleted file mode 100644 index 35d6d9c9..00000000 --- a/tests/asia/baku.js +++ /dev/null @@ -1,784 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Baku"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T20:40:35+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1924-05-01T20:40:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T20:40:36+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:40:36", "1924-05-01T20:40:36+00:00 should be 23:40:36 BAKT"); - - t.equal(moment("1924-05-01T20:40:35+00:00").tz("Asia/Baku").zone(), -11964 / 60, "1924-05-01T20:40:35+00:00 should be -11964 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T20:40:36+00:00").tz("Asia/Baku").zone(), -180, "1924-05-01T20:40:36+00:00 should be -180 minutes offset in BAKT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-02-28T20:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1957-02-28T20:59:59+00:00 should be 23:59:59 BAKT"); - t.equal(moment("1957-02-28T21:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:00:00", "1957-02-28T21:00:00+00:00 should be 01:00:00 BAKT"); - - t.equal(moment("1957-02-28T20:59:59+00:00").tz("Asia/Baku").zone(), -180, "1957-02-28T20:59:59+00:00 should be -180 minutes offset in BAKT"); - t.equal(moment("1957-02-28T21:00:00+00:00").tz("Asia/Baku").zone(), -240, "1957-02-28T21:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1981-03-31T19:59:59+00:00 should be 23:59:59 BAKT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:00:00", "1981-03-31T20:00:00+00:00 should be 01:00:00 BAKST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1981-09-30T18:59:59+00:00 should be 23:59:59 BAKST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:00:00", "1981-09-30T19:00:00+00:00 should be 23:00:00 BAKT"); - - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Asia/Baku").zone(), -240, "1981-03-31T19:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Asia/Baku").zone(), -300, "1981-03-31T20:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Asia/Baku").zone(), -300, "1981-09-30T18:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Asia/Baku").zone(), -240, "1981-09-30T19:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1982-03-31T19:59:59+00:00 should be 23:59:59 BAKT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:00:00", "1982-03-31T20:00:00+00:00 should be 01:00:00 BAKST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1982-09-30T18:59:59+00:00 should be 23:59:59 BAKST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:00:00", "1982-09-30T19:00:00+00:00 should be 23:00:00 BAKT"); - - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Asia/Baku").zone(), -240, "1982-03-31T19:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Asia/Baku").zone(), -300, "1982-03-31T20:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Asia/Baku").zone(), -300, "1982-09-30T18:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Asia/Baku").zone(), -240, "1982-09-30T19:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1983-03-31T19:59:59+00:00 should be 23:59:59 BAKT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:00:00", "1983-03-31T20:00:00+00:00 should be 01:00:00 BAKST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1983-09-30T18:59:59+00:00 should be 23:59:59 BAKST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:00:00", "1983-09-30T19:00:00+00:00 should be 23:00:00 BAKT"); - - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Asia/Baku").zone(), -240, "1983-03-31T19:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Asia/Baku").zone(), -300, "1983-03-31T20:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Asia/Baku").zone(), -300, "1983-09-30T18:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Asia/Baku").zone(), -240, "1983-09-30T19:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1984-03-31T19:59:59+00:00 should be 23:59:59 BAKT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:00:00", "1984-03-31T20:00:00+00:00 should be 01:00:00 BAKST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:59:59", "1984-09-29T21:59:59+00:00 should be 02:59:59 BAKST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:00:00", "1984-09-29T22:00:00+00:00 should be 02:00:00 BAKT"); - - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Asia/Baku").zone(), -240, "1984-03-31T19:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Asia/Baku").zone(), -300, "1984-03-31T20:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Asia/Baku").zone(), -300, "1984-09-29T21:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Asia/Baku").zone(), -240, "1984-09-29T22:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:59:59", "1985-03-30T21:59:59+00:00 should be 01:59:59 BAKT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:00:00", "1985-03-30T22:00:00+00:00 should be 03:00:00 BAKST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:59:59", "1985-09-28T21:59:59+00:00 should be 02:59:59 BAKST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:00:00", "1985-09-28T22:00:00+00:00 should be 02:00:00 BAKT"); - - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Asia/Baku").zone(), -240, "1985-03-30T21:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Asia/Baku").zone(), -300, "1985-03-30T22:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Asia/Baku").zone(), -300, "1985-09-28T21:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Asia/Baku").zone(), -240, "1985-09-28T22:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:59:59", "1986-03-29T21:59:59+00:00 should be 01:59:59 BAKT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:00:00", "1986-03-29T22:00:00+00:00 should be 03:00:00 BAKST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:59:59", "1986-09-27T21:59:59+00:00 should be 02:59:59 BAKST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:00:00", "1986-09-27T22:00:00+00:00 should be 02:00:00 BAKT"); - - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Baku").zone(), -240, "1986-03-29T21:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Baku").zone(), -300, "1986-03-29T22:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Asia/Baku").zone(), -300, "1986-09-27T21:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Asia/Baku").zone(), -240, "1986-09-27T22:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:59:59", "1987-03-28T21:59:59+00:00 should be 01:59:59 BAKT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:00:00", "1987-03-28T22:00:00+00:00 should be 03:00:00 BAKST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:59:59", "1987-09-26T21:59:59+00:00 should be 02:59:59 BAKST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:00:00", "1987-09-26T22:00:00+00:00 should be 02:00:00 BAKT"); - - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Baku").zone(), -240, "1987-03-28T21:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Baku").zone(), -300, "1987-03-28T22:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Asia/Baku").zone(), -300, "1987-09-26T21:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Asia/Baku").zone(), -240, "1987-09-26T22:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:59:59", "1988-03-26T21:59:59+00:00 should be 01:59:59 BAKT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:00:00", "1988-03-26T22:00:00+00:00 should be 03:00:00 BAKST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:59:59", "1988-09-24T21:59:59+00:00 should be 02:59:59 BAKST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:00:00", "1988-09-24T22:00:00+00:00 should be 02:00:00 BAKT"); - - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Baku").zone(), -240, "1988-03-26T21:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Baku").zone(), -300, "1988-03-26T22:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Asia/Baku").zone(), -300, "1988-09-24T21:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Asia/Baku").zone(), -240, "1988-09-24T22:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:59:59", "1989-03-25T21:59:59+00:00 should be 01:59:59 BAKT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:00:00", "1989-03-25T22:00:00+00:00 should be 03:00:00 BAKST"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:59:59", "1989-09-23T21:59:59+00:00 should be 02:59:59 BAKST"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:00:00", "1989-09-23T22:00:00+00:00 should be 02:00:00 BAKT"); - - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Baku").zone(), -240, "1989-03-25T21:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Baku").zone(), -300, "1989-03-25T22:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Baku").zone(), -300, "1989-09-23T21:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Baku").zone(), -240, "1989-09-23T22:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:59:59", "1990-03-24T21:59:59+00:00 should be 01:59:59 BAKT"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:00:00", "1990-03-24T22:00:00+00:00 should be 03:00:00 BAKST"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:59:59", "1990-09-29T21:59:59+00:00 should be 02:59:59 BAKST"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:00:00", "1990-09-29T22:00:00+00:00 should be 02:00:00 BAKT"); - - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Baku").zone(), -240, "1990-03-24T21:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Baku").zone(), -300, "1990-03-24T22:00:00+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Baku").zone(), -300, "1990-09-29T21:59:59+00:00 should be -300 minutes offset in BAKST"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Baku").zone(), -240, "1990-09-29T22:00:00+00:00 should be -240 minutes offset in BAKT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "01:59:59", "1991-03-30T21:59:59+00:00 should be 01:59:59 BAKT"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:00:00", "1991-03-30T22:00:00+00:00 should be 02:00:00 BAKST"); - t.equal(moment("1991-08-29T19:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:59:59", "1991-08-29T19:59:59+00:00 should be 23:59:59 BAKST"); - t.equal(moment("1991-08-29T20:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "00:00:00", "1991-08-29T20:00:00+00:00 should be 00:00:00 AZST"); - t.equal(moment("1991-09-28T22:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:59:59", "1991-09-28T22:59:59+00:00 should be 02:59:59 AZST"); - t.equal(moment("1991-09-28T23:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "02:00:00", "1991-09-28T23:00:00+00:00 should be 02:00:00 AZT"); - - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Asia/Baku").zone(), -240, "1991-03-30T21:59:59+00:00 should be -240 minutes offset in BAKT"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Asia/Baku").zone(), -240, "1991-03-30T22:00:00+00:00 should be -240 minutes offset in BAKST"); - t.equal(moment("1991-08-29T19:59:59+00:00").tz("Asia/Baku").zone(), -240, "1991-08-29T19:59:59+00:00 should be -240 minutes offset in BAKST"); - t.equal(moment("1991-08-29T20:00:00+00:00").tz("Asia/Baku").zone(), -240, "1991-08-29T20:00:00+00:00 should be -240 minutes offset in AZST"); - t.equal(moment("1991-09-28T22:59:59+00:00").tz("Asia/Baku").zone(), -240, "1991-09-28T22:59:59+00:00 should be -240 minutes offset in AZST"); - t.equal(moment("1991-09-28T23:00:00+00:00").tz("Asia/Baku").zone(), -180, "1991-09-28T23:00:00+00:00 should be -180 minutes offset in AZT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T19:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "22:59:59", "1992-03-28T19:59:59+00:00 should be 22:59:59 AZT"); - t.equal(moment("1992-03-28T20:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "00:00:00", "1992-03-28T20:00:00+00:00 should be 00:00:00 AZST"); - t.equal(moment("1992-09-26T18:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "22:59:59", "1992-09-26T18:59:59+00:00 should be 22:59:59 AZST"); - t.equal(moment("1992-09-26T19:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "23:00:00", "1992-09-26T19:00:00+00:00 should be 23:00:00 AZT"); - - t.equal(moment("1992-03-28T19:59:59+00:00").tz("Asia/Baku").zone(), -180, "1992-03-28T19:59:59+00:00 should be -180 minutes offset in AZT"); - t.equal(moment("1992-03-28T20:00:00+00:00").tz("Asia/Baku").zone(), -240, "1992-03-28T20:00:00+00:00 should be -240 minutes offset in AZST"); - t.equal(moment("1992-09-26T18:59:59+00:00").tz("Asia/Baku").zone(), -240, "1992-09-26T18:59:59+00:00 should be -240 minutes offset in AZST"); - t.equal(moment("1992-09-26T19:00:00+00:00").tz("Asia/Baku").zone(), -240, "1992-09-26T19:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "1996-03-31T00:59:59+00:00 should be 04:59:59 AZT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "06:00:00", "1996-03-31T01:00:00+00:00 should be 06:00:00 AZST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:59:59", "1996-10-27T00:59:59+00:00 should be 05:59:59 AZST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "1996-10-27T01:00:00+00:00 should be 05:00:00 AZT"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Asia/Baku").zone(), -240, "1996-03-31T00:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Asia/Baku").zone(), -300, "1996-03-31T01:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Asia/Baku").zone(), -300, "1996-10-27T00:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Asia/Baku").zone(), -240, "1996-10-27T01:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "1997-03-29T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "1997-03-30T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "1997-10-25T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "1997-10-26T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "1997-03-29T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "1997-03-30T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "1997-10-25T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "1997-10-26T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "1998-03-28T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("1998-03-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "1998-03-29T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("1998-10-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "1998-10-24T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("1998-10-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "1998-10-25T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("1998-03-28T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "1998-03-28T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("1998-03-29T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "1998-03-29T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("1998-10-24T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "1998-10-24T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("1998-10-25T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "1998-10-25T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "1999-03-27T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("1999-03-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "1999-03-28T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("1999-10-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "1999-10-30T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("1999-10-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "1999-10-31T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("1999-03-27T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "1999-03-27T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("1999-03-28T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "1999-03-28T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("1999-10-30T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "1999-10-30T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("1999-10-31T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "1999-10-31T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2000-03-25T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2000-03-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2000-03-26T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2000-10-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2000-10-28T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2000-10-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2000-10-29T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2000-03-25T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2000-03-25T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2000-03-26T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2000-03-26T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2000-10-28T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2000-10-28T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2000-10-29T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2000-10-29T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2001-03-24T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2001-03-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2001-03-25T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2001-10-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2001-10-27T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2001-10-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2001-10-28T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2001-03-24T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2001-03-24T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2001-03-25T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2001-03-25T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2001-10-27T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2001-10-27T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2001-10-28T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2001-10-28T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2002-03-30T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2002-03-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2002-03-31T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2002-10-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2002-10-26T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2002-10-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2002-10-27T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2002-03-30T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2002-03-30T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2002-03-31T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2002-03-31T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2002-10-26T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2002-10-26T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2002-10-27T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2002-10-27T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2003-03-29T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2003-03-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2003-03-30T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2003-10-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2003-10-25T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2003-10-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2003-10-26T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2003-03-29T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2003-03-29T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2003-03-30T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2003-03-30T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2003-10-25T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2003-10-25T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2003-10-26T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2003-10-26T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2004-03-27T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2004-03-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2004-03-28T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2004-10-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2004-10-30T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2004-10-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2004-10-31T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2004-03-27T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2004-03-27T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2004-03-28T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2004-03-28T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2004-10-30T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2004-10-30T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2004-10-31T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2004-10-31T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2005-03-26T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2005-03-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2005-03-27T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2005-10-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2005-10-29T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2005-10-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2005-10-30T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2005-03-26T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2005-03-26T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2005-03-27T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2005-03-27T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2005-10-29T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2005-10-29T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2005-10-30T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2005-10-30T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2006-03-25T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2006-03-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2006-03-26T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2006-10-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2006-10-28T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2006-10-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2006-10-29T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2006-03-25T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2006-03-25T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2006-03-26T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2006-03-26T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2006-10-28T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2006-10-28T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2006-10-29T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2006-10-29T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2007-03-24T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2007-03-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2007-03-25T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2007-10-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2007-10-27T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2007-10-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2007-10-28T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2007-03-24T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2007-03-24T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2007-03-25T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2007-03-25T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2007-10-27T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2007-10-27T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2007-10-28T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2007-10-28T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2008-03-29T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2008-03-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2008-03-30T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2008-10-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2008-10-25T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2008-10-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2008-10-26T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2008-03-29T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2008-03-29T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2008-03-30T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2008-03-30T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2008-10-25T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2008-10-25T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2008-10-26T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2008-10-26T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2009-03-28T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2009-03-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2009-03-29T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2009-10-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2009-10-24T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2009-10-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2009-10-25T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2009-03-28T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2009-03-28T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2009-03-29T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2009-03-29T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2009-10-24T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2009-10-24T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2009-10-25T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2009-10-25T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2010-03-27T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2010-03-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2010-03-28T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2010-10-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2010-10-30T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2010-10-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2010-10-31T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2010-03-27T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2010-03-27T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2010-03-28T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2010-03-28T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2010-10-30T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2010-10-30T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2010-10-31T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2010-10-31T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2011-03-26T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2011-03-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2011-03-27T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2011-10-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2011-10-29T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2011-10-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2011-10-30T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2011-03-26T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2011-03-26T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2011-03-27T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2011-03-27T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2011-10-29T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2011-10-29T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2011-10-30T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2011-10-30T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2012-03-24T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2012-03-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2012-03-25T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2012-10-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2012-10-27T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2012-10-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2012-10-28T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2012-03-24T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2012-03-24T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2012-03-25T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2012-03-25T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2012-10-27T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2012-10-27T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2012-10-28T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2012-10-28T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2013-03-30T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2013-03-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2013-03-31T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2013-10-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2013-10-26T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2013-10-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2013-10-27T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2013-03-30T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2013-03-30T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2013-03-31T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2013-03-31T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2013-10-26T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2013-10-26T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2013-10-27T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2013-10-27T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2014-03-29T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2014-03-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2014-03-30T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2014-10-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2014-10-25T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2014-10-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2014-10-26T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2014-03-29T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2014-03-29T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2014-03-30T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2014-03-30T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2014-10-25T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2014-10-25T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2014-10-26T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2014-10-26T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2015-03-28T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2015-03-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2015-03-29T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2015-10-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2015-10-24T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2015-10-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2015-10-25T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2015-03-28T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2015-03-28T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2015-03-29T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2015-03-29T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2015-10-24T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2015-10-24T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2015-10-25T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2015-10-25T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2016-03-26T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2016-03-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2016-03-27T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2016-10-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2016-10-29T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2016-10-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2016-10-30T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2016-03-26T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2016-03-26T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2016-03-27T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2016-03-27T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2016-10-29T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2016-10-29T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2016-10-30T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2016-10-30T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2017-03-25T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2017-03-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2017-03-26T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2017-10-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2017-10-28T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2017-10-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2017-10-29T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2017-03-25T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2017-03-25T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2017-03-26T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2017-03-26T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2017-10-28T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2017-10-28T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2017-10-29T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2017-10-29T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2018-03-24T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2018-03-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2018-03-25T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2018-10-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2018-10-27T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2018-10-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2018-10-28T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2018-03-24T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2018-03-24T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2018-03-25T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2018-03-25T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2018-10-27T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2018-10-27T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2018-10-28T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2018-10-28T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2019-03-30T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2019-03-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2019-03-31T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2019-10-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2019-10-26T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2019-10-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2019-10-27T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2019-03-30T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2019-03-30T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2019-03-31T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2019-03-31T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2019-10-26T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2019-10-26T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2019-10-27T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2019-10-27T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2020-03-28T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2020-03-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2020-03-29T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2020-10-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2020-10-24T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2020-10-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2020-10-25T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2020-03-28T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2020-03-28T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2020-03-29T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2020-03-29T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2020-10-24T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2020-10-24T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2020-10-25T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2020-10-25T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2021-03-27T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2021-03-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2021-03-28T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2021-10-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2021-10-30T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2021-10-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2021-10-31T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2021-03-27T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2021-03-27T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2021-03-28T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2021-03-28T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2021-10-30T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2021-10-30T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2021-10-31T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2021-10-31T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2022-03-26T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2022-03-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2022-03-27T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2022-10-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2022-10-29T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2022-10-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2022-10-30T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2022-03-26T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2022-03-26T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2022-03-27T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2022-03-27T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2022-10-29T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2022-10-29T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2022-10-30T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2022-10-30T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2023-03-25T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2023-03-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2023-03-26T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2023-10-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2023-10-28T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2023-10-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2023-10-29T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2023-03-25T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2023-03-25T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2023-03-26T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2023-03-26T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2023-10-28T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2023-10-28T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2023-10-29T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2023-10-29T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2024-03-30T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2024-03-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2024-03-31T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2024-10-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2024-10-26T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2024-10-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2024-10-27T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2024-03-30T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2024-03-30T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2024-03-31T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2024-03-31T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2024-10-26T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2024-10-26T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2024-10-27T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2024-10-27T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2025-03-29T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2025-03-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2025-03-30T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2025-10-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2025-10-25T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2025-10-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2025-10-26T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2025-03-29T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2025-03-29T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2025-03-30T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2025-03-30T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2025-10-25T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2025-10-25T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2025-10-26T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2025-10-26T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2026-03-28T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2026-03-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2026-03-29T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2026-10-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2026-10-24T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2026-10-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2026-10-25T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2026-03-28T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2026-03-28T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2026-03-29T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2026-03-29T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2026-10-24T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2026-10-24T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2026-10-25T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2026-10-25T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2027-03-27T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2027-03-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2027-03-28T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2027-10-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2027-10-30T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2027-10-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2027-10-31T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2027-03-27T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2027-03-27T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2027-03-28T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2027-03-28T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2027-10-30T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2027-10-30T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2027-10-31T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2027-10-31T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2028-03-25T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2028-03-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2028-03-26T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2028-10-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2028-10-28T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2028-10-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2028-10-29T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2028-03-25T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2028-03-25T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2028-03-26T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2028-03-26T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2028-10-28T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2028-10-28T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2028-10-29T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2028-10-29T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2029-03-24T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2029-03-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2029-03-25T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2029-10-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2029-10-27T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2029-10-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2029-10-28T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2029-03-24T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2029-03-24T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2029-03-25T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2029-03-25T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2029-10-27T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2029-10-27T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2029-10-28T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2029-10-28T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2030-03-30T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2030-03-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2030-03-31T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2030-10-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2030-10-26T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2030-10-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2030-10-27T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2030-03-30T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2030-03-30T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2030-03-31T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2030-03-31T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2030-10-26T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2030-10-26T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2030-10-27T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2030-10-27T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2031-03-29T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2031-03-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2031-03-30T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2031-10-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2031-10-25T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2031-10-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2031-10-26T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2031-03-29T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2031-03-29T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2031-03-30T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2031-03-30T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2031-10-25T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2031-10-25T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2031-10-26T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2031-10-26T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2032-03-27T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2032-03-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2032-03-28T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2032-10-30T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2032-10-30T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2032-10-31T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2032-10-31T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2032-03-27T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2032-03-27T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2032-03-28T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2032-03-28T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2032-10-30T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2032-10-30T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2032-10-31T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2032-10-31T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-26T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2033-03-26T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2033-03-27T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2033-03-27T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2033-10-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2033-10-29T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2033-10-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2033-10-30T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2033-03-26T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2033-03-26T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2033-03-27T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2033-03-27T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2033-10-29T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2033-10-29T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2033-10-30T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2033-10-30T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2034-03-25T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2034-03-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2034-03-26T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2034-10-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2034-10-28T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2034-10-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2034-10-29T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2034-03-25T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2034-03-25T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2034-03-26T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2034-03-26T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2034-10-28T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2034-10-28T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2034-10-29T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2034-10-29T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2035-03-24T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2035-03-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2035-03-25T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2035-10-27T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2035-10-27T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2035-10-28T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2035-10-28T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2035-03-24T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2035-03-24T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2035-03-25T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2035-03-25T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2035-10-27T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2035-10-27T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2035-10-28T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2035-10-28T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-29T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2036-03-29T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2036-03-30T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2036-03-30T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2036-10-25T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2036-10-25T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2036-10-26T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2036-10-26T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2036-03-29T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2036-03-29T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2036-03-30T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2036-03-30T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2036-10-25T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2036-10-25T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2036-10-26T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2036-10-26T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-28T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "03:59:59", "2037-03-28T23:59:59+00:00 should be 03:59:59 AZT"); - t.equal(moment("2037-03-29T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "05:00:00", "2037-03-29T00:00:00+00:00 should be 05:00:00 AZST"); - t.equal(moment("2037-10-24T23:59:59+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:59:59", "2037-10-24T23:59:59+00:00 should be 04:59:59 AZST"); - t.equal(moment("2037-10-25T00:00:00+00:00").tz("Asia/Baku").format("HH:mm:ss"), "04:00:00", "2037-10-25T00:00:00+00:00 should be 04:00:00 AZT"); - - t.equal(moment("2037-03-28T23:59:59+00:00").tz("Asia/Baku").zone(), -240, "2037-03-28T23:59:59+00:00 should be -240 minutes offset in AZT"); - t.equal(moment("2037-03-29T00:00:00+00:00").tz("Asia/Baku").zone(), -300, "2037-03-29T00:00:00+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2037-10-24T23:59:59+00:00").tz("Asia/Baku").zone(), -300, "2037-10-24T23:59:59+00:00 should be -300 minutes offset in AZST"); - t.equal(moment("2037-10-25T00:00:00+00:00").tz("Asia/Baku").zone(), -240, "2037-10-25T00:00:00+00:00 should be -240 minutes offset in AZT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/bangkok.js b/tests/asia/bangkok.js deleted file mode 100644 index 4ac8d3b0..00000000 --- a/tests/asia/bangkok.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Bangkok"] = { - - "1920" : function (t) { - t.equal(moment("1920-03-31T17:17:55+00:00").tz("Asia/Bangkok").format("HH:mm:ss"), "23:59:59", "1920-03-31T17:17:55+00:00 should be 23:59:59 BMT"); - t.equal(moment("1920-03-31T17:17:56+00:00").tz("Asia/Bangkok").format("HH:mm:ss"), "00:17:56", "1920-03-31T17:17:56+00:00 should be 00:17:56 ICT"); - - t.equal(moment("1920-03-31T17:17:55+00:00").tz("Asia/Bangkok").zone(), -24124 / 60, "1920-03-31T17:17:55+00:00 should be -24124 / 60 minutes offset in BMT"); - t.equal(moment("1920-03-31T17:17:56+00:00").tz("Asia/Bangkok").zone(), -420, "1920-03-31T17:17:56+00:00 should be -420 minutes offset in ICT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/beirut.js b/tests/asia/beirut.js deleted file mode 100644 index 36f471e6..00000000 --- a/tests/asia/beirut.js +++ /dev/null @@ -1,984 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Beirut"] = { - - "1920" : function (t) { - t.equal(moment("1920-03-27T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1920-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1920-03-27T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1920-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1920-10-24T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1920-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1920-10-24T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1920-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1920-03-27T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1920-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1920-03-27T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1920-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1920-10-24T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1920-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1920-10-24T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1920-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-02T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1921-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1921-04-02T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1921-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1921-10-02T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1921-10-02T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1921-10-02T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1921-10-02T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1921-04-02T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1921-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1921-04-02T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1921-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1921-10-02T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1921-10-02T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1921-10-02T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1921-10-02T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-25T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1922-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1922-03-25T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1922-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1922-10-07T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1922-10-07T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1922-10-07T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1922-10-07T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1922-03-25T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1922-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1922-03-25T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1922-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1922-10-07T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1922-10-07T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1922-10-07T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1922-10-07T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-21T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1923-04-21T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1923-04-21T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1923-04-21T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1923-09-15T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1923-09-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1923-09-15T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1923-09-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1923-04-21T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1923-04-21T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1923-04-21T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1923-04-21T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1923-09-15T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1923-09-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1923-09-15T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1923-09-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1957-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1957-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1957-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1957-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1957-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1957-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1957-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1957-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1957-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1957-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1957-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1957-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1957-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1957-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1957-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1958-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1958-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1958-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1958-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1958-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1958-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1958-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1958-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1958-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1958-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1958-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1958-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1958-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1958-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1958-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1959-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1959-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1959-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1959-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1959-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1959-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1959-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1959-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1959-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1959-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1959-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1959-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1959-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1959-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1959-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1960-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1960-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1960-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1960-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1960-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1960-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1960-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1960-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1960-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1960-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1960-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1960-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1960-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1960-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1960-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1961-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1961-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1961-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1961-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1961-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1961-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1961-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1961-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1961-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1961-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1961-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1961-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1961-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1961-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1961-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-06-21T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1972-06-21T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1972-06-21T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1972-06-21T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1972-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1972-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1972-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1972-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1972-06-21T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1972-06-21T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1972-06-21T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1972-06-21T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1972-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1972-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1972-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1972-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1973-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1973-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1973-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1973-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1973-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1973-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1973-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1973-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1973-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1973-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1973-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1973-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1973-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1974-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1974-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1974-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1974-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1974-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1974-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1974-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1974-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1974-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1974-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1974-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1974-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1974-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1975-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1975-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1975-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1975-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1975-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1975-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1975-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1975-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1975-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1975-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1975-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1975-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1975-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1976-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1976-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1976-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1976-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1976-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1976-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1976-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1976-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1976-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1976-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1976-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1976-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1976-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1977-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1977-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1977-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1977-09-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1977-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1977-09-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1977-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1977-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1977-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1977-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1977-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1977-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1977-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-29T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1978-04-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1978-04-29T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1978-04-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1978-09-29T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1978-09-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1978-09-29T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1978-09-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1978-04-29T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1978-04-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1978-04-29T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1978-04-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-09-29T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1978-09-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-09-29T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1978-09-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1984-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1984-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1984-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1984-10-15T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1984-10-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1984-10-15T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1984-10-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1984-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1984-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1984-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1984-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-10-15T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1984-10-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-10-15T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1984-10-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1985-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1985-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1985-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1985-10-15T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1985-10-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1985-10-15T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1985-10-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1985-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1985-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1985-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1985-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-10-15T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1985-10-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-10-15T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1985-10-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1986-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1986-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1986-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1986-10-15T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1986-10-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1986-10-15T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1986-10-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1986-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1986-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1986-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-10-15T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1986-10-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-10-15T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1986-10-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1987-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1987-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1987-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1987-10-15T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1987-10-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1987-10-15T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1987-10-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1987-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1987-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1987-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-10-15T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1987-10-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-10-15T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1987-10-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-05-31T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1988-05-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1988-05-31T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1988-05-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1988-10-15T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1988-10-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1988-10-15T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1988-10-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1988-05-31T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1988-05-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-05-31T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1988-05-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-10-15T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1988-10-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-10-15T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1988-10-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-05-09T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1989-05-09T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1989-05-09T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1989-05-09T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1989-10-15T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1989-10-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1989-10-15T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1989-10-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1989-05-09T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1989-05-09T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-05-09T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1989-05-09T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-10-15T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1989-10-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-10-15T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1989-10-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1990-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1990-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1990-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1990-10-15T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1990-10-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1990-10-15T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1990-10-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1990-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1990-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1990-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-10-15T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1990-10-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-10-15T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1990-10-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1991-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1991-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1991-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1991-10-15T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1991-10-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1991-10-15T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1991-10-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1991-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1991-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1991-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-10-15T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1991-10-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-10-15T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1991-10-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1992-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-04-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1992-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-10-03T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1992-10-03T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-10-03T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1992-10-03T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-04-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1992-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-04-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1992-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-10-03T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1992-10-03T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-10-03T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1992-10-03T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1993-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1993-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1993-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1993-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1993-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1993-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1993-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1993-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1994-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1994-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1994-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1994-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1994-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1994-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1994-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1994-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1995-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1995-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1995-09-23T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1995-09-23T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1995-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1995-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1995-09-23T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1995-09-23T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1996-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1996-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-09-28T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1996-09-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1996-09-28T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1996-09-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1996-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1996-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-28T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1996-09-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-28T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1996-09-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1997-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1997-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1997-09-27T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1997-09-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1997-09-27T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1997-09-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1997-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1997-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-27T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1997-09-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-27T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1997-09-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1998-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1998-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1998-09-26T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1998-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1998-09-26T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1998-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1998-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1998-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-26T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1998-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-26T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1998-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1999-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "1999-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1999-10-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "1999-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1999-10-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "1999-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "1999-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "1999-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "1999-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "1999-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2000-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2000-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2000-10-28T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2000-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2000-10-28T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2000-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2000-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2000-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-28T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2000-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-28T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2000-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2001-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2001-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2001-10-27T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2001-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2001-10-27T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2001-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2001-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2001-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-27T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2001-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-27T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2001-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2002-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2002-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2002-10-26T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2002-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2002-10-26T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2002-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2002-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2002-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-26T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2002-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-26T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2002-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2003-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2003-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2003-10-25T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2003-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2003-10-25T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2003-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2003-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2003-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-25T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2003-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-25T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2003-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2004-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2004-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2004-10-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2004-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2004-10-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2004-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2004-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2004-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2004-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2004-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2005-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2005-03-26T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2005-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2005-10-29T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2005-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2005-10-29T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2005-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2005-03-26T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2005-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-26T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2005-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-29T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2005-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-29T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2005-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2006-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2006-03-25T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2006-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2006-10-28T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2006-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2006-10-28T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2006-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2006-03-25T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2006-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-25T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2006-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-28T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2006-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-28T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2006-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2007-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2007-03-24T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2007-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2007-10-27T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2007-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2007-10-27T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2007-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2007-03-24T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2007-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-24T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2007-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-27T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2007-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-27T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2007-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2008-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2008-03-29T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2008-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2008-10-25T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2008-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2008-10-25T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2008-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2008-03-29T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2008-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-29T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2008-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-25T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2008-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-25T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2008-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2009-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2009-03-28T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2009-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2009-10-24T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2009-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2009-10-24T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2009-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2009-03-28T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2009-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-28T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2009-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-24T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2009-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-24T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2009-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2010-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2010-03-27T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2010-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2010-10-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2010-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2010-10-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2010-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2010-03-27T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2010-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-27T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2010-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2010-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2010-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2011-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2011-03-26T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2011-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2011-10-29T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2011-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2011-10-29T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2011-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2011-03-26T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2011-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-26T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2011-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-29T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2011-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-29T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2011-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-24T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2012-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2012-03-24T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2012-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2012-10-27T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2012-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2012-10-27T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2012-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2012-03-24T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2012-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-24T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2012-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-27T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2012-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-27T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2012-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2013-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2013-03-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2013-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2013-10-26T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2013-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2013-10-26T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2013-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2013-03-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2013-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2013-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-26T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2013-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-26T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2013-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-29T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2014-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2014-03-29T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2014-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2014-10-25T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2014-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2014-10-25T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2014-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2014-03-29T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2014-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-29T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2014-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-25T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2014-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-25T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2014-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-28T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2015-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2015-03-28T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2015-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2015-10-24T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2015-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2015-10-24T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2015-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2015-03-28T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2015-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-28T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2015-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-24T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2015-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-24T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2015-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-26T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2016-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2016-03-26T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2016-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2016-10-29T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2016-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2016-10-29T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2016-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2016-03-26T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2016-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-26T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2016-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-29T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2016-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-29T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2016-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-25T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2017-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2017-03-25T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2017-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2017-10-28T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2017-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2017-10-28T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2017-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2017-03-25T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2017-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-25T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2017-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-28T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2017-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-28T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2017-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-24T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2018-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2018-03-24T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2018-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2018-10-27T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2018-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2018-10-27T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2018-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2018-03-24T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2018-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-24T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2018-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-27T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2018-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-27T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2018-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2019-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2019-03-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2019-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2019-10-26T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2019-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2019-10-26T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2019-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2019-03-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2019-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2019-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-26T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2019-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-26T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2019-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-28T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2020-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2020-03-28T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2020-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2020-10-24T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2020-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2020-10-24T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2020-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2020-03-28T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2020-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-28T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2020-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-24T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2020-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-24T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2020-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-27T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2021-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2021-03-27T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2021-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2021-10-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2021-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2021-10-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2021-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2021-03-27T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2021-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-27T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2021-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2021-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2021-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-26T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2022-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2022-03-26T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2022-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2022-10-29T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2022-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2022-10-29T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2022-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2022-03-26T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2022-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-26T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2022-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-29T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2022-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-29T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2022-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-25T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2023-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2023-03-25T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2023-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2023-10-28T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2023-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2023-10-28T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2023-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2023-03-25T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2023-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-25T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2023-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-28T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2023-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-28T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2023-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2024-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2024-03-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2024-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2024-10-26T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2024-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2024-10-26T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2024-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2024-03-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2024-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2024-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-26T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2024-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-26T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2024-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-29T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2025-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2025-03-29T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2025-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2025-10-25T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2025-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2025-10-25T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2025-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2025-03-29T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2025-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-29T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2025-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-25T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2025-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-25T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2025-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-28T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2026-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2026-03-28T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2026-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2026-10-24T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2026-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2026-10-24T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2026-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2026-03-28T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2026-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-28T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2026-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-24T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2026-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-24T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2026-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-27T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2027-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2027-03-27T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2027-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2027-10-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2027-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2027-10-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2027-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2027-03-27T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2027-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-27T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2027-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2027-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2027-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-25T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2028-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2028-03-25T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2028-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2028-10-28T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2028-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2028-10-28T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2028-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2028-03-25T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2028-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-25T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2028-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-28T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2028-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-28T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2028-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-24T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2029-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2029-03-24T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2029-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2029-10-27T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2029-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2029-10-27T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2029-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2029-03-24T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2029-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-24T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2029-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-27T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2029-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-27T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2029-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-30T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2030-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2030-03-30T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2030-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2030-10-26T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2030-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2030-10-26T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2030-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2030-03-30T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2030-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-30T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2030-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-26T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2030-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-26T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2030-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-29T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2031-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2031-03-29T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2031-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2031-10-25T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2031-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2031-10-25T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2031-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2031-03-29T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2031-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-29T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2031-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-25T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2031-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-25T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2031-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-27T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2032-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2032-03-27T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2032-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2032-10-30T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2032-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2032-10-30T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2032-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2032-03-27T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2032-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-27T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2032-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-30T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2032-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-30T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2032-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-26T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2033-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2033-03-26T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2033-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2033-10-29T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2033-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2033-10-29T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2033-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2033-03-26T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2033-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-26T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2033-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-29T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2033-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-29T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2033-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-25T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2034-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2034-03-25T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2034-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2034-10-28T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2034-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2034-10-28T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2034-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2034-03-25T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2034-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-25T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2034-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-28T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2034-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-28T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2034-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-24T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2035-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2035-03-24T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2035-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2035-10-27T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2035-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2035-10-27T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2035-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2035-03-24T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2035-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-24T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2035-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-27T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2035-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-27T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2035-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-29T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2036-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2036-03-29T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2036-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2036-10-25T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2036-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2036-10-25T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2036-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2036-03-29T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2036-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-29T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2036-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-25T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2036-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-25T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2036-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-28T21:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2037-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2037-03-28T22:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "01:00:00", "2037-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2037-10-24T20:59:59+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:59:59", "2037-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2037-10-24T21:00:00+00:00").tz("Asia/Beirut").format("HH:mm:ss"), "23:00:00", "2037-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2037-03-28T21:59:59+00:00").tz("Asia/Beirut").zone(), -120, "2037-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-28T22:00:00+00:00").tz("Asia/Beirut").zone(), -180, "2037-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-24T20:59:59+00:00").tz("Asia/Beirut").zone(), -180, "2037-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-24T21:00:00+00:00").tz("Asia/Beirut").zone(), -120, "2037-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/bishkek.js b/tests/asia/bishkek.js deleted file mode 100644 index e9125728..00000000 --- a/tests/asia/bishkek.js +++ /dev/null @@ -1,374 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Bishkek"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T19:01:35+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1924-05-01T19:01:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T19:01:36+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "00:01:36", "1924-05-01T19:01:36+00:00 should be 00:01:36 FRUT"); - - t.equal(moment("1924-05-01T19:01:35+00:00").tz("Asia/Bishkek").zone(), -17904 / 60, "1924-05-01T19:01:35+00:00 should be -17904 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T19:01:36+00:00").tz("Asia/Bishkek").zone(), -300, "1924-05-01T19:01:36+00:00 should be -300 minutes offset in FRUT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1930-06-20T18:59:59+00:00 should be 23:59:59 FRUT"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1930-06-20T19:00:00+00:00 should be 01:00:00 FRUT"); - - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Bishkek").zone(), -300, "1930-06-20T18:59:59+00:00 should be -300 minutes offset in FRUT"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1930-06-20T19:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1981-03-31T17:59:59+00:00 should be 23:59:59 FRUT"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1981-03-31T18:00:00+00:00 should be 01:00:00 FRUST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1981-09-30T16:59:59+00:00 should be 23:59:59 FRUST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:00:00", "1981-09-30T17:00:00+00:00 should be 23:00:00 FRUT"); - - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1981-03-31T17:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1981-03-31T18:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1981-09-30T16:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1981-09-30T17:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 FRUT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1982-03-31T18:00:00+00:00 should be 01:00:00 FRUST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1982-09-30T16:59:59+00:00 should be 23:59:59 FRUST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:00:00", "1982-09-30T17:00:00+00:00 should be 23:00:00 FRUT"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1982-03-31T18:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1982-09-30T16:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1982-09-30T17:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1983-03-31T17:59:59+00:00 should be 23:59:59 FRUT"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1983-03-31T18:00:00+00:00 should be 01:00:00 FRUST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1983-09-30T16:59:59+00:00 should be 23:59:59 FRUST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:00:00", "1983-09-30T17:00:00+00:00 should be 23:00:00 FRUT"); - - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1983-03-31T17:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1983-03-31T18:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1983-09-30T16:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1983-09-30T17:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1984-03-31T17:59:59+00:00 should be 23:59:59 FRUT"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1984-03-31T18:00:00+00:00 should be 01:00:00 FRUST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:59:59", "1984-09-29T19:59:59+00:00 should be 02:59:59 FRUST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:00:00", "1984-09-29T20:00:00+00:00 should be 02:00:00 FRUT"); - - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1984-03-31T17:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1984-03-31T18:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1984-09-29T19:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1984-09-29T20:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:59:59", "1985-03-30T19:59:59+00:00 should be 01:59:59 FRUT"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:00:00", "1985-03-30T20:00:00+00:00 should be 03:00:00 FRUST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:59:59", "1985-09-28T19:59:59+00:00 should be 02:59:59 FRUST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:00:00", "1985-09-28T20:00:00+00:00 should be 02:00:00 FRUT"); - - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1985-03-30T19:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1985-03-30T20:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1985-09-28T19:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1985-09-28T20:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:59:59", "1986-03-29T19:59:59+00:00 should be 01:59:59 FRUT"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:00:00", "1986-03-29T20:00:00+00:00 should be 03:00:00 FRUST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:59:59", "1986-09-27T19:59:59+00:00 should be 02:59:59 FRUST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:00:00", "1986-09-27T20:00:00+00:00 should be 02:00:00 FRUT"); - - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1986-03-29T19:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1986-03-29T20:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1986-09-27T19:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1986-09-27T20:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:59:59", "1987-03-28T19:59:59+00:00 should be 01:59:59 FRUT"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:00:00", "1987-03-28T20:00:00+00:00 should be 03:00:00 FRUST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:59:59", "1987-09-26T19:59:59+00:00 should be 02:59:59 FRUST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:00:00", "1987-09-26T20:00:00+00:00 should be 02:00:00 FRUT"); - - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1987-03-28T19:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1987-03-28T20:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1987-09-26T19:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1987-09-26T20:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:59:59", "1988-03-26T19:59:59+00:00 should be 01:59:59 FRUT"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:00:00", "1988-03-26T20:00:00+00:00 should be 03:00:00 FRUST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:59:59", "1988-09-24T19:59:59+00:00 should be 02:59:59 FRUST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:00:00", "1988-09-24T20:00:00+00:00 should be 02:00:00 FRUT"); - - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1988-03-26T19:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1988-03-26T20:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1988-09-24T19:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1988-09-24T20:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:59:59", "1989-03-25T19:59:59+00:00 should be 01:59:59 FRUT"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:00:00", "1989-03-25T20:00:00+00:00 should be 03:00:00 FRUST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:59:59", "1989-09-23T19:59:59+00:00 should be 02:59:59 FRUST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:00:00", "1989-09-23T20:00:00+00:00 should be 02:00:00 FRUT"); - - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1989-03-25T19:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1989-03-25T20:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1989-09-23T19:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1989-09-23T20:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:59:59", "1990-03-24T19:59:59+00:00 should be 01:59:59 FRUT"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:00:00", "1990-03-24T20:00:00+00:00 should be 03:00:00 FRUST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:59:59", "1990-09-29T19:59:59+00:00 should be 02:59:59 FRUST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:00:00", "1990-09-29T20:00:00+00:00 should be 02:00:00 FRUT"); - - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1990-03-24T19:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Bishkek").zone(), -420, "1990-03-24T20:00:00+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Bishkek").zone(), -420, "1990-09-29T19:59:59+00:00 should be -420 minutes offset in FRUST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1990-09-29T20:00:00+00:00 should be -360 minutes offset in FRUT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:59:59", "1991-03-30T19:59:59+00:00 should be 01:59:59 FRUT"); - t.equal(moment("1991-03-30T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:00:00", "1991-03-30T20:00:00+00:00 should be 02:00:00 FRUST"); - t.equal(moment("1991-08-30T19:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:59:59", "1991-08-30T19:59:59+00:00 should be 01:59:59 FRUST"); - t.equal(moment("1991-08-30T20:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1991-08-30T20:00:00+00:00 should be 01:00:00 KGT"); - - t.equal(moment("1991-03-30T19:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1991-03-30T19:59:59+00:00 should be -360 minutes offset in FRUT"); - t.equal(moment("1991-03-30T20:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1991-03-30T20:00:00+00:00 should be -360 minutes offset in FRUST"); - t.equal(moment("1991-08-30T19:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1991-08-30T19:59:59+00:00 should be -360 minutes offset in FRUST"); - t.equal(moment("1991-08-30T20:00:00+00:00").tz("Asia/Bishkek").zone(), -300, "1991-08-30T20:00:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-11T18:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1992-04-11T18:59:59+00:00 should be 23:59:59 KGT"); - t.equal(moment("1992-04-11T19:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1992-04-11T19:00:00+00:00 should be 01:00:00 KGST"); - t.equal(moment("1992-09-26T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1992-09-26T17:59:59+00:00 should be 23:59:59 KGST"); - t.equal(moment("1992-09-26T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:00:00", "1992-09-26T18:00:00+00:00 should be 23:00:00 KGT"); - - t.equal(moment("1992-04-11T18:59:59+00:00").tz("Asia/Bishkek").zone(), -300, "1992-04-11T18:59:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("1992-04-11T19:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1992-04-11T19:00:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1992-09-26T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1992-09-26T17:59:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1992-09-26T18:00:00+00:00").tz("Asia/Bishkek").zone(), -300, "1992-09-26T18:00:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-10T18:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1993-04-10T18:59:59+00:00 should be 23:59:59 KGT"); - t.equal(moment("1993-04-10T19:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1993-04-10T19:00:00+00:00 should be 01:00:00 KGST"); - t.equal(moment("1993-09-25T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1993-09-25T17:59:59+00:00 should be 23:59:59 KGST"); - t.equal(moment("1993-09-25T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:00:00", "1993-09-25T18:00:00+00:00 should be 23:00:00 KGT"); - - t.equal(moment("1993-04-10T18:59:59+00:00").tz("Asia/Bishkek").zone(), -300, "1993-04-10T18:59:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("1993-04-10T19:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1993-04-10T19:00:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1993-09-25T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1993-09-25T17:59:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1993-09-25T18:00:00+00:00").tz("Asia/Bishkek").zone(), -300, "1993-09-25T18:00:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-09T18:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1994-04-09T18:59:59+00:00 should be 23:59:59 KGT"); - t.equal(moment("1994-04-09T19:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1994-04-09T19:00:00+00:00 should be 01:00:00 KGST"); - t.equal(moment("1994-09-24T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1994-09-24T17:59:59+00:00 should be 23:59:59 KGST"); - t.equal(moment("1994-09-24T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:00:00", "1994-09-24T18:00:00+00:00 should be 23:00:00 KGT"); - - t.equal(moment("1994-04-09T18:59:59+00:00").tz("Asia/Bishkek").zone(), -300, "1994-04-09T18:59:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("1994-04-09T19:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1994-04-09T19:00:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1994-09-24T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1994-09-24T17:59:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1994-09-24T18:00:00+00:00").tz("Asia/Bishkek").zone(), -300, "1994-09-24T18:00:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-08T18:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1995-04-08T18:59:59+00:00 should be 23:59:59 KGT"); - t.equal(moment("1995-04-08T19:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1995-04-08T19:00:00+00:00 should be 01:00:00 KGST"); - t.equal(moment("1995-09-23T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1995-09-23T17:59:59+00:00 should be 23:59:59 KGST"); - t.equal(moment("1995-09-23T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:00:00", "1995-09-23T18:00:00+00:00 should be 23:00:00 KGT"); - - t.equal(moment("1995-04-08T18:59:59+00:00").tz("Asia/Bishkek").zone(), -300, "1995-04-08T18:59:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("1995-04-08T19:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1995-04-08T19:00:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1995-09-23T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1995-09-23T17:59:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1995-09-23T18:00:00+00:00").tz("Asia/Bishkek").zone(), -300, "1995-09-23T18:00:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-06T18:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1996-04-06T18:59:59+00:00 should be 23:59:59 KGT"); - t.equal(moment("1996-04-06T19:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:00:00", "1996-04-06T19:00:00+00:00 should be 01:00:00 KGST"); - t.equal(moment("1996-09-28T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "1996-09-28T17:59:59+00:00 should be 23:59:59 KGST"); - t.equal(moment("1996-09-28T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:00:00", "1996-09-28T18:00:00+00:00 should be 23:00:00 KGT"); - - t.equal(moment("1996-04-06T18:59:59+00:00").tz("Asia/Bishkek").zone(), -300, "1996-04-06T18:59:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("1996-04-06T19:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "1996-04-06T19:00:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1996-09-28T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "1996-09-28T17:59:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1996-09-28T18:00:00+00:00").tz("Asia/Bishkek").zone(), -300, "1996-09-28T18:00:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T21:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "1997-03-29T21:29:59+00:00 should be 02:29:59 KGT"); - t.equal(moment("1997-03-29T21:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:30:00", "1997-03-29T21:30:00+00:00 should be 03:30:00 KGST"); - t.equal(moment("1997-10-25T20:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "1997-10-25T20:29:59+00:00 should be 02:29:59 KGST"); - t.equal(moment("1997-10-25T20:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:30:00", "1997-10-25T20:30:00+00:00 should be 01:30:00 KGT"); - - t.equal(moment("1997-03-29T21:29:59+00:00").tz("Asia/Bishkek").zone(), -300, "1997-03-29T21:29:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("1997-03-29T21:30:00+00:00").tz("Asia/Bishkek").zone(), -360, "1997-03-29T21:30:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1997-10-25T20:29:59+00:00").tz("Asia/Bishkek").zone(), -360, "1997-10-25T20:29:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1997-10-25T20:30:00+00:00").tz("Asia/Bishkek").zone(), -300, "1997-10-25T20:30:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T21:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "1998-03-28T21:29:59+00:00 should be 02:29:59 KGT"); - t.equal(moment("1998-03-28T21:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:30:00", "1998-03-28T21:30:00+00:00 should be 03:30:00 KGST"); - t.equal(moment("1998-10-24T20:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "1998-10-24T20:29:59+00:00 should be 02:29:59 KGST"); - t.equal(moment("1998-10-24T20:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:30:00", "1998-10-24T20:30:00+00:00 should be 01:30:00 KGT"); - - t.equal(moment("1998-03-28T21:29:59+00:00").tz("Asia/Bishkek").zone(), -300, "1998-03-28T21:29:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("1998-03-28T21:30:00+00:00").tz("Asia/Bishkek").zone(), -360, "1998-03-28T21:30:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1998-10-24T20:29:59+00:00").tz("Asia/Bishkek").zone(), -360, "1998-10-24T20:29:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1998-10-24T20:30:00+00:00").tz("Asia/Bishkek").zone(), -300, "1998-10-24T20:30:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T21:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "1999-03-27T21:29:59+00:00 should be 02:29:59 KGT"); - t.equal(moment("1999-03-27T21:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:30:00", "1999-03-27T21:30:00+00:00 should be 03:30:00 KGST"); - t.equal(moment("1999-10-30T20:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "1999-10-30T20:29:59+00:00 should be 02:29:59 KGST"); - t.equal(moment("1999-10-30T20:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:30:00", "1999-10-30T20:30:00+00:00 should be 01:30:00 KGT"); - - t.equal(moment("1999-03-27T21:29:59+00:00").tz("Asia/Bishkek").zone(), -300, "1999-03-27T21:29:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("1999-03-27T21:30:00+00:00").tz("Asia/Bishkek").zone(), -360, "1999-03-27T21:30:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1999-10-30T20:29:59+00:00").tz("Asia/Bishkek").zone(), -360, "1999-10-30T20:29:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("1999-10-30T20:30:00+00:00").tz("Asia/Bishkek").zone(), -300, "1999-10-30T20:30:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T21:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2000-03-25T21:29:59+00:00 should be 02:29:59 KGT"); - t.equal(moment("2000-03-25T21:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:30:00", "2000-03-25T21:30:00+00:00 should be 03:30:00 KGST"); - t.equal(moment("2000-10-28T20:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2000-10-28T20:29:59+00:00 should be 02:29:59 KGST"); - t.equal(moment("2000-10-28T20:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:30:00", "2000-10-28T20:30:00+00:00 should be 01:30:00 KGT"); - - t.equal(moment("2000-03-25T21:29:59+00:00").tz("Asia/Bishkek").zone(), -300, "2000-03-25T21:29:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("2000-03-25T21:30:00+00:00").tz("Asia/Bishkek").zone(), -360, "2000-03-25T21:30:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2000-10-28T20:29:59+00:00").tz("Asia/Bishkek").zone(), -360, "2000-10-28T20:29:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2000-10-28T20:30:00+00:00").tz("Asia/Bishkek").zone(), -300, "2000-10-28T20:30:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T21:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2001-03-24T21:29:59+00:00 should be 02:29:59 KGT"); - t.equal(moment("2001-03-24T21:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:30:00", "2001-03-24T21:30:00+00:00 should be 03:30:00 KGST"); - t.equal(moment("2001-10-27T20:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2001-10-27T20:29:59+00:00 should be 02:29:59 KGST"); - t.equal(moment("2001-10-27T20:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:30:00", "2001-10-27T20:30:00+00:00 should be 01:30:00 KGT"); - - t.equal(moment("2001-03-24T21:29:59+00:00").tz("Asia/Bishkek").zone(), -300, "2001-03-24T21:29:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("2001-03-24T21:30:00+00:00").tz("Asia/Bishkek").zone(), -360, "2001-03-24T21:30:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2001-10-27T20:29:59+00:00").tz("Asia/Bishkek").zone(), -360, "2001-10-27T20:29:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2001-10-27T20:30:00+00:00").tz("Asia/Bishkek").zone(), -300, "2001-10-27T20:30:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T21:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2002-03-30T21:29:59+00:00 should be 02:29:59 KGT"); - t.equal(moment("2002-03-30T21:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:30:00", "2002-03-30T21:30:00+00:00 should be 03:30:00 KGST"); - t.equal(moment("2002-10-26T20:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2002-10-26T20:29:59+00:00 should be 02:29:59 KGST"); - t.equal(moment("2002-10-26T20:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:30:00", "2002-10-26T20:30:00+00:00 should be 01:30:00 KGT"); - - t.equal(moment("2002-03-30T21:29:59+00:00").tz("Asia/Bishkek").zone(), -300, "2002-03-30T21:29:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("2002-03-30T21:30:00+00:00").tz("Asia/Bishkek").zone(), -360, "2002-03-30T21:30:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2002-10-26T20:29:59+00:00").tz("Asia/Bishkek").zone(), -360, "2002-10-26T20:29:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2002-10-26T20:30:00+00:00").tz("Asia/Bishkek").zone(), -300, "2002-10-26T20:30:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T21:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2003-03-29T21:29:59+00:00 should be 02:29:59 KGT"); - t.equal(moment("2003-03-29T21:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:30:00", "2003-03-29T21:30:00+00:00 should be 03:30:00 KGST"); - t.equal(moment("2003-10-25T20:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2003-10-25T20:29:59+00:00 should be 02:29:59 KGST"); - t.equal(moment("2003-10-25T20:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:30:00", "2003-10-25T20:30:00+00:00 should be 01:30:00 KGT"); - - t.equal(moment("2003-03-29T21:29:59+00:00").tz("Asia/Bishkek").zone(), -300, "2003-03-29T21:29:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("2003-03-29T21:30:00+00:00").tz("Asia/Bishkek").zone(), -360, "2003-03-29T21:30:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2003-10-25T20:29:59+00:00").tz("Asia/Bishkek").zone(), -360, "2003-10-25T20:29:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2003-10-25T20:30:00+00:00").tz("Asia/Bishkek").zone(), -300, "2003-10-25T20:30:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T21:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2004-03-27T21:29:59+00:00 should be 02:29:59 KGT"); - t.equal(moment("2004-03-27T21:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:30:00", "2004-03-27T21:30:00+00:00 should be 03:30:00 KGST"); - t.equal(moment("2004-10-30T20:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2004-10-30T20:29:59+00:00 should be 02:29:59 KGST"); - t.equal(moment("2004-10-30T20:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "01:30:00", "2004-10-30T20:30:00+00:00 should be 01:30:00 KGT"); - - t.equal(moment("2004-03-27T21:29:59+00:00").tz("Asia/Bishkek").zone(), -300, "2004-03-27T21:29:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("2004-03-27T21:30:00+00:00").tz("Asia/Bishkek").zone(), -360, "2004-03-27T21:30:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2004-10-30T20:29:59+00:00").tz("Asia/Bishkek").zone(), -360, "2004-10-30T20:29:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2004-10-30T20:30:00+00:00").tz("Asia/Bishkek").zone(), -300, "2004-10-30T20:30:00+00:00 should be -300 minutes offset in KGT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T21:29:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "02:29:59", "2005-03-26T21:29:59+00:00 should be 02:29:59 KGT"); - t.equal(moment("2005-03-26T21:30:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "03:30:00", "2005-03-26T21:30:00+00:00 should be 03:30:00 KGST"); - t.equal(moment("2005-08-11T17:59:59+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "23:59:59", "2005-08-11T17:59:59+00:00 should be 23:59:59 KGST"); - t.equal(moment("2005-08-11T18:00:00+00:00").tz("Asia/Bishkek").format("HH:mm:ss"), "00:00:00", "2005-08-11T18:00:00+00:00 should be 00:00:00 KGT"); - - t.equal(moment("2005-03-26T21:29:59+00:00").tz("Asia/Bishkek").zone(), -300, "2005-03-26T21:29:59+00:00 should be -300 minutes offset in KGT"); - t.equal(moment("2005-03-26T21:30:00+00:00").tz("Asia/Bishkek").zone(), -360, "2005-03-26T21:30:00+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2005-08-11T17:59:59+00:00").tz("Asia/Bishkek").zone(), -360, "2005-08-11T17:59:59+00:00 should be -360 minutes offset in KGST"); - t.equal(moment("2005-08-11T18:00:00+00:00").tz("Asia/Bishkek").zone(), -360, "2005-08-11T18:00:00+00:00 should be -360 minutes offset in KGT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/brunei.js b/tests/asia/brunei.js deleted file mode 100644 index 2531fa9a..00000000 --- a/tests/asia/brunei.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Brunei"] = { - - "1926" : function (t) { - t.equal(moment("1926-02-28T16:20:19+00:00").tz("Asia/Brunei").format("HH:mm:ss"), "23:59:59", "1926-02-28T16:20:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1926-02-28T16:20:20+00:00").tz("Asia/Brunei").format("HH:mm:ss"), "23:50:20", "1926-02-28T16:20:20+00:00 should be 23:50:20 BNT"); - - t.equal(moment("1926-02-28T16:20:19+00:00").tz("Asia/Brunei").zone(), -27580 / 60, "1926-02-28T16:20:19+00:00 should be -27580 / 60 minutes offset in LMT"); - t.equal(moment("1926-02-28T16:20:20+00:00").tz("Asia/Brunei").zone(), -450, "1926-02-28T16:20:20+00:00 should be -450 minutes offset in BNT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-12-31T16:29:59+00:00").tz("Asia/Brunei").format("HH:mm:ss"), "23:59:59", "1932-12-31T16:29:59+00:00 should be 23:59:59 BNT"); - t.equal(moment("1932-12-31T16:30:00+00:00").tz("Asia/Brunei").format("HH:mm:ss"), "00:30:00", "1932-12-31T16:30:00+00:00 should be 00:30:00 BNT"); - - t.equal(moment("1932-12-31T16:29:59+00:00").tz("Asia/Brunei").zone(), -450, "1932-12-31T16:29:59+00:00 should be -450 minutes offset in BNT"); - t.equal(moment("1932-12-31T16:30:00+00:00").tz("Asia/Brunei").zone(), -480, "1932-12-31T16:30:00+00:00 should be -480 minutes offset in BNT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/choibalsan.js b/tests/asia/choibalsan.js deleted file mode 100644 index bae8b7df..00000000 --- a/tests/asia/choibalsan.js +++ /dev/null @@ -1,342 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Choibalsan"] = { - - "1905" : function (t) { - t.equal(moment("1905-07-31T16:21:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1905-07-31T16:21:59+00:00 should be 23:59:59 LMT"); - t.equal(moment("1905-07-31T16:22:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:22:00", "1905-07-31T16:22:00+00:00 should be 23:22:00 ULAT"); - - t.equal(moment("1905-07-31T16:21:59+00:00").tz("Asia/Choibalsan").zone(), -458, "1905-07-31T16:21:59+00:00 should be -458 minutes offset in LMT"); - t.equal(moment("1905-07-31T16:22:00+00:00").tz("Asia/Choibalsan").zone(), -420, "1905-07-31T16:22:00+00:00 should be -420 minutes offset in ULAT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-12-31T16:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1977-12-31T16:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1977-12-31T17:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1977-12-31T17:00:00+00:00 should be 01:00:00 ULAT"); - - t.equal(moment("1977-12-31T16:59:59+00:00").tz("Asia/Choibalsan").zone(), -420, "1977-12-31T16:59:59+00:00 should be -420 minutes offset in ULAT"); - t.equal(moment("1977-12-31T17:00:00+00:00").tz("Asia/Choibalsan").zone(), -480, "1977-12-31T17:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T15:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1983-03-31T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1983-03-31T16:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "02:00:00", "1983-03-31T16:00:00+00:00 should be 02:00:00 CHOST"); - t.equal(moment("1983-09-30T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1983-09-30T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1983-09-30T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1983-09-30T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1983-03-31T15:59:59+00:00").tz("Asia/Choibalsan").zone(), -480, "1983-03-31T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1983-03-31T16:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1983-03-31T16:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1983-09-30T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1983-09-30T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1983-09-30T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1983-09-30T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1984-03-31T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1984-03-31T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1984-03-31T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1984-09-29T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1984-09-29T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1984-09-29T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1984-09-29T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1984-03-31T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1984-03-31T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1984-03-31T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1984-03-31T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1984-09-29T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1984-09-29T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1984-09-29T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1984-09-29T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1985-03-30T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1985-03-30T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1985-03-30T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1985-09-28T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1985-09-28T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1985-09-28T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1985-09-28T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1985-03-30T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1985-03-30T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1985-03-30T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1985-03-30T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1985-09-28T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1985-09-28T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1985-09-28T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1985-09-28T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1986-03-29T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1986-03-29T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1986-03-29T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1986-09-27T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1986-09-27T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1986-09-27T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1986-09-27T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1986-03-29T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1986-03-29T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1986-03-29T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1986-03-29T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1986-09-27T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1986-09-27T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1986-09-27T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1986-09-27T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1987-03-28T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1987-03-28T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1987-03-28T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1987-09-26T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1987-09-26T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1987-09-26T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1987-09-26T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1987-03-28T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1987-03-28T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1987-03-28T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1987-03-28T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1987-09-26T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1987-09-26T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1987-09-26T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1987-09-26T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1988-03-26T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1988-03-26T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1988-03-26T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1988-09-24T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1988-09-24T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1988-09-24T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1988-09-24T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1988-03-26T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1988-03-26T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1988-03-26T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1988-03-26T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1988-09-24T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1988-09-24T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1988-09-24T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1988-09-24T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1989-03-25T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1989-03-25T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1989-03-25T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1989-09-23T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1989-09-23T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1989-09-23T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1989-09-23T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1989-03-25T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1989-03-25T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1989-03-25T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1989-03-25T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1989-09-23T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1989-09-23T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1989-09-23T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1989-09-23T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1990-03-24T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1990-03-24T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1990-03-24T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1990-09-29T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1990-09-29T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1990-09-29T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1990-09-29T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1990-03-24T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1990-03-24T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1990-03-24T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1990-03-24T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1990-09-29T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1990-09-29T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1990-09-29T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1990-09-29T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1991-03-30T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1991-03-30T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1991-03-30T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1991-09-28T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1991-09-28T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1991-09-28T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1991-09-28T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1991-03-30T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1991-03-30T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1991-03-30T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1991-03-30T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1991-09-28T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1991-09-28T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1991-09-28T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1991-09-28T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1992-03-28T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1992-03-28T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1992-03-28T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1992-09-26T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1992-09-26T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1992-09-26T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1992-09-26T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1992-03-28T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1992-03-28T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1992-03-28T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1992-03-28T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1992-09-26T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1992-09-26T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1992-09-26T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1992-09-26T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1993-03-27T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1993-03-27T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1993-03-27T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1993-09-25T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1993-09-25T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1993-09-25T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1993-09-25T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1993-03-27T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1993-03-27T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1993-03-27T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1993-03-27T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1993-09-25T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1993-09-25T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1993-09-25T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1993-09-25T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1994-03-26T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1994-03-26T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1994-03-26T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1994-09-24T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1994-09-24T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1994-09-24T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1994-09-24T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1994-03-26T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1994-03-26T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1994-03-26T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1994-03-26T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1994-09-24T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1994-09-24T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1994-09-24T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1994-09-24T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1995-03-25T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1995-03-25T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1995-03-25T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1995-09-23T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1995-09-23T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1995-09-23T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1995-09-23T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1995-03-25T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1995-03-25T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1995-03-25T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1995-03-25T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1995-09-23T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1995-09-23T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1995-09-23T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1995-09-23T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1996-03-30T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1996-03-30T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1996-09-28T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1996-09-28T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1996-09-28T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1996-09-28T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1996-03-30T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1996-03-30T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1996-09-28T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1996-09-28T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1996-09-28T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1996-09-28T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1997-03-29T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1997-03-29T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1997-09-27T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1997-09-27T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1997-09-27T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1997-09-27T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1997-03-29T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1997-03-29T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1997-09-27T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1997-09-27T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1997-09-27T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1997-09-27T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1998-03-28T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("1998-03-28T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "1998-03-28T15:00:00+00:00 should be 01:00:00 CHOST"); - t.equal(moment("1998-09-26T13:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "1998-09-26T13:59:59+00:00 should be 23:59:59 CHOST"); - t.equal(moment("1998-09-26T14:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "1998-09-26T14:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("1998-03-28T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "1998-03-28T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("1998-03-28T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "1998-03-28T15:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1998-09-26T13:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "1998-09-26T13:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("1998-09-26T14:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "1998-09-26T14:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-27T16:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2001-04-27T16:59:59+00:00 should be 01:59:59 CHOT"); - t.equal(moment("2001-04-27T17:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "03:00:00", "2001-04-27T17:00:00+00:00 should be 03:00:00 CHOST"); - t.equal(moment("2001-09-28T15:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2001-09-28T15:59:59+00:00 should be 01:59:59 CHOST"); - t.equal(moment("2001-09-28T16:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "2001-09-28T16:00:00+00:00 should be 01:00:00 CHOT"); - - t.equal(moment("2001-04-27T16:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "2001-04-27T16:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("2001-04-27T17:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "2001-04-27T17:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2001-09-28T15:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "2001-09-28T15:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2001-09-28T16:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "2001-09-28T16:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-29T16:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2002-03-29T16:59:59+00:00 should be 01:59:59 CHOT"); - t.equal(moment("2002-03-29T17:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "03:00:00", "2002-03-29T17:00:00+00:00 should be 03:00:00 CHOST"); - t.equal(moment("2002-09-27T15:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2002-09-27T15:59:59+00:00 should be 01:59:59 CHOST"); - t.equal(moment("2002-09-27T16:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "2002-09-27T16:00:00+00:00 should be 01:00:00 CHOT"); - - t.equal(moment("2002-03-29T16:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "2002-03-29T16:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("2002-03-29T17:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "2002-03-29T17:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2002-09-27T15:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "2002-09-27T15:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2002-09-27T16:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "2002-09-27T16:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-28T16:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2003-03-28T16:59:59+00:00 should be 01:59:59 CHOT"); - t.equal(moment("2003-03-28T17:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "03:00:00", "2003-03-28T17:00:00+00:00 should be 03:00:00 CHOST"); - t.equal(moment("2003-09-26T15:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2003-09-26T15:59:59+00:00 should be 01:59:59 CHOST"); - t.equal(moment("2003-09-26T16:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "2003-09-26T16:00:00+00:00 should be 01:00:00 CHOT"); - - t.equal(moment("2003-03-28T16:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "2003-03-28T16:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("2003-03-28T17:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "2003-03-28T17:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2003-09-26T15:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "2003-09-26T15:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2003-09-26T16:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "2003-09-26T16:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-26T16:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2004-03-26T16:59:59+00:00 should be 01:59:59 CHOT"); - t.equal(moment("2004-03-26T17:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "03:00:00", "2004-03-26T17:00:00+00:00 should be 03:00:00 CHOST"); - t.equal(moment("2004-09-24T15:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2004-09-24T15:59:59+00:00 should be 01:59:59 CHOST"); - t.equal(moment("2004-09-24T16:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "2004-09-24T16:00:00+00:00 should be 01:00:00 CHOT"); - - t.equal(moment("2004-03-26T16:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "2004-03-26T16:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("2004-03-26T17:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "2004-03-26T17:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2004-09-24T15:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "2004-09-24T15:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2004-09-24T16:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "2004-09-24T16:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-25T16:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2005-03-25T16:59:59+00:00 should be 01:59:59 CHOT"); - t.equal(moment("2005-03-25T17:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "03:00:00", "2005-03-25T17:00:00+00:00 should be 03:00:00 CHOST"); - t.equal(moment("2005-09-23T15:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2005-09-23T15:59:59+00:00 should be 01:59:59 CHOST"); - t.equal(moment("2005-09-23T16:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "2005-09-23T16:00:00+00:00 should be 01:00:00 CHOT"); - - t.equal(moment("2005-03-25T16:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "2005-03-25T16:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("2005-03-25T17:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "2005-03-25T17:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2005-09-23T15:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "2005-09-23T15:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2005-09-23T16:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "2005-09-23T16:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-24T16:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2006-03-24T16:59:59+00:00 should be 01:59:59 CHOT"); - t.equal(moment("2006-03-24T17:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "03:00:00", "2006-03-24T17:00:00+00:00 should be 03:00:00 CHOST"); - t.equal(moment("2006-09-29T15:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:59:59", "2006-09-29T15:59:59+00:00 should be 01:59:59 CHOST"); - t.equal(moment("2006-09-29T16:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "01:00:00", "2006-09-29T16:00:00+00:00 should be 01:00:00 CHOT"); - - t.equal(moment("2006-03-24T16:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "2006-03-24T16:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("2006-03-24T17:00:00+00:00").tz("Asia/Choibalsan").zone(), -600, "2006-03-24T17:00:00+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2006-09-29T15:59:59+00:00").tz("Asia/Choibalsan").zone(), -600, "2006-09-29T15:59:59+00:00 should be -600 minutes offset in CHOST"); - t.equal(moment("2006-09-29T16:00:00+00:00").tz("Asia/Choibalsan").zone(), -540, "2006-09-29T16:00:00+00:00 should be -540 minutes offset in CHOT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T14:59:59+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:59:59", "2008-03-30T14:59:59+00:00 should be 23:59:59 CHOT"); - t.equal(moment("2008-03-30T15:00:00+00:00").tz("Asia/Choibalsan").format("HH:mm:ss"), "23:00:00", "2008-03-30T15:00:00+00:00 should be 23:00:00 CHOT"); - - t.equal(moment("2008-03-30T14:59:59+00:00").tz("Asia/Choibalsan").zone(), -540, "2008-03-30T14:59:59+00:00 should be -540 minutes offset in CHOT"); - t.equal(moment("2008-03-30T15:00:00+00:00").tz("Asia/Choibalsan").zone(), -480, "2008-03-30T15:00:00+00:00 should be -480 minutes offset in CHOT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/chongqing.js b/tests/asia/chongqing.js deleted file mode 100644 index bc893c71..00000000 --- a/tests/asia/chongqing.js +++ /dev/null @@ -1,108 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Chongqing"] = { - - "1927" : function (t) { - t.equal(moment("1927-12-31T16:53:39+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1927-12-31T16:53:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1927-12-31T16:53:40+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:53:40", "1927-12-31T16:53:40+00:00 should be 23:53:40 LONT"); - - t.equal(moment("1927-12-31T16:53:39+00:00").tz("Asia/Chongqing").zone(), -25580 / 60, "1927-12-31T16:53:39+00:00 should be -25580 / 60 minutes offset in LMT"); - t.equal(moment("1927-12-31T16:53:40+00:00").tz("Asia/Chongqing").zone(), -420, "1927-12-31T16:53:40+00:00 should be -420 minutes offset in LONT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-30T16:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1980-04-30T16:59:59+00:00 should be 23:59:59 LONT"); - t.equal(moment("1980-04-30T17:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "01:00:00", "1980-04-30T17:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1980-04-30T16:59:59+00:00").tz("Asia/Chongqing").zone(), -420, "1980-04-30T16:59:59+00:00 should be -420 minutes offset in LONT"); - t.equal(moment("1980-04-30T17:00:00+00:00").tz("Asia/Chongqing").zone(), -480, "1980-04-30T17:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1986-05-03T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "01:00:00", "1986-05-03T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1986-09-13T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:00:00", "1986-09-13T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Chongqing").zone(), -480, "1986-05-03T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Chongqing").zone(), -540, "1986-05-03T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Chongqing").zone(), -540, "1986-09-13T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Chongqing").zone(), -480, "1986-09-13T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1987-04-11T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "01:00:00", "1987-04-11T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1987-09-12T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:00:00", "1987-09-12T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Chongqing").zone(), -480, "1987-04-11T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Chongqing").zone(), -540, "1987-04-11T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Chongqing").zone(), -540, "1987-09-12T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Chongqing").zone(), -480, "1987-09-12T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1988-04-09T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "01:00:00", "1988-04-09T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1988-09-10T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:00:00", "1988-09-10T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Chongqing").zone(), -480, "1988-04-09T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Chongqing").zone(), -540, "1988-04-09T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Chongqing").zone(), -540, "1988-09-10T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Chongqing").zone(), -480, "1988-09-10T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1989-04-15T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "01:00:00", "1989-04-15T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1989-09-16T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:00:00", "1989-09-16T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Chongqing").zone(), -480, "1989-04-15T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Chongqing").zone(), -540, "1989-04-15T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Chongqing").zone(), -540, "1989-09-16T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Chongqing").zone(), -480, "1989-09-16T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1990-04-14T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "01:00:00", "1990-04-14T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1990-09-15T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:00:00", "1990-09-15T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Chongqing").zone(), -480, "1990-04-14T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Chongqing").zone(), -540, "1990-04-14T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Chongqing").zone(), -540, "1990-09-15T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Chongqing").zone(), -480, "1990-09-15T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1991-04-13T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "01:00:00", "1991-04-13T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:59:59", "1991-09-14T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Chongqing").format("HH:mm:ss"), "23:00:00", "1991-09-14T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Chongqing").zone(), -480, "1991-04-13T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Chongqing").zone(), -540, "1991-04-13T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Chongqing").zone(), -540, "1991-09-14T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Chongqing").zone(), -480, "1991-09-14T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/colombo.js b/tests/asia/colombo.js deleted file mode 100644 index b944c839..00000000 --- a/tests/asia/colombo.js +++ /dev/null @@ -1,62 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Colombo"] = { - - "1905" : function (t) { - t.equal(moment("1905-12-31T18:40:27+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "23:59:59", "1905-12-31T18:40:27+00:00 should be 23:59:59 MMT"); - t.equal(moment("1905-12-31T18:40:28+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "00:10:28", "1905-12-31T18:40:28+00:00 should be 00:10:28 IST"); - - t.equal(moment("1905-12-31T18:40:27+00:00").tz("Asia/Colombo").zone(), -19172 / 60, "1905-12-31T18:40:27+00:00 should be -19172 / 60 minutes offset in MMT"); - t.equal(moment("1905-12-31T18:40:28+00:00").tz("Asia/Colombo").zone(), -330, "1905-12-31T18:40:28+00:00 should be -330 minutes offset in IST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-01-04T18:29:59+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "23:59:59", "1942-01-04T18:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1942-01-04T18:30:00+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "00:30:00", "1942-01-04T18:30:00+00:00 should be 00:30:00 IHST"); - t.equal(moment("1942-08-31T17:59:59+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "23:59:59", "1942-08-31T17:59:59+00:00 should be 23:59:59 IHST"); - t.equal(moment("1942-08-31T18:00:00+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "00:30:00", "1942-08-31T18:00:00+00:00 should be 00:30:00 IST"); - - t.equal(moment("1942-01-04T18:29:59+00:00").tz("Asia/Colombo").zone(), -330, "1942-01-04T18:29:59+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1942-01-04T18:30:00+00:00").tz("Asia/Colombo").zone(), -360, "1942-01-04T18:30:00+00:00 should be -360 minutes offset in IHST"); - t.equal(moment("1942-08-31T17:59:59+00:00").tz("Asia/Colombo").zone(), -360, "1942-08-31T17:59:59+00:00 should be -360 minutes offset in IHST"); - t.equal(moment("1942-08-31T18:00:00+00:00").tz("Asia/Colombo").zone(), -390, "1942-08-31T18:00:00+00:00 should be -390 minutes offset in IST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-10-15T19:29:59+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "01:59:59", "1945-10-15T19:29:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1945-10-15T19:30:00+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "01:00:00", "1945-10-15T19:30:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1945-10-15T19:29:59+00:00").tz("Asia/Colombo").zone(), -390, "1945-10-15T19:29:59+00:00 should be -390 minutes offset in IST"); - t.equal(moment("1945-10-15T19:30:00+00:00").tz("Asia/Colombo").zone(), -330, "1945-10-15T19:30:00+00:00 should be -330 minutes offset in IST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-05-24T18:29:59+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "23:59:59", "1996-05-24T18:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1996-05-24T18:30:00+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "01:00:00", "1996-05-24T18:30:00+00:00 should be 01:00:00 LKT"); - t.equal(moment("1996-10-25T17:59:59+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "00:29:59", "1996-10-25T17:59:59+00:00 should be 00:29:59 LKT"); - t.equal(moment("1996-10-25T18:00:00+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "00:00:00", "1996-10-25T18:00:00+00:00 should be 00:00:00 LKT"); - - t.equal(moment("1996-05-24T18:29:59+00:00").tz("Asia/Colombo").zone(), -330, "1996-05-24T18:29:59+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1996-05-24T18:30:00+00:00").tz("Asia/Colombo").zone(), -390, "1996-05-24T18:30:00+00:00 should be -390 minutes offset in LKT"); - t.equal(moment("1996-10-25T17:59:59+00:00").tz("Asia/Colombo").zone(), -390, "1996-10-25T17:59:59+00:00 should be -390 minutes offset in LKT"); - t.equal(moment("1996-10-25T18:00:00+00:00").tz("Asia/Colombo").zone(), -360, "1996-10-25T18:00:00+00:00 should be -360 minutes offset in LKT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-14T18:29:59+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "00:29:59", "2006-04-14T18:29:59+00:00 should be 00:29:59 LKT"); - t.equal(moment("2006-04-14T18:30:00+00:00").tz("Asia/Colombo").format("HH:mm:ss"), "00:00:00", "2006-04-14T18:30:00+00:00 should be 00:00:00 IST"); - - t.equal(moment("2006-04-14T18:29:59+00:00").tz("Asia/Colombo").zone(), -360, "2006-04-14T18:29:59+00:00 should be -360 minutes offset in LKT"); - t.equal(moment("2006-04-14T18:30:00+00:00").tz("Asia/Colombo").zone(), -330, "2006-04-14T18:30:00+00:00 should be -330 minutes offset in IST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/damascus.js b/tests/asia/damascus.js deleted file mode 100644 index ab96609d..00000000 --- a/tests/asia/damascus.js +++ /dev/null @@ -1,1064 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Damascus"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T21:34:47+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1919-12-31T21:34:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-31T21:34:48+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:34:48", "1919-12-31T21:34:48+00:00 should be 23:34:48 EET"); - - t.equal(moment("1919-12-31T21:34:47+00:00").tz("Asia/Damascus").zone(), -8712 / 60, "1919-12-31T21:34:47+00:00 should be -8712 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-31T21:34:48+00:00").tz("Asia/Damascus").zone(), -120, "1919-12-31T21:34:48+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-04-17T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1920-04-17T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1920-04-18T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1920-04-18T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1920-10-02T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1920-10-02T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1920-10-02T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1920-10-02T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1920-04-17T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1920-04-17T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1920-04-18T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1920-04-18T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1920-10-02T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1920-10-02T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1920-10-02T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1920-10-02T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-16T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1921-04-16T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1921-04-17T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1921-04-17T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1921-10-01T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1921-10-01T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1921-10-01T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1921-10-01T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1921-04-16T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1921-04-16T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1921-04-17T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1921-04-17T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1921-10-01T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1921-10-01T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1921-10-01T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1921-10-01T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-04-15T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1922-04-15T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1922-04-16T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1922-04-16T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1922-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1922-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1922-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1922-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1922-04-15T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1922-04-15T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1922-04-16T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1922-04-16T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1922-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1922-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1922-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1922-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-14T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1923-04-14T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1923-04-15T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1923-04-15T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1923-10-06T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1923-10-06T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1923-10-06T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1923-10-06T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1923-04-14T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1923-04-14T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1923-04-15T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1923-04-15T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1923-10-06T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1923-10-06T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1923-10-06T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1923-10-06T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-28T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1962-04-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1962-04-29T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1962-04-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1962-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1962-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1962-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1962-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1962-04-28T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1962-04-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1962-04-29T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1962-04-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1962-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1962-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1963-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1963-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1963-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1963-09-29T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1963-09-29T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1963-09-29T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1963-09-29T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1963-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1963-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1963-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1963-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1963-09-29T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1963-09-29T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1963-09-29T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1963-09-29T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1964-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1964-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1964-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1964-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1964-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1964-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1964-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1964-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1964-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1964-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1964-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1964-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1964-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1965-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1965-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1965-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1965-09-29T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1965-09-29T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1965-09-29T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1965-09-29T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1965-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1965-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1965-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1965-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1965-09-29T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1965-09-29T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1965-09-29T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1965-09-29T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-23T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1966-04-23T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1966-04-24T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1966-04-24T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1966-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1966-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1966-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1966-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1966-04-23T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1966-04-23T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1966-04-24T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1966-04-24T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1966-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1966-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1966-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1966-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1967-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1967-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1967-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1967-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1967-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1967-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1967-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1967-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1967-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1967-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1967-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1967-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1967-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1967-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1967-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1968-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1968-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1968-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1968-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1968-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1968-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1968-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1968-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1968-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1968-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1968-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1968-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1968-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1968-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1968-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1969-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1969-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1969-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1969-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1969-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1969-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1969-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1969-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1969-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1969-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1969-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1969-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1969-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1969-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1969-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1970-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1970-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1970-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1970-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1970-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1970-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1970-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1970-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1970-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1970-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1970-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1970-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1970-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1970-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1970-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1971-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1971-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1971-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1971-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1971-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1971-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1971-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1971-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1971-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1971-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1971-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1971-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1971-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1971-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1971-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1972-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1972-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1972-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1972-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1972-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1972-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1972-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1972-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1972-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1972-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1972-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1972-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1972-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1972-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1972-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1973-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1973-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1973-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1973-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1973-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1973-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1973-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1973-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1973-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1973-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1973-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1973-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1973-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1974-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1974-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1974-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1974-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1974-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1974-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1974-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1974-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1974-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1974-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1974-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1974-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1974-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1975-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1975-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1975-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1975-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1975-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1975-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1975-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1975-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1975-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1975-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1975-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1975-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1975-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1976-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1976-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1976-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1976-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1976-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1976-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1976-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1976-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1976-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1976-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1976-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1976-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1976-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1977-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1977-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1977-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1977-08-31T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1977-08-31T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1977-08-31T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1977-08-31T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1977-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1977-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1977-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1977-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-08-31T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1977-08-31T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-08-31T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1977-08-31T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1978-04-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1978-05-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1978-05-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1978-08-31T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1978-08-31T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1978-08-31T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1978-08-31T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1978-04-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1978-04-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1978-05-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1978-05-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-08-31T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1978-08-31T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-08-31T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1978-08-31T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-08T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1983-04-08T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1983-04-09T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1983-04-09T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1983-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1983-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1983-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1983-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1983-04-08T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1983-04-08T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1983-04-09T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1983-04-09T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1983-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1983-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-08T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1984-04-08T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1984-04-09T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1984-04-09T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1984-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1984-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1984-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1984-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1984-04-08T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1984-04-08T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1984-04-09T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1984-04-09T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1984-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1984-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-02-15T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1986-02-15T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1986-02-16T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1986-02-16T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1986-10-08T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1986-10-08T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1986-10-08T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1986-10-08T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1986-02-15T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1986-02-15T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-02-16T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1986-02-16T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-10-08T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1986-10-08T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-10-08T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1986-10-08T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-28T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1987-02-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1987-03-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1987-03-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1987-10-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1987-10-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1987-10-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1987-10-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1987-02-28T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1987-02-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-03-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1987-03-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-10-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1987-10-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-10-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1987-10-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-14T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1988-03-14T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1988-03-15T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1988-03-15T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1988-10-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1988-10-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1988-10-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1988-10-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1988-03-14T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1988-03-14T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-03-15T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1988-03-15T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-10-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1988-10-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-10-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1988-10-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-30T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1989-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1989-03-31T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1989-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1989-09-30T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1989-09-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1989-09-30T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1989-09-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1989-03-30T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1989-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-03-31T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1989-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-30T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1989-09-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-30T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1989-09-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-31T23:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1990-03-31T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1990-04-01T00:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "03:00:00", "1990-04-01T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:59:59", "1990-09-29T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1990-09-29T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1990-03-31T23:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1990-03-31T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-04-01T00:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1990-04-01T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1990-09-29T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1990-09-29T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1991-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1991-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1991-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1991-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1991-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1991-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "1991-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1991-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1991-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1991-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1991-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1991-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-07T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1992-04-07T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-04-07T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1992-04-07T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1992-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "1992-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-04-07T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1992-04-07T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-04-07T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1992-04-07T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1992-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1992-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-25T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1993-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-25T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1993-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-24T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1993-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-24T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "1993-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-03-25T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1993-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-25T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1993-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-24T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1993-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-24T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1993-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1994-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1994-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1994-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "1994-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1994-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1994-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1994-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1994-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1995-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1995-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1995-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1995-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1995-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1995-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "1995-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1995-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1995-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1995-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1995-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1995-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1996-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1996-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1996-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1996-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "1996-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1996-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1996-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1996-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1996-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1996-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1997-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1997-03-30T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1997-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1997-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1997-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1997-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "1997-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1997-03-30T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1997-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1997-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1997-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1997-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1998-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1998-03-29T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1998-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1998-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1998-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1998-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "1998-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1998-03-29T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1998-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1998-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1998-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1998-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1999-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1999-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "1999-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1999-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "1999-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1999-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "1999-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1999-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "1999-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "1999-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "1999-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "1999-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2000-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2000-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2000-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2000-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2000-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2000-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2000-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2000-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2000-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2000-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2000-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2000-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2001-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2001-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2001-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2001-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2001-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2001-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2001-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2001-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2001-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2001-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2001-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2001-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2002-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2002-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2002-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2002-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2002-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2002-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2002-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2002-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2002-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2002-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2002-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2002-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2003-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2003-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2003-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2003-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2003-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2003-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2003-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2003-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2003-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2003-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2003-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2003-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2004-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2004-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2004-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2004-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2004-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2004-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2004-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2004-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2004-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2004-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2004-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2004-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2005-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2005-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2005-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2005-09-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2005-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2005-09-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2005-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2005-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2005-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2005-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-09-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2005-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-09-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2005-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2006-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2006-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2006-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2006-09-21T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2006-09-21T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2006-09-21T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2006-09-21T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2006-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2006-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2006-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-09-21T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2006-09-21T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-09-21T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2006-09-21T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-29T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2007-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2007-03-29T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2007-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2007-11-01T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2007-11-01T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2007-11-01T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2007-11-01T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2007-03-29T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2007-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-29T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2007-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-11-01T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2007-11-01T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-11-01T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2007-11-01T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-03T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2008-04-03T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2008-04-03T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2008-04-03T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2008-10-31T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2008-10-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2008-10-31T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2008-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2008-04-03T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2008-04-03T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-04-03T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2008-04-03T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-31T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2008-10-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-31T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2008-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-26T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2009-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2009-03-26T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2009-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2009-10-29T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2009-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2009-10-29T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2009-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2009-03-26T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2009-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-26T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2009-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-29T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2009-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-29T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2009-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-01T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2010-04-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2010-04-01T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2010-04-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2010-10-28T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2010-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2010-10-28T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2010-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2010-04-01T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2010-04-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-04-01T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2010-04-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-28T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2010-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-28T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2010-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-31T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2011-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2011-03-31T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2011-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2011-10-27T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2011-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2011-10-27T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2011-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2011-03-31T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2011-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-31T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2011-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-27T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2011-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-27T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2011-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-29T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2012-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2012-03-29T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2012-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2012-10-25T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2012-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2012-10-25T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2012-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2012-03-29T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2012-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-29T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2012-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-25T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2012-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-25T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2012-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-28T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2013-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2013-03-28T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2013-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2013-10-24T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2013-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2013-10-24T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2013-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2013-03-28T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2013-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-28T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2013-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-24T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2013-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-24T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2013-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-27T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2014-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2014-03-27T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2014-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2014-10-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2014-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2014-10-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2014-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2014-03-27T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2014-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-27T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2014-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2014-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2014-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-26T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2015-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2015-03-26T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2015-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2015-10-29T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2015-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2015-10-29T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2015-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2015-03-26T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2015-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-26T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2015-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-29T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2015-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-29T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2015-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-24T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2016-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2016-03-24T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2016-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2016-10-27T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2016-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2016-10-27T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2016-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2016-03-24T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2016-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-24T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2016-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-27T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2016-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-27T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2016-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-30T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2017-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2017-03-30T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2017-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2017-10-26T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2017-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2017-10-26T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2017-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2017-03-30T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2017-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-30T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2017-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-26T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2017-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-26T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2017-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-29T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2018-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2018-03-29T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2018-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2018-10-25T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2018-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2018-10-25T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2018-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2018-03-29T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2018-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-29T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2018-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-25T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2018-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-25T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2018-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-28T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2019-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2019-03-28T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2019-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2019-10-24T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2019-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2019-10-24T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2019-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2019-03-28T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2019-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-28T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2019-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-24T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2019-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-24T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2019-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-26T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2020-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2020-03-26T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2020-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2020-10-29T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2020-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2020-10-29T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2020-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2020-03-26T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2020-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-26T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2020-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-29T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2020-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-29T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2020-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-25T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2021-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2021-03-25T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2021-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2021-10-28T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2021-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2021-10-28T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2021-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2021-03-25T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2021-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-25T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2021-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-28T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2021-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-28T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2021-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-24T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2022-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2022-03-24T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2022-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2022-10-27T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2022-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2022-10-27T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2022-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2022-03-24T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2022-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-24T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2022-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-27T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2022-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-27T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2022-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-30T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2023-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2023-03-30T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2023-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2023-10-26T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2023-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2023-10-26T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2023-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2023-03-30T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2023-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-30T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2023-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-26T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2023-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-26T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2023-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-28T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2024-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2024-03-28T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2024-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2024-10-24T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2024-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2024-10-24T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2024-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2024-03-28T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2024-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-28T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2024-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-24T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2024-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-24T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2024-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-27T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2025-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2025-03-27T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2025-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2025-10-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2025-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2025-10-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2025-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2025-03-27T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2025-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-27T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2025-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2025-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2025-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-26T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2026-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2026-03-26T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2026-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2026-10-29T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2026-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2026-10-29T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2026-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2026-03-26T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2026-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-26T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2026-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-29T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2026-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-29T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2026-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-25T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2027-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2027-03-25T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2027-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2027-10-28T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2027-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2027-10-28T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2027-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2027-03-25T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2027-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-25T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2027-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-28T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2027-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-28T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2027-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-30T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2028-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2028-03-30T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2028-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2028-10-26T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2028-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2028-10-26T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2028-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2028-03-30T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2028-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-30T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2028-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-26T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2028-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-26T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2028-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-29T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2029-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2029-03-29T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2029-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2029-10-25T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2029-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2029-10-25T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2029-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2029-03-29T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2029-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-29T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2029-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-25T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2029-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-25T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2029-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-28T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2030-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2030-03-28T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2030-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2030-10-24T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2030-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2030-10-24T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2030-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2030-03-28T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2030-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-28T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2030-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-24T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2030-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-24T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2030-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-27T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2031-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2031-03-27T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2031-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2031-10-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2031-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2031-10-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2031-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2031-03-27T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2031-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-27T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2031-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2031-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2031-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-25T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2032-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2032-03-25T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2032-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2032-10-28T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2032-10-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2032-10-28T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2032-10-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2032-03-25T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2032-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-25T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2032-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-28T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2032-10-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-28T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2032-10-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-24T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2033-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2033-03-24T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2033-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2033-10-27T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2033-10-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2033-10-27T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2033-10-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2033-03-24T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2033-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-24T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2033-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-27T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2033-10-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-27T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2033-10-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-30T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2034-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2034-03-30T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2034-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2034-10-26T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2034-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2034-10-26T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2034-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2034-03-30T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2034-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-30T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2034-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-26T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2034-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-26T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2034-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-29T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2035-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2035-03-29T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2035-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2035-10-25T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2035-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2035-10-25T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2035-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2035-03-29T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2035-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-29T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2035-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-25T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2035-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-25T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2035-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-27T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2036-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2036-03-27T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2036-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2036-10-30T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2036-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2036-10-30T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2036-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2036-03-27T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2036-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-27T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2036-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-30T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2036-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-30T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2036-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-26T21:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2037-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2037-03-26T22:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "01:00:00", "2037-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2037-10-29T20:59:59+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:59:59", "2037-10-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2037-10-29T21:00:00+00:00").tz("Asia/Damascus").format("HH:mm:ss"), "23:00:00", "2037-10-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2037-03-26T21:59:59+00:00").tz("Asia/Damascus").zone(), -120, "2037-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-26T22:00:00+00:00").tz("Asia/Damascus").zone(), -180, "2037-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-29T20:59:59+00:00").tz("Asia/Damascus").zone(), -180, "2037-10-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-29T21:00:00+00:00").tz("Asia/Damascus").zone(), -120, "2037-10-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/dhaka.js b/tests/asia/dhaka.js deleted file mode 100644 index b887d426..00000000 --- a/tests/asia/dhaka.js +++ /dev/null @@ -1,62 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Dhaka"] = { - - "1941" : function (t) { - t.equal(moment("1941-09-30T18:06:39+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "23:59:59", "1941-09-30T18:06:39+00:00 should be 23:59:59 HMT"); - t.equal(moment("1941-09-30T18:06:40+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "00:36:40", "1941-09-30T18:06:40+00:00 should be 00:36:40 BURT"); - - t.equal(moment("1941-09-30T18:06:39+00:00").tz("Asia/Dhaka").zone(), -21200 / 60, "1941-09-30T18:06:39+00:00 should be -21200 / 60 minutes offset in HMT"); - t.equal(moment("1941-09-30T18:06:40+00:00").tz("Asia/Dhaka").zone(), -390, "1941-09-30T18:06:40+00:00 should be -390 minutes offset in BURT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-05-14T17:29:59+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "23:59:59", "1942-05-14T17:29:59+00:00 should be 23:59:59 BURT"); - t.equal(moment("1942-05-14T17:30:00+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "23:00:00", "1942-05-14T17:30:00+00:00 should be 23:00:00 IST"); - t.equal(moment("1942-08-31T18:29:59+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "23:59:59", "1942-08-31T18:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1942-08-31T18:30:00+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "01:00:00", "1942-08-31T18:30:00+00:00 should be 01:00:00 BURT"); - - t.equal(moment("1942-05-14T17:29:59+00:00").tz("Asia/Dhaka").zone(), -390, "1942-05-14T17:29:59+00:00 should be -390 minutes offset in BURT"); - t.equal(moment("1942-05-14T17:30:00+00:00").tz("Asia/Dhaka").zone(), -330, "1942-05-14T17:30:00+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1942-08-31T18:29:59+00:00").tz("Asia/Dhaka").zone(), -330, "1942-08-31T18:29:59+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1942-08-31T18:30:00+00:00").tz("Asia/Dhaka").zone(), -390, "1942-08-31T18:30:00+00:00 should be -390 minutes offset in BURT"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-09-29T17:29:59+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "23:59:59", "1951-09-29T17:29:59+00:00 should be 23:59:59 BURT"); - t.equal(moment("1951-09-29T17:30:00+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "23:30:00", "1951-09-29T17:30:00+00:00 should be 23:30:00 DACT"); - - t.equal(moment("1951-09-29T17:29:59+00:00").tz("Asia/Dhaka").zone(), -390, "1951-09-29T17:29:59+00:00 should be -390 minutes offset in BURT"); - t.equal(moment("1951-09-29T17:30:00+00:00").tz("Asia/Dhaka").zone(), -360, "1951-09-29T17:30:00+00:00 should be -360 minutes offset in DACT"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-03-25T17:59:59+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "23:59:59", "1971-03-25T17:59:59+00:00 should be 23:59:59 DACT"); - t.equal(moment("1971-03-25T18:00:00+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "00:00:00", "1971-03-25T18:00:00+00:00 should be 00:00:00 BDT"); - - t.equal(moment("1971-03-25T17:59:59+00:00").tz("Asia/Dhaka").zone(), -360, "1971-03-25T17:59:59+00:00 should be -360 minutes offset in DACT"); - t.equal(moment("1971-03-25T18:00:00+00:00").tz("Asia/Dhaka").zone(), -360, "1971-03-25T18:00:00+00:00 should be -360 minutes offset in BDT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-06-19T16:59:59+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "22:59:59", "2009-06-19T16:59:59+00:00 should be 22:59:59 BDT"); - t.equal(moment("2009-06-19T17:00:00+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "00:00:00", "2009-06-19T17:00:00+00:00 should be 00:00:00 BDST"); - t.equal(moment("2009-12-31T16:58:59+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "23:58:59", "2009-12-31T16:58:59+00:00 should be 23:58:59 BDST"); - t.equal(moment("2009-12-31T16:59:00+00:00").tz("Asia/Dhaka").format("HH:mm:ss"), "22:59:00", "2009-12-31T16:59:00+00:00 should be 22:59:00 BDT"); - - t.equal(moment("2009-06-19T16:59:59+00:00").tz("Asia/Dhaka").zone(), -360, "2009-06-19T16:59:59+00:00 should be -360 minutes offset in BDT"); - t.equal(moment("2009-06-19T17:00:00+00:00").tz("Asia/Dhaka").zone(), -420, "2009-06-19T17:00:00+00:00 should be -420 minutes offset in BDST"); - t.equal(moment("2009-12-31T16:58:59+00:00").tz("Asia/Dhaka").zone(), -420, "2009-12-31T16:58:59+00:00 should be -420 minutes offset in BDST"); - t.equal(moment("2009-12-31T16:59:00+00:00").tz("Asia/Dhaka").zone(), -360, "2009-12-31T16:59:00+00:00 should be -360 minutes offset in BDT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/dili.js b/tests/asia/dili.js deleted file mode 100644 index 10dbae65..00000000 --- a/tests/asia/dili.js +++ /dev/null @@ -1,54 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Dili"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T15:37:39+00:00").tz("Asia/Dili").format("HH:mm:ss"), "23:59:59", "1911-12-31T15:37:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T15:37:40+00:00").tz("Asia/Dili").format("HH:mm:ss"), "23:37:40", "1911-12-31T15:37:40+00:00 should be 23:37:40 TLT"); - - t.equal(moment("1911-12-31T15:37:39+00:00").tz("Asia/Dili").zone(), -30140 / 60, "1911-12-31T15:37:39+00:00 should be -30140 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T15:37:40+00:00").tz("Asia/Dili").zone(), -480, "1911-12-31T15:37:40+00:00 should be -480 minutes offset in TLT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-21T14:59:59+00:00").tz("Asia/Dili").format("HH:mm:ss"), "22:59:59", "1942-02-21T14:59:59+00:00 should be 22:59:59 TLT"); - t.equal(moment("1942-02-21T15:00:00+00:00").tz("Asia/Dili").format("HH:mm:ss"), "00:00:00", "1942-02-21T15:00:00+00:00 should be 00:00:00 JST"); - - t.equal(moment("1942-02-21T14:59:59+00:00").tz("Asia/Dili").zone(), -480, "1942-02-21T14:59:59+00:00 should be -480 minutes offset in TLT"); - t.equal(moment("1942-02-21T15:00:00+00:00").tz("Asia/Dili").zone(), -540, "1942-02-21T15:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-09-22T14:59:59+00:00").tz("Asia/Dili").format("HH:mm:ss"), "23:59:59", "1945-09-22T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-09-22T15:00:00+00:00").tz("Asia/Dili").format("HH:mm:ss"), "00:00:00", "1945-09-22T15:00:00+00:00 should be 00:00:00 TLT"); - - t.equal(moment("1945-09-22T14:59:59+00:00").tz("Asia/Dili").zone(), -540, "1945-09-22T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-09-22T15:00:00+00:00").tz("Asia/Dili").zone(), -540, "1945-09-22T15:00:00+00:00 should be -540 minutes offset in TLT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-05-02T14:59:59+00:00").tz("Asia/Dili").format("HH:mm:ss"), "23:59:59", "1976-05-02T14:59:59+00:00 should be 23:59:59 TLT"); - t.equal(moment("1976-05-02T15:00:00+00:00").tz("Asia/Dili").format("HH:mm:ss"), "23:00:00", "1976-05-02T15:00:00+00:00 should be 23:00:00 CIT"); - - t.equal(moment("1976-05-02T14:59:59+00:00").tz("Asia/Dili").zone(), -540, "1976-05-02T14:59:59+00:00 should be -540 minutes offset in TLT"); - t.equal(moment("1976-05-02T15:00:00+00:00").tz("Asia/Dili").zone(), -480, "1976-05-02T15:00:00+00:00 should be -480 minutes offset in CIT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-09-16T15:59:59+00:00").tz("Asia/Dili").format("HH:mm:ss"), "23:59:59", "2000-09-16T15:59:59+00:00 should be 23:59:59 CIT"); - t.equal(moment("2000-09-16T16:00:00+00:00").tz("Asia/Dili").format("HH:mm:ss"), "01:00:00", "2000-09-16T16:00:00+00:00 should be 01:00:00 TLT"); - - t.equal(moment("2000-09-16T15:59:59+00:00").tz("Asia/Dili").zone(), -480, "2000-09-16T15:59:59+00:00 should be -480 minutes offset in CIT"); - t.equal(moment("2000-09-16T16:00:00+00:00").tz("Asia/Dili").zone(), -540, "2000-09-16T16:00:00+00:00 should be -540 minutes offset in TLT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/dubai.js b/tests/asia/dubai.js deleted file mode 100644 index b8c6f692..00000000 --- a/tests/asia/dubai.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Dubai"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T20:18:47+00:00").tz("Asia/Dubai").format("HH:mm:ss"), "23:59:59", "1919-12-31T20:18:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-31T20:18:48+00:00").tz("Asia/Dubai").format("HH:mm:ss"), "00:18:48", "1919-12-31T20:18:48+00:00 should be 00:18:48 GST"); - - t.equal(moment("1919-12-31T20:18:47+00:00").tz("Asia/Dubai").zone(), -13272 / 60, "1919-12-31T20:18:47+00:00 should be -13272 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-31T20:18:48+00:00").tz("Asia/Dubai").zone(), -240, "1919-12-31T20:18:48+00:00 should be -240 minutes offset in GST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/dushanbe.js b/tests/asia/dushanbe.js deleted file mode 100644 index 6d16a029..00000000 --- a/tests/asia/dushanbe.js +++ /dev/null @@ -1,178 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Dushanbe"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T19:24:47+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:59:59", "1924-05-01T19:24:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T19:24:48+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "00:24:48", "1924-05-01T19:24:48+00:00 should be 00:24:48 DUST"); - - t.equal(moment("1924-05-01T19:24:47+00:00").tz("Asia/Dushanbe").zone(), -16512 / 60, "1924-05-01T19:24:47+00:00 should be -16512 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T19:24:48+00:00").tz("Asia/Dushanbe").zone(), -300, "1924-05-01T19:24:48+00:00 should be -300 minutes offset in DUST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:59:59", "1930-06-20T18:59:59+00:00 should be 23:59:59 DUST"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:00:00", "1930-06-20T19:00:00+00:00 should be 01:00:00 DUST"); - - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Dushanbe").zone(), -300, "1930-06-20T18:59:59+00:00 should be -300 minutes offset in DUST"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1930-06-20T19:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:59:59", "1981-03-31T17:59:59+00:00 should be 23:59:59 DUST"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:00:00", "1981-03-31T18:00:00+00:00 should be 01:00:00 DUSST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:59:59", "1981-09-30T16:59:59+00:00 should be 23:59:59 DUSST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:00:00", "1981-09-30T17:00:00+00:00 should be 23:00:00 DUST"); - - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1981-03-31T17:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1981-03-31T18:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1981-09-30T16:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1981-09-30T17:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 DUST"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:00:00", "1982-03-31T18:00:00+00:00 should be 01:00:00 DUSST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:59:59", "1982-09-30T16:59:59+00:00 should be 23:59:59 DUSST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:00:00", "1982-09-30T17:00:00+00:00 should be 23:00:00 DUST"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1982-03-31T18:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1982-09-30T16:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1982-09-30T17:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:59:59", "1983-03-31T17:59:59+00:00 should be 23:59:59 DUST"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:00:00", "1983-03-31T18:00:00+00:00 should be 01:00:00 DUSST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:59:59", "1983-09-30T16:59:59+00:00 should be 23:59:59 DUSST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:00:00", "1983-09-30T17:00:00+00:00 should be 23:00:00 DUST"); - - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1983-03-31T17:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1983-03-31T18:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1983-09-30T16:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1983-09-30T17:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "23:59:59", "1984-03-31T17:59:59+00:00 should be 23:59:59 DUST"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:00:00", "1984-03-31T18:00:00+00:00 should be 01:00:00 DUSST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:59:59", "1984-09-29T19:59:59+00:00 should be 02:59:59 DUSST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:00:00", "1984-09-29T20:00:00+00:00 should be 02:00:00 DUST"); - - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1984-03-31T17:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1984-03-31T18:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1984-09-29T19:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1984-09-29T20:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:59:59", "1985-03-30T19:59:59+00:00 should be 01:59:59 DUST"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "03:00:00", "1985-03-30T20:00:00+00:00 should be 03:00:00 DUSST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:59:59", "1985-09-28T19:59:59+00:00 should be 02:59:59 DUSST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:00:00", "1985-09-28T20:00:00+00:00 should be 02:00:00 DUST"); - - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1985-03-30T19:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1985-03-30T20:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1985-09-28T19:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1985-09-28T20:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:59:59", "1986-03-29T19:59:59+00:00 should be 01:59:59 DUST"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "03:00:00", "1986-03-29T20:00:00+00:00 should be 03:00:00 DUSST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:59:59", "1986-09-27T19:59:59+00:00 should be 02:59:59 DUSST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:00:00", "1986-09-27T20:00:00+00:00 should be 02:00:00 DUST"); - - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1986-03-29T19:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1986-03-29T20:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1986-09-27T19:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1986-09-27T20:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:59:59", "1987-03-28T19:59:59+00:00 should be 01:59:59 DUST"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "03:00:00", "1987-03-28T20:00:00+00:00 should be 03:00:00 DUSST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:59:59", "1987-09-26T19:59:59+00:00 should be 02:59:59 DUSST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:00:00", "1987-09-26T20:00:00+00:00 should be 02:00:00 DUST"); - - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1987-03-28T19:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1987-03-28T20:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1987-09-26T19:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1987-09-26T20:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:59:59", "1988-03-26T19:59:59+00:00 should be 01:59:59 DUST"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "03:00:00", "1988-03-26T20:00:00+00:00 should be 03:00:00 DUSST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:59:59", "1988-09-24T19:59:59+00:00 should be 02:59:59 DUSST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:00:00", "1988-09-24T20:00:00+00:00 should be 02:00:00 DUST"); - - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1988-03-26T19:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1988-03-26T20:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1988-09-24T19:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1988-09-24T20:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:59:59", "1989-03-25T19:59:59+00:00 should be 01:59:59 DUST"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "03:00:00", "1989-03-25T20:00:00+00:00 should be 03:00:00 DUSST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:59:59", "1989-09-23T19:59:59+00:00 should be 02:59:59 DUSST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:00:00", "1989-09-23T20:00:00+00:00 should be 02:00:00 DUST"); - - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1989-03-25T19:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1989-03-25T20:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1989-09-23T19:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1989-09-23T20:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:59:59", "1990-03-24T19:59:59+00:00 should be 01:59:59 DUST"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "03:00:00", "1990-03-24T20:00:00+00:00 should be 03:00:00 DUSST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:59:59", "1990-09-29T19:59:59+00:00 should be 02:59:59 DUSST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:00:00", "1990-09-29T20:00:00+00:00 should be 02:00:00 DUST"); - - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1990-03-24T19:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -420, "1990-03-24T20:00:00+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -420, "1990-09-29T19:59:59+00:00 should be -420 minutes offset in DUSST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1990-09-29T20:00:00+00:00 should be -360 minutes offset in DUST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T19:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "01:59:59", "1991-03-30T19:59:59+00:00 should be 01:59:59 DUST"); - t.equal(moment("1991-03-30T20:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:00:00", "1991-03-30T20:00:00+00:00 should be 02:00:00 DUSST"); - t.equal(moment("1991-09-08T20:59:59+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:59:59", "1991-09-08T20:59:59+00:00 should be 02:59:59 DUSST"); - t.equal(moment("1991-09-08T21:00:00+00:00").tz("Asia/Dushanbe").format("HH:mm:ss"), "02:00:00", "1991-09-08T21:00:00+00:00 should be 02:00:00 TJT"); - - t.equal(moment("1991-03-30T19:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1991-03-30T19:59:59+00:00 should be -360 minutes offset in DUST"); - t.equal(moment("1991-03-30T20:00:00+00:00").tz("Asia/Dushanbe").zone(), -360, "1991-03-30T20:00:00+00:00 should be -360 minutes offset in DUSST"); - t.equal(moment("1991-09-08T20:59:59+00:00").tz("Asia/Dushanbe").zone(), -360, "1991-09-08T20:59:59+00:00 should be -360 minutes offset in DUSST"); - t.equal(moment("1991-09-08T21:00:00+00:00").tz("Asia/Dushanbe").zone(), -300, "1991-09-08T21:00:00+00:00 should be -300 minutes offset in TJT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/gaza.js b/tests/asia/gaza.js deleted file mode 100644 index e538d8db..00000000 --- a/tests/asia/gaza.js +++ /dev/null @@ -1,1008 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Gaza"] = { - - "1940" : function (t) { - t.equal(moment("1940-05-31T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1940-05-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1940-05-31T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1940-05-31T22:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1940-05-31T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1940-05-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1940-05-31T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1940-05-31T22:00:00+00:00 should be -180 minutes offset in EET"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-10-31T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1942-10-31T20:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1942-10-31T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1942-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1942-10-31T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1942-10-31T20:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1942-10-31T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1942-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-31T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:59:59", "1943-03-31T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1943-04-01T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "03:00:00", "1943-04-01T00:00:00+00:00 should be 03:00:00 EET"); - t.equal(moment("1943-10-31T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1943-10-31T20:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1943-10-31T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1943-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1943-03-31T23:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1943-03-31T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1943-04-01T00:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1943-04-01T00:00:00+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1943-10-31T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1943-10-31T20:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1943-10-31T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1943-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-31T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1944-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1944-03-31T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1944-03-31T22:00:00+00:00 should be 01:00:00 EET"); - t.equal(moment("1944-10-31T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1944-10-31T20:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1944-10-31T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1944-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1944-03-31T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1944-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1944-03-31T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1944-03-31T22:00:00+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1944-10-31T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1944-10-31T20:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1944-10-31T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1944-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-15T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1945-04-15T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1945-04-15T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1945-04-15T22:00:00+00:00 should be 01:00:00 EET"); - t.equal(moment("1945-10-31T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:59:59", "1945-10-31T22:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1945-10-31T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1945-10-31T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1945-04-15T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1945-04-15T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1945-04-15T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1945-04-15T22:00:00+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1945-10-31T22:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1945-10-31T22:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1945-10-31T23:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1945-10-31T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-15T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:59:59", "1946-04-15T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1946-04-16T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "03:00:00", "1946-04-16T00:00:00+00:00 should be 03:00:00 EET"); - t.equal(moment("1946-10-31T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1946-10-31T20:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1946-10-31T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1946-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1946-04-15T23:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1946-04-15T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1946-04-16T00:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1946-04-16T00:00:00+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1946-10-31T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1946-10-31T20:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1946-10-31T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1946-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-05-09T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1957-05-09T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1957-05-09T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1957-05-09T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1957-09-30T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1957-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1957-09-30T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1957-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1957-05-09T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1957-05-09T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1957-05-09T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1957-05-09T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1957-09-30T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1957-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1957-09-30T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1957-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-30T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1958-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1958-04-30T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1958-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1958-09-30T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1958-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1958-09-30T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1958-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1958-04-30T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1958-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1958-04-30T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1958-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1958-09-30T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1958-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1958-09-30T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1958-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-30T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1959-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1959-04-30T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1959-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1959-09-29T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:59:59", "1959-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1959-09-30T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1959-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1959-04-30T22:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1959-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1959-04-30T23:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1959-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1959-09-29T23:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1959-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1959-09-30T00:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1959-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-30T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1960-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1960-04-30T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1960-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1960-09-29T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:59:59", "1960-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1960-09-30T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1960-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1960-04-30T22:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1960-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1960-04-30T23:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1960-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1960-09-29T23:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1960-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1960-09-30T00:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1960-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1961-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1961-04-30T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1961-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1961-09-29T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:59:59", "1961-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1961-09-30T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1961-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1961-04-30T22:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1961-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1961-04-30T23:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1961-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1961-09-29T23:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1961-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1961-09-30T00:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1961-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-30T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1962-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1962-04-30T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1962-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1962-09-29T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:59:59", "1962-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1962-09-30T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1962-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1962-04-30T22:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1962-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1962-04-30T23:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1962-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-09-29T23:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1962-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-09-30T00:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1962-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-30T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1963-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1963-04-30T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1963-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1963-09-29T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:59:59", "1963-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1963-09-30T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1963-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1963-04-30T22:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1963-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1963-04-30T23:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1963-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1963-09-29T23:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1963-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1963-09-30T00:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1963-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-30T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1964-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1964-04-30T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1964-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1964-09-29T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:59:59", "1964-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1964-09-30T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1964-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1964-04-30T22:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1964-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1964-04-30T23:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1964-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-29T23:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1964-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-30T00:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1964-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-30T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1965-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1965-04-30T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1965-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1965-09-29T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:59:59", "1965-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1965-09-30T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1965-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1965-04-30T22:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1965-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1965-04-30T23:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1965-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1965-09-29T23:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1965-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1965-09-30T00:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1965-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-30T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1966-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1966-04-30T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1966-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1966-09-30T23:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:59:59", "1966-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1966-10-01T00:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1966-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1966-04-30T22:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1966-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1966-04-30T23:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1966-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1966-09-30T23:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1966-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1966-10-01T00:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1966-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1967-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1967-04-30T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "02:00:00", "1967-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1967-06-04T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1967-06-04T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1967-06-04T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1967-06-04T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1967-04-30T22:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1967-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1967-04-30T23:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1967-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1967-06-04T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1967-06-04T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1967-06-04T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1967-06-04T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-07-06T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1974-07-06T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1974-07-06T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1974-07-06T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1974-10-12T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1974-10-12T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1974-10-12T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1974-10-12T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1974-07-06T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1974-07-06T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1974-07-06T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1974-07-06T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1974-10-12T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1974-10-12T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1974-10-12T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1974-10-12T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-19T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1975-04-19T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1975-04-19T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1975-04-19T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1975-08-30T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1975-08-30T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1975-08-30T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1975-08-30T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1975-04-19T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1975-04-19T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1975-04-19T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1975-04-19T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1975-08-30T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1975-08-30T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1975-08-30T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1975-08-30T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-13T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1985-04-13T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1985-04-13T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1985-04-13T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1985-09-14T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1985-09-14T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1985-09-14T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1985-09-14T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1985-04-13T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1985-04-13T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1985-04-13T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1985-04-13T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1985-09-14T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1985-09-14T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1985-09-14T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1985-09-14T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-05-17T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1986-05-17T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1986-05-17T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1986-05-17T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1986-09-06T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1986-09-06T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1986-09-06T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1986-09-06T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1986-05-17T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1986-05-17T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1986-05-17T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1986-05-17T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1986-09-06T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1986-09-06T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1986-09-06T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1986-09-06T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-14T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1987-04-14T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1987-04-14T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1987-04-14T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1987-09-12T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1987-09-12T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1987-09-12T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1987-09-12T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1987-04-14T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1987-04-14T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1987-04-14T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1987-04-14T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1987-09-12T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1987-09-12T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1987-09-12T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1987-09-12T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-08T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1988-04-08T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1988-04-08T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1988-04-08T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1988-09-02T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1988-09-02T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1988-09-02T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1988-09-02T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1988-04-08T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1988-04-08T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1988-04-08T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1988-04-08T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1988-09-02T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1988-09-02T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1988-09-02T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1988-09-02T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-29T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1989-04-29T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1989-04-29T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1989-04-29T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1989-09-02T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1989-09-02T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1989-09-02T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1989-09-02T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1989-04-29T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1989-04-29T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1989-04-29T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1989-04-29T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1989-09-02T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1989-09-02T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1989-09-02T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1989-09-02T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1990-03-24T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1990-03-24T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1990-08-25T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1990-08-25T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1990-08-25T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1990-08-25T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1990-03-24T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1990-03-24T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1990-08-25T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1990-08-25T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1990-08-25T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1990-08-25T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-23T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1991-03-23T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1991-03-23T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1991-03-23T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1991-08-31T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1991-08-31T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1991-08-31T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1991-08-31T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1991-03-23T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1991-03-23T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1991-03-23T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1991-03-23T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1991-08-31T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1991-08-31T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1991-08-31T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1991-08-31T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1992-09-05T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1992-09-05T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1992-09-05T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1992-09-05T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1992-09-05T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1992-09-05T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1992-09-05T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1992-09-05T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-01T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1993-04-01T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1993-04-01T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1993-04-01T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1993-09-04T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1993-09-04T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1993-09-04T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1993-09-04T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1993-04-01T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1993-04-01T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1993-04-01T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1993-04-01T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1993-09-04T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1993-09-04T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1993-09-04T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1993-09-04T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1994-03-31T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1994-03-31T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1994-08-27T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1994-08-27T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1994-08-27T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1994-08-27T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1994-03-31T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1994-03-31T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1994-08-27T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1994-08-27T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1994-08-27T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1994-08-27T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-30T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1995-03-30T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1995-03-30T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1995-03-30T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1995-09-02T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1995-09-02T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1995-09-02T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1995-09-02T21:00:00+00:00 should be 23:00:00 IST"); - t.equal(moment("1995-12-31T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1995-12-31T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1995-12-31T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "1995-12-31T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1995-03-30T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1995-03-30T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1995-03-30T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1995-03-30T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1995-09-02T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1995-09-02T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1995-09-02T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1995-09-02T21:00:00+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1995-12-31T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1995-12-31T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1995-12-31T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1995-12-31T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-04T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1996-04-04T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-04-04T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1996-04-04T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-09-19T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1996-09-19T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1996-09-19T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "1996-09-19T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1996-04-04T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1996-04-04T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-04-04T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1996-04-04T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-19T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1996-09-19T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-19T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1996-09-19T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-03T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1997-04-03T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1997-04-03T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1997-04-03T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1997-09-18T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1997-09-18T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1997-09-18T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "1997-09-18T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1997-04-03T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1997-04-03T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-04-03T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1997-04-03T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-18T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1997-09-18T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-18T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1997-09-18T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-02T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1998-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1998-04-02T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1998-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1998-09-17T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "1998-09-17T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1998-09-17T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "1998-09-17T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1998-04-02T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1998-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-04-02T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1998-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-17T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1998-09-17T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-17T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1998-09-17T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-15T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1999-04-15T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1999-04-15T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "1999-04-15T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1999-10-14T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "1999-10-14T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1999-10-14T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "1999-10-14T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1999-04-15T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "1999-04-15T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-04-15T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "1999-04-15T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-14T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "1999-10-14T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-14T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "1999-10-14T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-20T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2000-04-20T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2000-04-20T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2000-04-20T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2000-10-19T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2000-10-19T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2000-10-19T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "2000-10-19T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2000-04-20T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2000-04-20T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-04-20T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2000-04-20T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-19T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2000-10-19T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-19T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2000-10-19T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-19T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2001-04-19T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2001-04-19T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2001-04-19T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2001-10-18T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2001-10-18T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2001-10-18T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "2001-10-18T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2001-04-19T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2001-04-19T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-04-19T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2001-04-19T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-18T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2001-10-18T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-18T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2001-10-18T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-18T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2002-04-18T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2002-04-18T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2002-04-18T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2002-10-17T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2002-10-17T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2002-10-17T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "2002-10-17T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2002-04-18T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2002-04-18T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-04-18T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2002-04-18T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-17T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2002-10-17T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-17T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2002-10-17T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-17T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2003-04-17T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2003-04-17T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2003-04-17T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2003-10-16T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2003-10-16T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2003-10-16T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "2003-10-16T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2003-04-17T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2003-04-17T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-04-17T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2003-04-17T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-16T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2003-10-16T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-16T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2003-10-16T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-15T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2004-04-15T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2004-04-15T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2004-04-15T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2004-09-30T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2004-09-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2004-09-30T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2004-09-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2004-04-15T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2004-04-15T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-04-15T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2004-04-15T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-09-30T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2004-09-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-09-30T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2004-09-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-14T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2005-04-14T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2005-04-14T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2005-04-14T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2005-10-03T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:59:59", "2005-10-03T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2005-10-03T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2005-10-03T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2005-04-14T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2005-04-14T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-04-14T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2005-04-14T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-03T22:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2005-10-03T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-03T23:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2005-10-03T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-31T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2006-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2006-03-31T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2006-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2006-09-21T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2006-09-21T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2006-09-21T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "2006-09-21T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2006-03-31T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2006-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-31T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2006-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-09-21T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2006-09-21T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-09-21T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2006-09-21T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-31T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2007-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2007-03-31T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2007-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2007-09-12T22:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:59:59", "2007-09-12T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2007-09-12T23:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2007-09-12T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2007-03-31T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2007-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-31T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2007-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-09-12T22:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2007-09-12T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-09-12T23:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2007-09-12T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-27T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2008-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2008-03-27T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2008-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2008-08-28T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2008-08-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2008-08-28T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "2008-08-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2008-03-27T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2008-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-27T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2008-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-08-28T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2008-08-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-08-28T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2008-08-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-26T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2009-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2009-03-26T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2009-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2009-09-03T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2009-09-03T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2009-09-03T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2009-09-03T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2009-03-26T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2009-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-26T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2009-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-09-03T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2009-09-03T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-09-03T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2009-09-03T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-26T22:00:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:59", "2010-03-26T22:00:59+00:00 should be 00:00:59 EET"); - t.equal(moment("2010-03-26T22:01:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:01:00", "2010-03-26T22:01:00+00:00 should be 01:01:00 EEST"); - t.equal(moment("2010-08-10T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2010-08-10T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2010-08-10T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "2010-08-10T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2010-03-26T22:00:59+00:00").tz("Asia/Gaza").zone(), -120, "2010-03-26T22:00:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-26T22:01:00+00:00").tz("Asia/Gaza").zone(), -180, "2010-03-26T22:01:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-08-10T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2010-08-10T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-08-10T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2010-08-10T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-31T22:00:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:59", "2011-03-31T22:00:59+00:00 should be 00:00:59 EET"); - t.equal(moment("2011-03-31T22:01:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:01:00", "2011-03-31T22:01:00+00:00 should be 01:01:00 EEST"); - t.equal(moment("2011-07-31T20:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2011-07-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2011-07-31T21:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:00:00", "2011-07-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2011-03-31T22:00:59+00:00").tz("Asia/Gaza").zone(), -120, "2011-03-31T22:00:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-31T22:01:00+00:00").tz("Asia/Gaza").zone(), -180, "2011-03-31T22:01:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-07-31T20:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2011-07-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-07-31T21:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2011-07-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-29T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2012-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2012-03-29T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2012-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2012-09-20T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2012-09-20T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2012-09-20T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2012-09-20T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2012-03-29T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2012-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-29T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2012-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-09-20T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2012-09-20T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-09-20T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2012-09-20T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-28T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2013-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2013-03-28T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2013-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2013-09-26T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2013-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2013-09-26T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2013-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2013-03-28T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2013-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-28T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2013-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-09-26T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2013-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-09-26T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2013-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-27T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2014-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2014-03-27T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2014-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2014-09-25T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2014-09-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2014-09-25T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2014-09-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2014-03-27T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2014-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-27T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2014-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-09-25T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2014-09-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-09-25T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2014-09-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-26T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2015-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2015-03-26T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2015-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2015-09-24T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2015-09-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2015-09-24T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2015-09-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2015-03-26T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2015-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-26T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2015-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-09-24T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2015-09-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-09-24T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2015-09-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-31T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2016-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2016-03-31T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2016-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2016-09-22T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2016-09-22T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2016-09-22T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2016-09-22T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2016-03-31T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2016-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-31T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2016-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-09-22T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2016-09-22T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-09-22T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2016-09-22T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-30T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2017-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2017-03-30T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2017-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2017-09-21T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2017-09-21T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2017-09-21T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2017-09-21T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2017-03-30T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2017-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-30T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2017-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-09-21T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2017-09-21T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-09-21T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2017-09-21T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-29T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2018-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2018-03-29T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2018-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2018-09-20T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2018-09-20T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2018-09-20T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2018-09-20T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2018-03-29T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2018-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-29T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2018-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-09-20T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2018-09-20T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-09-20T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2018-09-20T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-28T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2019-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2019-03-28T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2019-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2019-09-26T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2019-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2019-09-26T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2019-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2019-03-28T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2019-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-28T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2019-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-09-26T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2019-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-09-26T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2019-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-26T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2020-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2020-03-26T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2020-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2020-09-24T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2020-09-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2020-09-24T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2020-09-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2020-03-26T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2020-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-26T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2020-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-09-24T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2020-09-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-09-24T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2020-09-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-25T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2021-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2021-03-25T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2021-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2021-09-23T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2021-09-23T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2021-09-23T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2021-09-23T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2021-03-25T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2021-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-25T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2021-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-09-23T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2021-09-23T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-09-23T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2021-09-23T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-31T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2022-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2022-03-31T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2022-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2022-09-22T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2022-09-22T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2022-09-22T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2022-09-22T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2022-03-31T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2022-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-31T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2022-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-09-22T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2022-09-22T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-09-22T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2022-09-22T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-30T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2023-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2023-03-30T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2023-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2023-09-21T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2023-09-21T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2023-09-21T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2023-09-21T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2023-03-30T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2023-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-30T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2023-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-09-21T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2023-09-21T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-09-21T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2023-09-21T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-28T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2024-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2024-03-28T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2024-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2024-09-26T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2024-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2024-09-26T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2024-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2024-03-28T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2024-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-28T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2024-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-09-26T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2024-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-09-26T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2024-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-27T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2025-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2025-03-27T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2025-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2025-09-25T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2025-09-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2025-09-25T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2025-09-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2025-03-27T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2025-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-27T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2025-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-09-25T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2025-09-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-09-25T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2025-09-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-26T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2026-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2026-03-26T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2026-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2026-09-24T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2026-09-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2026-09-24T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2026-09-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2026-03-26T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2026-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-26T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2026-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-09-24T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2026-09-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-09-24T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2026-09-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-25T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2027-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2027-03-25T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2027-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2027-09-23T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2027-09-23T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2027-09-23T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2027-09-23T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2027-03-25T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2027-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-25T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2027-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-09-23T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2027-09-23T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-09-23T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2027-09-23T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-30T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2028-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2028-03-30T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2028-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2028-09-21T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2028-09-21T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2028-09-21T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2028-09-21T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2028-03-30T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2028-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-30T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2028-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-09-21T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2028-09-21T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-09-21T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2028-09-21T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-29T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2029-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2029-03-29T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2029-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2029-09-20T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2029-09-20T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2029-09-20T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2029-09-20T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2029-03-29T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2029-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-29T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2029-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-09-20T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2029-09-20T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-09-20T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2029-09-20T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-28T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2030-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2030-03-28T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2030-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2030-09-26T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2030-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2030-09-26T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2030-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2030-03-28T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2030-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-28T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2030-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-09-26T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2030-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-09-26T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2030-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-27T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2031-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2031-03-27T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2031-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2031-09-25T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2031-09-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2031-09-25T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2031-09-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2031-03-27T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2031-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-27T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2031-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-09-25T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2031-09-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-09-25T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2031-09-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-25T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2032-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2032-03-25T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2032-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2032-09-23T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2032-09-23T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2032-09-23T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2032-09-23T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2032-03-25T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2032-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-25T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2032-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-09-23T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2032-09-23T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-09-23T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2032-09-23T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-31T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2033-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2033-03-31T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2033-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2033-09-22T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2033-09-22T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2033-09-22T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2033-09-22T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2033-03-31T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2033-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-31T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2033-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-09-22T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2033-09-22T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-09-22T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2033-09-22T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-30T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2034-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2034-03-30T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2034-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2034-09-21T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2034-09-21T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2034-09-21T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2034-09-21T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2034-03-30T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2034-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-30T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2034-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-09-21T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2034-09-21T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-09-21T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2034-09-21T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-29T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2035-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2035-03-29T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2035-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2035-09-20T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2035-09-20T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2035-09-20T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2035-09-20T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2035-03-29T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2035-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-29T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2035-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-09-20T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2035-09-20T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-09-20T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2035-09-20T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-27T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2036-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2036-03-27T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2036-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2036-09-25T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2036-09-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2036-09-25T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2036-09-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2036-03-27T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2036-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-27T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2036-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-09-25T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2036-09-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-09-25T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2036-09-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-26T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "23:59:59", "2037-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2037-03-26T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "01:00:00", "2037-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2037-09-24T21:59:59+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:59:59", "2037-09-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2037-09-24T22:00:00+00:00").tz("Asia/Gaza").format("HH:mm:ss"), "00:00:00", "2037-09-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2037-03-26T21:59:59+00:00").tz("Asia/Gaza").zone(), -120, "2037-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-26T22:00:00+00:00").tz("Asia/Gaza").zone(), -180, "2037-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-09-24T21:59:59+00:00").tz("Asia/Gaza").zone(), -180, "2037-09-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-09-24T22:00:00+00:00").tz("Asia/Gaza").zone(), -120, "2037-09-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/harbin.js b/tests/asia/harbin.js deleted file mode 100644 index 12a14bce..00000000 --- a/tests/asia/harbin.js +++ /dev/null @@ -1,138 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Harbin"] = { - - "1927" : function (t) { - t.equal(moment("1927-12-31T15:33:15+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1927-12-31T15:33:15+00:00 should be 23:59:59 LMT"); - t.equal(moment("1927-12-31T15:33:16+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "00:03:16", "1927-12-31T15:33:16+00:00 should be 00:03:16 CHAT"); - - t.equal(moment("1927-12-31T15:33:15+00:00").tz("Asia/Harbin").zone(), -30404 / 60, "1927-12-31T15:33:15+00:00 should be -30404 / 60 minutes offset in LMT"); - t.equal(moment("1927-12-31T15:33:16+00:00").tz("Asia/Harbin").zone(), -510, "1927-12-31T15:33:16+00:00 should be -510 minutes offset in CHAT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-02-29T15:29:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1932-02-29T15:29:59+00:00 should be 23:59:59 CHAT"); - t.equal(moment("1932-02-29T15:30:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:30:00", "1932-02-29T15:30:00+00:00 should be 23:30:00 CST"); - - t.equal(moment("1932-02-29T15:29:59+00:00").tz("Asia/Harbin").zone(), -510, "1932-02-29T15:29:59+00:00 should be -510 minutes offset in CHAT"); - t.equal(moment("1932-02-29T15:30:00+00:00").tz("Asia/Harbin").zone(), -480, "1932-02-29T15:30:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-12-31T15:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1939-12-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1939-12-31T16:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "01:00:00", "1939-12-31T16:00:00+00:00 should be 01:00:00 CHAT"); - - t.equal(moment("1939-12-31T15:59:59+00:00").tz("Asia/Harbin").zone(), -480, "1939-12-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1939-12-31T16:00:00+00:00").tz("Asia/Harbin").zone(), -540, "1939-12-31T16:00:00+00:00 should be -540 minutes offset in CHAT"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-30T14:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1966-04-30T14:59:59+00:00 should be 23:59:59 CHAT"); - t.equal(moment("1966-04-30T15:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:30:00", "1966-04-30T15:00:00+00:00 should be 23:30:00 CHAT"); - - t.equal(moment("1966-04-30T14:59:59+00:00").tz("Asia/Harbin").zone(), -540, "1966-04-30T14:59:59+00:00 should be -540 minutes offset in CHAT"); - t.equal(moment("1966-04-30T15:00:00+00:00").tz("Asia/Harbin").zone(), -510, "1966-04-30T15:00:00+00:00 should be -510 minutes offset in CHAT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-30T15:29:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1980-04-30T15:29:59+00:00 should be 23:59:59 CHAT"); - t.equal(moment("1980-04-30T15:30:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:30:00", "1980-04-30T15:30:00+00:00 should be 23:30:00 CST"); - - t.equal(moment("1980-04-30T15:29:59+00:00").tz("Asia/Harbin").zone(), -510, "1980-04-30T15:29:59+00:00 should be -510 minutes offset in CHAT"); - t.equal(moment("1980-04-30T15:30:00+00:00").tz("Asia/Harbin").zone(), -480, "1980-04-30T15:30:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1986-05-03T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "01:00:00", "1986-05-03T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1986-09-13T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:00:00", "1986-09-13T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Harbin").zone(), -480, "1986-05-03T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Harbin").zone(), -540, "1986-05-03T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Harbin").zone(), -540, "1986-09-13T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Harbin").zone(), -480, "1986-09-13T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1987-04-11T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "01:00:00", "1987-04-11T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1987-09-12T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:00:00", "1987-09-12T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Harbin").zone(), -480, "1987-04-11T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Harbin").zone(), -540, "1987-04-11T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Harbin").zone(), -540, "1987-09-12T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Harbin").zone(), -480, "1987-09-12T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1988-04-09T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "01:00:00", "1988-04-09T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1988-09-10T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:00:00", "1988-09-10T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Harbin").zone(), -480, "1988-04-09T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Harbin").zone(), -540, "1988-04-09T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Harbin").zone(), -540, "1988-09-10T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Harbin").zone(), -480, "1988-09-10T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1989-04-15T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "01:00:00", "1989-04-15T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1989-09-16T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:00:00", "1989-09-16T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Harbin").zone(), -480, "1989-04-15T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Harbin").zone(), -540, "1989-04-15T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Harbin").zone(), -540, "1989-09-16T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Harbin").zone(), -480, "1989-09-16T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1990-04-14T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "01:00:00", "1990-04-14T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1990-09-15T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:00:00", "1990-09-15T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Harbin").zone(), -480, "1990-04-14T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Harbin").zone(), -540, "1990-04-14T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Harbin").zone(), -540, "1990-09-15T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Harbin").zone(), -480, "1990-09-15T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1991-04-13T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "01:00:00", "1991-04-13T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:59:59", "1991-09-14T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Harbin").format("HH:mm:ss"), "23:00:00", "1991-09-14T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Harbin").zone(), -480, "1991-04-13T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Harbin").zone(), -540, "1991-04-13T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Harbin").zone(), -540, "1991-09-14T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Harbin").zone(), -480, "1991-09-14T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/hebron.js b/tests/asia/hebron.js deleted file mode 100644 index 476acec5..00000000 --- a/tests/asia/hebron.js +++ /dev/null @@ -1,1016 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Hebron"] = { - - "1940" : function (t) { - t.equal(moment("1940-05-31T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1940-05-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1940-05-31T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1940-05-31T22:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1940-05-31T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1940-05-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1940-05-31T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1940-05-31T22:00:00+00:00 should be -180 minutes offset in EET"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-10-31T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1942-10-31T20:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1942-10-31T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1942-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1942-10-31T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1942-10-31T20:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1942-10-31T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1942-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-31T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:59:59", "1943-03-31T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1943-04-01T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "03:00:00", "1943-04-01T00:00:00+00:00 should be 03:00:00 EET"); - t.equal(moment("1943-10-31T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1943-10-31T20:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1943-10-31T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1943-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1943-03-31T23:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1943-03-31T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1943-04-01T00:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1943-04-01T00:00:00+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1943-10-31T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1943-10-31T20:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1943-10-31T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1943-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-31T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1944-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1944-03-31T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1944-03-31T22:00:00+00:00 should be 01:00:00 EET"); - t.equal(moment("1944-10-31T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1944-10-31T20:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1944-10-31T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1944-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1944-03-31T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1944-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1944-03-31T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1944-03-31T22:00:00+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1944-10-31T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1944-10-31T20:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1944-10-31T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1944-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-15T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1945-04-15T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1945-04-15T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1945-04-15T22:00:00+00:00 should be 01:00:00 EET"); - t.equal(moment("1945-10-31T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:59:59", "1945-10-31T22:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1945-10-31T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1945-10-31T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1945-04-15T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1945-04-15T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1945-04-15T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1945-04-15T22:00:00+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1945-10-31T22:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1945-10-31T22:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1945-10-31T23:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1945-10-31T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-15T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:59:59", "1946-04-15T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1946-04-16T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "03:00:00", "1946-04-16T00:00:00+00:00 should be 03:00:00 EET"); - t.equal(moment("1946-10-31T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1946-10-31T20:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1946-10-31T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1946-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1946-04-15T23:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1946-04-15T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1946-04-16T00:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1946-04-16T00:00:00+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1946-10-31T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1946-10-31T20:59:59+00:00 should be -180 minutes offset in EET"); - t.equal(moment("1946-10-31T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1946-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-05-09T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1957-05-09T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1957-05-09T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1957-05-09T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1957-09-30T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1957-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1957-09-30T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1957-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1957-05-09T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1957-05-09T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1957-05-09T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1957-05-09T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1957-09-30T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1957-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1957-09-30T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1957-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-30T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1958-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1958-04-30T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1958-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1958-09-30T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1958-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1958-09-30T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1958-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1958-04-30T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1958-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1958-04-30T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1958-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1958-09-30T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1958-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1958-09-30T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1958-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-30T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1959-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1959-04-30T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1959-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1959-09-29T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:59:59", "1959-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1959-09-30T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1959-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1959-04-30T22:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1959-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1959-04-30T23:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1959-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1959-09-29T23:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1959-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1959-09-30T00:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1959-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-30T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1960-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1960-04-30T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1960-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1960-09-29T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:59:59", "1960-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1960-09-30T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1960-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1960-04-30T22:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1960-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1960-04-30T23:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1960-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1960-09-29T23:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1960-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1960-09-30T00:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1960-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-30T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1961-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1961-04-30T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1961-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1961-09-29T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:59:59", "1961-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1961-09-30T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1961-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1961-04-30T22:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1961-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1961-04-30T23:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1961-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1961-09-29T23:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1961-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1961-09-30T00:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1961-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-30T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1962-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1962-04-30T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1962-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1962-09-29T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:59:59", "1962-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1962-09-30T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1962-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1962-04-30T22:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1962-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1962-04-30T23:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1962-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-09-29T23:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1962-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-09-30T00:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1962-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-30T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1963-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1963-04-30T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1963-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1963-09-29T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:59:59", "1963-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1963-09-30T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1963-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1963-04-30T22:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1963-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1963-04-30T23:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1963-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1963-09-29T23:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1963-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1963-09-30T00:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1963-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-30T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1964-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1964-04-30T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1964-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1964-09-29T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:59:59", "1964-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1964-09-30T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1964-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1964-04-30T22:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1964-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1964-04-30T23:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1964-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-29T23:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1964-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-30T00:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1964-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-30T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1965-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1965-04-30T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1965-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1965-09-29T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:59:59", "1965-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1965-09-30T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1965-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1965-04-30T22:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1965-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1965-04-30T23:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1965-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1965-09-29T23:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1965-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1965-09-30T00:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1965-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-30T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1966-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1966-04-30T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1966-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1966-09-30T23:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:59:59", "1966-09-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1966-10-01T00:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1966-10-01T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1966-04-30T22:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1966-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1966-04-30T23:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1966-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1966-09-30T23:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1966-09-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1966-10-01T00:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1966-10-01T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1967-04-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1967-04-30T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "02:00:00", "1967-04-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1967-06-04T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1967-06-04T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1967-06-04T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1967-06-04T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1967-04-30T22:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1967-04-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1967-04-30T23:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1967-04-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1967-06-04T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1967-06-04T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1967-06-04T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1967-06-04T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-07-06T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1974-07-06T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1974-07-06T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1974-07-06T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1974-10-12T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1974-10-12T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1974-10-12T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1974-10-12T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1974-07-06T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1974-07-06T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1974-07-06T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1974-07-06T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1974-10-12T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1974-10-12T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1974-10-12T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1974-10-12T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-19T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1975-04-19T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1975-04-19T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1975-04-19T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1975-08-30T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1975-08-30T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1975-08-30T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1975-08-30T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1975-04-19T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1975-04-19T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1975-04-19T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1975-04-19T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1975-08-30T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1975-08-30T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1975-08-30T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1975-08-30T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-13T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1985-04-13T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1985-04-13T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1985-04-13T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1985-09-14T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1985-09-14T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1985-09-14T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1985-09-14T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1985-04-13T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1985-04-13T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1985-04-13T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1985-04-13T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1985-09-14T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1985-09-14T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1985-09-14T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1985-09-14T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-05-17T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1986-05-17T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1986-05-17T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1986-05-17T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1986-09-06T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1986-09-06T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1986-09-06T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1986-09-06T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1986-05-17T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1986-05-17T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1986-05-17T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1986-05-17T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1986-09-06T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1986-09-06T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1986-09-06T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1986-09-06T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-14T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1987-04-14T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1987-04-14T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1987-04-14T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1987-09-12T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1987-09-12T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1987-09-12T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1987-09-12T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1987-04-14T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1987-04-14T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1987-04-14T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1987-04-14T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1987-09-12T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1987-09-12T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1987-09-12T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1987-09-12T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-08T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1988-04-08T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1988-04-08T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1988-04-08T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1988-09-02T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1988-09-02T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1988-09-02T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1988-09-02T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1988-04-08T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1988-04-08T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1988-04-08T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1988-04-08T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1988-09-02T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1988-09-02T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1988-09-02T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1988-09-02T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-29T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1989-04-29T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1989-04-29T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1989-04-29T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1989-09-02T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1989-09-02T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1989-09-02T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1989-09-02T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1989-04-29T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1989-04-29T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1989-04-29T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1989-04-29T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1989-09-02T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1989-09-02T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1989-09-02T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1989-09-02T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1990-03-24T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1990-03-24T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1990-08-25T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1990-08-25T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1990-08-25T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1990-08-25T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1990-03-24T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1990-03-24T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1990-08-25T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1990-08-25T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1990-08-25T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1990-08-25T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-23T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1991-03-23T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1991-03-23T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1991-03-23T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1991-08-31T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1991-08-31T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1991-08-31T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1991-08-31T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1991-03-23T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1991-03-23T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1991-03-23T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1991-03-23T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1991-08-31T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1991-08-31T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1991-08-31T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1991-08-31T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1992-09-05T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1992-09-05T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1992-09-05T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1992-09-05T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1992-09-05T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1992-09-05T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1992-09-05T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1992-09-05T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-01T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1993-04-01T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1993-04-01T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1993-04-01T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1993-09-04T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1993-09-04T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1993-09-04T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1993-09-04T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1993-04-01T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1993-04-01T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1993-04-01T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1993-04-01T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1993-09-04T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1993-09-04T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1993-09-04T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1993-09-04T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1994-03-31T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1994-03-31T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1994-08-27T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1994-08-27T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1994-08-27T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1994-08-27T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1994-03-31T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1994-03-31T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1994-08-27T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1994-08-27T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1994-08-27T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1994-08-27T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-30T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1995-03-30T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1995-03-30T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1995-03-30T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1995-09-02T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1995-09-02T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1995-09-02T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1995-09-02T21:00:00+00:00 should be 23:00:00 IST"); - t.equal(moment("1995-12-31T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1995-12-31T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1995-12-31T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "1995-12-31T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1995-03-30T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1995-03-30T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1995-03-30T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1995-03-30T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1995-09-02T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1995-09-02T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1995-09-02T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1995-09-02T21:00:00+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1995-12-31T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1995-12-31T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1995-12-31T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1995-12-31T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-04T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1996-04-04T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-04-04T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1996-04-04T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-09-19T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1996-09-19T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1996-09-19T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "1996-09-19T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1996-04-04T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1996-04-04T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-04-04T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1996-04-04T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-19T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1996-09-19T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-19T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1996-09-19T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-03T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1997-04-03T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1997-04-03T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1997-04-03T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1997-09-18T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1997-09-18T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1997-09-18T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "1997-09-18T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1997-04-03T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1997-04-03T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-04-03T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1997-04-03T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-18T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1997-09-18T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-18T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1997-09-18T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-02T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1998-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1998-04-02T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1998-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1998-09-17T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "1998-09-17T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1998-09-17T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "1998-09-17T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1998-04-02T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1998-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-04-02T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1998-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-17T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1998-09-17T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-09-17T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1998-09-17T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-15T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1999-04-15T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1999-04-15T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "1999-04-15T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1999-10-14T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "1999-10-14T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1999-10-14T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "1999-10-14T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1999-04-15T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "1999-04-15T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-04-15T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "1999-04-15T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-14T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "1999-10-14T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-14T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "1999-10-14T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-20T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2000-04-20T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2000-04-20T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2000-04-20T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2000-10-19T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2000-10-19T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2000-10-19T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "2000-10-19T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2000-04-20T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2000-04-20T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-04-20T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2000-04-20T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-19T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2000-10-19T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-19T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2000-10-19T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-19T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2001-04-19T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2001-04-19T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2001-04-19T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2001-10-18T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2001-10-18T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2001-10-18T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "2001-10-18T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2001-04-19T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2001-04-19T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-04-19T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2001-04-19T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-18T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2001-10-18T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-18T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2001-10-18T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-18T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2002-04-18T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2002-04-18T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2002-04-18T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2002-10-17T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2002-10-17T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2002-10-17T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "2002-10-17T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2002-04-18T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2002-04-18T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-04-18T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2002-04-18T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-17T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2002-10-17T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-17T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2002-10-17T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-17T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2003-04-17T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2003-04-17T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2003-04-17T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2003-10-16T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2003-10-16T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2003-10-16T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "2003-10-16T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2003-04-17T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2003-04-17T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-04-17T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2003-04-17T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-16T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2003-10-16T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-16T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2003-10-16T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-15T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2004-04-15T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2004-04-15T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2004-04-15T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2004-09-30T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2004-09-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2004-09-30T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2004-09-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2004-04-15T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2004-04-15T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-04-15T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2004-04-15T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-09-30T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2004-09-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-09-30T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2004-09-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-14T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2005-04-14T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2005-04-14T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2005-04-14T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2005-10-03T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:59:59", "2005-10-03T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2005-10-03T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2005-10-03T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2005-04-14T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2005-04-14T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-04-14T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2005-04-14T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-03T22:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2005-10-03T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-03T23:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2005-10-03T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-31T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2006-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2006-03-31T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2006-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2006-09-21T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2006-09-21T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2006-09-21T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "2006-09-21T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2006-03-31T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2006-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-31T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2006-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-09-21T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2006-09-21T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-09-21T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2006-09-21T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-31T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2007-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2007-03-31T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2007-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2007-09-12T22:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:59:59", "2007-09-12T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2007-09-12T23:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2007-09-12T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2007-03-31T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2007-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-31T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2007-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-09-12T22:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2007-09-12T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-09-12T23:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2007-09-12T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-27T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2008-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2008-03-27T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2008-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2008-08-31T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2008-08-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2008-08-31T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "2008-08-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2008-03-27T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2008-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-27T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2008-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-08-31T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2008-08-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-08-31T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2008-08-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-26T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2009-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2009-03-26T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2009-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2009-09-03T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2009-09-03T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2009-09-03T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2009-09-03T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2009-03-26T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2009-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-26T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2009-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-09-03T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2009-09-03T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-09-03T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2009-09-03T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-25T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2010-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2010-03-25T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2010-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2010-08-10T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2010-08-10T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2010-08-10T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "2010-08-10T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2010-03-25T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2010-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-25T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2010-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-08-10T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2010-08-10T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-08-10T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2010-08-10T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-31T22:00:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:59", "2011-03-31T22:00:59+00:00 should be 00:00:59 EET"); - t.equal(moment("2011-03-31T22:01:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:01:00", "2011-03-31T22:01:00+00:00 should be 01:01:00 EEST"); - t.equal(moment("2011-07-31T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2011-07-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2011-07-31T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "2011-07-31T21:00:00+00:00 should be 23:00:00 EET"); - t.equal(moment("2011-08-29T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2011-08-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2011-08-29T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2011-08-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2011-09-29T20:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2011-09-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("2011-09-29T21:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:00:00", "2011-09-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("2011-03-31T22:00:59+00:00").tz("Asia/Hebron").zone(), -120, "2011-03-31T22:00:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-31T22:01:00+00:00").tz("Asia/Hebron").zone(), -180, "2011-03-31T22:01:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-07-31T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2011-07-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-07-31T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2011-07-31T21:00:00+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-08-29T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2011-08-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-08-29T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2011-08-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-09-29T20:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2011-09-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-09-29T21:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2011-09-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-29T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2012-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2012-03-29T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2012-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2012-09-20T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2012-09-20T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2012-09-20T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2012-09-20T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2012-03-29T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2012-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-29T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2012-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-09-20T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2012-09-20T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-09-20T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2012-09-20T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-28T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2013-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2013-03-28T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2013-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2013-09-26T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2013-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2013-09-26T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2013-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2013-03-28T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2013-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-28T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2013-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-09-26T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2013-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-09-26T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2013-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-27T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2014-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2014-03-27T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2014-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2014-09-25T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2014-09-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2014-09-25T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2014-09-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2014-03-27T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2014-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-27T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2014-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-09-25T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2014-09-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-09-25T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2014-09-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-26T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2015-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2015-03-26T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2015-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2015-09-24T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2015-09-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2015-09-24T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2015-09-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2015-03-26T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2015-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-26T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2015-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-09-24T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2015-09-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-09-24T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2015-09-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-31T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2016-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2016-03-31T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2016-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2016-09-22T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2016-09-22T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2016-09-22T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2016-09-22T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2016-03-31T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2016-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-31T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2016-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-09-22T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2016-09-22T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-09-22T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2016-09-22T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-30T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2017-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2017-03-30T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2017-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2017-09-21T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2017-09-21T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2017-09-21T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2017-09-21T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2017-03-30T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2017-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-30T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2017-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-09-21T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2017-09-21T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-09-21T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2017-09-21T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-29T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2018-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2018-03-29T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2018-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2018-09-20T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2018-09-20T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2018-09-20T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2018-09-20T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2018-03-29T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2018-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-29T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2018-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-09-20T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2018-09-20T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-09-20T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2018-09-20T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-28T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2019-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2019-03-28T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2019-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2019-09-26T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2019-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2019-09-26T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2019-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2019-03-28T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2019-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-28T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2019-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-09-26T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2019-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-09-26T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2019-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-26T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2020-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2020-03-26T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2020-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2020-09-24T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2020-09-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2020-09-24T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2020-09-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2020-03-26T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2020-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-26T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2020-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-09-24T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2020-09-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-09-24T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2020-09-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-25T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2021-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2021-03-25T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2021-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2021-09-23T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2021-09-23T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2021-09-23T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2021-09-23T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2021-03-25T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2021-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-25T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2021-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-09-23T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2021-09-23T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-09-23T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2021-09-23T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-31T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2022-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2022-03-31T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2022-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2022-09-22T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2022-09-22T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2022-09-22T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2022-09-22T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2022-03-31T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2022-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-31T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2022-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-09-22T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2022-09-22T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-09-22T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2022-09-22T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-30T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2023-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2023-03-30T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2023-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2023-09-21T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2023-09-21T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2023-09-21T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2023-09-21T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2023-03-30T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2023-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-30T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2023-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-09-21T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2023-09-21T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-09-21T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2023-09-21T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-28T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2024-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2024-03-28T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2024-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2024-09-26T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2024-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2024-09-26T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2024-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2024-03-28T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2024-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-28T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2024-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-09-26T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2024-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-09-26T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2024-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-27T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2025-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2025-03-27T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2025-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2025-09-25T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2025-09-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2025-09-25T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2025-09-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2025-03-27T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2025-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-27T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2025-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-09-25T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2025-09-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-09-25T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2025-09-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-26T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2026-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2026-03-26T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2026-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2026-09-24T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2026-09-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2026-09-24T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2026-09-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2026-03-26T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2026-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-26T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2026-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-09-24T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2026-09-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-09-24T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2026-09-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-25T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2027-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2027-03-25T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2027-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2027-09-23T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2027-09-23T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2027-09-23T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2027-09-23T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2027-03-25T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2027-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-25T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2027-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-09-23T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2027-09-23T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-09-23T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2027-09-23T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-30T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2028-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2028-03-30T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2028-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2028-09-21T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2028-09-21T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2028-09-21T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2028-09-21T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2028-03-30T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2028-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-30T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2028-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-09-21T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2028-09-21T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-09-21T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2028-09-21T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-29T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2029-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2029-03-29T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2029-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2029-09-20T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2029-09-20T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2029-09-20T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2029-09-20T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2029-03-29T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2029-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-29T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2029-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-09-20T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2029-09-20T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-09-20T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2029-09-20T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-28T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2030-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2030-03-28T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2030-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2030-09-26T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2030-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2030-09-26T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2030-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2030-03-28T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2030-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-28T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2030-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-09-26T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2030-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-09-26T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2030-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-27T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2031-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2031-03-27T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2031-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2031-09-25T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2031-09-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2031-09-25T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2031-09-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2031-03-27T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2031-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-27T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2031-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-09-25T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2031-09-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-09-25T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2031-09-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-25T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2032-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2032-03-25T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2032-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2032-09-23T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2032-09-23T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2032-09-23T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2032-09-23T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2032-03-25T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2032-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-25T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2032-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-09-23T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2032-09-23T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-09-23T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2032-09-23T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-31T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2033-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2033-03-31T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2033-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2033-09-22T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2033-09-22T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2033-09-22T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2033-09-22T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2033-03-31T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2033-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-31T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2033-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-09-22T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2033-09-22T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-09-22T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2033-09-22T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-30T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2034-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2034-03-30T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2034-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2034-09-21T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2034-09-21T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2034-09-21T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2034-09-21T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2034-03-30T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2034-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-30T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2034-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-09-21T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2034-09-21T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-09-21T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2034-09-21T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-29T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2035-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2035-03-29T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2035-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2035-09-20T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2035-09-20T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2035-09-20T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2035-09-20T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2035-03-29T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2035-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-29T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2035-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-09-20T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2035-09-20T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-09-20T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2035-09-20T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-27T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2036-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2036-03-27T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2036-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2036-09-25T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2036-09-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2036-09-25T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2036-09-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2036-03-27T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2036-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-27T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2036-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-09-25T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2036-09-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-09-25T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2036-09-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-26T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "23:59:59", "2037-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("2037-03-26T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "01:00:00", "2037-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("2037-09-24T21:59:59+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:59:59", "2037-09-24T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("2037-09-24T22:00:00+00:00").tz("Asia/Hebron").format("HH:mm:ss"), "00:00:00", "2037-09-24T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("2037-03-26T21:59:59+00:00").tz("Asia/Hebron").zone(), -120, "2037-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-26T22:00:00+00:00").tz("Asia/Hebron").zone(), -180, "2037-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-09-24T21:59:59+00:00").tz("Asia/Hebron").zone(), -180, "2037-09-24T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-09-24T22:00:00+00:00").tz("Asia/Hebron").zone(), -120, "2037-09-24T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/ho_chi_minh.js b/tests/asia/ho_chi_minh.js deleted file mode 100644 index c60a0503..00000000 --- a/tests/asia/ho_chi_minh.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Ho_Chi_Minh"] = { - - "1906" : function (t) { - t.equal(moment("1906-06-08T16:53:19+00:00").tz("Asia/Ho_Chi_Minh").format("HH:mm:ss"), "23:59:59", "1906-06-08T16:53:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1906-06-08T16:53:20+00:00").tz("Asia/Ho_Chi_Minh").format("HH:mm:ss"), "23:59:40", "1906-06-08T16:53:20+00:00 should be 23:59:40 SMT"); - - t.equal(moment("1906-06-08T16:53:19+00:00").tz("Asia/Ho_Chi_Minh").zone(), -25600 / 60, "1906-06-08T16:53:19+00:00 should be -25600 / 60 minutes offset in LMT"); - t.equal(moment("1906-06-08T16:53:20+00:00").tz("Asia/Ho_Chi_Minh").zone(), -25580 / 60, "1906-06-08T16:53:20+00:00 should be -25580 / 60 minutes offset in SMT"); - - t.done(); - }, - - "1911" : function (t) { - t.equal(moment("1911-03-10T16:54:39+00:00").tz("Asia/Ho_Chi_Minh").format("HH:mm:ss"), "00:00:59", "1911-03-10T16:54:39+00:00 should be 00:00:59 SMT"); - t.equal(moment("1911-03-10T16:54:40+00:00").tz("Asia/Ho_Chi_Minh").format("HH:mm:ss"), "23:54:40", "1911-03-10T16:54:40+00:00 should be 23:54:40 ICT"); - - t.equal(moment("1911-03-10T16:54:39+00:00").tz("Asia/Ho_Chi_Minh").zone(), -25580 / 60, "1911-03-10T16:54:39+00:00 should be -25580 / 60 minutes offset in SMT"); - t.equal(moment("1911-03-10T16:54:40+00:00").tz("Asia/Ho_Chi_Minh").zone(), -420, "1911-03-10T16:54:40+00:00 should be -420 minutes offset in ICT"); - - t.done(); - }, - - "1912" : function (t) { - t.equal(moment("1912-04-30T16:59:59+00:00").tz("Asia/Ho_Chi_Minh").format("HH:mm:ss"), "23:59:59", "1912-04-30T16:59:59+00:00 should be 23:59:59 ICT"); - t.equal(moment("1912-04-30T17:00:00+00:00").tz("Asia/Ho_Chi_Minh").format("HH:mm:ss"), "01:00:00", "1912-04-30T17:00:00+00:00 should be 01:00:00 ICT"); - - t.equal(moment("1912-04-30T16:59:59+00:00").tz("Asia/Ho_Chi_Minh").zone(), -420, "1912-04-30T16:59:59+00:00 should be -420 minutes offset in ICT"); - t.equal(moment("1912-04-30T17:00:00+00:00").tz("Asia/Ho_Chi_Minh").zone(), -480, "1912-04-30T17:00:00+00:00 should be -480 minutes offset in ICT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-30T15:59:59+00:00").tz("Asia/Ho_Chi_Minh").format("HH:mm:ss"), "23:59:59", "1931-04-30T15:59:59+00:00 should be 23:59:59 ICT"); - t.equal(moment("1931-04-30T16:00:00+00:00").tz("Asia/Ho_Chi_Minh").format("HH:mm:ss"), "23:00:00", "1931-04-30T16:00:00+00:00 should be 23:00:00 ICT"); - - t.equal(moment("1931-04-30T15:59:59+00:00").tz("Asia/Ho_Chi_Minh").zone(), -480, "1931-04-30T15:59:59+00:00 should be -480 minutes offset in ICT"); - t.equal(moment("1931-04-30T16:00:00+00:00").tz("Asia/Ho_Chi_Minh").zone(), -420, "1931-04-30T16:00:00+00:00 should be -420 minutes offset in ICT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/hong_kong.js b/tests/asia/hong_kong.js deleted file mode 100644 index 445c92aa..00000000 --- a/tests/asia/hong_kong.js +++ /dev/null @@ -1,490 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Hong_Kong"] = { - - "1904" : function (t) { - t.equal(moment("1904-10-29T16:23:17+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "23:59:59", "1904-10-29T16:23:17+00:00 should be 23:59:59 LMT"); - t.equal(moment("1904-10-29T16:23:18+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "00:23:18", "1904-10-29T16:23:18+00:00 should be 00:23:18 HKT"); - - t.equal(moment("1904-10-29T16:23:17+00:00").tz("Asia/Hong_Kong").zone(), -27402 / 60, "1904-10-29T16:23:17+00:00 should be -27402 / 60 minutes offset in LMT"); - t.equal(moment("1904-10-29T16:23:18+00:00").tz("Asia/Hong_Kong").zone(), -480, "1904-10-29T16:23:18+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-03-31T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1941-03-31T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1941-03-31T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1941-03-31T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1941-09-29T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1941-09-29T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1941-09-29T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1941-09-29T18:30:00+00:00 should be 02:30:00 HKT"); - t.equal(moment("1941-12-24T15:59:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "23:59:59", "1941-12-24T15:59:59+00:00 should be 23:59:59 HKT"); - t.equal(moment("1941-12-24T16:00:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "01:00:00", "1941-12-24T16:00:00+00:00 should be 01:00:00 JST"); - - t.equal(moment("1941-03-31T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1941-03-31T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1941-03-31T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1941-03-31T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1941-09-29T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1941-09-29T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1941-09-29T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1941-09-29T18:30:00+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1941-12-24T15:59:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1941-12-24T15:59:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1941-12-24T16:00:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1941-12-24T16:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-09-14T14:59:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "23:59:59", "1945-09-14T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-09-14T15:00:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "23:00:00", "1945-09-14T15:00:00+00:00 should be 23:00:00 HKT"); - - t.equal(moment("1945-09-14T14:59:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1945-09-14T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-09-14T15:00:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1945-09-14T15:00:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-19T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1946-04-19T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1946-04-19T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1946-04-19T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1946-11-30T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1946-11-30T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1946-11-30T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1946-11-30T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1946-04-19T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1946-04-19T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1946-04-19T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1946-04-19T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1946-11-30T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1946-11-30T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1946-11-30T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1946-11-30T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-12T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1947-04-12T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1947-04-12T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1947-04-12T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1947-12-29T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1947-12-29T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1947-12-29T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1947-12-29T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1947-04-12T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1947-04-12T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1947-04-12T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1947-04-12T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1947-12-29T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1947-12-29T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1947-12-29T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1947-12-29T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-05-01T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1948-05-01T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1948-05-01T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1948-05-01T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1948-10-30T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1948-10-30T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1948-10-30T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1948-10-30T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1948-05-01T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1948-05-01T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1948-05-01T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1948-05-01T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1948-10-30T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1948-10-30T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1948-10-30T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1948-10-30T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-02T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1949-04-02T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1949-04-02T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1949-04-02T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1949-10-29T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1949-10-29T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1949-10-29T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1949-10-29T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1949-04-02T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1949-04-02T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1949-04-02T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1949-04-02T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1949-10-29T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1949-10-29T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1949-10-29T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1949-10-29T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-01T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1950-04-01T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1950-04-01T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1950-04-01T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1950-10-28T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1950-10-28T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1950-10-28T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1950-10-28T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1950-04-01T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1950-04-01T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1950-04-01T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1950-04-01T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1950-10-28T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1950-10-28T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1950-10-28T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1950-10-28T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-03-31T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1951-03-31T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1951-03-31T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1951-03-31T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1951-10-27T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1951-10-27T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1951-10-27T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1951-10-27T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1951-03-31T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1951-03-31T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1951-03-31T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1951-03-31T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1951-10-27T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1951-10-27T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1951-10-27T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1951-10-27T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-05T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1952-04-05T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1952-04-05T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1952-04-05T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1952-10-24T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1952-10-24T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1952-10-24T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1952-10-24T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1952-04-05T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1952-04-05T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1952-04-05T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1952-04-05T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1952-10-24T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1952-10-24T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1952-10-24T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1952-10-24T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-04T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1953-04-04T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1953-04-04T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1953-04-04T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1953-10-31T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1953-10-31T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1953-10-31T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1953-10-31T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1953-04-04T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1953-04-04T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1953-04-04T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1953-04-04T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1953-10-31T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1953-10-31T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1953-10-31T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1953-10-31T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-03-20T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1954-03-20T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1954-03-20T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1954-03-20T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1954-10-30T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1954-10-30T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1954-10-30T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1954-10-30T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1954-03-20T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1954-03-20T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1954-03-20T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1954-03-20T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1954-10-30T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1954-10-30T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1954-10-30T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1954-10-30T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-03-19T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1955-03-19T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1955-03-19T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1955-03-19T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1955-11-05T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1955-11-05T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1955-11-05T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1955-11-05T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1955-03-19T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1955-03-19T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1955-03-19T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1955-03-19T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1955-11-05T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1955-11-05T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1955-11-05T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1955-11-05T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-03-17T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1956-03-17T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1956-03-17T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1956-03-17T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1956-11-03T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1956-11-03T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1956-11-03T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1956-11-03T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1956-03-17T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1956-03-17T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1956-03-17T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1956-03-17T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1956-11-03T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1956-11-03T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1956-11-03T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1956-11-03T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-03-23T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1957-03-23T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1957-03-23T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1957-03-23T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1957-11-02T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1957-11-02T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1957-11-02T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1957-11-02T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1957-03-23T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1957-03-23T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1957-03-23T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1957-03-23T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1957-11-02T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1957-11-02T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1957-11-02T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1957-11-02T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-03-22T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1958-03-22T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1958-03-22T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1958-03-22T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1958-11-01T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1958-11-01T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1958-11-01T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1958-11-01T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1958-03-22T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1958-03-22T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1958-03-22T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1958-03-22T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1958-11-01T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1958-11-01T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1958-11-01T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1958-11-01T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-03-21T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1959-03-21T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1959-03-21T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1959-03-21T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1959-10-31T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1959-10-31T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1959-10-31T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1959-10-31T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1959-03-21T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1959-03-21T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1959-03-21T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1959-03-21T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1959-10-31T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1959-10-31T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1959-10-31T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1959-10-31T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-03-19T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1960-03-19T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1960-03-19T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1960-03-19T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1960-11-05T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1960-11-05T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1960-11-05T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1960-11-05T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1960-03-19T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1960-03-19T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1960-03-19T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1960-03-19T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1960-11-05T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1960-11-05T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1960-11-05T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1960-11-05T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-03-18T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1961-03-18T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1961-03-18T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1961-03-18T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1961-11-04T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1961-11-04T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1961-11-04T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1961-11-04T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1961-03-18T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1961-03-18T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1961-03-18T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1961-03-18T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1961-11-04T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1961-11-04T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1961-11-04T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1961-11-04T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-03-17T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1962-03-17T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1962-03-17T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1962-03-17T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1962-11-03T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1962-11-03T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1962-11-03T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1962-11-03T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1962-03-17T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1962-03-17T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1962-03-17T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1962-03-17T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1962-11-03T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1962-11-03T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1962-11-03T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1962-11-03T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-03-23T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1963-03-23T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1963-03-23T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1963-03-23T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1963-11-02T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1963-11-02T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1963-11-02T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1963-11-02T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1963-03-23T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1963-03-23T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1963-03-23T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1963-03-23T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1963-11-02T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1963-11-02T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1963-11-02T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1963-11-02T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-21T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1964-03-21T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1964-03-21T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1964-03-21T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1964-10-31T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1964-10-31T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1964-10-31T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1964-10-31T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1964-03-21T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1964-03-21T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1964-03-21T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1964-03-21T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1964-10-31T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1964-10-31T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1964-10-31T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1964-10-31T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-17T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1965-04-17T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1965-04-17T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1965-04-17T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1965-10-16T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1965-10-16T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1965-10-16T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1965-10-16T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1965-04-17T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1965-04-17T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1965-04-17T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1965-04-17T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1965-10-16T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1965-10-16T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1965-10-16T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1965-10-16T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-16T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1966-04-16T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1966-04-16T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1966-04-16T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1966-10-15T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1966-10-15T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1966-10-15T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1966-10-15T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1966-04-16T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1966-04-16T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1966-04-16T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1966-04-16T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1966-10-15T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1966-10-15T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1966-10-15T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1966-10-15T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-15T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1967-04-15T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1967-04-15T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1967-04-15T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1967-10-21T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1967-10-21T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1967-10-21T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1967-10-21T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1967-04-15T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1967-04-15T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1967-04-15T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1967-04-15T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1967-10-21T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1967-10-21T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1967-10-21T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1967-10-21T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-20T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1968-04-20T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1968-04-20T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1968-04-20T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1968-10-19T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1968-10-19T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1968-10-19T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1968-10-19T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1968-04-20T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1968-04-20T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1968-04-20T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1968-04-20T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1968-10-19T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1968-10-19T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1968-10-19T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1968-10-19T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-19T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1969-04-19T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1969-04-19T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1969-04-19T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1969-10-18T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1969-10-18T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1969-10-18T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1969-10-18T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1969-04-19T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1969-04-19T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1969-04-19T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1969-04-19T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1969-10-18T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1969-10-18T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1969-10-18T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1969-10-18T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-18T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1970-04-18T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1970-04-18T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1970-04-18T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1970-10-17T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1970-10-17T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1970-10-17T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1970-10-17T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1970-04-18T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1970-04-18T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1970-04-18T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1970-04-18T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1970-10-17T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1970-10-17T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1970-10-17T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1970-10-17T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-17T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1971-04-17T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1971-04-17T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1971-04-17T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1971-10-16T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1971-10-16T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1971-10-16T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1971-10-16T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1971-04-17T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1971-04-17T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1971-04-17T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1971-04-17T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1971-10-16T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1971-10-16T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1971-10-16T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1971-10-16T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-15T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1972-04-15T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1972-04-15T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1972-04-15T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1972-10-21T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1972-10-21T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1972-10-21T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1972-10-21T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1972-04-15T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1972-04-15T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1972-04-15T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1972-04-15T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1972-10-21T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1972-10-21T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1972-10-21T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1972-10-21T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-21T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1973-04-21T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1973-04-21T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1973-04-21T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1973-10-20T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1973-10-20T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1973-10-20T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1973-10-20T18:30:00+00:00 should be 02:30:00 HKT"); - t.equal(moment("1973-12-29T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1973-12-29T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1973-12-29T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1973-12-29T19:30:00+00:00 should be 04:30:00 HKST"); - - t.equal(moment("1973-04-21T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1973-04-21T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1973-04-21T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1973-04-21T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1973-10-20T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1973-10-20T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1973-10-20T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1973-10-20T18:30:00+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1973-12-29T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1973-12-29T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1973-12-29T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1973-12-29T19:30:00+00:00 should be -540 minutes offset in HKST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-10-19T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1974-10-19T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1974-10-19T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1974-10-19T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1974-10-19T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1974-10-19T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1974-10-19T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1974-10-19T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-19T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1975-04-19T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1975-04-19T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1975-04-19T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1975-10-18T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1975-10-18T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1975-10-18T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1975-10-18T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1975-04-19T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1975-04-19T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1975-04-19T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1975-04-19T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1975-10-18T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1975-10-18T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1975-10-18T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1975-10-18T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-17T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1976-04-17T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1976-04-17T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1976-04-17T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1976-10-16T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1976-10-16T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1976-10-16T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1976-10-16T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1976-04-17T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1976-04-17T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1976-04-17T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1976-04-17T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1976-10-16T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1976-10-16T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1976-10-16T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1976-10-16T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-05-12T19:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1979-05-12T19:29:59+00:00 should be 03:29:59 HKT"); - t.equal(moment("1979-05-12T19:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "04:30:00", "1979-05-12T19:30:00+00:00 should be 04:30:00 HKST"); - t.equal(moment("1979-10-20T18:29:59+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "03:29:59", "1979-10-20T18:29:59+00:00 should be 03:29:59 HKST"); - t.equal(moment("1979-10-20T18:30:00+00:00").tz("Asia/Hong_Kong").format("HH:mm:ss"), "02:30:00", "1979-10-20T18:30:00+00:00 should be 02:30:00 HKT"); - - t.equal(moment("1979-05-12T19:29:59+00:00").tz("Asia/Hong_Kong").zone(), -480, "1979-05-12T19:29:59+00:00 should be -480 minutes offset in HKT"); - t.equal(moment("1979-05-12T19:30:00+00:00").tz("Asia/Hong_Kong").zone(), -540, "1979-05-12T19:30:00+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1979-10-20T18:29:59+00:00").tz("Asia/Hong_Kong").zone(), -540, "1979-10-20T18:29:59+00:00 should be -540 minutes offset in HKST"); - t.equal(moment("1979-10-20T18:30:00+00:00").tz("Asia/Hong_Kong").zone(), -480, "1979-10-20T18:30:00+00:00 should be -480 minutes offset in HKT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/hovd.js b/tests/asia/hovd.js deleted file mode 100644 index 16afe589..00000000 --- a/tests/asia/hovd.js +++ /dev/null @@ -1,332 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Hovd"] = { - - "1905" : function (t) { - t.equal(moment("1905-07-31T17:53:23+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1905-07-31T17:53:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1905-07-31T17:53:24+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:53:24", "1905-07-31T17:53:24+00:00 should be 23:53:24 HOVT"); - - t.equal(moment("1905-07-31T17:53:23+00:00").tz("Asia/Hovd").zone(), -21996 / 60, "1905-07-31T17:53:23+00:00 should be -21996 / 60 minutes offset in LMT"); - t.equal(moment("1905-07-31T17:53:24+00:00").tz("Asia/Hovd").zone(), -360, "1905-07-31T17:53:24+00:00 should be -360 minutes offset in HOVT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-12-31T17:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1977-12-31T17:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1977-12-31T18:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1977-12-31T18:00:00+00:00 should be 01:00:00 HOVT"); - - t.equal(moment("1977-12-31T17:59:59+00:00").tz("Asia/Hovd").zone(), -360, "1977-12-31T17:59:59+00:00 should be -360 minutes offset in HOVT"); - t.equal(moment("1977-12-31T18:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1977-12-31T18:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1983-03-31T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1983-03-31T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1983-03-31T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1983-09-30T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1983-09-30T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1983-09-30T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1983-09-30T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1983-03-31T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1983-03-31T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1983-03-31T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1983-03-31T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1983-09-30T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1983-09-30T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1983-09-30T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1983-09-30T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1984-03-31T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1984-03-31T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1984-03-31T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1984-09-29T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1984-09-29T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1984-09-29T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1984-09-29T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1984-03-31T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1984-03-31T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1984-03-31T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1984-03-31T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1984-09-29T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1984-09-29T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1984-09-29T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1984-09-29T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1985-03-30T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1985-03-30T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1985-03-30T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1985-09-28T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1985-09-28T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1985-09-28T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1985-09-28T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1985-03-30T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1985-03-30T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1985-03-30T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1985-03-30T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1985-09-28T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1985-09-28T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1985-09-28T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1985-09-28T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1986-03-29T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1986-03-29T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1986-03-29T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1986-09-27T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1986-09-27T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1986-09-27T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1986-09-27T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1986-03-29T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1986-03-29T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1986-03-29T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1986-03-29T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1986-09-27T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1986-09-27T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1986-09-27T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1986-09-27T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1987-03-28T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1987-03-28T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1987-03-28T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1987-09-26T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1987-09-26T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1987-09-26T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1987-09-26T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1987-03-28T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1987-03-28T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1987-03-28T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1987-03-28T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1987-09-26T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1987-09-26T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1987-09-26T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1987-09-26T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1988-03-26T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1988-03-26T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1988-03-26T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1988-09-24T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1988-09-24T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1988-09-24T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1988-09-24T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1988-03-26T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1988-03-26T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1988-03-26T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1988-03-26T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1988-09-24T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1988-09-24T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1988-09-24T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1988-09-24T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1989-03-25T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1989-03-25T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1989-03-25T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1989-09-23T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1989-09-23T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1989-09-23T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1989-09-23T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1989-03-25T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1989-03-25T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1989-03-25T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1989-03-25T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1989-09-23T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1989-09-23T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1989-09-23T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1989-09-23T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1990-03-24T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1990-03-24T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1990-03-24T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1990-09-29T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1990-09-29T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1990-09-29T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1990-09-29T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1990-03-24T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1990-03-24T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1990-03-24T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1990-03-24T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1990-09-29T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1990-09-29T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1990-09-29T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1990-09-29T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1991-03-30T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1991-03-30T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1991-03-30T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1991-09-28T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1991-09-28T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1991-09-28T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1991-09-28T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1991-03-30T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1991-03-30T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1991-03-30T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1991-03-30T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1991-09-28T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1991-09-28T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1991-09-28T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1991-09-28T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1992-03-28T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1992-03-28T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1992-03-28T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1992-09-26T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1992-09-26T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1992-09-26T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1992-09-26T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1992-03-28T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1992-03-28T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1992-03-28T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1992-03-28T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1992-09-26T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1992-09-26T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1992-09-26T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1992-09-26T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1993-03-27T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1993-03-27T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1993-03-27T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1993-09-25T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1993-09-25T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1993-09-25T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1993-09-25T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1993-03-27T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1993-03-27T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1993-03-27T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1993-03-27T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1993-09-25T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1993-09-25T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1993-09-25T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1993-09-25T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1994-03-26T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1994-03-26T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1994-03-26T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1994-09-24T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1994-09-24T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1994-09-24T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1994-09-24T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1994-03-26T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1994-03-26T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1994-03-26T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1994-03-26T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1994-09-24T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1994-09-24T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1994-09-24T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1994-09-24T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1995-03-25T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1995-03-25T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1995-03-25T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1995-09-23T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1995-09-23T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1995-09-23T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1995-09-23T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1995-03-25T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1995-03-25T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1995-03-25T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1995-03-25T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1995-09-23T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1995-09-23T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1995-09-23T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1995-09-23T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1996-03-30T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1996-03-30T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1996-03-30T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1996-09-28T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1996-09-28T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1996-09-28T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1996-09-28T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1996-03-30T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1996-03-30T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1996-03-30T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1996-03-30T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1996-09-28T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1996-09-28T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1996-09-28T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1996-09-28T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1997-03-29T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1997-03-29T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1997-03-29T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1997-09-27T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1997-09-27T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1997-09-27T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1997-09-27T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1997-03-29T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1997-03-29T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1997-03-29T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1997-03-29T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1997-09-27T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1997-09-27T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1997-09-27T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1997-09-27T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T16:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1998-03-28T16:59:59+00:00 should be 23:59:59 HOVT"); - t.equal(moment("1998-03-28T17:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "1998-03-28T17:00:00+00:00 should be 01:00:00 HOVST"); - t.equal(moment("1998-09-26T15:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:59:59", "1998-09-26T15:59:59+00:00 should be 23:59:59 HOVST"); - t.equal(moment("1998-09-26T16:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "23:00:00", "1998-09-26T16:00:00+00:00 should be 23:00:00 HOVT"); - - t.equal(moment("1998-03-28T16:59:59+00:00").tz("Asia/Hovd").zone(), -420, "1998-03-28T16:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("1998-03-28T17:00:00+00:00").tz("Asia/Hovd").zone(), -480, "1998-03-28T17:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1998-09-26T15:59:59+00:00").tz("Asia/Hovd").zone(), -480, "1998-09-26T15:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("1998-09-26T16:00:00+00:00").tz("Asia/Hovd").zone(), -420, "1998-09-26T16:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-27T18:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2001-04-27T18:59:59+00:00 should be 01:59:59 HOVT"); - t.equal(moment("2001-04-27T19:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "03:00:00", "2001-04-27T19:00:00+00:00 should be 03:00:00 HOVST"); - t.equal(moment("2001-09-28T17:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2001-09-28T17:59:59+00:00 should be 01:59:59 HOVST"); - t.equal(moment("2001-09-28T18:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "2001-09-28T18:00:00+00:00 should be 01:00:00 HOVT"); - - t.equal(moment("2001-04-27T18:59:59+00:00").tz("Asia/Hovd").zone(), -420, "2001-04-27T18:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("2001-04-27T19:00:00+00:00").tz("Asia/Hovd").zone(), -480, "2001-04-27T19:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2001-09-28T17:59:59+00:00").tz("Asia/Hovd").zone(), -480, "2001-09-28T17:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2001-09-28T18:00:00+00:00").tz("Asia/Hovd").zone(), -420, "2001-09-28T18:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-29T18:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2002-03-29T18:59:59+00:00 should be 01:59:59 HOVT"); - t.equal(moment("2002-03-29T19:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "03:00:00", "2002-03-29T19:00:00+00:00 should be 03:00:00 HOVST"); - t.equal(moment("2002-09-27T17:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2002-09-27T17:59:59+00:00 should be 01:59:59 HOVST"); - t.equal(moment("2002-09-27T18:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "2002-09-27T18:00:00+00:00 should be 01:00:00 HOVT"); - - t.equal(moment("2002-03-29T18:59:59+00:00").tz("Asia/Hovd").zone(), -420, "2002-03-29T18:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("2002-03-29T19:00:00+00:00").tz("Asia/Hovd").zone(), -480, "2002-03-29T19:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2002-09-27T17:59:59+00:00").tz("Asia/Hovd").zone(), -480, "2002-09-27T17:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2002-09-27T18:00:00+00:00").tz("Asia/Hovd").zone(), -420, "2002-09-27T18:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-28T18:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2003-03-28T18:59:59+00:00 should be 01:59:59 HOVT"); - t.equal(moment("2003-03-28T19:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "03:00:00", "2003-03-28T19:00:00+00:00 should be 03:00:00 HOVST"); - t.equal(moment("2003-09-26T17:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2003-09-26T17:59:59+00:00 should be 01:59:59 HOVST"); - t.equal(moment("2003-09-26T18:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "2003-09-26T18:00:00+00:00 should be 01:00:00 HOVT"); - - t.equal(moment("2003-03-28T18:59:59+00:00").tz("Asia/Hovd").zone(), -420, "2003-03-28T18:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("2003-03-28T19:00:00+00:00").tz("Asia/Hovd").zone(), -480, "2003-03-28T19:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2003-09-26T17:59:59+00:00").tz("Asia/Hovd").zone(), -480, "2003-09-26T17:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2003-09-26T18:00:00+00:00").tz("Asia/Hovd").zone(), -420, "2003-09-26T18:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-26T18:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2004-03-26T18:59:59+00:00 should be 01:59:59 HOVT"); - t.equal(moment("2004-03-26T19:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "03:00:00", "2004-03-26T19:00:00+00:00 should be 03:00:00 HOVST"); - t.equal(moment("2004-09-24T17:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2004-09-24T17:59:59+00:00 should be 01:59:59 HOVST"); - t.equal(moment("2004-09-24T18:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "2004-09-24T18:00:00+00:00 should be 01:00:00 HOVT"); - - t.equal(moment("2004-03-26T18:59:59+00:00").tz("Asia/Hovd").zone(), -420, "2004-03-26T18:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("2004-03-26T19:00:00+00:00").tz("Asia/Hovd").zone(), -480, "2004-03-26T19:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2004-09-24T17:59:59+00:00").tz("Asia/Hovd").zone(), -480, "2004-09-24T17:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2004-09-24T18:00:00+00:00").tz("Asia/Hovd").zone(), -420, "2004-09-24T18:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-25T18:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2005-03-25T18:59:59+00:00 should be 01:59:59 HOVT"); - t.equal(moment("2005-03-25T19:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "03:00:00", "2005-03-25T19:00:00+00:00 should be 03:00:00 HOVST"); - t.equal(moment("2005-09-23T17:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2005-09-23T17:59:59+00:00 should be 01:59:59 HOVST"); - t.equal(moment("2005-09-23T18:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "2005-09-23T18:00:00+00:00 should be 01:00:00 HOVT"); - - t.equal(moment("2005-03-25T18:59:59+00:00").tz("Asia/Hovd").zone(), -420, "2005-03-25T18:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("2005-03-25T19:00:00+00:00").tz("Asia/Hovd").zone(), -480, "2005-03-25T19:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2005-09-23T17:59:59+00:00").tz("Asia/Hovd").zone(), -480, "2005-09-23T17:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2005-09-23T18:00:00+00:00").tz("Asia/Hovd").zone(), -420, "2005-09-23T18:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-24T18:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2006-03-24T18:59:59+00:00 should be 01:59:59 HOVT"); - t.equal(moment("2006-03-24T19:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "03:00:00", "2006-03-24T19:00:00+00:00 should be 03:00:00 HOVST"); - t.equal(moment("2006-09-29T17:59:59+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:59:59", "2006-09-29T17:59:59+00:00 should be 01:59:59 HOVST"); - t.equal(moment("2006-09-29T18:00:00+00:00").tz("Asia/Hovd").format("HH:mm:ss"), "01:00:00", "2006-09-29T18:00:00+00:00 should be 01:00:00 HOVT"); - - t.equal(moment("2006-03-24T18:59:59+00:00").tz("Asia/Hovd").zone(), -420, "2006-03-24T18:59:59+00:00 should be -420 minutes offset in HOVT"); - t.equal(moment("2006-03-24T19:00:00+00:00").tz("Asia/Hovd").zone(), -480, "2006-03-24T19:00:00+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2006-09-29T17:59:59+00:00").tz("Asia/Hovd").zone(), -480, "2006-09-29T17:59:59+00:00 should be -480 minutes offset in HOVST"); - t.equal(moment("2006-09-29T18:00:00+00:00").tz("Asia/Hovd").zone(), -420, "2006-09-29T18:00:00+00:00 should be -420 minutes offset in HOVT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/irkutsk.js b/tests/asia/irkutsk.js deleted file mode 100644 index 4500b5a4..00000000 --- a/tests/asia/irkutsk.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Irkutsk"] = { - - "1920" : function (t) { - t.equal(moment("1920-01-24T17:02:39+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:59:59", "1920-01-24T17:02:39+00:00 should be 23:59:59 IMT"); - t.equal(moment("1920-01-24T17:02:40+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "00:02:40", "1920-01-24T17:02:40+00:00 should be 00:02:40 IRKT"); - - t.equal(moment("1920-01-24T17:02:39+00:00").tz("Asia/Irkutsk").zone(), -25040 / 60, "1920-01-24T17:02:39+00:00 should be -25040 / 60 minutes offset in IMT"); - t.equal(moment("1920-01-24T17:02:40+00:00").tz("Asia/Irkutsk").zone(), -420, "1920-01-24T17:02:40+00:00 should be -420 minutes offset in IRKT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T16:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:59:59", "1930-06-20T16:59:59+00:00 should be 23:59:59 IRKT"); - t.equal(moment("1930-06-20T17:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:00:00", "1930-06-20T17:00:00+00:00 should be 01:00:00 IRKT"); - - t.equal(moment("1930-06-20T16:59:59+00:00").tz("Asia/Irkutsk").zone(), -420, "1930-06-20T16:59:59+00:00 should be -420 minutes offset in IRKT"); - t.equal(moment("1930-06-20T17:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1930-06-20T17:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T15:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:59:59", "1981-03-31T15:59:59+00:00 should be 23:59:59 IRKT"); - t.equal(moment("1981-03-31T16:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:00:00", "1981-03-31T16:00:00+00:00 should be 01:00:00 IRKST"); - t.equal(moment("1981-09-30T14:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:59:59", "1981-09-30T14:59:59+00:00 should be 23:59:59 IRKST"); - t.equal(moment("1981-09-30T15:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:00:00", "1981-09-30T15:00:00+00:00 should be 23:00:00 IRKT"); - - t.equal(moment("1981-03-31T15:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1981-03-31T15:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1981-03-31T16:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1981-03-31T16:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1981-09-30T14:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1981-09-30T14:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1981-09-30T15:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1981-09-30T15:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T15:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:59:59", "1982-03-31T15:59:59+00:00 should be 23:59:59 IRKT"); - t.equal(moment("1982-03-31T16:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:00:00", "1982-03-31T16:00:00+00:00 should be 01:00:00 IRKST"); - t.equal(moment("1982-09-30T14:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:59:59", "1982-09-30T14:59:59+00:00 should be 23:59:59 IRKST"); - t.equal(moment("1982-09-30T15:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:00:00", "1982-09-30T15:00:00+00:00 should be 23:00:00 IRKT"); - - t.equal(moment("1982-03-31T15:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1982-03-31T15:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1982-03-31T16:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1982-03-31T16:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1982-09-30T14:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1982-09-30T14:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1982-09-30T15:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1982-09-30T15:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T15:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:59:59", "1983-03-31T15:59:59+00:00 should be 23:59:59 IRKT"); - t.equal(moment("1983-03-31T16:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:00:00", "1983-03-31T16:00:00+00:00 should be 01:00:00 IRKST"); - t.equal(moment("1983-09-30T14:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:59:59", "1983-09-30T14:59:59+00:00 should be 23:59:59 IRKST"); - t.equal(moment("1983-09-30T15:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:00:00", "1983-09-30T15:00:00+00:00 should be 23:00:00 IRKT"); - - t.equal(moment("1983-03-31T15:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1983-03-31T15:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1983-03-31T16:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1983-03-31T16:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1983-09-30T14:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1983-09-30T14:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1983-09-30T15:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1983-09-30T15:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T15:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "23:59:59", "1984-03-31T15:59:59+00:00 should be 23:59:59 IRKT"); - t.equal(moment("1984-03-31T16:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:00:00", "1984-03-31T16:00:00+00:00 should be 01:00:00 IRKST"); - t.equal(moment("1984-09-29T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1984-09-29T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1984-09-29T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1984-09-29T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1984-03-31T15:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1984-03-31T15:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1984-03-31T16:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1984-03-31T16:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1984-09-29T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1984-09-29T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1984-09-29T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1984-09-29T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1985-03-30T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1985-03-30T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1985-03-30T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1985-09-28T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1985-09-28T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1985-09-28T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1985-09-28T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1985-03-30T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1985-03-30T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1985-03-30T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1985-03-30T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1985-09-28T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1985-09-28T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1985-09-28T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1985-09-28T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1986-03-29T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1986-03-29T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1986-03-29T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1986-09-27T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1986-09-27T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1986-09-27T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1986-09-27T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1986-03-29T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1986-03-29T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1986-03-29T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1986-03-29T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1986-09-27T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1986-09-27T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1986-09-27T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1986-09-27T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1987-03-28T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1987-03-28T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1987-03-28T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1987-09-26T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1987-09-26T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1987-09-26T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1987-09-26T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1987-03-28T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1987-03-28T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1987-03-28T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1987-03-28T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1987-09-26T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1987-09-26T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1987-09-26T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1987-09-26T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1988-03-26T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1988-03-26T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1988-03-26T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1988-09-24T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1988-09-24T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1988-09-24T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1988-09-24T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1988-03-26T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1988-03-26T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1988-03-26T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1988-03-26T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1988-09-24T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1988-09-24T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1988-09-24T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1988-09-24T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1989-03-25T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1989-03-25T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1989-03-25T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1989-09-23T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1989-09-23T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1989-09-23T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1989-09-23T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1989-03-25T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1989-03-25T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1989-03-25T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1989-03-25T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1989-09-23T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1989-09-23T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1989-09-23T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1989-09-23T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1990-03-24T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1990-03-24T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1990-03-24T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1990-09-29T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1990-09-29T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1990-09-29T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1990-09-29T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1990-03-24T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1990-03-24T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1990-03-24T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1990-03-24T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1990-09-29T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1990-09-29T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1990-09-29T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1990-09-29T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1991-03-30T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1991-03-30T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1991-03-30T18:00:00+00:00 should be 02:00:00 IRKST"); - t.equal(moment("1991-09-28T18:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1991-09-28T18:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1991-09-28T19:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1991-09-28T19:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1991-03-30T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1991-03-30T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1991-03-30T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1991-03-30T18:00:00+00:00 should be -480 minutes offset in IRKST"); - t.equal(moment("1991-09-28T18:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1991-09-28T18:59:59+00:00 should be -480 minutes offset in IRKST"); - t.equal(moment("1991-09-28T19:00:00+00:00").tz("Asia/Irkutsk").zone(), -420, "1991-09-28T19:00:00+00:00 should be -420 minutes offset in IRKT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T18:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1992-01-18T18:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1992-01-18T19:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1992-01-18T19:00:00+00:00 should be 03:00:00 IRKT"); - t.equal(moment("1992-03-28T14:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "22:59:59", "1992-03-28T14:59:59+00:00 should be 22:59:59 IRKT"); - t.equal(moment("1992-03-28T15:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "00:00:00", "1992-03-28T15:00:00+00:00 should be 00:00:00 IRKST"); - t.equal(moment("1992-09-26T13:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "22:59:59", "1992-09-26T13:59:59+00:00 should be 22:59:59 IRKST"); - t.equal(moment("1992-09-26T14:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "22:00:00", "1992-09-26T14:00:00+00:00 should be 22:00:00 IRKT"); - - t.equal(moment("1992-01-18T18:59:59+00:00").tz("Asia/Irkutsk").zone(), -420, "1992-01-18T18:59:59+00:00 should be -420 minutes offset in IRKT"); - t.equal(moment("1992-01-18T19:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1992-01-18T19:00:00+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1992-03-28T14:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1992-03-28T14:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1992-03-28T15:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1992-03-28T15:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1992-09-26T13:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1992-09-26T13:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1992-09-26T14:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1992-09-26T14:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1993-03-27T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1993-03-27T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1993-03-27T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1993-09-25T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1993-09-25T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1993-09-25T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1993-09-25T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1993-03-27T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1993-03-27T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1993-03-27T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1993-03-27T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1993-09-25T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1993-09-25T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1993-09-25T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1993-09-25T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1994-03-26T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1994-03-26T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1994-03-26T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1994-09-24T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1994-09-24T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1994-09-24T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1994-09-24T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1994-03-26T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1994-03-26T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1994-03-26T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1994-03-26T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1994-09-24T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1994-09-24T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1994-09-24T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1994-09-24T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1995-03-25T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1995-03-25T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1995-03-25T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1995-09-23T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1995-09-23T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1995-09-23T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1995-09-23T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1995-03-25T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1995-03-25T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1995-03-25T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1995-03-25T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1995-09-23T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1995-09-23T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1995-09-23T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1995-09-23T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1996-03-30T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1996-03-30T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1996-03-30T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1996-10-26T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1996-10-26T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1996-10-26T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1996-10-26T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1996-03-30T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1996-03-30T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1996-03-30T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1996-03-30T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1996-10-26T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1996-10-26T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1996-10-26T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1996-10-26T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1997-03-29T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1997-03-29T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1997-03-29T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1997-10-25T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1997-10-25T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1997-10-25T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1997-10-25T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1997-03-29T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1997-03-29T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1997-03-29T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1997-03-29T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1997-10-25T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1997-10-25T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1997-10-25T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1997-10-25T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1998-03-28T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1998-03-28T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1998-03-28T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1998-10-24T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1998-10-24T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1998-10-24T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1998-10-24T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1998-03-28T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1998-03-28T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1998-03-28T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1998-03-28T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1998-10-24T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1998-10-24T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1998-10-24T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1998-10-24T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "1999-03-27T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("1999-03-27T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "1999-03-27T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("1999-10-30T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "1999-10-30T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("1999-10-30T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "1999-10-30T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("1999-03-27T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "1999-03-27T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("1999-03-27T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "1999-03-27T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1999-10-30T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "1999-10-30T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("1999-10-30T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "1999-10-30T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2000-03-25T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2000-03-25T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2000-03-25T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2000-10-28T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2000-10-28T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2000-10-28T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2000-10-28T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2000-03-25T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2000-03-25T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2000-03-25T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2000-03-25T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2000-10-28T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2000-10-28T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2000-10-28T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2000-10-28T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2001-03-24T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2001-03-24T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2001-03-24T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2001-10-27T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2001-10-27T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2001-10-27T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2001-10-27T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2001-03-24T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2001-03-24T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2001-03-24T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2001-03-24T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2001-10-27T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2001-10-27T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2001-10-27T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2001-10-27T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2002-03-30T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2002-03-30T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2002-03-30T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2002-10-26T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2002-10-26T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2002-10-26T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2002-10-26T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2002-03-30T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2002-03-30T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2002-03-30T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2002-03-30T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2002-10-26T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2002-10-26T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2002-10-26T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2002-10-26T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2003-03-29T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2003-03-29T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2003-03-29T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2003-10-25T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2003-10-25T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2003-10-25T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2003-10-25T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2003-03-29T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2003-03-29T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2003-03-29T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2003-03-29T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2003-10-25T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2003-10-25T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2003-10-25T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2003-10-25T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2004-03-27T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2004-03-27T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2004-03-27T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2004-10-30T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2004-10-30T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2004-10-30T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2004-10-30T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2004-03-27T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2004-03-27T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2004-03-27T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2004-03-27T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2004-10-30T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2004-10-30T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2004-10-30T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2004-10-30T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2005-03-26T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2005-03-26T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2005-03-26T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2005-10-29T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2005-10-29T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2005-10-29T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2005-10-29T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2005-03-26T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2005-03-26T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2005-03-26T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2005-03-26T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2005-10-29T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2005-10-29T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2005-10-29T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2005-10-29T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2006-03-25T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2006-03-25T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2006-03-25T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2006-10-28T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2006-10-28T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2006-10-28T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2006-10-28T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2006-03-25T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2006-03-25T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2006-03-25T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2006-03-25T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2006-10-28T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2006-10-28T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2006-10-28T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2006-10-28T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2007-03-24T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2007-03-24T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2007-03-24T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2007-10-27T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2007-10-27T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2007-10-27T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2007-10-27T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2007-03-24T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2007-03-24T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2007-03-24T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2007-03-24T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2007-10-27T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2007-10-27T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2007-10-27T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2007-10-27T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2008-03-29T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2008-03-29T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2008-03-29T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2008-10-25T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2008-10-25T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2008-10-25T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2008-10-25T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2008-03-29T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2008-03-29T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2008-03-29T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2008-03-29T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2008-10-25T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2008-10-25T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2008-10-25T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2008-10-25T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2009-03-28T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2009-03-28T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2009-03-28T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2009-10-24T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2009-10-24T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2009-10-24T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2009-10-24T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2009-03-28T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2009-03-28T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2009-03-28T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2009-03-28T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2009-10-24T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2009-10-24T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2009-10-24T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2009-10-24T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2010-03-27T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2010-03-27T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2010-03-27T18:00:00+00:00 should be 03:00:00 IRKST"); - t.equal(moment("2010-10-30T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:59:59", "2010-10-30T17:59:59+00:00 should be 02:59:59 IRKST"); - t.equal(moment("2010-10-30T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "02:00:00", "2010-10-30T18:00:00+00:00 should be 02:00:00 IRKT"); - - t.equal(moment("2010-03-27T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2010-03-27T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2010-03-27T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2010-03-27T18:00:00+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2010-10-30T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -540, "2010-10-30T17:59:59+00:00 should be -540 minutes offset in IRKST"); - t.equal(moment("2010-10-30T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -480, "2010-10-30T18:00:00+00:00 should be -480 minutes offset in IRKT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T17:59:59+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "01:59:59", "2011-03-26T17:59:59+00:00 should be 01:59:59 IRKT"); - t.equal(moment("2011-03-26T18:00:00+00:00").tz("Asia/Irkutsk").format("HH:mm:ss"), "03:00:00", "2011-03-26T18:00:00+00:00 should be 03:00:00 IRKT"); - - t.equal(moment("2011-03-26T17:59:59+00:00").tz("Asia/Irkutsk").zone(), -480, "2011-03-26T17:59:59+00:00 should be -480 minutes offset in IRKT"); - t.equal(moment("2011-03-26T18:00:00+00:00").tz("Asia/Irkutsk").zone(), -540, "2011-03-26T18:00:00+00:00 should be -540 minutes offset in IRKT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/jakarta.js b/tests/asia/jakarta.js deleted file mode 100644 index 9c0c29cc..00000000 --- a/tests/asia/jakarta.js +++ /dev/null @@ -1,74 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Jakarta"] = { - - "1923" : function (t) { - t.equal(moment("1923-12-31T16:39:59+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "23:47:11", "1923-12-31T16:39:59+00:00 should be 23:47:11 JMT"); - t.equal(moment("1923-12-31T16:40:00+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "00:00:00", "1923-12-31T16:40:00+00:00 should be 00:00:00 JAVT"); - - t.equal(moment("1923-12-31T16:39:59+00:00").tz("Asia/Jakarta").zone(), -25632 / 60, "1923-12-31T16:39:59+00:00 should be -25632 / 60 minutes offset in JMT"); - t.equal(moment("1923-12-31T16:40:00+00:00").tz("Asia/Jakarta").zone(), -440, "1923-12-31T16:40:00+00:00 should be -440 minutes offset in JAVT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-10-31T16:39:59+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "23:59:59", "1932-10-31T16:39:59+00:00 should be 23:59:59 JAVT"); - t.equal(moment("1932-10-31T16:40:00+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "00:10:00", "1932-10-31T16:40:00+00:00 should be 00:10:00 WIT"); - - t.equal(moment("1932-10-31T16:39:59+00:00").tz("Asia/Jakarta").zone(), -440, "1932-10-31T16:39:59+00:00 should be -440 minutes offset in JAVT"); - t.equal(moment("1932-10-31T16:40:00+00:00").tz("Asia/Jakarta").zone(), -450, "1932-10-31T16:40:00+00:00 should be -450 minutes offset in WIT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-22T16:29:59+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "23:59:59", "1942-03-22T16:29:59+00:00 should be 23:59:59 WIT"); - t.equal(moment("1942-03-22T16:30:00+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "01:30:00", "1942-03-22T16:30:00+00:00 should be 01:30:00 JST"); - - t.equal(moment("1942-03-22T16:29:59+00:00").tz("Asia/Jakarta").zone(), -450, "1942-03-22T16:29:59+00:00 should be -450 minutes offset in WIT"); - t.equal(moment("1942-03-22T16:30:00+00:00").tz("Asia/Jakarta").zone(), -540, "1942-03-22T16:30:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-09-22T14:59:59+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "23:59:59", "1945-09-22T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-09-22T15:00:00+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "22:30:00", "1945-09-22T15:00:00+00:00 should be 22:30:00 WIT"); - - t.equal(moment("1945-09-22T14:59:59+00:00").tz("Asia/Jakarta").zone(), -540, "1945-09-22T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-09-22T15:00:00+00:00").tz("Asia/Jakarta").zone(), -450, "1945-09-22T15:00:00+00:00 should be -450 minutes offset in WIT"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-30T16:29:59+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "23:59:59", "1948-04-30T16:29:59+00:00 should be 23:59:59 WIT"); - t.equal(moment("1948-04-30T16:30:00+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "00:30:00", "1948-04-30T16:30:00+00:00 should be 00:30:00 WIT"); - - t.equal(moment("1948-04-30T16:29:59+00:00").tz("Asia/Jakarta").zone(), -450, "1948-04-30T16:29:59+00:00 should be -450 minutes offset in WIT"); - t.equal(moment("1948-04-30T16:30:00+00:00").tz("Asia/Jakarta").zone(), -480, "1948-04-30T16:30:00+00:00 should be -480 minutes offset in WIT"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T15:59:59+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "23:59:59", "1950-04-30T15:59:59+00:00 should be 23:59:59 WIT"); - t.equal(moment("1950-04-30T16:00:00+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "23:30:00", "1950-04-30T16:00:00+00:00 should be 23:30:00 WIT"); - - t.equal(moment("1950-04-30T15:59:59+00:00").tz("Asia/Jakarta").zone(), -480, "1950-04-30T15:59:59+00:00 should be -480 minutes offset in WIT"); - t.equal(moment("1950-04-30T16:00:00+00:00").tz("Asia/Jakarta").zone(), -450, "1950-04-30T16:00:00+00:00 should be -450 minutes offset in WIT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-31T16:29:59+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "23:59:59", "1963-12-31T16:29:59+00:00 should be 23:59:59 WIT"); - t.equal(moment("1963-12-31T16:30:00+00:00").tz("Asia/Jakarta").format("HH:mm:ss"), "23:30:00", "1963-12-31T16:30:00+00:00 should be 23:30:00 WIT"); - - t.equal(moment("1963-12-31T16:29:59+00:00").tz("Asia/Jakarta").zone(), -450, "1963-12-31T16:29:59+00:00 should be -450 minutes offset in WIT"); - t.equal(moment("1963-12-31T16:30:00+00:00").tz("Asia/Jakarta").zone(), -420, "1963-12-31T16:30:00+00:00 should be -420 minutes offset in WIT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/jayapura.js b/tests/asia/jayapura.js deleted file mode 100644 index 8adcd644..00000000 --- a/tests/asia/jayapura.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Jayapura"] = { - - "1932" : function (t) { - t.equal(moment("1932-10-31T14:37:11+00:00").tz("Asia/Jayapura").format("HH:mm:ss"), "23:59:59", "1932-10-31T14:37:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1932-10-31T14:37:12+00:00").tz("Asia/Jayapura").format("HH:mm:ss"), "23:37:12", "1932-10-31T14:37:12+00:00 should be 23:37:12 EIT"); - - t.equal(moment("1932-10-31T14:37:11+00:00").tz("Asia/Jayapura").zone(), -33768 / 60, "1932-10-31T14:37:11+00:00 should be -33768 / 60 minutes offset in LMT"); - t.equal(moment("1932-10-31T14:37:12+00:00").tz("Asia/Jayapura").zone(), -540, "1932-10-31T14:37:12+00:00 should be -540 minutes offset in EIT"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-08-31T14:59:59+00:00").tz("Asia/Jayapura").format("HH:mm:ss"), "23:59:59", "1944-08-31T14:59:59+00:00 should be 23:59:59 EIT"); - t.equal(moment("1944-08-31T15:00:00+00:00").tz("Asia/Jayapura").format("HH:mm:ss"), "00:30:00", "1944-08-31T15:00:00+00:00 should be 00:30:00 CST"); - - t.equal(moment("1944-08-31T14:59:59+00:00").tz("Asia/Jayapura").zone(), -540, "1944-08-31T14:59:59+00:00 should be -540 minutes offset in EIT"); - t.equal(moment("1944-08-31T15:00:00+00:00").tz("Asia/Jayapura").zone(), -570, "1944-08-31T15:00:00+00:00 should be -570 minutes offset in CST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-31T14:29:59+00:00").tz("Asia/Jayapura").format("HH:mm:ss"), "23:59:59", "1963-12-31T14:29:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1963-12-31T14:30:00+00:00").tz("Asia/Jayapura").format("HH:mm:ss"), "23:30:00", "1963-12-31T14:30:00+00:00 should be 23:30:00 EIT"); - - t.equal(moment("1963-12-31T14:29:59+00:00").tz("Asia/Jayapura").zone(), -570, "1963-12-31T14:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1963-12-31T14:30:00+00:00").tz("Asia/Jayapura").zone(), -540, "1963-12-31T14:30:00+00:00 should be -540 minutes offset in EIT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/jerusalem.js b/tests/asia/jerusalem.js deleted file mode 100644 index fbd83db6..00000000 --- a/tests/asia/jerusalem.js +++ /dev/null @@ -1,1004 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Jerusalem"] = { - - "1917" : function (t) { - t.equal(moment("1917-12-31T21:39:19+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1917-12-31T21:39:19+00:00 should be 23:59:59 JMT"); - t.equal(moment("1917-12-31T21:39:20+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:39:20", "1917-12-31T21:39:20+00:00 should be 23:39:20 IST"); - - t.equal(moment("1917-12-31T21:39:19+00:00").tz("Asia/Jerusalem").zone(), -8440 / 60, "1917-12-31T21:39:19+00:00 should be -8440 / 60 minutes offset in JMT"); - t.equal(moment("1917-12-31T21:39:20+00:00").tz("Asia/Jerusalem").zone(), -120, "1917-12-31T21:39:20+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-05-31T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1940-05-31T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1940-05-31T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1940-05-31T22:00:00+00:00 should be 01:00:00 IDT"); - - t.equal(moment("1940-05-31T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1940-05-31T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1940-05-31T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1940-05-31T22:00:00+00:00 should be -180 minutes offset in IDT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-10-31T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1942-10-31T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1942-10-31T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1942-10-31T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1942-10-31T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1942-10-31T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1942-10-31T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1942-10-31T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-31T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1943-03-31T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1943-04-01T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "1943-04-01T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("1943-10-31T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1943-10-31T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1943-10-31T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1943-10-31T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1943-03-31T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1943-03-31T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1943-04-01T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1943-04-01T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1943-10-31T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1943-10-31T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1943-10-31T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1943-10-31T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-31T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1944-03-31T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1944-03-31T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1944-03-31T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1944-10-31T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1944-10-31T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1944-10-31T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1944-10-31T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1944-03-31T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1944-03-31T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1944-03-31T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1944-03-31T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1944-10-31T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1944-10-31T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1944-10-31T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1944-10-31T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-15T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1945-04-15T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1945-04-15T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1945-04-15T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1945-10-31T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1945-10-31T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("1945-10-31T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1945-10-31T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1945-04-15T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1945-04-15T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1945-04-15T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1945-04-15T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1945-10-31T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1945-10-31T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1945-10-31T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1945-10-31T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-15T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1946-04-15T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1946-04-16T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "1946-04-16T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("1946-10-31T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1946-10-31T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1946-10-31T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1946-10-31T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1946-04-15T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1946-04-15T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1946-04-16T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1946-04-16T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1946-10-31T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1946-10-31T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1946-10-31T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1946-10-31T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-05-22T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1948-05-22T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1948-05-22T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "1948-05-22T22:00:00+00:00 should be 02:00:00 IDDT"); - t.equal(moment("1948-08-31T19:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1948-08-31T19:59:59+00:00 should be 23:59:59 IDDT"); - t.equal(moment("1948-08-31T20:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1948-08-31T20:00:00+00:00 should be 23:00:00 IDT"); - t.equal(moment("1948-10-31T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1948-10-31T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("1948-10-31T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1948-10-31T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1948-05-22T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1948-05-22T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1948-05-22T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -240, "1948-05-22T22:00:00+00:00 should be -240 minutes offset in IDDT"); - t.equal(moment("1948-08-31T19:59:59+00:00").tz("Asia/Jerusalem").zone(), -240, "1948-08-31T19:59:59+00:00 should be -240 minutes offset in IDDT"); - t.equal(moment("1948-08-31T20:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1948-08-31T20:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1948-10-31T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1948-10-31T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1948-10-31T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1948-10-31T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-30T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1949-04-30T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1949-04-30T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1949-04-30T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1949-10-31T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1949-10-31T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("1949-10-31T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1949-10-31T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1949-04-30T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1949-04-30T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1949-04-30T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1949-04-30T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1949-10-31T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1949-10-31T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1949-10-31T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1949-10-31T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-15T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1950-04-15T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1950-04-15T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1950-04-15T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1950-09-14T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:59:59", "1950-09-14T23:59:59+00:00 should be 02:59:59 IDT"); - t.equal(moment("1950-09-15T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "1950-09-15T00:00:00+00:00 should be 02:00:00 IST"); - - t.equal(moment("1950-04-15T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1950-04-15T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1950-04-15T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1950-04-15T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1950-09-14T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1950-09-14T23:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1950-09-15T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1950-09-15T00:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-03-31T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1951-03-31T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1951-03-31T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1951-03-31T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1951-11-10T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:59:59", "1951-11-10T23:59:59+00:00 should be 02:59:59 IDT"); - t.equal(moment("1951-11-11T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "1951-11-11T00:00:00+00:00 should be 02:00:00 IST"); - - t.equal(moment("1951-03-31T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1951-03-31T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1951-03-31T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1951-03-31T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1951-11-10T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1951-11-10T23:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1951-11-11T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1951-11-11T00:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-19T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1952-04-19T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1952-04-20T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "1952-04-20T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("1952-10-18T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:59:59", "1952-10-18T23:59:59+00:00 should be 02:59:59 IDT"); - t.equal(moment("1952-10-19T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "1952-10-19T00:00:00+00:00 should be 02:00:00 IST"); - - t.equal(moment("1952-04-19T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1952-04-19T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1952-04-20T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1952-04-20T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1952-10-18T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1952-10-18T23:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1952-10-19T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1952-10-19T00:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-11T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1953-04-11T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1953-04-12T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "1953-04-12T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("1953-09-12T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:59:59", "1953-09-12T23:59:59+00:00 should be 02:59:59 IDT"); - t.equal(moment("1953-09-13T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "1953-09-13T00:00:00+00:00 should be 02:00:00 IST"); - - t.equal(moment("1953-04-11T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1953-04-11T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1953-04-12T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1953-04-12T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1953-09-12T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1953-09-12T23:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1953-09-13T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1953-09-13T00:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-06-12T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1954-06-12T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1954-06-12T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1954-06-12T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1954-09-11T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1954-09-11T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1954-09-11T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1954-09-11T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1954-06-12T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1954-06-12T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1954-06-12T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1954-06-12T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1954-09-11T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1954-09-11T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1954-09-11T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1954-09-11T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-06-10T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1955-06-10T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1955-06-11T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "1955-06-11T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("1955-09-10T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1955-09-10T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1955-09-10T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1955-09-10T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1955-06-10T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1955-06-10T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1955-06-11T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1955-06-11T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1955-09-10T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1955-09-10T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1955-09-10T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1955-09-10T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-06-02T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1956-06-02T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1956-06-02T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1956-06-02T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1956-09-29T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:59:59", "1956-09-29T23:59:59+00:00 should be 02:59:59 IDT"); - t.equal(moment("1956-09-30T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "1956-09-30T00:00:00+00:00 should be 02:00:00 IST"); - - t.equal(moment("1956-06-02T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1956-06-02T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1956-06-02T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1956-06-02T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1956-09-29T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1956-09-29T23:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1956-09-30T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1956-09-30T00:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-28T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1957-04-28T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1957-04-29T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "1957-04-29T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("1957-09-21T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1957-09-21T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1957-09-21T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1957-09-21T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1957-04-28T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1957-04-28T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1957-04-29T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1957-04-29T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1957-09-21T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1957-09-21T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1957-09-21T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1957-09-21T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-07-06T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1974-07-06T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1974-07-06T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1974-07-06T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1974-10-12T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1974-10-12T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1974-10-12T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1974-10-12T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1974-07-06T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1974-07-06T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1974-07-06T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1974-07-06T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1974-10-12T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1974-10-12T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1974-10-12T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1974-10-12T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-19T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1975-04-19T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1975-04-19T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1975-04-19T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1975-08-30T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1975-08-30T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1975-08-30T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1975-08-30T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1975-04-19T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1975-04-19T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1975-04-19T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1975-04-19T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1975-08-30T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1975-08-30T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1975-08-30T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1975-08-30T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-13T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1985-04-13T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1985-04-13T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1985-04-13T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1985-09-14T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1985-09-14T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1985-09-14T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1985-09-14T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1985-04-13T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1985-04-13T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1985-04-13T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1985-04-13T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1985-09-14T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1985-09-14T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1985-09-14T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1985-09-14T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-05-17T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1986-05-17T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1986-05-17T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1986-05-17T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1986-09-06T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1986-09-06T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1986-09-06T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1986-09-06T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1986-05-17T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1986-05-17T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1986-05-17T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1986-05-17T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1986-09-06T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1986-09-06T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1986-09-06T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1986-09-06T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-14T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1987-04-14T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1987-04-14T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1987-04-14T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1987-09-12T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1987-09-12T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1987-09-12T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1987-09-12T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1987-04-14T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1987-04-14T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1987-04-14T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1987-04-14T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1987-09-12T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1987-09-12T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1987-09-12T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1987-09-12T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-08T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1988-04-08T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1988-04-08T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1988-04-08T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1988-09-02T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1988-09-02T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1988-09-02T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1988-09-02T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1988-04-08T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1988-04-08T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1988-04-08T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1988-04-08T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1988-09-02T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1988-09-02T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1988-09-02T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1988-09-02T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-29T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1989-04-29T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1989-04-29T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1989-04-29T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1989-09-02T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1989-09-02T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1989-09-02T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1989-09-02T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1989-04-29T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1989-04-29T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1989-04-29T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1989-04-29T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1989-09-02T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1989-09-02T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1989-09-02T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1989-09-02T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1990-03-24T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1990-03-24T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1990-08-25T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1990-08-25T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1990-08-25T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1990-08-25T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1990-03-24T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1990-03-24T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1990-08-25T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1990-08-25T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1990-08-25T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1990-08-25T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-23T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1991-03-23T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1991-03-23T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1991-03-23T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1991-08-31T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1991-08-31T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1991-08-31T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1991-08-31T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1991-03-23T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1991-03-23T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1991-03-23T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1991-03-23T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1991-08-31T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1991-08-31T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1991-08-31T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1991-08-31T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1992-09-05T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1992-09-05T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1992-09-05T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1992-09-05T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1992-09-05T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1992-09-05T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1992-09-05T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1992-09-05T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-01T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1993-04-01T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1993-04-01T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1993-04-01T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1993-09-04T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1993-09-04T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1993-09-04T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1993-09-04T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1993-04-01T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1993-04-01T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1993-04-01T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1993-04-01T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1993-09-04T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1993-09-04T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1993-09-04T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1993-09-04T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1994-03-31T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1994-03-31T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1994-08-27T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1994-08-27T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1994-08-27T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1994-08-27T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1994-03-31T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1994-03-31T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1994-03-31T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1994-03-31T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1994-08-27T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1994-08-27T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1994-08-27T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1994-08-27T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-30T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1995-03-30T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1995-03-30T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1995-03-30T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1995-09-02T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1995-09-02T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1995-09-02T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1995-09-02T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1995-03-30T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1995-03-30T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1995-03-30T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1995-03-30T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1995-09-02T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1995-09-02T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1995-09-02T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1995-09-02T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-14T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1996-03-14T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1996-03-14T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1996-03-14T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1996-09-15T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1996-09-15T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1996-09-15T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1996-09-15T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1996-03-14T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1996-03-14T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1996-03-14T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1996-03-14T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1996-09-15T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1996-09-15T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1996-09-15T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1996-09-15T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-20T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1997-03-20T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1997-03-20T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1997-03-20T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1997-09-13T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1997-09-13T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1997-09-13T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1997-09-13T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1997-03-20T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1997-03-20T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1997-03-20T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1997-03-20T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1997-09-13T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1997-09-13T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1997-09-13T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1997-09-13T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-19T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1998-03-19T21:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1998-03-19T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1998-03-19T22:00:00+00:00 should be 01:00:00 IDT"); - t.equal(moment("1998-09-05T20:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:59:59", "1998-09-05T20:59:59+00:00 should be 23:59:59 IDT"); - t.equal(moment("1998-09-05T21:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "23:00:00", "1998-09-05T21:00:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1998-03-19T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1998-03-19T21:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1998-03-19T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1998-03-19T22:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1998-09-05T20:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1998-09-05T20:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1998-09-05T21:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1998-09-05T21:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-01T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1999-04-01T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1999-04-02T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "1999-04-02T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("1999-09-02T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "1999-09-02T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("1999-09-02T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "1999-09-02T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1999-04-01T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "1999-04-01T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("1999-04-02T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "1999-04-02T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1999-09-02T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "1999-09-02T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("1999-09-02T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "1999-09-02T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-13T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2000-04-13T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2000-04-14T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2000-04-14T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2000-10-05T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:59:59", "2000-10-05T21:59:59+00:00 should be 00:59:59 IDT"); - t.equal(moment("2000-10-05T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:00:00", "2000-10-05T22:00:00+00:00 should be 00:00:00 IST"); - - t.equal(moment("2000-04-13T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2000-04-13T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2000-04-14T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2000-04-14T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2000-10-05T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2000-10-05T21:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2000-10-05T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2000-10-05T22:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-08T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:59:59", "2001-04-08T22:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("2001-04-08T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "2001-04-08T23:00:00+00:00 should be 02:00:00 IDT"); - t.equal(moment("2001-09-23T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:59:59", "2001-09-23T21:59:59+00:00 should be 00:59:59 IDT"); - t.equal(moment("2001-09-23T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:00:00", "2001-09-23T22:00:00+00:00 should be 00:00:00 IST"); - - t.equal(moment("2001-04-08T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2001-04-08T22:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2001-04-08T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2001-04-08T23:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2001-09-23T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2001-09-23T21:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2001-09-23T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2001-09-23T22:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-28T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:59:59", "2002-03-28T22:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("2002-03-28T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "2002-03-28T23:00:00+00:00 should be 02:00:00 IDT"); - t.equal(moment("2002-10-06T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:59:59", "2002-10-06T21:59:59+00:00 should be 00:59:59 IDT"); - t.equal(moment("2002-10-06T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:00:00", "2002-10-06T22:00:00+00:00 should be 00:00:00 IST"); - - t.equal(moment("2002-03-28T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2002-03-28T22:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2002-03-28T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2002-03-28T23:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2002-10-06T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2002-10-06T21:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2002-10-06T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2002-10-06T22:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-27T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:59:59", "2003-03-27T22:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("2003-03-27T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "2003-03-27T23:00:00+00:00 should be 02:00:00 IDT"); - t.equal(moment("2003-10-02T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:59:59", "2003-10-02T21:59:59+00:00 should be 00:59:59 IDT"); - t.equal(moment("2003-10-02T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:00:00", "2003-10-02T22:00:00+00:00 should be 00:00:00 IST"); - - t.equal(moment("2003-03-27T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2003-03-27T22:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2003-03-27T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2003-03-27T23:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2003-10-02T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2003-10-02T21:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2003-10-02T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2003-10-02T22:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-06T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:59:59", "2004-04-06T22:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("2004-04-06T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "02:00:00", "2004-04-06T23:00:00+00:00 should be 02:00:00 IDT"); - t.equal(moment("2004-09-21T21:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:59:59", "2004-09-21T21:59:59+00:00 should be 00:59:59 IDT"); - t.equal(moment("2004-09-21T22:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "00:00:00", "2004-09-21T22:00:00+00:00 should be 00:00:00 IST"); - - t.equal(moment("2004-04-06T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2004-04-06T22:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2004-04-06T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2004-04-06T23:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2004-09-21T21:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2004-09-21T21:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2004-09-21T22:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2004-09-21T22:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-31T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2005-03-31T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2005-04-01T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2005-04-01T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2005-10-08T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2005-10-08T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2005-10-08T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2005-10-08T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2005-03-31T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2005-03-31T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2005-04-01T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2005-04-01T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2005-10-08T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2005-10-08T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2005-10-08T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2005-10-08T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-30T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2006-03-30T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2006-03-31T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2006-03-31T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2006-09-30T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2006-09-30T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2006-09-30T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2006-09-30T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2006-03-30T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2006-03-30T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2006-03-31T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2006-03-31T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2006-09-30T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2006-09-30T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2006-09-30T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2006-09-30T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-29T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2007-03-29T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2007-03-30T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2007-03-30T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2007-09-15T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2007-09-15T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2007-09-15T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2007-09-15T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2007-03-29T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2007-03-29T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2007-03-30T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2007-03-30T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2007-09-15T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2007-09-15T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2007-09-15T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2007-09-15T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-27T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2008-03-27T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2008-03-28T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2008-03-28T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2008-10-04T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2008-10-04T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2008-10-04T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2008-10-04T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2008-03-27T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2008-03-27T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2008-03-28T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2008-03-28T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2008-10-04T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2008-10-04T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2008-10-04T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2008-10-04T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-26T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2009-03-26T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2009-03-27T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2009-03-27T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2009-09-26T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2009-09-26T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2009-09-26T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2009-09-26T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2009-03-26T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2009-03-26T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2009-03-27T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2009-03-27T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2009-09-26T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2009-09-26T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2009-09-26T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2009-09-26T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-25T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2010-03-25T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2010-03-26T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2010-03-26T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2010-09-11T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2010-09-11T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2010-09-11T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2010-09-11T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2010-03-25T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2010-03-25T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2010-03-26T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2010-03-26T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2010-09-11T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2010-09-11T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2010-09-11T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2010-09-11T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-31T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2011-03-31T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2011-04-01T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2011-04-01T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2011-10-01T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2011-10-01T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2011-10-01T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2011-10-01T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2011-03-31T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2011-03-31T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2011-04-01T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2011-04-01T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2011-10-01T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2011-10-01T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2011-10-01T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2011-10-01T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-29T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2012-03-29T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2012-03-30T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2012-03-30T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2012-09-22T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2012-09-22T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2012-09-22T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2012-09-22T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2012-03-29T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2012-03-29T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2012-03-30T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2012-03-30T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2012-09-22T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2012-09-22T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2012-09-22T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2012-09-22T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-28T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2013-03-28T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2013-03-29T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2013-03-29T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2013-10-05T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2013-10-05T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2013-10-05T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2013-10-05T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2013-03-28T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2013-03-28T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2013-03-29T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2013-03-29T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2013-10-05T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2013-10-05T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2013-10-05T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2013-10-05T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-27T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2014-03-27T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2014-03-28T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2014-03-28T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2014-10-04T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2014-10-04T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2014-10-04T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2014-10-04T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2014-03-27T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2014-03-27T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2014-03-28T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2014-03-28T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2014-10-04T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2014-10-04T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2014-10-04T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2014-10-04T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-26T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2015-03-26T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2015-03-27T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2015-03-27T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2015-10-03T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2015-10-03T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2015-10-03T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2015-10-03T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2015-03-26T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2015-03-26T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2015-03-27T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2015-03-27T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2015-10-03T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2015-10-03T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2015-10-03T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2015-10-03T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-24T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2016-03-24T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2016-03-25T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2016-03-25T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2016-10-01T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2016-10-01T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2016-10-01T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2016-10-01T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2016-03-24T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2016-03-24T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2016-03-25T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2016-03-25T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2016-10-01T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2016-10-01T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2016-10-01T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2016-10-01T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-23T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2017-03-23T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2017-03-24T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2017-03-24T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2017-10-07T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2017-10-07T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2017-10-07T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2017-10-07T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2017-03-23T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2017-03-23T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2017-03-24T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2017-03-24T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2017-10-07T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2017-10-07T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2017-10-07T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2017-10-07T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-22T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2018-03-22T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2018-03-23T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2018-03-23T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2018-10-06T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2018-10-06T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2018-10-06T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2018-10-06T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2018-03-22T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2018-03-22T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2018-03-23T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2018-03-23T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2018-10-06T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2018-10-06T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2018-10-06T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2018-10-06T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-28T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2019-03-28T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2019-03-29T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2019-03-29T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2019-10-05T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2019-10-05T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2019-10-05T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2019-10-05T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2019-03-28T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2019-03-28T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2019-03-29T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2019-03-29T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2019-10-05T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2019-10-05T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2019-10-05T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2019-10-05T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-26T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2020-03-26T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2020-03-27T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2020-03-27T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2020-10-03T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2020-10-03T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2020-10-03T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2020-10-03T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2020-03-26T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2020-03-26T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2020-03-27T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2020-03-27T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2020-10-03T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2020-10-03T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2020-10-03T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2020-10-03T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-25T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2021-03-25T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2021-03-26T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2021-03-26T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2021-10-02T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2021-10-02T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2021-10-02T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2021-10-02T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2021-03-25T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2021-03-25T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2021-03-26T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2021-03-26T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2021-10-02T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2021-10-02T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2021-10-02T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2021-10-02T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-24T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2022-03-24T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2022-03-25T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2022-03-25T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2022-10-01T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2022-10-01T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2022-10-01T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2022-10-01T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2022-03-24T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2022-03-24T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2022-03-25T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2022-03-25T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2022-10-01T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2022-10-01T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2022-10-01T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2022-10-01T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-23T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2023-03-23T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2023-03-24T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2023-03-24T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2023-10-07T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2023-10-07T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2023-10-07T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2023-10-07T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2023-03-23T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2023-03-23T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2023-03-24T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2023-03-24T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2023-10-07T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2023-10-07T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2023-10-07T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2023-10-07T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-28T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2024-03-28T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2024-03-29T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2024-03-29T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2024-10-05T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2024-10-05T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2024-10-05T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2024-10-05T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2024-03-28T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2024-03-28T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2024-03-29T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2024-03-29T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2024-10-05T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2024-10-05T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2024-10-05T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2024-10-05T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-27T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2025-03-27T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2025-03-28T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2025-03-28T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2025-10-04T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2025-10-04T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2025-10-04T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2025-10-04T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2025-03-27T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2025-03-27T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2025-03-28T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2025-03-28T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2025-10-04T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2025-10-04T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2025-10-04T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2025-10-04T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-26T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2026-03-26T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2026-03-27T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2026-03-27T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2026-10-03T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2026-10-03T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2026-10-03T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2026-10-03T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2026-03-26T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2026-03-26T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2026-03-27T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2026-03-27T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2026-10-03T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2026-10-03T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2026-10-03T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2026-10-03T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-25T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2027-03-25T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2027-03-26T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2027-03-26T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2027-10-03T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2027-10-03T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2027-10-03T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2027-10-03T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2027-03-25T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2027-03-25T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2027-03-26T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2027-03-26T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2027-10-03T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2027-10-03T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2027-10-03T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2027-10-03T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-23T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2028-03-23T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2028-03-24T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2028-03-24T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2028-10-07T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2028-10-07T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2028-10-07T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2028-10-07T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2028-03-23T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2028-03-23T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2028-03-24T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2028-03-24T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2028-10-07T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2028-10-07T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2028-10-07T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2028-10-07T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-22T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2029-03-22T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2029-03-23T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2029-03-23T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2029-10-06T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2029-10-06T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2029-10-06T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2029-10-06T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2029-03-22T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2029-03-22T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2029-03-23T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2029-03-23T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2029-10-06T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2029-10-06T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2029-10-06T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2029-10-06T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-28T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2030-03-28T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2030-03-29T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2030-03-29T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2030-10-05T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2030-10-05T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2030-10-05T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2030-10-05T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2030-03-28T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2030-03-28T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2030-03-29T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2030-03-29T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2030-10-05T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2030-10-05T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2030-10-05T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2030-10-05T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-27T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2031-03-27T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2031-03-28T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2031-03-28T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2031-10-04T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2031-10-04T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2031-10-04T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2031-10-04T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2031-03-27T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2031-03-27T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2031-03-28T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2031-03-28T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2031-10-04T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2031-10-04T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2031-10-04T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2031-10-04T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-25T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2032-03-25T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2032-03-26T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2032-03-26T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2032-10-02T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2032-10-02T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2032-10-02T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2032-10-02T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2032-03-25T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2032-03-25T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2032-03-26T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2032-03-26T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2032-10-02T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2032-10-02T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2032-10-02T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2032-10-02T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-24T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2033-03-24T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2033-03-25T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2033-03-25T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2033-10-01T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2033-10-01T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2033-10-01T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2033-10-01T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2033-03-24T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2033-03-24T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2033-03-25T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2033-03-25T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2033-10-01T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2033-10-01T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2033-10-01T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2033-10-01T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-23T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2034-03-23T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2034-03-24T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2034-03-24T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2034-10-07T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2034-10-07T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2034-10-07T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2034-10-07T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2034-03-23T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2034-03-23T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2034-03-24T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2034-03-24T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2034-10-07T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2034-10-07T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2034-10-07T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2034-10-07T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-22T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2035-03-22T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2035-03-23T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2035-03-23T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2035-10-06T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2035-10-06T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2035-10-06T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2035-10-06T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2035-03-22T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2035-03-22T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2035-03-23T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2035-03-23T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2035-10-06T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2035-10-06T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2035-10-06T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2035-10-06T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-27T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2036-03-27T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2036-03-28T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2036-03-28T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2036-10-04T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2036-10-04T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2036-10-04T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2036-10-04T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2036-03-27T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2036-03-27T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2036-03-28T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2036-03-28T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2036-10-04T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2036-10-04T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2036-10-04T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2036-10-04T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-26T23:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2037-03-26T23:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2037-03-27T00:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "03:00:00", "2037-03-27T00:00:00+00:00 should be 03:00:00 IDT"); - t.equal(moment("2037-10-03T22:59:59+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:59:59", "2037-10-03T22:59:59+00:00 should be 01:59:59 IDT"); - t.equal(moment("2037-10-03T23:00:00+00:00").tz("Asia/Jerusalem").format("HH:mm:ss"), "01:00:00", "2037-10-03T23:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("2037-03-26T23:59:59+00:00").tz("Asia/Jerusalem").zone(), -120, "2037-03-26T23:59:59+00:00 should be -120 minutes offset in IST"); - t.equal(moment("2037-03-27T00:00:00+00:00").tz("Asia/Jerusalem").zone(), -180, "2037-03-27T00:00:00+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2037-10-03T22:59:59+00:00").tz("Asia/Jerusalem").zone(), -180, "2037-10-03T22:59:59+00:00 should be -180 minutes offset in IDT"); - t.equal(moment("2037-10-03T23:00:00+00:00").tz("Asia/Jerusalem").zone(), -120, "2037-10-03T23:00:00+00:00 should be -120 minutes offset in IST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/kabul.js b/tests/asia/kabul.js deleted file mode 100644 index 4255ec1d..00000000 --- a/tests/asia/kabul.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Kabul"] = { - - "1944" : function (t) { - t.equal(moment("1944-12-31T19:59:59+00:00").tz("Asia/Kabul").format("HH:mm:ss"), "23:59:59", "1944-12-31T19:59:59+00:00 should be 23:59:59 AFT"); - t.equal(moment("1944-12-31T20:00:00+00:00").tz("Asia/Kabul").format("HH:mm:ss"), "00:30:00", "1944-12-31T20:00:00+00:00 should be 00:30:00 AFT"); - - t.equal(moment("1944-12-31T19:59:59+00:00").tz("Asia/Kabul").zone(), -240, "1944-12-31T19:59:59+00:00 should be -240 minutes offset in AFT"); - t.equal(moment("1944-12-31T20:00:00+00:00").tz("Asia/Kabul").zone(), -270, "1944-12-31T20:00:00+00:00 should be -270 minutes offset in AFT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/kamchatka.js b/tests/asia/kamchatka.js deleted file mode 100644 index 215dc668..00000000 --- a/tests/asia/kamchatka.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Kamchatka"] = { - - "1922" : function (t) { - t.equal(moment("1922-11-09T13:25:23+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:59:59", "1922-11-09T13:25:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1922-11-09T13:25:24+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "00:25:24", "1922-11-09T13:25:24+00:00 should be 00:25:24 PETT"); - - t.equal(moment("1922-11-09T13:25:23+00:00").tz("Asia/Kamchatka").zone(), -38076 / 60, "1922-11-09T13:25:23+00:00 should be -38076 / 60 minutes offset in LMT"); - t.equal(moment("1922-11-09T13:25:24+00:00").tz("Asia/Kamchatka").zone(), -660, "1922-11-09T13:25:24+00:00 should be -660 minutes offset in PETT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T12:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:59:59", "1930-06-20T12:59:59+00:00 should be 23:59:59 PETT"); - t.equal(moment("1930-06-20T13:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:00:00", "1930-06-20T13:00:00+00:00 should be 01:00:00 PETT"); - - t.equal(moment("1930-06-20T12:59:59+00:00").tz("Asia/Kamchatka").zone(), -660, "1930-06-20T12:59:59+00:00 should be -660 minutes offset in PETT"); - t.equal(moment("1930-06-20T13:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1930-06-20T13:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T11:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:59:59", "1981-03-31T11:59:59+00:00 should be 23:59:59 PETT"); - t.equal(moment("1981-03-31T12:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:00:00", "1981-03-31T12:00:00+00:00 should be 01:00:00 PETST"); - t.equal(moment("1981-09-30T10:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:59:59", "1981-09-30T10:59:59+00:00 should be 23:59:59 PETST"); - t.equal(moment("1981-09-30T11:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:00:00", "1981-09-30T11:00:00+00:00 should be 23:00:00 PETT"); - - t.equal(moment("1981-03-31T11:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1981-03-31T11:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1981-03-31T12:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1981-03-31T12:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1981-09-30T10:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1981-09-30T10:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1981-09-30T11:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1981-09-30T11:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T11:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:59:59", "1982-03-31T11:59:59+00:00 should be 23:59:59 PETT"); - t.equal(moment("1982-03-31T12:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:00:00", "1982-03-31T12:00:00+00:00 should be 01:00:00 PETST"); - t.equal(moment("1982-09-30T10:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:59:59", "1982-09-30T10:59:59+00:00 should be 23:59:59 PETST"); - t.equal(moment("1982-09-30T11:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:00:00", "1982-09-30T11:00:00+00:00 should be 23:00:00 PETT"); - - t.equal(moment("1982-03-31T11:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1982-03-31T11:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1982-03-31T12:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1982-03-31T12:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1982-09-30T10:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1982-09-30T10:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1982-09-30T11:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1982-09-30T11:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T11:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:59:59", "1983-03-31T11:59:59+00:00 should be 23:59:59 PETT"); - t.equal(moment("1983-03-31T12:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:00:00", "1983-03-31T12:00:00+00:00 should be 01:00:00 PETST"); - t.equal(moment("1983-09-30T10:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:59:59", "1983-09-30T10:59:59+00:00 should be 23:59:59 PETST"); - t.equal(moment("1983-09-30T11:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:00:00", "1983-09-30T11:00:00+00:00 should be 23:00:00 PETT"); - - t.equal(moment("1983-03-31T11:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1983-03-31T11:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1983-03-31T12:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1983-03-31T12:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1983-09-30T10:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1983-09-30T10:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1983-09-30T11:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1983-09-30T11:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T11:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "23:59:59", "1984-03-31T11:59:59+00:00 should be 23:59:59 PETT"); - t.equal(moment("1984-03-31T12:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:00:00", "1984-03-31T12:00:00+00:00 should be 01:00:00 PETST"); - t.equal(moment("1984-09-29T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1984-09-29T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1984-09-29T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1984-09-29T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1984-03-31T11:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1984-03-31T11:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1984-03-31T12:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1984-03-31T12:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1984-09-29T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1984-09-29T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1984-09-29T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1984-09-29T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1985-03-30T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1985-03-30T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1985-03-30T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1985-09-28T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1985-09-28T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1985-09-28T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1985-09-28T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1985-03-30T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1985-03-30T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1985-03-30T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1985-03-30T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1985-09-28T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1985-09-28T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1985-09-28T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1985-09-28T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1986-03-29T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1986-03-29T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1986-03-29T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1986-09-27T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1986-09-27T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1986-09-27T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1986-09-27T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1986-03-29T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1986-03-29T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1986-03-29T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1986-03-29T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1986-09-27T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1986-09-27T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1986-09-27T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1986-09-27T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1987-03-28T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1987-03-28T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1987-03-28T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1987-09-26T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1987-09-26T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1987-09-26T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1987-09-26T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1987-03-28T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1987-03-28T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1987-03-28T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1987-03-28T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1987-09-26T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1987-09-26T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1987-09-26T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1987-09-26T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1988-03-26T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1988-03-26T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1988-03-26T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1988-09-24T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1988-09-24T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1988-09-24T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1988-09-24T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1988-03-26T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1988-03-26T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1988-03-26T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1988-03-26T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1988-09-24T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1988-09-24T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1988-09-24T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1988-09-24T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1989-03-25T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1989-03-25T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1989-03-25T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1989-09-23T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1989-09-23T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1989-09-23T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1989-09-23T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1989-03-25T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1989-03-25T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1989-03-25T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1989-03-25T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1989-09-23T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1989-09-23T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1989-09-23T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1989-09-23T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1990-03-24T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1990-03-24T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1990-03-24T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1990-09-29T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1990-09-29T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1990-09-29T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1990-09-29T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1990-03-24T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1990-03-24T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1990-03-24T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1990-03-24T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1990-09-29T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1990-09-29T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1990-09-29T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1990-09-29T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1991-03-30T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1991-03-30T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1991-03-30T14:00:00+00:00 should be 02:00:00 PETST"); - t.equal(moment("1991-09-28T14:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1991-09-28T14:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1991-09-28T15:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1991-09-28T15:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1991-03-30T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1991-03-30T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1991-03-30T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1991-03-30T14:00:00+00:00 should be -720 minutes offset in PETST"); - t.equal(moment("1991-09-28T14:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1991-09-28T14:59:59+00:00 should be -720 minutes offset in PETST"); - t.equal(moment("1991-09-28T15:00:00+00:00").tz("Asia/Kamchatka").zone(), -660, "1991-09-28T15:00:00+00:00 should be -660 minutes offset in PETT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T14:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1992-01-18T14:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1992-01-18T15:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1992-01-18T15:00:00+00:00 should be 03:00:00 PETT"); - t.equal(moment("1992-03-28T10:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "22:59:59", "1992-03-28T10:59:59+00:00 should be 22:59:59 PETT"); - t.equal(moment("1992-03-28T11:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "00:00:00", "1992-03-28T11:00:00+00:00 should be 00:00:00 PETST"); - t.equal(moment("1992-09-26T09:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "22:59:59", "1992-09-26T09:59:59+00:00 should be 22:59:59 PETST"); - t.equal(moment("1992-09-26T10:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "22:00:00", "1992-09-26T10:00:00+00:00 should be 22:00:00 PETT"); - - t.equal(moment("1992-01-18T14:59:59+00:00").tz("Asia/Kamchatka").zone(), -660, "1992-01-18T14:59:59+00:00 should be -660 minutes offset in PETT"); - t.equal(moment("1992-01-18T15:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1992-01-18T15:00:00+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1992-03-28T10:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1992-03-28T10:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1992-03-28T11:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1992-03-28T11:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1992-09-26T09:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1992-09-26T09:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1992-09-26T10:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1992-09-26T10:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1993-03-27T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1993-03-27T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1993-03-27T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1993-09-25T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1993-09-25T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1993-09-25T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1993-09-25T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1993-03-27T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1993-03-27T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1993-03-27T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1993-03-27T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1993-09-25T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1993-09-25T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1993-09-25T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1993-09-25T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1994-03-26T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1994-03-26T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1994-03-26T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1994-09-24T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1994-09-24T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1994-09-24T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1994-09-24T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1994-03-26T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1994-03-26T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1994-03-26T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1994-03-26T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1994-09-24T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1994-09-24T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1994-09-24T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1994-09-24T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1995-03-25T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1995-03-25T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1995-03-25T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1995-09-23T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1995-09-23T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1995-09-23T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1995-09-23T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1995-03-25T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1995-03-25T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1995-03-25T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1995-03-25T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1995-09-23T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1995-09-23T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1995-09-23T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1995-09-23T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1996-03-30T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1996-03-30T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1996-03-30T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1996-10-26T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1996-10-26T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1996-10-26T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1996-10-26T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1996-03-30T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1996-03-30T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1996-03-30T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1996-03-30T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1996-10-26T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1996-10-26T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1996-10-26T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1996-10-26T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1997-03-29T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1997-03-29T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1997-03-29T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1997-10-25T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1997-10-25T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1997-10-25T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1997-10-25T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1997-03-29T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1997-03-29T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1997-03-29T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1997-03-29T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1997-10-25T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1997-10-25T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1997-10-25T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1997-10-25T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1998-03-28T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1998-03-28T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1998-03-28T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1998-10-24T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1998-10-24T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1998-10-24T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1998-10-24T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1998-03-28T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1998-03-28T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1998-03-28T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1998-03-28T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1998-10-24T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1998-10-24T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1998-10-24T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1998-10-24T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "1999-03-27T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("1999-03-27T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "1999-03-27T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("1999-10-30T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "1999-10-30T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("1999-10-30T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "1999-10-30T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("1999-03-27T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "1999-03-27T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("1999-03-27T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "1999-03-27T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1999-10-30T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "1999-10-30T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("1999-10-30T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "1999-10-30T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2000-03-25T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2000-03-25T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2000-03-25T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2000-10-28T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2000-10-28T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2000-10-28T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2000-10-28T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2000-03-25T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2000-03-25T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2000-03-25T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2000-03-25T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2000-10-28T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2000-10-28T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2000-10-28T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2000-10-28T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2001-03-24T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2001-03-24T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2001-03-24T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2001-10-27T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2001-10-27T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2001-10-27T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2001-10-27T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2001-03-24T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2001-03-24T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2001-03-24T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2001-03-24T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2001-10-27T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2001-10-27T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2001-10-27T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2001-10-27T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2002-03-30T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2002-03-30T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2002-03-30T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2002-10-26T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2002-10-26T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2002-10-26T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2002-10-26T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2002-03-30T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2002-03-30T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2002-03-30T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2002-03-30T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2002-10-26T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2002-10-26T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2002-10-26T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2002-10-26T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2003-03-29T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2003-03-29T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2003-03-29T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2003-10-25T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2003-10-25T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2003-10-25T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2003-10-25T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2003-03-29T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2003-03-29T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2003-03-29T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2003-03-29T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2003-10-25T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2003-10-25T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2003-10-25T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2003-10-25T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2004-03-27T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2004-03-27T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2004-03-27T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2004-10-30T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2004-10-30T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2004-10-30T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2004-10-30T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2004-03-27T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2004-03-27T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2004-03-27T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2004-03-27T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2004-10-30T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2004-10-30T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2004-10-30T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2004-10-30T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2005-03-26T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2005-03-26T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2005-03-26T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2005-10-29T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2005-10-29T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2005-10-29T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2005-10-29T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2005-03-26T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2005-03-26T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2005-03-26T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2005-03-26T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2005-10-29T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2005-10-29T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2005-10-29T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2005-10-29T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2006-03-25T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2006-03-25T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2006-03-25T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2006-10-28T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2006-10-28T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2006-10-28T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2006-10-28T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2006-03-25T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2006-03-25T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2006-03-25T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2006-03-25T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2006-10-28T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2006-10-28T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2006-10-28T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2006-10-28T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2007-03-24T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2007-03-24T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2007-03-24T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2007-10-27T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2007-10-27T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2007-10-27T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2007-10-27T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2007-03-24T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2007-03-24T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2007-03-24T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2007-03-24T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2007-10-27T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2007-10-27T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2007-10-27T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2007-10-27T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2008-03-29T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2008-03-29T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2008-03-29T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2008-10-25T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2008-10-25T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2008-10-25T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2008-10-25T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2008-03-29T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2008-03-29T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2008-03-29T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2008-03-29T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2008-10-25T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2008-10-25T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2008-10-25T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2008-10-25T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2009-03-28T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2009-03-28T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2009-03-28T14:00:00+00:00 should be 03:00:00 PETST"); - t.equal(moment("2009-10-24T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2009-10-24T13:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2009-10-24T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2009-10-24T14:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2009-03-28T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2009-03-28T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2009-03-28T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -780, "2009-03-28T14:00:00+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2009-10-24T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -780, "2009-10-24T13:59:59+00:00 should be -780 minutes offset in PETST"); - t.equal(moment("2009-10-24T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2009-10-24T14:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T13:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2010-03-27T13:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2010-03-27T14:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2010-03-27T14:00:00+00:00 should be 02:00:00 PETST"); - t.equal(moment("2010-10-30T14:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:59:59", "2010-10-30T14:59:59+00:00 should be 02:59:59 PETST"); - t.equal(moment("2010-10-30T15:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "02:00:00", "2010-10-30T15:00:00+00:00 should be 02:00:00 PETT"); - - t.equal(moment("2010-03-27T13:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2010-03-27T13:59:59+00:00 should be -720 minutes offset in PETT"); - t.equal(moment("2010-03-27T14:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2010-03-27T14:00:00+00:00 should be -720 minutes offset in PETST"); - t.equal(moment("2010-10-30T14:59:59+00:00").tz("Asia/Kamchatka").zone(), -720, "2010-10-30T14:59:59+00:00 should be -720 minutes offset in PETST"); - t.equal(moment("2010-10-30T15:00:00+00:00").tz("Asia/Kamchatka").zone(), -660, "2010-10-30T15:00:00+00:00 should be -660 minutes offset in PETT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T14:59:59+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "01:59:59", "2011-03-26T14:59:59+00:00 should be 01:59:59 PETT"); - t.equal(moment("2011-03-26T15:00:00+00:00").tz("Asia/Kamchatka").format("HH:mm:ss"), "03:00:00", "2011-03-26T15:00:00+00:00 should be 03:00:00 PETT"); - - t.equal(moment("2011-03-26T14:59:59+00:00").tz("Asia/Kamchatka").zone(), -660, "2011-03-26T14:59:59+00:00 should be -660 minutes offset in PETT"); - t.equal(moment("2011-03-26T15:00:00+00:00").tz("Asia/Kamchatka").zone(), -720, "2011-03-26T15:00:00+00:00 should be -720 minutes offset in PETT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/karachi.js b/tests/asia/karachi.js deleted file mode 100644 index d8cf4fb9..00000000 --- a/tests/asia/karachi.js +++ /dev/null @@ -1,96 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Karachi"] = { - - "1906" : function (t) { - t.equal(moment("1906-12-31T19:31:47+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:59:59", "1906-12-31T19:31:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1906-12-31T19:31:48+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "01:01:48", "1906-12-31T19:31:48+00:00 should be 01:01:48 IST"); - - t.equal(moment("1906-12-31T19:31:47+00:00").tz("Asia/Karachi").zone(), -16092 / 60, "1906-12-31T19:31:47+00:00 should be -16092 / 60 minutes offset in LMT"); - t.equal(moment("1906-12-31T19:31:48+00:00").tz("Asia/Karachi").zone(), -330, "1906-12-31T19:31:48+00:00 should be -330 minutes offset in IST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-08-31T18:29:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:59:59", "1942-08-31T18:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1942-08-31T18:30:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "01:00:00", "1942-08-31T18:30:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1942-08-31T18:29:59+00:00").tz("Asia/Karachi").zone(), -330, "1942-08-31T18:29:59+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1942-08-31T18:30:00+00:00").tz("Asia/Karachi").zone(), -390, "1942-08-31T18:30:00+00:00 should be -390 minutes offset in IST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-10-14T17:29:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:59:59", "1945-10-14T17:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1945-10-14T17:30:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:00:00", "1945-10-14T17:30:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1945-10-14T17:29:59+00:00").tz("Asia/Karachi").zone(), -390, "1945-10-14T17:29:59+00:00 should be -390 minutes offset in IST"); - t.equal(moment("1945-10-14T17:30:00+00:00").tz("Asia/Karachi").zone(), -330, "1945-10-14T17:30:00+00:00 should be -330 minutes offset in IST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-09-29T18:29:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:59:59", "1951-09-29T18:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1951-09-29T18:30:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:30:00", "1951-09-29T18:30:00+00:00 should be 23:30:00 KART"); - - t.equal(moment("1951-09-29T18:29:59+00:00").tz("Asia/Karachi").zone(), -330, "1951-09-29T18:29:59+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1951-09-29T18:30:00+00:00").tz("Asia/Karachi").zone(), -300, "1951-09-29T18:30:00+00:00 should be -300 minutes offset in KART"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-03-25T18:59:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:59:59", "1971-03-25T18:59:59+00:00 should be 23:59:59 KART"); - t.equal(moment("1971-03-25T19:00:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "00:00:00", "1971-03-25T19:00:00+00:00 should be 00:00:00 PKT"); - - t.equal(moment("1971-03-25T18:59:59+00:00").tz("Asia/Karachi").zone(), -300, "1971-03-25T18:59:59+00:00 should be -300 minutes offset in KART"); - t.equal(moment("1971-03-25T19:00:00+00:00").tz("Asia/Karachi").zone(), -300, "1971-03-25T19:00:00+00:00 should be -300 minutes offset in PKT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-06T19:00:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "00:00:59", "2002-04-06T19:00:59+00:00 should be 00:00:59 PKT"); - t.equal(moment("2002-04-06T19:01:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "01:01:00", "2002-04-06T19:01:00+00:00 should be 01:01:00 PKST"); - t.equal(moment("2002-10-05T18:00:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "00:00:59", "2002-10-05T18:00:59+00:00 should be 00:00:59 PKST"); - t.equal(moment("2002-10-05T18:01:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:01:00", "2002-10-05T18:01:00+00:00 should be 23:01:00 PKT"); - - t.equal(moment("2002-04-06T19:00:59+00:00").tz("Asia/Karachi").zone(), -300, "2002-04-06T19:00:59+00:00 should be -300 minutes offset in PKT"); - t.equal(moment("2002-04-06T19:01:00+00:00").tz("Asia/Karachi").zone(), -360, "2002-04-06T19:01:00+00:00 should be -360 minutes offset in PKST"); - t.equal(moment("2002-10-05T18:00:59+00:00").tz("Asia/Karachi").zone(), -360, "2002-10-05T18:00:59+00:00 should be -360 minutes offset in PKST"); - t.equal(moment("2002-10-05T18:01:00+00:00").tz("Asia/Karachi").zone(), -300, "2002-10-05T18:01:00+00:00 should be -300 minutes offset in PKT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-05-31T18:59:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:59:59", "2008-05-31T18:59:59+00:00 should be 23:59:59 PKT"); - t.equal(moment("2008-05-31T19:00:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "01:00:00", "2008-05-31T19:00:00+00:00 should be 01:00:00 PKST"); - t.equal(moment("2008-10-31T17:59:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:59:59", "2008-10-31T17:59:59+00:00 should be 23:59:59 PKST"); - t.equal(moment("2008-10-31T18:00:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:00:00", "2008-10-31T18:00:00+00:00 should be 23:00:00 PKT"); - - t.equal(moment("2008-05-31T18:59:59+00:00").tz("Asia/Karachi").zone(), -300, "2008-05-31T18:59:59+00:00 should be -300 minutes offset in PKT"); - t.equal(moment("2008-05-31T19:00:00+00:00").tz("Asia/Karachi").zone(), -360, "2008-05-31T19:00:00+00:00 should be -360 minutes offset in PKST"); - t.equal(moment("2008-10-31T17:59:59+00:00").tz("Asia/Karachi").zone(), -360, "2008-10-31T17:59:59+00:00 should be -360 minutes offset in PKST"); - t.equal(moment("2008-10-31T18:00:00+00:00").tz("Asia/Karachi").zone(), -300, "2008-10-31T18:00:00+00:00 should be -300 minutes offset in PKT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-14T18:59:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:59:59", "2009-04-14T18:59:59+00:00 should be 23:59:59 PKT"); - t.equal(moment("2009-04-14T19:00:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "01:00:00", "2009-04-14T19:00:00+00:00 should be 01:00:00 PKST"); - t.equal(moment("2009-10-31T17:59:59+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:59:59", "2009-10-31T17:59:59+00:00 should be 23:59:59 PKST"); - t.equal(moment("2009-10-31T18:00:00+00:00").tz("Asia/Karachi").format("HH:mm:ss"), "23:00:00", "2009-10-31T18:00:00+00:00 should be 23:00:00 PKT"); - - t.equal(moment("2009-04-14T18:59:59+00:00").tz("Asia/Karachi").zone(), -300, "2009-04-14T18:59:59+00:00 should be -300 minutes offset in PKT"); - t.equal(moment("2009-04-14T19:00:00+00:00").tz("Asia/Karachi").zone(), -360, "2009-04-14T19:00:00+00:00 should be -360 minutes offset in PKST"); - t.equal(moment("2009-10-31T17:59:59+00:00").tz("Asia/Karachi").zone(), -360, "2009-10-31T17:59:59+00:00 should be -360 minutes offset in PKST"); - t.equal(moment("2009-10-31T18:00:00+00:00").tz("Asia/Karachi").zone(), -300, "2009-10-31T18:00:00+00:00 should be -300 minutes offset in PKT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/kashgar.js b/tests/asia/kashgar.js deleted file mode 100644 index 255c07ed..00000000 --- a/tests/asia/kashgar.js +++ /dev/null @@ -1,118 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Kashgar"] = { - - "1927" : function (t) { - t.equal(moment("1927-12-31T18:56:03+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1927-12-31T18:56:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1927-12-31T18:56:04+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "00:26:04", "1927-12-31T18:56:04+00:00 should be 00:26:04 KAST"); - - t.equal(moment("1927-12-31T18:56:03+00:00").tz("Asia/Kashgar").zone(), -18236 / 60, "1927-12-31T18:56:03+00:00 should be -18236 / 60 minutes offset in LMT"); - t.equal(moment("1927-12-31T18:56:04+00:00").tz("Asia/Kashgar").zone(), -330, "1927-12-31T18:56:04+00:00 should be -330 minutes offset in KAST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-12-31T18:29:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1939-12-31T18:29:59+00:00 should be 23:59:59 KAST"); - t.equal(moment("1939-12-31T18:30:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:30:00", "1939-12-31T18:30:00+00:00 should be 23:30:00 KAST"); - - t.equal(moment("1939-12-31T18:29:59+00:00").tz("Asia/Kashgar").zone(), -330, "1939-12-31T18:29:59+00:00 should be -330 minutes offset in KAST"); - t.equal(moment("1939-12-31T18:30:00+00:00").tz("Asia/Kashgar").zone(), -300, "1939-12-31T18:30:00+00:00 should be -300 minutes offset in KAST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-30T18:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1980-04-30T18:59:59+00:00 should be 23:59:59 KAST"); - t.equal(moment("1980-04-30T19:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "03:00:00", "1980-04-30T19:00:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1980-04-30T18:59:59+00:00").tz("Asia/Kashgar").zone(), -300, "1980-04-30T18:59:59+00:00 should be -300 minutes offset in KAST"); - t.equal(moment("1980-04-30T19:00:00+00:00").tz("Asia/Kashgar").zone(), -480, "1980-04-30T19:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1986-05-03T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "01:00:00", "1986-05-03T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1986-09-13T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:00:00", "1986-09-13T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Kashgar").zone(), -480, "1986-05-03T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Kashgar").zone(), -540, "1986-05-03T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Kashgar").zone(), -540, "1986-09-13T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Kashgar").zone(), -480, "1986-09-13T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1987-04-11T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "01:00:00", "1987-04-11T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1987-09-12T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:00:00", "1987-09-12T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Kashgar").zone(), -480, "1987-04-11T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Kashgar").zone(), -540, "1987-04-11T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Kashgar").zone(), -540, "1987-09-12T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Kashgar").zone(), -480, "1987-09-12T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1988-04-09T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "01:00:00", "1988-04-09T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1988-09-10T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:00:00", "1988-09-10T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Kashgar").zone(), -480, "1988-04-09T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Kashgar").zone(), -540, "1988-04-09T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Kashgar").zone(), -540, "1988-09-10T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Kashgar").zone(), -480, "1988-09-10T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1989-04-15T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "01:00:00", "1989-04-15T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1989-09-16T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:00:00", "1989-09-16T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Kashgar").zone(), -480, "1989-04-15T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Kashgar").zone(), -540, "1989-04-15T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Kashgar").zone(), -540, "1989-09-16T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Kashgar").zone(), -480, "1989-09-16T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1990-04-14T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "01:00:00", "1990-04-14T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1990-09-15T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:00:00", "1990-09-15T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Kashgar").zone(), -480, "1990-04-14T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Kashgar").zone(), -540, "1990-04-14T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Kashgar").zone(), -540, "1990-09-15T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Kashgar").zone(), -480, "1990-09-15T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1991-04-13T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "01:00:00", "1991-04-13T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:59:59", "1991-09-14T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Kashgar").format("HH:mm:ss"), "23:00:00", "1991-09-14T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Kashgar").zone(), -480, "1991-04-13T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Kashgar").zone(), -540, "1991-04-13T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Kashgar").zone(), -540, "1991-09-14T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Kashgar").zone(), -480, "1991-09-14T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/kathmandu.js b/tests/asia/kathmandu.js deleted file mode 100644 index 324c488d..00000000 --- a/tests/asia/kathmandu.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Kathmandu"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T18:18:43+00:00").tz("Asia/Kathmandu").format("HH:mm:ss"), "23:59:59", "1919-12-31T18:18:43+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-31T18:18:44+00:00").tz("Asia/Kathmandu").format("HH:mm:ss"), "23:48:44", "1919-12-31T18:18:44+00:00 should be 23:48:44 IST"); - - t.equal(moment("1919-12-31T18:18:43+00:00").tz("Asia/Kathmandu").zone(), -20476 / 60, "1919-12-31T18:18:43+00:00 should be -20476 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-31T18:18:44+00:00").tz("Asia/Kathmandu").zone(), -330, "1919-12-31T18:18:44+00:00 should be -330 minutes offset in IST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-12-31T18:29:59+00:00").tz("Asia/Kathmandu").format("HH:mm:ss"), "23:59:59", "1985-12-31T18:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1985-12-31T18:30:00+00:00").tz("Asia/Kathmandu").format("HH:mm:ss"), "00:15:00", "1985-12-31T18:30:00+00:00 should be 00:15:00 NPT"); - - t.equal(moment("1985-12-31T18:29:59+00:00").tz("Asia/Kathmandu").zone(), -330, "1985-12-31T18:29:59+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1985-12-31T18:30:00+00:00").tz("Asia/Kathmandu").zone(), -345, "1985-12-31T18:30:00+00:00 should be -345 minutes offset in NPT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/khandyga.js b/tests/asia/khandyga.js deleted file mode 100644 index 0f20a721..00000000 --- a/tests/asia/khandyga.js +++ /dev/null @@ -1,466 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Khandyga"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-14T14:57:46+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "1919-12-14T14:57:46+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-14T14:57:47+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "22:57:47", "1919-12-14T14:57:47+00:00 should be 22:57:47 YAKT"); - - t.equal(moment("1919-12-14T14:57:46+00:00").tz("Asia/Khandyga").zone(), -32533 / 60, "1919-12-14T14:57:46+00:00 should be -32533 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-14T14:57:47+00:00").tz("Asia/Khandyga").zone(), -480, "1919-12-14T14:57:47+00:00 should be -480 minutes offset in YAKT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "1930-06-20T15:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1930-06-20T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:00:00", "1930-06-20T16:00:00+00:00 should be 01:00:00 YAKT"); - - t.equal(moment("1930-06-20T15:59:59+00:00").tz("Asia/Khandyga").zone(), -480, "1930-06-20T15:59:59+00:00 should be -480 minutes offset in YAKT"); - t.equal(moment("1930-06-20T16:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1930-06-20T16:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T14:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "1981-03-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1981-03-31T15:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:00:00", "1981-03-31T15:00:00+00:00 should be 01:00:00 YAKST"); - t.equal(moment("1981-09-30T13:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "1981-09-30T13:59:59+00:00 should be 23:59:59 YAKST"); - t.equal(moment("1981-09-30T14:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:00:00", "1981-09-30T14:00:00+00:00 should be 23:00:00 YAKT"); - - t.equal(moment("1981-03-31T14:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1981-03-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1981-03-31T15:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1981-03-31T15:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1981-09-30T13:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1981-09-30T13:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1981-09-30T14:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1981-09-30T14:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T14:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "1982-03-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1982-03-31T15:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:00:00", "1982-03-31T15:00:00+00:00 should be 01:00:00 YAKST"); - t.equal(moment("1982-09-30T13:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "1982-09-30T13:59:59+00:00 should be 23:59:59 YAKST"); - t.equal(moment("1982-09-30T14:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:00:00", "1982-09-30T14:00:00+00:00 should be 23:00:00 YAKT"); - - t.equal(moment("1982-03-31T14:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1982-03-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1982-03-31T15:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1982-03-31T15:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1982-09-30T13:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1982-09-30T13:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1982-09-30T14:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1982-09-30T14:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T14:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "1983-03-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1983-03-31T15:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:00:00", "1983-03-31T15:00:00+00:00 should be 01:00:00 YAKST"); - t.equal(moment("1983-09-30T13:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "1983-09-30T13:59:59+00:00 should be 23:59:59 YAKST"); - t.equal(moment("1983-09-30T14:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:00:00", "1983-09-30T14:00:00+00:00 should be 23:00:00 YAKT"); - - t.equal(moment("1983-03-31T14:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1983-03-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1983-03-31T15:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1983-03-31T15:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1983-09-30T13:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1983-09-30T13:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1983-09-30T14:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1983-09-30T14:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T14:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "1984-03-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1984-03-31T15:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:00:00", "1984-03-31T15:00:00+00:00 should be 01:00:00 YAKST"); - t.equal(moment("1984-09-29T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1984-09-29T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1984-09-29T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1984-09-29T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1984-03-31T14:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1984-03-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1984-03-31T15:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1984-03-31T15:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1984-09-29T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1984-09-29T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1984-09-29T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1984-09-29T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1985-03-30T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1985-03-30T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1985-03-30T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1985-09-28T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1985-09-28T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1985-09-28T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1985-09-28T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1985-03-30T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1985-03-30T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1985-03-30T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1985-03-30T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1985-09-28T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1985-09-28T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1985-09-28T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1985-09-28T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1986-03-29T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1986-03-29T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1986-03-29T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1986-09-27T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1986-09-27T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1986-09-27T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1986-09-27T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1986-03-29T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1986-03-29T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1986-03-29T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1986-03-29T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1986-09-27T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1986-09-27T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1986-09-27T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1986-09-27T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1987-03-28T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1987-03-28T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1987-03-28T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1987-09-26T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1987-09-26T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1987-09-26T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1987-09-26T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1987-03-28T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1987-03-28T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1987-03-28T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1987-03-28T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1987-09-26T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1987-09-26T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1987-09-26T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1987-09-26T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1988-03-26T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1988-03-26T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1988-03-26T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1988-09-24T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1988-09-24T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1988-09-24T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1988-09-24T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1988-03-26T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1988-03-26T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1988-03-26T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1988-03-26T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1988-09-24T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1988-09-24T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1988-09-24T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1988-09-24T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1989-03-25T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1989-03-25T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1989-03-25T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1989-09-23T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1989-09-23T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1989-09-23T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1989-09-23T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1989-03-25T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1989-03-25T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1989-03-25T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1989-03-25T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1989-09-23T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1989-09-23T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1989-09-23T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1989-09-23T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1990-03-24T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1990-03-24T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1990-03-24T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1990-09-29T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1990-09-29T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1990-09-29T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1990-09-29T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1990-03-24T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1990-03-24T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1990-03-24T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1990-03-24T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1990-09-29T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1990-09-29T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1990-09-29T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1990-09-29T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1991-03-30T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1991-03-30T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1991-03-30T17:00:00+00:00 should be 02:00:00 YAKST"); - t.equal(moment("1991-09-28T17:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1991-09-28T17:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1991-09-28T18:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1991-09-28T18:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1991-03-30T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1991-03-30T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1991-03-30T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1991-03-30T17:00:00+00:00 should be -540 minutes offset in YAKST"); - t.equal(moment("1991-09-28T17:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1991-09-28T17:59:59+00:00 should be -540 minutes offset in YAKST"); - t.equal(moment("1991-09-28T18:00:00+00:00").tz("Asia/Khandyga").zone(), -480, "1991-09-28T18:00:00+00:00 should be -480 minutes offset in YAKT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T17:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1992-01-18T17:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1992-01-18T18:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1992-01-18T18:00:00+00:00 should be 03:00:00 YAKT"); - t.equal(moment("1992-03-28T13:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "22:59:59", "1992-03-28T13:59:59+00:00 should be 22:59:59 YAKT"); - t.equal(moment("1992-03-28T14:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "00:00:00", "1992-03-28T14:00:00+00:00 should be 00:00:00 YAKST"); - t.equal(moment("1992-09-26T12:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "22:59:59", "1992-09-26T12:59:59+00:00 should be 22:59:59 YAKST"); - t.equal(moment("1992-09-26T13:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "22:00:00", "1992-09-26T13:00:00+00:00 should be 22:00:00 YAKT"); - - t.equal(moment("1992-01-18T17:59:59+00:00").tz("Asia/Khandyga").zone(), -480, "1992-01-18T17:59:59+00:00 should be -480 minutes offset in YAKT"); - t.equal(moment("1992-01-18T18:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1992-01-18T18:00:00+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1992-03-28T13:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1992-03-28T13:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1992-03-28T14:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1992-03-28T14:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1992-09-26T12:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1992-09-26T12:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1992-09-26T13:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1992-09-26T13:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1993-03-27T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1993-03-27T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1993-03-27T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1993-09-25T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1993-09-25T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1993-09-25T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1993-09-25T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1993-03-27T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1993-03-27T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1993-03-27T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1993-03-27T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1993-09-25T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1993-09-25T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1993-09-25T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1993-09-25T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1994-03-26T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1994-03-26T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1994-03-26T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1994-09-24T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1994-09-24T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1994-09-24T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1994-09-24T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1994-03-26T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1994-03-26T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1994-03-26T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1994-03-26T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1994-09-24T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1994-09-24T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1994-09-24T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1994-09-24T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1995-03-25T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1995-03-25T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1995-03-25T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1995-09-23T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1995-09-23T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1995-09-23T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1995-09-23T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1995-03-25T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1995-03-25T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1995-03-25T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1995-03-25T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1995-09-23T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1995-09-23T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1995-09-23T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1995-09-23T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1996-03-30T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1996-03-30T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1996-03-30T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1996-10-26T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1996-10-26T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1996-10-26T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1996-10-26T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1996-03-30T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1996-03-30T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1996-03-30T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1996-03-30T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1996-10-26T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1996-10-26T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1996-10-26T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1996-10-26T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1997-03-29T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1997-03-29T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1997-03-29T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1997-10-25T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1997-10-25T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1997-10-25T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1997-10-25T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1997-03-29T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1997-03-29T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1997-03-29T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1997-03-29T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1997-10-25T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1997-10-25T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1997-10-25T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1997-10-25T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1998-03-28T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1998-03-28T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1998-03-28T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1998-10-24T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1998-10-24T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1998-10-24T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1998-10-24T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1998-03-28T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1998-03-28T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1998-03-28T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1998-03-28T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1998-10-24T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1998-10-24T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1998-10-24T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1998-10-24T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "1999-03-27T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1999-03-27T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "1999-03-27T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1999-10-30T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "1999-10-30T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1999-10-30T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "1999-10-30T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1999-03-27T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "1999-03-27T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1999-03-27T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "1999-03-27T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1999-10-30T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "1999-10-30T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1999-10-30T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "1999-10-30T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2000-03-25T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2000-03-25T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2000-03-25T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2000-10-28T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2000-10-28T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2000-10-28T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2000-10-28T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2000-03-25T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "2000-03-25T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2000-03-25T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2000-03-25T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2000-10-28T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2000-10-28T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2000-10-28T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "2000-10-28T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2001-03-24T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2001-03-24T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2001-03-24T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2001-10-27T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2001-10-27T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2001-10-27T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2001-10-27T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2001-03-24T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "2001-03-24T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2001-03-24T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2001-03-24T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2001-10-27T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2001-10-27T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2001-10-27T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "2001-10-27T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2002-03-30T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2002-03-30T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2002-03-30T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2002-10-26T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2002-10-26T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2002-10-26T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2002-10-26T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2002-03-30T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "2002-03-30T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2002-03-30T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2002-03-30T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2002-10-26T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2002-10-26T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2002-10-26T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "2002-10-26T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2003-03-29T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2003-03-29T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2003-03-29T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2003-10-25T16:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2003-10-25T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2003-10-25T17:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2003-10-25T17:00:00+00:00 should be 02:00:00 YAKT"); - t.equal(moment("2003-12-31T14:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "2003-12-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("2003-12-31T15:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:00:00", "2003-12-31T15:00:00+00:00 should be 01:00:00 VLAT"); - - t.equal(moment("2003-03-29T16:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "2003-03-29T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2003-03-29T17:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2003-03-29T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2003-10-25T16:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2003-10-25T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2003-10-25T17:00:00+00:00").tz("Asia/Khandyga").zone(), -540, "2003-10-25T17:00:00+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2003-12-31T14:59:59+00:00").tz("Asia/Khandyga").zone(), -540, "2003-12-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2003-12-31T15:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2003-12-31T15:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2004-03-27T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2004-03-27T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2004-10-30T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2004-10-30T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2004-03-27T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Asia/Khandyga").zone(), -660, "2004-03-27T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Asia/Khandyga").zone(), -660, "2004-10-30T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2004-10-30T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2005-03-26T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2005-03-26T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2005-10-29T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2005-10-29T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2005-03-26T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Asia/Khandyga").zone(), -660, "2005-03-26T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Asia/Khandyga").zone(), -660, "2005-10-29T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2005-10-29T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2006-03-25T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2006-03-25T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2006-03-25T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2006-10-28T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2006-10-28T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2006-03-25T15:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2006-03-25T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2006-03-25T16:00:00+00:00").tz("Asia/Khandyga").zone(), -660, "2006-03-25T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Asia/Khandyga").zone(), -660, "2006-10-28T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2006-10-28T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2007-03-24T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2007-03-24T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2007-10-27T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2007-10-27T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2007-03-24T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Asia/Khandyga").zone(), -660, "2007-03-24T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Asia/Khandyga").zone(), -660, "2007-10-27T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2007-10-27T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2008-03-29T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2008-03-29T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2008-03-29T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2008-10-25T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2008-10-25T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2008-10-25T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2008-10-25T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2008-03-29T15:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2008-03-29T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2008-03-29T16:00:00+00:00").tz("Asia/Khandyga").zone(), -660, "2008-03-29T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2008-10-25T15:59:59+00:00").tz("Asia/Khandyga").zone(), -660, "2008-10-25T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2008-10-25T16:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2008-10-25T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2009-03-28T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2009-03-28T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2009-03-28T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2009-10-24T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2009-10-24T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2009-10-24T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2009-10-24T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2009-03-28T15:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2009-03-28T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2009-03-28T16:00:00+00:00").tz("Asia/Khandyga").zone(), -660, "2009-03-28T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2009-10-24T15:59:59+00:00").tz("Asia/Khandyga").zone(), -660, "2009-10-24T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2009-10-24T16:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2009-10-24T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2010-03-27T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2010-03-27T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2010-03-27T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2010-10-30T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:59:59", "2010-10-30T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2010-10-30T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "02:00:00", "2010-10-30T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2010-03-27T15:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2010-03-27T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2010-03-27T16:00:00+00:00").tz("Asia/Khandyga").zone(), -660, "2010-03-27T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2010-10-30T15:59:59+00:00").tz("Asia/Khandyga").zone(), -660, "2010-10-30T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2010-10-30T16:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2010-10-30T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T15:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "01:59:59", "2011-03-26T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2011-03-26T16:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "03:00:00", "2011-03-26T16:00:00+00:00 should be 03:00:00 VLAT"); - t.equal(moment("2011-09-12T12:59:59+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:59:59", "2011-09-12T12:59:59+00:00 should be 23:59:59 VLAT"); - t.equal(moment("2011-09-12T13:00:00+00:00").tz("Asia/Khandyga").format("HH:mm:ss"), "23:00:00", "2011-09-12T13:00:00+00:00 should be 23:00:00 YAKT"); - - t.equal(moment("2011-03-26T15:59:59+00:00").tz("Asia/Khandyga").zone(), -600, "2011-03-26T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2011-03-26T16:00:00+00:00").tz("Asia/Khandyga").zone(), -660, "2011-03-26T16:00:00+00:00 should be -660 minutes offset in VLAT"); - t.equal(moment("2011-09-12T12:59:59+00:00").tz("Asia/Khandyga").zone(), -660, "2011-09-12T12:59:59+00:00 should be -660 minutes offset in VLAT"); - t.equal(moment("2011-09-12T13:00:00+00:00").tz("Asia/Khandyga").zone(), -600, "2011-09-12T13:00:00+00:00 should be -600 minutes offset in YAKT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/kolkata.js b/tests/asia/kolkata.js deleted file mode 100644 index f6436581..00000000 --- a/tests/asia/kolkata.js +++ /dev/null @@ -1,38 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Kolkata"] = { - - "1941" : function (t) { - t.equal(moment("1941-09-30T18:06:39+00:00").tz("Asia/Kolkata").format("HH:mm:ss"), "23:59:59", "1941-09-30T18:06:39+00:00 should be 23:59:59 HMT"); - t.equal(moment("1941-09-30T18:06:40+00:00").tz("Asia/Kolkata").format("HH:mm:ss"), "00:36:40", "1941-09-30T18:06:40+00:00 should be 00:36:40 BURT"); - - t.equal(moment("1941-09-30T18:06:39+00:00").tz("Asia/Kolkata").zone(), -21200 / 60, "1941-09-30T18:06:39+00:00 should be -21200 / 60 minutes offset in HMT"); - t.equal(moment("1941-09-30T18:06:40+00:00").tz("Asia/Kolkata").zone(), -390, "1941-09-30T18:06:40+00:00 should be -390 minutes offset in BURT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-05-14T17:29:59+00:00").tz("Asia/Kolkata").format("HH:mm:ss"), "23:59:59", "1942-05-14T17:29:59+00:00 should be 23:59:59 BURT"); - t.equal(moment("1942-05-14T17:30:00+00:00").tz("Asia/Kolkata").format("HH:mm:ss"), "23:00:00", "1942-05-14T17:30:00+00:00 should be 23:00:00 IST"); - t.equal(moment("1942-08-31T18:29:59+00:00").tz("Asia/Kolkata").format("HH:mm:ss"), "23:59:59", "1942-08-31T18:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1942-08-31T18:30:00+00:00").tz("Asia/Kolkata").format("HH:mm:ss"), "01:00:00", "1942-08-31T18:30:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1942-05-14T17:29:59+00:00").tz("Asia/Kolkata").zone(), -390, "1942-05-14T17:29:59+00:00 should be -390 minutes offset in BURT"); - t.equal(moment("1942-05-14T17:30:00+00:00").tz("Asia/Kolkata").zone(), -330, "1942-05-14T17:30:00+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1942-08-31T18:29:59+00:00").tz("Asia/Kolkata").zone(), -330, "1942-08-31T18:29:59+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1942-08-31T18:30:00+00:00").tz("Asia/Kolkata").zone(), -390, "1942-08-31T18:30:00+00:00 should be -390 minutes offset in IST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-10-14T17:29:59+00:00").tz("Asia/Kolkata").format("HH:mm:ss"), "23:59:59", "1945-10-14T17:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1945-10-14T17:30:00+00:00").tz("Asia/Kolkata").format("HH:mm:ss"), "23:00:00", "1945-10-14T17:30:00+00:00 should be 23:00:00 IST"); - - t.equal(moment("1945-10-14T17:29:59+00:00").tz("Asia/Kolkata").zone(), -390, "1945-10-14T17:29:59+00:00 should be -390 minutes offset in IST"); - t.equal(moment("1945-10-14T17:30:00+00:00").tz("Asia/Kolkata").zone(), -330, "1945-10-14T17:30:00+00:00 should be -330 minutes offset in IST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/krasnoyarsk.js b/tests/asia/krasnoyarsk.js deleted file mode 100644 index 53849336..00000000 --- a/tests/asia/krasnoyarsk.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Krasnoyarsk"] = { - - "1920" : function (t) { - t.equal(moment("1920-01-05T17:48:39+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:59:59", "1920-01-05T17:48:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1920-01-05T17:48:40+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:48:40", "1920-01-05T17:48:40+00:00 should be 23:48:40 KRAT"); - - t.equal(moment("1920-01-05T17:48:39+00:00").tz("Asia/Krasnoyarsk").zone(), -22280 / 60, "1920-01-05T17:48:39+00:00 should be -22280 / 60 minutes offset in LMT"); - t.equal(moment("1920-01-05T17:48:40+00:00").tz("Asia/Krasnoyarsk").zone(), -360, "1920-01-05T17:48:40+00:00 should be -360 minutes offset in KRAT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T17:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:59:59", "1930-06-20T17:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1930-06-20T18:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:00:00", "1930-06-20T18:00:00+00:00 should be 01:00:00 KRAT"); - - t.equal(moment("1930-06-20T17:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -360, "1930-06-20T17:59:59+00:00 should be -360 minutes offset in KRAT"); - t.equal(moment("1930-06-20T18:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1930-06-20T18:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T16:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:59:59", "1981-03-31T16:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1981-03-31T17:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:00:00", "1981-03-31T17:00:00+00:00 should be 01:00:00 KRAST"); - t.equal(moment("1981-09-30T15:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:59:59", "1981-09-30T15:59:59+00:00 should be 23:59:59 KRAST"); - t.equal(moment("1981-09-30T16:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:00:00", "1981-09-30T16:00:00+00:00 should be 23:00:00 KRAT"); - - t.equal(moment("1981-03-31T16:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1981-03-31T16:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1981-03-31T17:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1981-03-31T17:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1981-09-30T15:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1981-09-30T15:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1981-09-30T16:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1981-09-30T16:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T16:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:59:59", "1982-03-31T16:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1982-03-31T17:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:00:00", "1982-03-31T17:00:00+00:00 should be 01:00:00 KRAST"); - t.equal(moment("1982-09-30T15:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:59:59", "1982-09-30T15:59:59+00:00 should be 23:59:59 KRAST"); - t.equal(moment("1982-09-30T16:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:00:00", "1982-09-30T16:00:00+00:00 should be 23:00:00 KRAT"); - - t.equal(moment("1982-03-31T16:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1982-03-31T16:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1982-03-31T17:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1982-03-31T17:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1982-09-30T15:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1982-09-30T15:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1982-09-30T16:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1982-09-30T16:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T16:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:59:59", "1983-03-31T16:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1983-03-31T17:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:00:00", "1983-03-31T17:00:00+00:00 should be 01:00:00 KRAST"); - t.equal(moment("1983-09-30T15:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:59:59", "1983-09-30T15:59:59+00:00 should be 23:59:59 KRAST"); - t.equal(moment("1983-09-30T16:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:00:00", "1983-09-30T16:00:00+00:00 should be 23:00:00 KRAT"); - - t.equal(moment("1983-03-31T16:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1983-03-31T16:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1983-03-31T17:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1983-03-31T17:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1983-09-30T15:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1983-09-30T15:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1983-09-30T16:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1983-09-30T16:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T16:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "23:59:59", "1984-03-31T16:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1984-03-31T17:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:00:00", "1984-03-31T17:00:00+00:00 should be 01:00:00 KRAST"); - t.equal(moment("1984-09-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1984-09-29T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1984-09-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1984-09-29T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1984-03-31T16:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1984-03-31T16:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1984-03-31T17:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1984-03-31T17:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1984-09-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1984-09-29T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1984-09-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1984-09-29T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1985-03-30T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1985-03-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1985-03-30T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1985-09-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1985-09-28T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1985-09-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1985-09-28T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1985-03-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1985-03-30T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1985-03-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1985-03-30T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1985-09-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1985-09-28T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1985-09-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1985-09-28T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1986-03-29T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1986-03-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1986-03-29T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1986-09-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1986-09-27T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1986-09-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1986-09-27T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1986-03-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1986-03-29T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1986-03-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1986-03-29T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1986-09-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1986-09-27T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1986-09-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1986-09-27T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1987-03-28T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1987-03-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1987-03-28T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1987-09-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1987-09-26T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1987-09-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1987-09-26T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1987-03-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1987-03-28T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1987-03-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1987-03-28T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1987-09-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1987-09-26T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1987-09-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1987-09-26T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1988-03-26T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1988-03-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1988-03-26T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1988-09-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1988-09-24T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1988-09-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1988-09-24T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1988-03-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1988-03-26T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1988-03-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1988-03-26T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1988-09-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1988-09-24T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1988-09-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1988-09-24T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1989-03-25T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1989-03-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1989-03-25T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1989-09-23T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1989-09-23T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1989-09-23T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1989-09-23T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1989-03-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1989-03-25T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1989-03-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1989-03-25T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1989-09-23T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1989-09-23T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1989-09-23T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1989-09-23T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1990-03-24T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1990-03-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1990-03-24T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1990-09-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1990-09-29T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1990-09-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1990-09-29T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1990-03-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1990-03-24T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1990-03-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1990-03-24T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1990-09-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1990-09-29T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1990-09-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1990-09-29T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1991-03-30T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1991-03-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1991-03-30T19:00:00+00:00 should be 02:00:00 KRAST"); - t.equal(moment("1991-09-28T19:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1991-09-28T19:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1991-09-28T20:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1991-09-28T20:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1991-03-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1991-03-30T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1991-03-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1991-03-30T19:00:00+00:00 should be -420 minutes offset in KRAST"); - t.equal(moment("1991-09-28T19:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1991-09-28T19:59:59+00:00 should be -420 minutes offset in KRAST"); - t.equal(moment("1991-09-28T20:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -360, "1991-09-28T20:00:00+00:00 should be -360 minutes offset in KRAT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T19:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1992-01-18T19:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1992-01-18T20:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1992-01-18T20:00:00+00:00 should be 03:00:00 KRAT"); - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "22:59:59", "1992-03-28T15:59:59+00:00 should be 22:59:59 KRAT"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "00:00:00", "1992-03-28T16:00:00+00:00 should be 00:00:00 KRAST"); - t.equal(moment("1992-09-26T14:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "22:59:59", "1992-09-26T14:59:59+00:00 should be 22:59:59 KRAST"); - t.equal(moment("1992-09-26T15:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "22:00:00", "1992-09-26T15:00:00+00:00 should be 22:00:00 KRAT"); - - t.equal(moment("1992-01-18T19:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -360, "1992-01-18T19:59:59+00:00 should be -360 minutes offset in KRAT"); - t.equal(moment("1992-01-18T20:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1992-01-18T20:00:00+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1992-03-28T15:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1992-03-28T16:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1992-09-26T14:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1992-09-26T14:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1992-09-26T15:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1992-09-26T15:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1993-03-27T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1993-03-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1993-03-27T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1993-09-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1993-09-25T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1993-09-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1993-09-25T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1993-03-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1993-03-27T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1993-03-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1993-03-27T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1993-09-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1993-09-25T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1993-09-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1993-09-25T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1994-03-26T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1994-03-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1994-03-26T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1994-09-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1994-09-24T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1994-09-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1994-09-24T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1994-03-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1994-03-26T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1994-03-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1994-03-26T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1994-09-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1994-09-24T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1994-09-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1994-09-24T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1995-03-25T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1995-03-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1995-03-25T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1995-09-23T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1995-09-23T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1995-09-23T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1995-09-23T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1995-03-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1995-03-25T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1995-03-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1995-03-25T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1995-09-23T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1995-09-23T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1995-09-23T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1995-09-23T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1996-03-30T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1996-03-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1996-03-30T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1996-10-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1996-10-26T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1996-10-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1996-10-26T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1996-03-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1996-03-30T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1996-03-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1996-03-30T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1996-10-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1996-10-26T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1996-10-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1996-10-26T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1997-03-29T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1997-03-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1997-03-29T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1997-10-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1997-10-25T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1997-10-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1997-10-25T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1997-03-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1997-03-29T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1997-03-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1997-03-29T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1997-10-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1997-10-25T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1997-10-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1997-10-25T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1998-03-28T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1998-03-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1998-03-28T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1998-10-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1998-10-24T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1998-10-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1998-10-24T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1998-03-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1998-03-28T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1998-03-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1998-03-28T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1998-10-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1998-10-24T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1998-10-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1998-10-24T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "1999-03-27T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1999-03-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "1999-03-27T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1999-10-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "1999-10-30T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1999-10-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "1999-10-30T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1999-03-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1999-03-27T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1999-03-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1999-03-27T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1999-10-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "1999-10-30T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1999-10-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "1999-10-30T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2000-03-25T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2000-03-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2000-03-25T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2000-10-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2000-10-28T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2000-10-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2000-10-28T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2000-03-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2000-03-25T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2000-03-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2000-03-25T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2000-10-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2000-10-28T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2000-10-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2000-10-28T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2001-03-24T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2001-03-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2001-03-24T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2001-10-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2001-10-27T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2001-10-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2001-10-27T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2001-03-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2001-03-24T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2001-03-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2001-03-24T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2001-10-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2001-10-27T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2001-10-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2001-10-27T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2002-03-30T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2002-03-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2002-03-30T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2002-10-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2002-10-26T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2002-10-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2002-10-26T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2002-03-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2002-03-30T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2002-03-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2002-03-30T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2002-10-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2002-10-26T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2002-10-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2002-10-26T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2003-03-29T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2003-03-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2003-03-29T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2003-10-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2003-10-25T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2003-10-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2003-10-25T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2003-03-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2003-03-29T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2003-03-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2003-03-29T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2003-10-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2003-10-25T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2003-10-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2003-10-25T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2004-03-27T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2004-03-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2004-03-27T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2004-10-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2004-10-30T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2004-10-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2004-10-30T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2004-03-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2004-03-27T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2004-03-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2004-03-27T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2004-10-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2004-10-30T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2004-10-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2004-10-30T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2005-03-26T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2005-03-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2005-03-26T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2005-10-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2005-10-29T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2005-10-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2005-10-29T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2005-03-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2005-03-26T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2005-03-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2005-03-26T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2005-10-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2005-10-29T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2005-10-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2005-10-29T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2006-03-25T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2006-03-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2006-03-25T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2006-10-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2006-10-28T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2006-10-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2006-10-28T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2006-03-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2006-03-25T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2006-03-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2006-03-25T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2006-10-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2006-10-28T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2006-10-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2006-10-28T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2007-03-24T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2007-03-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2007-03-24T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2007-10-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2007-10-27T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2007-10-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2007-10-27T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2007-03-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2007-03-24T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2007-03-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2007-03-24T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2007-10-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2007-10-27T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2007-10-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2007-10-27T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2008-03-29T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2008-03-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2008-03-29T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2008-10-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2008-10-25T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2008-10-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2008-10-25T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2008-03-29T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2008-03-29T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2008-03-29T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2008-03-29T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2008-10-25T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2008-10-25T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2008-10-25T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2008-10-25T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2009-03-28T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2009-03-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2009-03-28T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2009-10-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2009-10-24T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2009-10-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2009-10-24T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2009-03-28T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2009-03-28T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2009-03-28T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2009-03-28T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2009-10-24T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2009-10-24T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2009-10-24T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2009-10-24T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2010-03-27T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2010-03-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2010-03-27T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2010-10-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:59:59", "2010-10-30T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2010-10-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "02:00:00", "2010-10-30T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2010-03-27T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2010-03-27T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2010-03-27T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2010-03-27T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2010-10-30T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2010-10-30T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2010-10-30T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2010-10-30T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "01:59:59", "2011-03-26T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2011-03-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").format("HH:mm:ss"), "03:00:00", "2011-03-26T19:00:00+00:00 should be 03:00:00 KRAT"); - - t.equal(moment("2011-03-26T18:59:59+00:00").tz("Asia/Krasnoyarsk").zone(), -420, "2011-03-26T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2011-03-26T19:00:00+00:00").tz("Asia/Krasnoyarsk").zone(), -480, "2011-03-26T19:00:00+00:00 should be -480 minutes offset in KRAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/kuala_lumpur.js b/tests/asia/kuala_lumpur.js deleted file mode 100644 index 5d5745f8..00000000 --- a/tests/asia/kuala_lumpur.js +++ /dev/null @@ -1,74 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Kuala_Lumpur"] = { - - "1905" : function (t) { - t.equal(moment("1905-05-31T17:04:34+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "23:59:59", "1905-05-31T17:04:34+00:00 should be 23:59:59 SMT"); - t.equal(moment("1905-05-31T17:04:35+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "00:04:35", "1905-05-31T17:04:35+00:00 should be 00:04:35 MALT"); - - t.equal(moment("1905-05-31T17:04:34+00:00").tz("Asia/Kuala_Lumpur").zone(), -24925 / 60, "1905-05-31T17:04:34+00:00 should be -24925 / 60 minutes offset in SMT"); - t.equal(moment("1905-05-31T17:04:35+00:00").tz("Asia/Kuala_Lumpur").zone(), -420, "1905-05-31T17:04:35+00:00 should be -420 minutes offset in MALT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-12-31T16:59:59+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "23:59:59", "1932-12-31T16:59:59+00:00 should be 23:59:59 MALT"); - t.equal(moment("1932-12-31T17:00:00+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "00:20:00", "1932-12-31T17:00:00+00:00 should be 00:20:00 MALST"); - - t.equal(moment("1932-12-31T16:59:59+00:00").tz("Asia/Kuala_Lumpur").zone(), -420, "1932-12-31T16:59:59+00:00 should be -420 minutes offset in MALT"); - t.equal(moment("1932-12-31T17:00:00+00:00").tz("Asia/Kuala_Lumpur").zone(), -440, "1932-12-31T17:00:00+00:00 should be -440 minutes offset in MALST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-12-31T16:39:59+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "23:59:59", "1935-12-31T16:39:59+00:00 should be 23:59:59 MALST"); - t.equal(moment("1935-12-31T16:40:00+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "00:00:00", "1935-12-31T16:40:00+00:00 should be 00:00:00 MALT"); - - t.equal(moment("1935-12-31T16:39:59+00:00").tz("Asia/Kuala_Lumpur").zone(), -440, "1935-12-31T16:39:59+00:00 should be -440 minutes offset in MALST"); - t.equal(moment("1935-12-31T16:40:00+00:00").tz("Asia/Kuala_Lumpur").zone(), -440, "1935-12-31T16:40:00+00:00 should be -440 minutes offset in MALT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-08-31T16:39:59+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "23:59:59", "1941-08-31T16:39:59+00:00 should be 23:59:59 MALT"); - t.equal(moment("1941-08-31T16:40:00+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "00:10:00", "1941-08-31T16:40:00+00:00 should be 00:10:00 MALT"); - - t.equal(moment("1941-08-31T16:39:59+00:00").tz("Asia/Kuala_Lumpur").zone(), -440, "1941-08-31T16:39:59+00:00 should be -440 minutes offset in MALT"); - t.equal(moment("1941-08-31T16:40:00+00:00").tz("Asia/Kuala_Lumpur").zone(), -450, "1941-08-31T16:40:00+00:00 should be -450 minutes offset in MALT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-15T16:29:59+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "23:59:59", "1942-02-15T16:29:59+00:00 should be 23:59:59 MALT"); - t.equal(moment("1942-02-15T16:30:00+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "01:30:00", "1942-02-15T16:30:00+00:00 should be 01:30:00 JST"); - - t.equal(moment("1942-02-15T16:29:59+00:00").tz("Asia/Kuala_Lumpur").zone(), -450, "1942-02-15T16:29:59+00:00 should be -450 minutes offset in MALT"); - t.equal(moment("1942-02-15T16:30:00+00:00").tz("Asia/Kuala_Lumpur").zone(), -540, "1942-02-15T16:30:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-09-11T14:59:59+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "23:59:59", "1945-09-11T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-09-11T15:00:00+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "22:30:00", "1945-09-11T15:00:00+00:00 should be 22:30:00 MALT"); - - t.equal(moment("1945-09-11T14:59:59+00:00").tz("Asia/Kuala_Lumpur").zone(), -540, "1945-09-11T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-09-11T15:00:00+00:00").tz("Asia/Kuala_Lumpur").zone(), -450, "1945-09-11T15:00:00+00:00 should be -450 minutes offset in MALT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-12-31T16:29:59+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "23:59:59", "1981-12-31T16:29:59+00:00 should be 23:59:59 MALT"); - t.equal(moment("1981-12-31T16:30:00+00:00").tz("Asia/Kuala_Lumpur").format("HH:mm:ss"), "00:30:00", "1981-12-31T16:30:00+00:00 should be 00:30:00 MYT"); - - t.equal(moment("1981-12-31T16:29:59+00:00").tz("Asia/Kuala_Lumpur").zone(), -450, "1981-12-31T16:29:59+00:00 should be -450 minutes offset in MALT"); - t.equal(moment("1981-12-31T16:30:00+00:00").tz("Asia/Kuala_Lumpur").zone(), -480, "1981-12-31T16:30:00+00:00 should be -480 minutes offset in MYT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/kuching.js b/tests/asia/kuching.js deleted file mode 100644 index 8515b660..00000000 --- a/tests/asia/kuching.js +++ /dev/null @@ -1,152 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Kuching"] = { - - "1926" : function (t) { - t.equal(moment("1926-02-28T16:38:39+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1926-02-28T16:38:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1926-02-28T16:38:40+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:08:40", "1926-02-28T16:38:40+00:00 should be 00:08:40 BORT"); - - t.equal(moment("1926-02-28T16:38:39+00:00").tz("Asia/Kuching").zone(), -26480 / 60, "1926-02-28T16:38:39+00:00 should be -26480 / 60 minutes offset in LMT"); - t.equal(moment("1926-02-28T16:38:40+00:00").tz("Asia/Kuching").zone(), -450, "1926-02-28T16:38:40+00:00 should be -450 minutes offset in BORT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-12-31T16:29:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1932-12-31T16:29:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1932-12-31T16:30:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:30:00", "1932-12-31T16:30:00+00:00 should be 00:30:00 BORT"); - - t.equal(moment("1932-12-31T16:29:59+00:00").tz("Asia/Kuching").zone(), -450, "1932-12-31T16:29:59+00:00 should be -450 minutes offset in BORT"); - t.equal(moment("1932-12-31T16:30:00+00:00").tz("Asia/Kuching").zone(), -480, "1932-12-31T16:30:00+00:00 should be -480 minutes offset in BORT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-09-13T15:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1935-09-13T15:59:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1935-09-13T16:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:20:00", "1935-09-13T16:00:00+00:00 should be 00:20:00 BORTST"); - t.equal(moment("1935-12-13T15:39:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1935-12-13T15:39:59+00:00 should be 23:59:59 BORTST"); - t.equal(moment("1935-12-13T15:40:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:40:00", "1935-12-13T15:40:00+00:00 should be 23:40:00 BORT"); - - t.equal(moment("1935-09-13T15:59:59+00:00").tz("Asia/Kuching").zone(), -480, "1935-09-13T15:59:59+00:00 should be -480 minutes offset in BORT"); - t.equal(moment("1935-09-13T16:00:00+00:00").tz("Asia/Kuching").zone(), -500, "1935-09-13T16:00:00+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1935-12-13T15:39:59+00:00").tz("Asia/Kuching").zone(), -500, "1935-12-13T15:39:59+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1935-12-13T15:40:00+00:00").tz("Asia/Kuching").zone(), -480, "1935-12-13T15:40:00+00:00 should be -480 minutes offset in BORT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-09-13T15:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1936-09-13T15:59:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1936-09-13T16:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:20:00", "1936-09-13T16:00:00+00:00 should be 00:20:00 BORTST"); - t.equal(moment("1936-12-13T15:39:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1936-12-13T15:39:59+00:00 should be 23:59:59 BORTST"); - t.equal(moment("1936-12-13T15:40:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:40:00", "1936-12-13T15:40:00+00:00 should be 23:40:00 BORT"); - - t.equal(moment("1936-09-13T15:59:59+00:00").tz("Asia/Kuching").zone(), -480, "1936-09-13T15:59:59+00:00 should be -480 minutes offset in BORT"); - t.equal(moment("1936-09-13T16:00:00+00:00").tz("Asia/Kuching").zone(), -500, "1936-09-13T16:00:00+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1936-12-13T15:39:59+00:00").tz("Asia/Kuching").zone(), -500, "1936-12-13T15:39:59+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1936-12-13T15:40:00+00:00").tz("Asia/Kuching").zone(), -480, "1936-12-13T15:40:00+00:00 should be -480 minutes offset in BORT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-09-13T15:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1937-09-13T15:59:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1937-09-13T16:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:20:00", "1937-09-13T16:00:00+00:00 should be 00:20:00 BORTST"); - t.equal(moment("1937-12-13T15:39:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1937-12-13T15:39:59+00:00 should be 23:59:59 BORTST"); - t.equal(moment("1937-12-13T15:40:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:40:00", "1937-12-13T15:40:00+00:00 should be 23:40:00 BORT"); - - t.equal(moment("1937-09-13T15:59:59+00:00").tz("Asia/Kuching").zone(), -480, "1937-09-13T15:59:59+00:00 should be -480 minutes offset in BORT"); - t.equal(moment("1937-09-13T16:00:00+00:00").tz("Asia/Kuching").zone(), -500, "1937-09-13T16:00:00+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1937-12-13T15:39:59+00:00").tz("Asia/Kuching").zone(), -500, "1937-12-13T15:39:59+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1937-12-13T15:40:00+00:00").tz("Asia/Kuching").zone(), -480, "1937-12-13T15:40:00+00:00 should be -480 minutes offset in BORT"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-09-13T15:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1938-09-13T15:59:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1938-09-13T16:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:20:00", "1938-09-13T16:00:00+00:00 should be 00:20:00 BORTST"); - t.equal(moment("1938-12-13T15:39:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1938-12-13T15:39:59+00:00 should be 23:59:59 BORTST"); - t.equal(moment("1938-12-13T15:40:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:40:00", "1938-12-13T15:40:00+00:00 should be 23:40:00 BORT"); - - t.equal(moment("1938-09-13T15:59:59+00:00").tz("Asia/Kuching").zone(), -480, "1938-09-13T15:59:59+00:00 should be -480 minutes offset in BORT"); - t.equal(moment("1938-09-13T16:00:00+00:00").tz("Asia/Kuching").zone(), -500, "1938-09-13T16:00:00+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1938-12-13T15:39:59+00:00").tz("Asia/Kuching").zone(), -500, "1938-12-13T15:39:59+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1938-12-13T15:40:00+00:00").tz("Asia/Kuching").zone(), -480, "1938-12-13T15:40:00+00:00 should be -480 minutes offset in BORT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-09-13T15:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1939-09-13T15:59:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1939-09-13T16:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:20:00", "1939-09-13T16:00:00+00:00 should be 00:20:00 BORTST"); - t.equal(moment("1939-12-13T15:39:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1939-12-13T15:39:59+00:00 should be 23:59:59 BORTST"); - t.equal(moment("1939-12-13T15:40:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:40:00", "1939-12-13T15:40:00+00:00 should be 23:40:00 BORT"); - - t.equal(moment("1939-09-13T15:59:59+00:00").tz("Asia/Kuching").zone(), -480, "1939-09-13T15:59:59+00:00 should be -480 minutes offset in BORT"); - t.equal(moment("1939-09-13T16:00:00+00:00").tz("Asia/Kuching").zone(), -500, "1939-09-13T16:00:00+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1939-12-13T15:39:59+00:00").tz("Asia/Kuching").zone(), -500, "1939-12-13T15:39:59+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1939-12-13T15:40:00+00:00").tz("Asia/Kuching").zone(), -480, "1939-12-13T15:40:00+00:00 should be -480 minutes offset in BORT"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-09-13T15:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1940-09-13T15:59:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1940-09-13T16:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:20:00", "1940-09-13T16:00:00+00:00 should be 00:20:00 BORTST"); - t.equal(moment("1940-12-13T15:39:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1940-12-13T15:39:59+00:00 should be 23:59:59 BORTST"); - t.equal(moment("1940-12-13T15:40:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:40:00", "1940-12-13T15:40:00+00:00 should be 23:40:00 BORT"); - - t.equal(moment("1940-09-13T15:59:59+00:00").tz("Asia/Kuching").zone(), -480, "1940-09-13T15:59:59+00:00 should be -480 minutes offset in BORT"); - t.equal(moment("1940-09-13T16:00:00+00:00").tz("Asia/Kuching").zone(), -500, "1940-09-13T16:00:00+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1940-12-13T15:39:59+00:00").tz("Asia/Kuching").zone(), -500, "1940-12-13T15:39:59+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1940-12-13T15:40:00+00:00").tz("Asia/Kuching").zone(), -480, "1940-12-13T15:40:00+00:00 should be -480 minutes offset in BORT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-09-13T15:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1941-09-13T15:59:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1941-09-13T16:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:20:00", "1941-09-13T16:00:00+00:00 should be 00:20:00 BORTST"); - t.equal(moment("1941-12-13T15:39:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1941-12-13T15:39:59+00:00 should be 23:59:59 BORTST"); - t.equal(moment("1941-12-13T15:40:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:40:00", "1941-12-13T15:40:00+00:00 should be 23:40:00 BORT"); - - t.equal(moment("1941-09-13T15:59:59+00:00").tz("Asia/Kuching").zone(), -480, "1941-09-13T15:59:59+00:00 should be -480 minutes offset in BORT"); - t.equal(moment("1941-09-13T16:00:00+00:00").tz("Asia/Kuching").zone(), -500, "1941-09-13T16:00:00+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1941-12-13T15:39:59+00:00").tz("Asia/Kuching").zone(), -500, "1941-12-13T15:39:59+00:00 should be -500 minutes offset in BORTST"); - t.equal(moment("1941-12-13T15:40:00+00:00").tz("Asia/Kuching").zone(), -480, "1941-12-13T15:40:00+00:00 should be -480 minutes offset in BORT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-15T15:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1942-02-15T15:59:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1942-02-15T16:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "01:00:00", "1942-02-15T16:00:00+00:00 should be 01:00:00 JST"); - - t.equal(moment("1942-02-15T15:59:59+00:00").tz("Asia/Kuching").zone(), -480, "1942-02-15T15:59:59+00:00 should be -480 minutes offset in BORT"); - t.equal(moment("1942-02-15T16:00:00+00:00").tz("Asia/Kuching").zone(), -540, "1942-02-15T16:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-09-11T14:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1945-09-11T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-09-11T15:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:00:00", "1945-09-11T15:00:00+00:00 should be 23:00:00 BORT"); - - t.equal(moment("1945-09-11T14:59:59+00:00").tz("Asia/Kuching").zone(), -540, "1945-09-11T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-09-11T15:00:00+00:00").tz("Asia/Kuching").zone(), -480, "1945-09-11T15:00:00+00:00 should be -480 minutes offset in BORT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-12-31T15:59:59+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "23:59:59", "1981-12-31T15:59:59+00:00 should be 23:59:59 BORT"); - t.equal(moment("1981-12-31T16:00:00+00:00").tz("Asia/Kuching").format("HH:mm:ss"), "00:00:00", "1981-12-31T16:00:00+00:00 should be 00:00:00 MYT"); - - t.equal(moment("1981-12-31T15:59:59+00:00").tz("Asia/Kuching").zone(), -480, "1981-12-31T15:59:59+00:00 should be -480 minutes offset in BORT"); - t.equal(moment("1981-12-31T16:00:00+00:00").tz("Asia/Kuching").zone(), -480, "1981-12-31T16:00:00+00:00 should be -480 minutes offset in MYT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/kuwait.js b/tests/asia/kuwait.js deleted file mode 100644 index d5427200..00000000 --- a/tests/asia/kuwait.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Kuwait"] = { - - "1949" : function (t) { - t.equal(moment("1949-12-31T20:48:03+00:00").tz("Asia/Kuwait").format("HH:mm:ss"), "23:59:59", "1949-12-31T20:48:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1949-12-31T20:48:04+00:00").tz("Asia/Kuwait").format("HH:mm:ss"), "23:48:04", "1949-12-31T20:48:04+00:00 should be 23:48:04 AST"); - - t.equal(moment("1949-12-31T20:48:03+00:00").tz("Asia/Kuwait").zone(), -11516 / 60, "1949-12-31T20:48:03+00:00 should be -11516 / 60 minutes offset in LMT"); - t.equal(moment("1949-12-31T20:48:04+00:00").tz("Asia/Kuwait").zone(), -180, "1949-12-31T20:48:04+00:00 should be -180 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/macau.js b/tests/asia/macau.js deleted file mode 100644 index 73447acc..00000000 --- a/tests/asia/macau.js +++ /dev/null @@ -1,304 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Macau"] = { - - "1911" : function (t) { - t.equal(moment("1911-12-31T16:25:39+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1911-12-31T16:25:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-12-31T16:25:40+00:00").tz("Asia/Macau").format("HH:mm:ss"), "00:25:40", "1911-12-31T16:25:40+00:00 should be 00:25:40 MOT"); - - t.equal(moment("1911-12-31T16:25:39+00:00").tz("Asia/Macau").zone(), -27260 / 60, "1911-12-31T16:25:39+00:00 should be -27260 / 60 minutes offset in LMT"); - t.equal(moment("1911-12-31T16:25:40+00:00").tz("Asia/Macau").zone(), -480, "1911-12-31T16:25:40+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-03-18T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1961-03-18T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1961-03-18T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1961-03-18T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1961-11-04T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1961-11-04T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1961-11-04T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1961-11-04T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1961-03-18T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1961-03-18T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1961-03-18T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1961-03-18T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1961-11-04T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1961-11-04T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1961-11-04T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1961-11-04T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-03-17T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1962-03-17T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1962-03-17T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1962-03-17T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1962-11-03T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1962-11-03T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1962-11-03T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1962-11-03T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1962-03-17T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1962-03-17T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1962-03-17T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1962-03-17T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1962-11-03T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1962-11-03T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1962-11-03T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1962-11-03T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-03-16T15:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1963-03-16T15:59:59+00:00 should be 23:59:59 MOT"); - t.equal(moment("1963-03-16T16:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "01:00:00", "1963-03-16T16:00:00+00:00 should be 01:00:00 MOST"); - t.equal(moment("1963-11-02T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1963-11-02T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1963-11-02T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1963-11-02T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1963-03-16T15:59:59+00:00").tz("Asia/Macau").zone(), -480, "1963-03-16T15:59:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1963-03-16T16:00:00+00:00").tz("Asia/Macau").zone(), -540, "1963-03-16T16:00:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1963-11-02T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1963-11-02T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1963-11-02T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1963-11-02T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-21T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1964-03-21T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1964-03-21T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1964-03-21T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1964-10-31T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1964-10-31T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1964-10-31T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1964-10-31T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1964-03-21T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1964-03-21T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1964-03-21T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1964-03-21T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1964-10-31T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1964-10-31T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1964-10-31T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1964-10-31T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-20T15:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1965-03-20T15:59:59+00:00 should be 23:59:59 MOT"); - t.equal(moment("1965-03-20T16:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "01:00:00", "1965-03-20T16:00:00+00:00 should be 01:00:00 MOST"); - t.equal(moment("1965-10-30T14:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1965-10-30T14:59:59+00:00 should be 23:59:59 MOST"); - t.equal(moment("1965-10-30T15:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:00:00", "1965-10-30T15:00:00+00:00 should be 23:00:00 MOT"); - - t.equal(moment("1965-03-20T15:59:59+00:00").tz("Asia/Macau").zone(), -480, "1965-03-20T15:59:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1965-03-20T16:00:00+00:00").tz("Asia/Macau").zone(), -540, "1965-03-20T16:00:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1965-10-30T14:59:59+00:00").tz("Asia/Macau").zone(), -540, "1965-10-30T14:59:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1965-10-30T15:00:00+00:00").tz("Asia/Macau").zone(), -480, "1965-10-30T15:00:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-16T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1966-04-16T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1966-04-16T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1966-04-16T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1966-10-15T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1966-10-15T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1966-10-15T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1966-10-15T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1966-04-16T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1966-04-16T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1966-04-16T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1966-04-16T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1966-10-15T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1966-10-15T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1966-10-15T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1966-10-15T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-15T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1967-04-15T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1967-04-15T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1967-04-15T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1967-10-21T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1967-10-21T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1967-10-21T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1967-10-21T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1967-04-15T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1967-04-15T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1967-04-15T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1967-04-15T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1967-10-21T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1967-10-21T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1967-10-21T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1967-10-21T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-20T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1968-04-20T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1968-04-20T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1968-04-20T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1968-10-19T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1968-10-19T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1968-10-19T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1968-10-19T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1968-04-20T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1968-04-20T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1968-04-20T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1968-04-20T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1968-10-19T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1968-10-19T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1968-10-19T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1968-10-19T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-19T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1969-04-19T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1969-04-19T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1969-04-19T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1969-10-18T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1969-10-18T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1969-10-18T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1969-10-18T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1969-04-19T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1969-04-19T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1969-04-19T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1969-04-19T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1969-10-18T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1969-10-18T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1969-10-18T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1969-10-18T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-18T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1970-04-18T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1970-04-18T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1970-04-18T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1970-10-17T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1970-10-17T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1970-10-17T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1970-10-17T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1970-04-18T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1970-04-18T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1970-04-18T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1970-04-18T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1970-10-17T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1970-10-17T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1970-10-17T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1970-10-17T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-17T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1971-04-17T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1971-04-17T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1971-04-17T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1971-10-16T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1971-10-16T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1971-10-16T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1971-10-16T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1971-04-17T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1971-04-17T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1971-04-17T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1971-04-17T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1971-10-16T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1971-10-16T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1971-10-16T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1971-10-16T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-15T15:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1972-04-15T15:59:59+00:00 should be 23:59:59 MOT"); - t.equal(moment("1972-04-15T16:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "01:00:00", "1972-04-15T16:00:00+00:00 should be 01:00:00 MOST"); - t.equal(moment("1972-10-14T14:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1972-10-14T14:59:59+00:00 should be 23:59:59 MOST"); - t.equal(moment("1972-10-14T15:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:00:00", "1972-10-14T15:00:00+00:00 should be 23:00:00 MOT"); - - t.equal(moment("1972-04-15T15:59:59+00:00").tz("Asia/Macau").zone(), -480, "1972-04-15T15:59:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1972-04-15T16:00:00+00:00").tz("Asia/Macau").zone(), -540, "1972-04-15T16:00:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1972-10-14T14:59:59+00:00").tz("Asia/Macau").zone(), -540, "1972-10-14T14:59:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1972-10-14T15:00:00+00:00").tz("Asia/Macau").zone(), -480, "1972-10-14T15:00:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-14T15:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1973-04-14T15:59:59+00:00 should be 23:59:59 MOT"); - t.equal(moment("1973-04-14T16:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "01:00:00", "1973-04-14T16:00:00+00:00 should be 01:00:00 MOST"); - t.equal(moment("1973-10-20T14:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1973-10-20T14:59:59+00:00 should be 23:59:59 MOST"); - t.equal(moment("1973-10-20T15:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:00:00", "1973-10-20T15:00:00+00:00 should be 23:00:00 MOT"); - - t.equal(moment("1973-04-14T15:59:59+00:00").tz("Asia/Macau").zone(), -480, "1973-04-14T15:59:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1973-04-14T16:00:00+00:00").tz("Asia/Macau").zone(), -540, "1973-04-14T16:00:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1973-10-20T14:59:59+00:00").tz("Asia/Macau").zone(), -540, "1973-10-20T14:59:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1973-10-20T15:00:00+00:00").tz("Asia/Macau").zone(), -480, "1973-10-20T15:00:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-20T15:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1974-04-20T15:59:59+00:00 should be 23:59:59 MOT"); - t.equal(moment("1974-04-20T16:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "01:00:00", "1974-04-20T16:00:00+00:00 should be 01:00:00 MOST"); - t.equal(moment("1974-10-19T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1974-10-19T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1974-10-19T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1974-10-19T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1974-04-20T15:59:59+00:00").tz("Asia/Macau").zone(), -480, "1974-04-20T15:59:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1974-04-20T16:00:00+00:00").tz("Asia/Macau").zone(), -540, "1974-04-20T16:00:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1974-10-19T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1974-10-19T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1974-10-19T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1974-10-19T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-19T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1975-04-19T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1975-04-19T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1975-04-19T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1975-10-18T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1975-10-18T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1975-10-18T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1975-10-18T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1975-04-19T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1975-04-19T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1975-04-19T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1975-04-19T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1975-10-18T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1975-10-18T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1975-10-18T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1975-10-18T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-17T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1976-04-17T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1976-04-17T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1976-04-17T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1976-10-16T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1976-10-16T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1976-10-16T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1976-10-16T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1976-04-17T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1976-04-17T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1976-04-17T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1976-04-17T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1976-10-16T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1976-10-16T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1976-10-16T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1976-10-16T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-16T19:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1977-04-16T19:29:59+00:00 should be 03:29:59 MOT"); - t.equal(moment("1977-04-16T19:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "04:30:00", "1977-04-16T19:30:00+00:00 should be 04:30:00 MOST"); - t.equal(moment("1977-10-15T18:29:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "03:29:59", "1977-10-15T18:29:59+00:00 should be 03:29:59 MOST"); - t.equal(moment("1977-10-15T18:30:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "02:30:00", "1977-10-15T18:30:00+00:00 should be 02:30:00 MOT"); - - t.equal(moment("1977-04-16T19:29:59+00:00").tz("Asia/Macau").zone(), -480, "1977-04-16T19:29:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1977-04-16T19:30:00+00:00").tz("Asia/Macau").zone(), -540, "1977-04-16T19:30:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1977-10-15T18:29:59+00:00").tz("Asia/Macau").zone(), -540, "1977-10-15T18:29:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1977-10-15T18:30:00+00:00").tz("Asia/Macau").zone(), -480, "1977-10-15T18:30:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-15T15:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1978-04-15T15:59:59+00:00 should be 23:59:59 MOT"); - t.equal(moment("1978-04-15T16:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "01:00:00", "1978-04-15T16:00:00+00:00 should be 01:00:00 MOST"); - t.equal(moment("1978-10-14T14:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1978-10-14T14:59:59+00:00 should be 23:59:59 MOST"); - t.equal(moment("1978-10-14T15:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:00:00", "1978-10-14T15:00:00+00:00 should be 23:00:00 MOT"); - - t.equal(moment("1978-04-15T15:59:59+00:00").tz("Asia/Macau").zone(), -480, "1978-04-15T15:59:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1978-04-15T16:00:00+00:00").tz("Asia/Macau").zone(), -540, "1978-04-15T16:00:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1978-10-14T14:59:59+00:00").tz("Asia/Macau").zone(), -540, "1978-10-14T14:59:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1978-10-14T15:00:00+00:00").tz("Asia/Macau").zone(), -480, "1978-10-14T15:00:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-14T15:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1979-04-14T15:59:59+00:00 should be 23:59:59 MOT"); - t.equal(moment("1979-04-14T16:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "01:00:00", "1979-04-14T16:00:00+00:00 should be 01:00:00 MOST"); - t.equal(moment("1979-10-20T14:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1979-10-20T14:59:59+00:00 should be 23:59:59 MOST"); - t.equal(moment("1979-10-20T15:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:00:00", "1979-10-20T15:00:00+00:00 should be 23:00:00 MOT"); - - t.equal(moment("1979-04-14T15:59:59+00:00").tz("Asia/Macau").zone(), -480, "1979-04-14T15:59:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1979-04-14T16:00:00+00:00").tz("Asia/Macau").zone(), -540, "1979-04-14T16:00:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1979-10-20T14:59:59+00:00").tz("Asia/Macau").zone(), -540, "1979-10-20T14:59:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1979-10-20T15:00:00+00:00").tz("Asia/Macau").zone(), -480, "1979-10-20T15:00:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-19T15:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1980-04-19T15:59:59+00:00 should be 23:59:59 MOT"); - t.equal(moment("1980-04-19T16:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "01:00:00", "1980-04-19T16:00:00+00:00 should be 01:00:00 MOST"); - t.equal(moment("1980-10-18T14:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1980-10-18T14:59:59+00:00 should be 23:59:59 MOST"); - t.equal(moment("1980-10-18T15:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:00:00", "1980-10-18T15:00:00+00:00 should be 23:00:00 MOT"); - - t.equal(moment("1980-04-19T15:59:59+00:00").tz("Asia/Macau").zone(), -480, "1980-04-19T15:59:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1980-04-19T16:00:00+00:00").tz("Asia/Macau").zone(), -540, "1980-04-19T16:00:00+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1980-10-18T14:59:59+00:00").tz("Asia/Macau").zone(), -540, "1980-10-18T14:59:59+00:00 should be -540 minutes offset in MOST"); - t.equal(moment("1980-10-18T15:00:00+00:00").tz("Asia/Macau").zone(), -480, "1980-10-18T15:00:00+00:00 should be -480 minutes offset in MOT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-12-19T15:59:59+00:00").tz("Asia/Macau").format("HH:mm:ss"), "23:59:59", "1999-12-19T15:59:59+00:00 should be 23:59:59 MOT"); - t.equal(moment("1999-12-19T16:00:00+00:00").tz("Asia/Macau").format("HH:mm:ss"), "00:00:00", "1999-12-19T16:00:00+00:00 should be 00:00:00 CST"); - - t.equal(moment("1999-12-19T15:59:59+00:00").tz("Asia/Macau").zone(), -480, "1999-12-19T15:59:59+00:00 should be -480 minutes offset in MOT"); - t.equal(moment("1999-12-19T16:00:00+00:00").tz("Asia/Macau").zone(), -480, "1999-12-19T16:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/magadan.js b/tests/asia/magadan.js deleted file mode 100644 index 94cbd27d..00000000 --- a/tests/asia/magadan.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Magadan"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T13:56:47+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:59:59", "1924-05-01T13:56:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T13:56:48+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:56:48", "1924-05-01T13:56:48+00:00 should be 23:56:48 MAGT"); - - t.equal(moment("1924-05-01T13:56:47+00:00").tz("Asia/Magadan").zone(), -36192 / 60, "1924-05-01T13:56:47+00:00 should be -36192 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T13:56:48+00:00").tz("Asia/Magadan").zone(), -600, "1924-05-01T13:56:48+00:00 should be -600 minutes offset in MAGT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T13:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:59:59", "1930-06-20T13:59:59+00:00 should be 23:59:59 MAGT"); - t.equal(moment("1930-06-20T14:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:00:00", "1930-06-20T14:00:00+00:00 should be 01:00:00 MAGT"); - - t.equal(moment("1930-06-20T13:59:59+00:00").tz("Asia/Magadan").zone(), -600, "1930-06-20T13:59:59+00:00 should be -600 minutes offset in MAGT"); - t.equal(moment("1930-06-20T14:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1930-06-20T14:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T12:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:59:59", "1981-03-31T12:59:59+00:00 should be 23:59:59 MAGT"); - t.equal(moment("1981-03-31T13:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:00:00", "1981-03-31T13:00:00+00:00 should be 01:00:00 MAGST"); - t.equal(moment("1981-09-30T11:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:59:59", "1981-09-30T11:59:59+00:00 should be 23:59:59 MAGST"); - t.equal(moment("1981-09-30T12:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:00:00", "1981-09-30T12:00:00+00:00 should be 23:00:00 MAGT"); - - t.equal(moment("1981-03-31T12:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1981-03-31T12:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1981-03-31T13:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1981-03-31T13:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1981-09-30T11:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1981-09-30T11:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1981-09-30T12:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1981-09-30T12:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T12:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:59:59", "1982-03-31T12:59:59+00:00 should be 23:59:59 MAGT"); - t.equal(moment("1982-03-31T13:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:00:00", "1982-03-31T13:00:00+00:00 should be 01:00:00 MAGST"); - t.equal(moment("1982-09-30T11:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:59:59", "1982-09-30T11:59:59+00:00 should be 23:59:59 MAGST"); - t.equal(moment("1982-09-30T12:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:00:00", "1982-09-30T12:00:00+00:00 should be 23:00:00 MAGT"); - - t.equal(moment("1982-03-31T12:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1982-03-31T12:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1982-03-31T13:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1982-03-31T13:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1982-09-30T11:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1982-09-30T11:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1982-09-30T12:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1982-09-30T12:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T12:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:59:59", "1983-03-31T12:59:59+00:00 should be 23:59:59 MAGT"); - t.equal(moment("1983-03-31T13:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:00:00", "1983-03-31T13:00:00+00:00 should be 01:00:00 MAGST"); - t.equal(moment("1983-09-30T11:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:59:59", "1983-09-30T11:59:59+00:00 should be 23:59:59 MAGST"); - t.equal(moment("1983-09-30T12:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:00:00", "1983-09-30T12:00:00+00:00 should be 23:00:00 MAGT"); - - t.equal(moment("1983-03-31T12:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1983-03-31T12:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1983-03-31T13:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1983-03-31T13:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1983-09-30T11:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1983-09-30T11:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1983-09-30T12:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1983-09-30T12:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T12:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "23:59:59", "1984-03-31T12:59:59+00:00 should be 23:59:59 MAGT"); - t.equal(moment("1984-03-31T13:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:00:00", "1984-03-31T13:00:00+00:00 should be 01:00:00 MAGST"); - t.equal(moment("1984-09-29T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1984-09-29T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1984-09-29T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1984-09-29T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1984-03-31T12:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1984-03-31T12:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1984-03-31T13:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1984-03-31T13:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1984-09-29T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1984-09-29T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1984-09-29T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1984-09-29T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1985-03-30T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1985-03-30T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1985-03-30T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1985-09-28T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1985-09-28T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1985-09-28T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1985-09-28T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1985-03-30T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1985-03-30T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1985-03-30T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1985-03-30T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1985-09-28T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1985-09-28T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1985-09-28T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1985-09-28T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1986-03-29T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1986-03-29T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1986-03-29T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1986-09-27T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1986-09-27T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1986-09-27T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1986-09-27T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1986-03-29T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1986-03-29T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1986-03-29T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1986-03-29T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1986-09-27T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1986-09-27T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1986-09-27T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1986-09-27T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1987-03-28T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1987-03-28T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1987-03-28T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1987-09-26T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1987-09-26T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1987-09-26T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1987-09-26T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1987-03-28T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1987-03-28T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1987-03-28T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1987-03-28T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1987-09-26T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1987-09-26T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1987-09-26T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1987-09-26T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1988-03-26T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1988-03-26T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1988-03-26T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1988-09-24T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1988-09-24T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1988-09-24T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1988-09-24T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1988-03-26T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1988-03-26T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1988-03-26T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1988-03-26T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1988-09-24T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1988-09-24T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1988-09-24T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1988-09-24T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1989-03-25T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1989-03-25T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1989-03-25T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1989-09-23T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1989-09-23T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1989-09-23T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1989-09-23T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1989-03-25T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1989-03-25T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1989-03-25T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1989-03-25T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1989-09-23T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1989-09-23T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1989-09-23T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1989-09-23T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1990-03-24T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1990-03-24T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1990-03-24T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1990-09-29T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1990-09-29T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1990-09-29T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1990-09-29T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1990-03-24T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1990-03-24T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1990-03-24T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1990-03-24T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1990-09-29T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1990-09-29T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1990-09-29T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1990-09-29T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1991-03-30T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1991-03-30T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1991-03-30T15:00:00+00:00 should be 02:00:00 MAGST"); - t.equal(moment("1991-09-28T15:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1991-09-28T15:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1991-09-28T16:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1991-09-28T16:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1991-03-30T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1991-03-30T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1991-03-30T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1991-03-30T15:00:00+00:00 should be -660 minutes offset in MAGST"); - t.equal(moment("1991-09-28T15:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1991-09-28T15:59:59+00:00 should be -660 minutes offset in MAGST"); - t.equal(moment("1991-09-28T16:00:00+00:00").tz("Asia/Magadan").zone(), -600, "1991-09-28T16:00:00+00:00 should be -600 minutes offset in MAGT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T15:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1992-01-18T15:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1992-01-18T16:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1992-01-18T16:00:00+00:00 should be 03:00:00 MAGT"); - t.equal(moment("1992-03-28T11:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "22:59:59", "1992-03-28T11:59:59+00:00 should be 22:59:59 MAGT"); - t.equal(moment("1992-03-28T12:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "00:00:00", "1992-03-28T12:00:00+00:00 should be 00:00:00 MAGST"); - t.equal(moment("1992-09-26T10:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "22:59:59", "1992-09-26T10:59:59+00:00 should be 22:59:59 MAGST"); - t.equal(moment("1992-09-26T11:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "22:00:00", "1992-09-26T11:00:00+00:00 should be 22:00:00 MAGT"); - - t.equal(moment("1992-01-18T15:59:59+00:00").tz("Asia/Magadan").zone(), -600, "1992-01-18T15:59:59+00:00 should be -600 minutes offset in MAGT"); - t.equal(moment("1992-01-18T16:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1992-01-18T16:00:00+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1992-03-28T11:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1992-03-28T11:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1992-03-28T12:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1992-03-28T12:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1992-09-26T10:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1992-09-26T10:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1992-09-26T11:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1992-09-26T11:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1993-03-27T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1993-03-27T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1993-03-27T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1993-09-25T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1993-09-25T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1993-09-25T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1993-09-25T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1993-03-27T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1993-03-27T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1993-03-27T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1993-03-27T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1993-09-25T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1993-09-25T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1993-09-25T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1993-09-25T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1994-03-26T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1994-03-26T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1994-03-26T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1994-09-24T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1994-09-24T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1994-09-24T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1994-09-24T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1994-03-26T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1994-03-26T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1994-03-26T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1994-03-26T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1994-09-24T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1994-09-24T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1994-09-24T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1994-09-24T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1995-03-25T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1995-03-25T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1995-03-25T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1995-09-23T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1995-09-23T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1995-09-23T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1995-09-23T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1995-03-25T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1995-03-25T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1995-03-25T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1995-03-25T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1995-09-23T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1995-09-23T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1995-09-23T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1995-09-23T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1996-03-30T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1996-03-30T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1996-10-26T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1996-10-26T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1996-10-26T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1996-10-26T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1996-03-30T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1996-03-30T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1996-10-26T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1996-10-26T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1996-10-26T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1996-10-26T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1997-03-29T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1997-03-29T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1997-10-25T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1997-10-25T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1997-10-25T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1997-10-25T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1997-03-29T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1997-03-29T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1997-10-25T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1997-10-25T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1997-10-25T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1997-10-25T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1998-03-28T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1998-03-28T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1998-03-28T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1998-10-24T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1998-10-24T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1998-10-24T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1998-10-24T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1998-03-28T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1998-03-28T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1998-03-28T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1998-03-28T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1998-10-24T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1998-10-24T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1998-10-24T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1998-10-24T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "1999-03-27T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1999-03-27T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "1999-03-27T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1999-10-30T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "1999-10-30T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1999-10-30T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "1999-10-30T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1999-03-27T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "1999-03-27T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1999-03-27T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "1999-03-27T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1999-10-30T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "1999-10-30T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1999-10-30T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "1999-10-30T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2000-03-25T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2000-03-25T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2000-03-25T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2000-10-28T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2000-10-28T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2000-10-28T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2000-10-28T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2000-03-25T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2000-03-25T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2000-03-25T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2000-03-25T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2000-10-28T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2000-10-28T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2000-10-28T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2000-10-28T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2001-03-24T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2001-03-24T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2001-03-24T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2001-10-27T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2001-10-27T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2001-10-27T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2001-10-27T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2001-03-24T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2001-03-24T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2001-03-24T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2001-03-24T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2001-10-27T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2001-10-27T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2001-10-27T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2001-10-27T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2002-03-30T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2002-03-30T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2002-03-30T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2002-10-26T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2002-10-26T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2002-10-26T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2002-10-26T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2002-03-30T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2002-03-30T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2002-03-30T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2002-03-30T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2002-10-26T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2002-10-26T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2002-10-26T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2002-10-26T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2003-03-29T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2003-03-29T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2003-03-29T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2003-10-25T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2003-10-25T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2003-10-25T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2003-10-25T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2003-03-29T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2003-03-29T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2003-03-29T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2003-03-29T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2003-10-25T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2003-10-25T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2003-10-25T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2003-10-25T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2004-03-27T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2004-03-27T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2004-03-27T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2004-10-30T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2004-10-30T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2004-10-30T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2004-10-30T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2004-03-27T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2004-03-27T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2004-03-27T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2004-03-27T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2004-10-30T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2004-10-30T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2004-10-30T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2004-10-30T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2005-03-26T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2005-03-26T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2005-03-26T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2005-10-29T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2005-10-29T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2005-10-29T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2005-10-29T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2005-03-26T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2005-03-26T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2005-03-26T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2005-03-26T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2005-10-29T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2005-10-29T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2005-10-29T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2005-10-29T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2006-03-25T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2006-03-25T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2006-03-25T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2006-10-28T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2006-10-28T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2006-10-28T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2006-10-28T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2006-03-25T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2006-03-25T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2006-03-25T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2006-03-25T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2006-10-28T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2006-10-28T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2006-10-28T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2006-10-28T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2007-03-24T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2007-03-24T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2007-03-24T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2007-10-27T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2007-10-27T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2007-10-27T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2007-10-27T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2007-03-24T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2007-03-24T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2007-03-24T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2007-03-24T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2007-10-27T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2007-10-27T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2007-10-27T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2007-10-27T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2008-03-29T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2008-03-29T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2008-03-29T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2008-10-25T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2008-10-25T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2008-10-25T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2008-10-25T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2008-03-29T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2008-03-29T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2008-03-29T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2008-03-29T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2008-10-25T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2008-10-25T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2008-10-25T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2008-10-25T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2009-03-28T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2009-03-28T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2009-03-28T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2009-10-24T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2009-10-24T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2009-10-24T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2009-10-24T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2009-03-28T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2009-03-28T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2009-03-28T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2009-03-28T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2009-10-24T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2009-10-24T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2009-10-24T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2009-10-24T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2010-03-27T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2010-03-27T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2010-03-27T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2010-10-30T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:59:59", "2010-10-30T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2010-10-30T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "02:00:00", "2010-10-30T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2010-03-27T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2010-03-27T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2010-03-27T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2010-03-27T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2010-10-30T14:59:59+00:00").tz("Asia/Magadan").zone(), -720, "2010-10-30T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2010-10-30T15:00:00+00:00").tz("Asia/Magadan").zone(), -660, "2010-10-30T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T14:59:59+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "01:59:59", "2011-03-26T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2011-03-26T15:00:00+00:00").tz("Asia/Magadan").format("HH:mm:ss"), "03:00:00", "2011-03-26T15:00:00+00:00 should be 03:00:00 MAGT"); - - t.equal(moment("2011-03-26T14:59:59+00:00").tz("Asia/Magadan").zone(), -660, "2011-03-26T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2011-03-26T15:00:00+00:00").tz("Asia/Magadan").zone(), -720, "2011-03-26T15:00:00+00:00 should be -720 minutes offset in MAGT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/makassar.js b/tests/asia/makassar.js deleted file mode 100644 index ca337f5f..00000000 --- a/tests/asia/makassar.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Makassar"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T16:02:23+00:00").tz("Asia/Makassar").format("HH:mm:ss"), "23:59:59", "1919-12-31T16:02:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-31T16:02:24+00:00").tz("Asia/Makassar").format("HH:mm:ss"), "00:00:00", "1919-12-31T16:02:24+00:00 should be 00:00:00 MMT"); - - t.equal(moment("1919-12-31T16:02:23+00:00").tz("Asia/Makassar").zone(), -28656 / 60, "1919-12-31T16:02:23+00:00 should be -28656 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-31T16:02:24+00:00").tz("Asia/Makassar").zone(), -28656 / 60, "1919-12-31T16:02:24+00:00 should be -28656 / 60 minutes offset in MMT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-10-31T16:02:23+00:00").tz("Asia/Makassar").format("HH:mm:ss"), "23:59:59", "1932-10-31T16:02:23+00:00 should be 23:59:59 MMT"); - t.equal(moment("1932-10-31T16:02:24+00:00").tz("Asia/Makassar").format("HH:mm:ss"), "00:02:24", "1932-10-31T16:02:24+00:00 should be 00:02:24 CIT"); - - t.equal(moment("1932-10-31T16:02:23+00:00").tz("Asia/Makassar").zone(), -28656 / 60, "1932-10-31T16:02:23+00:00 should be -28656 / 60 minutes offset in MMT"); - t.equal(moment("1932-10-31T16:02:24+00:00").tz("Asia/Makassar").zone(), -480, "1932-10-31T16:02:24+00:00 should be -480 minutes offset in CIT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-08T15:59:59+00:00").tz("Asia/Makassar").format("HH:mm:ss"), "23:59:59", "1942-02-08T15:59:59+00:00 should be 23:59:59 CIT"); - t.equal(moment("1942-02-08T16:00:00+00:00").tz("Asia/Makassar").format("HH:mm:ss"), "01:00:00", "1942-02-08T16:00:00+00:00 should be 01:00:00 JST"); - - t.equal(moment("1942-02-08T15:59:59+00:00").tz("Asia/Makassar").zone(), -480, "1942-02-08T15:59:59+00:00 should be -480 minutes offset in CIT"); - t.equal(moment("1942-02-08T16:00:00+00:00").tz("Asia/Makassar").zone(), -540, "1942-02-08T16:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-09-22T14:59:59+00:00").tz("Asia/Makassar").format("HH:mm:ss"), "23:59:59", "1945-09-22T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-09-22T15:00:00+00:00").tz("Asia/Makassar").format("HH:mm:ss"), "23:00:00", "1945-09-22T15:00:00+00:00 should be 23:00:00 CIT"); - - t.equal(moment("1945-09-22T14:59:59+00:00").tz("Asia/Makassar").zone(), -540, "1945-09-22T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-09-22T15:00:00+00:00").tz("Asia/Makassar").zone(), -480, "1945-09-22T15:00:00+00:00 should be -480 minutes offset in CIT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/manila.js b/tests/asia/manila.js deleted file mode 100644 index 598baa3e..00000000 --- a/tests/asia/manila.js +++ /dev/null @@ -1,72 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Manila"] = { - - "1936" : function (t) { - t.equal(moment("1936-10-31T15:59:59+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:59:59", "1936-10-31T15:59:59+00:00 should be 23:59:59 PHT"); - t.equal(moment("1936-10-31T16:00:00+00:00").tz("Asia/Manila").format("HH:mm:ss"), "01:00:00", "1936-10-31T16:00:00+00:00 should be 01:00:00 PHST"); - - t.equal(moment("1936-10-31T15:59:59+00:00").tz("Asia/Manila").zone(), -480, "1936-10-31T15:59:59+00:00 should be -480 minutes offset in PHT"); - t.equal(moment("1936-10-31T16:00:00+00:00").tz("Asia/Manila").zone(), -540, "1936-10-31T16:00:00+00:00 should be -540 minutes offset in PHST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-01-31T14:59:59+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:59:59", "1937-01-31T14:59:59+00:00 should be 23:59:59 PHST"); - t.equal(moment("1937-01-31T15:00:00+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:00:00", "1937-01-31T15:00:00+00:00 should be 23:00:00 PHT"); - - t.equal(moment("1937-01-31T14:59:59+00:00").tz("Asia/Manila").zone(), -540, "1937-01-31T14:59:59+00:00 should be -540 minutes offset in PHST"); - t.equal(moment("1937-01-31T15:00:00+00:00").tz("Asia/Manila").zone(), -480, "1937-01-31T15:00:00+00:00 should be -480 minutes offset in PHT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-30T15:59:59+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:59:59", "1942-04-30T15:59:59+00:00 should be 23:59:59 PHT"); - t.equal(moment("1942-04-30T16:00:00+00:00").tz("Asia/Manila").format("HH:mm:ss"), "01:00:00", "1942-04-30T16:00:00+00:00 should be 01:00:00 JST"); - - t.equal(moment("1942-04-30T15:59:59+00:00").tz("Asia/Manila").zone(), -480, "1942-04-30T15:59:59+00:00 should be -480 minutes offset in PHT"); - t.equal(moment("1942-04-30T16:00:00+00:00").tz("Asia/Manila").zone(), -540, "1942-04-30T16:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-10-31T14:59:59+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:59:59", "1944-10-31T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1944-10-31T15:00:00+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:00:00", "1944-10-31T15:00:00+00:00 should be 23:00:00 PHT"); - - t.equal(moment("1944-10-31T14:59:59+00:00").tz("Asia/Manila").zone(), -540, "1944-10-31T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1944-10-31T15:00:00+00:00").tz("Asia/Manila").zone(), -480, "1944-10-31T15:00:00+00:00 should be -480 minutes offset in PHT"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-11T15:59:59+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:59:59", "1954-04-11T15:59:59+00:00 should be 23:59:59 PHT"); - t.equal(moment("1954-04-11T16:00:00+00:00").tz("Asia/Manila").format("HH:mm:ss"), "01:00:00", "1954-04-11T16:00:00+00:00 should be 01:00:00 PHST"); - t.equal(moment("1954-06-30T14:59:59+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:59:59", "1954-06-30T14:59:59+00:00 should be 23:59:59 PHST"); - t.equal(moment("1954-06-30T15:00:00+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:00:00", "1954-06-30T15:00:00+00:00 should be 23:00:00 PHT"); - - t.equal(moment("1954-04-11T15:59:59+00:00").tz("Asia/Manila").zone(), -480, "1954-04-11T15:59:59+00:00 should be -480 minutes offset in PHT"); - t.equal(moment("1954-04-11T16:00:00+00:00").tz("Asia/Manila").zone(), -540, "1954-04-11T16:00:00+00:00 should be -540 minutes offset in PHST"); - t.equal(moment("1954-06-30T14:59:59+00:00").tz("Asia/Manila").zone(), -540, "1954-06-30T14:59:59+00:00 should be -540 minutes offset in PHST"); - t.equal(moment("1954-06-30T15:00:00+00:00").tz("Asia/Manila").zone(), -480, "1954-06-30T15:00:00+00:00 should be -480 minutes offset in PHT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-21T15:59:59+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:59:59", "1978-03-21T15:59:59+00:00 should be 23:59:59 PHT"); - t.equal(moment("1978-03-21T16:00:00+00:00").tz("Asia/Manila").format("HH:mm:ss"), "01:00:00", "1978-03-21T16:00:00+00:00 should be 01:00:00 PHST"); - t.equal(moment("1978-09-20T14:59:59+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:59:59", "1978-09-20T14:59:59+00:00 should be 23:59:59 PHST"); - t.equal(moment("1978-09-20T15:00:00+00:00").tz("Asia/Manila").format("HH:mm:ss"), "23:00:00", "1978-09-20T15:00:00+00:00 should be 23:00:00 PHT"); - - t.equal(moment("1978-03-21T15:59:59+00:00").tz("Asia/Manila").zone(), -480, "1978-03-21T15:59:59+00:00 should be -480 minutes offset in PHT"); - t.equal(moment("1978-03-21T16:00:00+00:00").tz("Asia/Manila").zone(), -540, "1978-03-21T16:00:00+00:00 should be -540 minutes offset in PHST"); - t.equal(moment("1978-09-20T14:59:59+00:00").tz("Asia/Manila").zone(), -540, "1978-09-20T14:59:59+00:00 should be -540 minutes offset in PHST"); - t.equal(moment("1978-09-20T15:00:00+00:00").tz("Asia/Manila").zone(), -480, "1978-09-20T15:00:00+00:00 should be -480 minutes offset in PHT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/muscat.js b/tests/asia/muscat.js deleted file mode 100644 index 55208f98..00000000 --- a/tests/asia/muscat.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Muscat"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T20:05:35+00:00").tz("Asia/Muscat").format("HH:mm:ss"), "23:59:59", "1919-12-31T20:05:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-31T20:05:36+00:00").tz("Asia/Muscat").format("HH:mm:ss"), "00:05:36", "1919-12-31T20:05:36+00:00 should be 00:05:36 GST"); - - t.equal(moment("1919-12-31T20:05:35+00:00").tz("Asia/Muscat").zone(), -14064 / 60, "1919-12-31T20:05:35+00:00 should be -14064 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-31T20:05:36+00:00").tz("Asia/Muscat").zone(), -240, "1919-12-31T20:05:36+00:00 should be -240 minutes offset in GST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/nicosia.js b/tests/asia/nicosia.js deleted file mode 100644 index 6c8526af..00000000 --- a/tests/asia/nicosia.js +++ /dev/null @@ -1,896 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Nicosia"] = { - - "1921" : function (t) { - t.equal(moment("1921-11-13T21:46:31+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1921-11-13T21:46:31+00:00 should be 23:59:59 LMT"); - t.equal(moment("1921-11-13T21:46:32+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:46:32", "1921-11-13T21:46:32+00:00 should be 23:46:32 EET"); - - t.equal(moment("1921-11-13T21:46:31+00:00").tz("Asia/Nicosia").zone(), -8008 / 60, "1921-11-13T21:46:31+00:00 should be -8008 / 60 minutes offset in LMT"); - t.equal(moment("1921-11-13T21:46:32+00:00").tz("Asia/Nicosia").zone(), -120, "1921-11-13T21:46:32+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-12T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1975-04-12T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1975-04-12T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1975-04-12T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1975-10-11T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1975-10-11T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1975-10-11T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1975-10-11T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1975-04-12T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1975-04-12T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1975-04-12T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1975-04-12T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-10-11T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1975-10-11T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-10-11T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1975-10-11T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-05-14T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1976-05-14T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1976-05-14T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1976-05-14T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1976-10-10T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1976-10-10T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1976-10-10T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1976-10-10T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1976-05-14T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1976-05-14T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1976-05-14T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1976-05-14T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-10-10T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1976-10-10T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-10-10T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1976-10-10T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-02T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1977-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1977-04-02T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1977-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1977-09-24T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1977-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1977-09-24T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1977-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1977-04-02T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1977-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1977-04-02T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1977-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-24T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1977-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-24T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1977-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-01T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1978-04-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1978-04-01T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1978-04-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1978-10-01T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1978-10-01T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1978-10-01T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1978-10-01T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1978-04-01T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1978-04-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1978-04-01T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1978-04-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-10-01T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1978-10-01T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-10-01T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1978-10-01T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-31T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1979-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1979-03-31T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1979-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1979-09-29T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1979-09-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1979-09-29T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1979-09-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1979-03-31T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1979-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1979-03-31T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1979-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-29T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1979-09-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-29T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1979-09-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-05T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1980-04-05T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1980-04-05T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1980-04-05T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1980-09-27T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1980-09-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1980-09-27T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1980-09-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1980-04-05T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1980-04-05T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1980-04-05T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1980-04-05T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-27T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1980-09-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-27T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1980-09-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-28T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1981-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1981-03-28T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1981-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1981-09-26T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1981-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1981-09-26T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1981-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1981-03-28T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1981-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1981-03-28T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1981-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-26T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1981-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-26T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1981-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-27T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1982-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1982-03-27T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1982-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1982-09-25T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1982-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1982-09-25T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1982-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1982-03-27T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1982-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1982-03-27T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1982-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-25T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1982-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-25T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1982-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-26T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1983-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1983-03-26T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1983-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1983-09-24T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1983-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1983-09-24T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1983-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1983-03-26T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1983-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1983-03-26T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1983-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-24T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1983-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-24T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1983-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-24T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1984-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1984-03-24T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1984-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1984-09-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1984-09-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1984-03-24T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1984-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1984-03-24T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1984-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1984-09-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1984-09-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1985-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1985-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1985-09-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1985-09-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1985-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1985-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1985-09-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1985-09-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1986-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1986-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1986-09-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1986-09-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1986-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1986-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1986-09-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1986-09-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1987-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1987-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1987-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1987-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1987-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1987-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1987-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1987-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1988-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1988-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1988-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1988-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1988-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1988-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1988-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1988-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1989-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1989-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1989-09-23T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1989-09-23T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1989-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1989-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1989-09-23T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1989-09-23T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1990-03-24T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1990-03-24T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1990-09-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1990-09-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1990-03-24T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1990-03-24T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1990-09-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1990-09-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1991-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1991-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1991-09-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1991-09-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1991-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1991-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1991-09-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1991-09-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1992-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1992-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1992-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1992-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1993-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1993-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1993-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1993-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1993-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1993-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1993-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1993-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1994-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1994-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1994-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1994-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1994-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1994-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1994-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1994-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1995-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1995-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1995-09-23T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1995-09-23T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1995-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1995-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1995-09-23T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1995-09-23T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1996-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1996-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-09-28T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1996-09-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1996-09-28T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1996-09-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1996-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1996-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-28T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1996-09-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-28T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1996-09-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1997-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1997-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1997-09-27T20:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1997-09-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1997-09-27T21:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:00:00", "1997-09-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1997-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1997-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-27T20:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1997-09-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-09-27T21:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1997-09-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "23:59:59", "1998-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "01:00:00", "1998-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1998-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1998-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Asia/Nicosia").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Asia/Nicosia").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Asia/Nicosia").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Asia/Nicosia").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Asia/Nicosia").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/novokuznetsk.js b/tests/asia/novokuznetsk.js deleted file mode 100644 index 2c65b9d2..00000000 --- a/tests/asia/novokuznetsk.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Novokuznetsk"] = { - - "1920" : function (t) { - t.equal(moment("1920-01-05T18:11:11+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:59:59", "1920-01-05T18:11:11+00:00 should be 23:59:59 NMT"); - t.equal(moment("1920-01-05T18:11:12+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "00:11:12", "1920-01-05T18:11:12+00:00 should be 00:11:12 KRAT"); - - t.equal(moment("1920-01-05T18:11:11+00:00").tz("Asia/Novokuznetsk").zone(), -20928 / 60, "1920-01-05T18:11:11+00:00 should be -20928 / 60 minutes offset in NMT"); - t.equal(moment("1920-01-05T18:11:12+00:00").tz("Asia/Novokuznetsk").zone(), -360, "1920-01-05T18:11:12+00:00 should be -360 minutes offset in KRAT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T17:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:59:59", "1930-06-20T17:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1930-06-20T18:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:00:00", "1930-06-20T18:00:00+00:00 should be 01:00:00 KRAT"); - - t.equal(moment("1930-06-20T17:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -360, "1930-06-20T17:59:59+00:00 should be -360 minutes offset in KRAT"); - t.equal(moment("1930-06-20T18:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1930-06-20T18:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T16:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:59:59", "1981-03-31T16:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1981-03-31T17:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:00:00", "1981-03-31T17:00:00+00:00 should be 01:00:00 KRAST"); - t.equal(moment("1981-09-30T15:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:59:59", "1981-09-30T15:59:59+00:00 should be 23:59:59 KRAST"); - t.equal(moment("1981-09-30T16:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:00:00", "1981-09-30T16:00:00+00:00 should be 23:00:00 KRAT"); - - t.equal(moment("1981-03-31T16:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1981-03-31T16:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1981-03-31T17:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1981-03-31T17:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1981-09-30T15:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1981-09-30T15:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1981-09-30T16:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1981-09-30T16:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T16:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:59:59", "1982-03-31T16:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1982-03-31T17:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:00:00", "1982-03-31T17:00:00+00:00 should be 01:00:00 KRAST"); - t.equal(moment("1982-09-30T15:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:59:59", "1982-09-30T15:59:59+00:00 should be 23:59:59 KRAST"); - t.equal(moment("1982-09-30T16:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:00:00", "1982-09-30T16:00:00+00:00 should be 23:00:00 KRAT"); - - t.equal(moment("1982-03-31T16:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1982-03-31T16:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1982-03-31T17:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1982-03-31T17:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1982-09-30T15:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1982-09-30T15:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1982-09-30T16:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1982-09-30T16:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T16:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:59:59", "1983-03-31T16:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1983-03-31T17:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:00:00", "1983-03-31T17:00:00+00:00 should be 01:00:00 KRAST"); - t.equal(moment("1983-09-30T15:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:59:59", "1983-09-30T15:59:59+00:00 should be 23:59:59 KRAST"); - t.equal(moment("1983-09-30T16:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:00:00", "1983-09-30T16:00:00+00:00 should be 23:00:00 KRAT"); - - t.equal(moment("1983-03-31T16:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1983-03-31T16:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1983-03-31T17:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1983-03-31T17:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1983-09-30T15:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1983-09-30T15:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1983-09-30T16:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1983-09-30T16:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T16:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "23:59:59", "1984-03-31T16:59:59+00:00 should be 23:59:59 KRAT"); - t.equal(moment("1984-03-31T17:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:00:00", "1984-03-31T17:00:00+00:00 should be 01:00:00 KRAST"); - t.equal(moment("1984-09-29T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1984-09-29T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1984-09-29T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1984-09-29T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1984-03-31T16:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1984-03-31T16:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1984-03-31T17:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1984-03-31T17:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1984-09-29T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1984-09-29T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1984-09-29T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1984-09-29T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1985-03-30T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1985-03-30T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1985-03-30T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1985-09-28T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1985-09-28T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1985-09-28T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1985-09-28T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1985-03-30T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1985-03-30T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1985-03-30T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1985-03-30T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1985-09-28T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1985-09-28T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1985-09-28T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1985-09-28T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1986-03-29T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1986-03-29T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1986-03-29T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1986-09-27T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1986-09-27T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1986-09-27T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1986-09-27T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1986-03-29T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1986-03-29T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1986-03-29T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1986-03-29T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1986-09-27T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1986-09-27T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1986-09-27T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1986-09-27T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1987-03-28T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1987-03-28T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1987-03-28T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1987-09-26T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1987-09-26T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1987-09-26T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1987-09-26T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1987-03-28T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1987-03-28T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1987-03-28T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1987-03-28T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1987-09-26T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1987-09-26T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1987-09-26T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1987-09-26T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1988-03-26T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1988-03-26T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1988-03-26T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1988-09-24T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1988-09-24T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1988-09-24T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1988-09-24T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1988-03-26T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1988-03-26T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1988-03-26T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1988-03-26T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1988-09-24T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1988-09-24T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1988-09-24T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1988-09-24T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1989-03-25T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1989-03-25T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1989-03-25T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1989-09-23T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1989-09-23T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1989-09-23T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1989-09-23T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1989-03-25T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1989-03-25T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1989-03-25T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1989-03-25T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1989-09-23T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1989-09-23T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1989-09-23T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1989-09-23T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1990-03-24T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1990-03-24T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1990-03-24T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1990-09-29T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1990-09-29T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1990-09-29T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1990-09-29T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1990-03-24T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1990-03-24T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1990-03-24T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1990-03-24T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1990-09-29T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1990-09-29T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1990-09-29T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1990-09-29T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1991-03-30T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1991-03-30T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1991-03-30T19:00:00+00:00 should be 02:00:00 KRAST"); - t.equal(moment("1991-09-28T19:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1991-09-28T19:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1991-09-28T20:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1991-09-28T20:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1991-03-30T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1991-03-30T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1991-03-30T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1991-03-30T19:00:00+00:00 should be -420 minutes offset in KRAST"); - t.equal(moment("1991-09-28T19:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1991-09-28T19:59:59+00:00 should be -420 minutes offset in KRAST"); - t.equal(moment("1991-09-28T20:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -360, "1991-09-28T20:00:00+00:00 should be -360 minutes offset in KRAT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T19:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1992-01-18T19:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1992-01-18T20:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1992-01-18T20:00:00+00:00 should be 03:00:00 KRAT"); - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "22:59:59", "1992-03-28T15:59:59+00:00 should be 22:59:59 KRAT"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "00:00:00", "1992-03-28T16:00:00+00:00 should be 00:00:00 KRAST"); - t.equal(moment("1992-09-26T14:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "22:59:59", "1992-09-26T14:59:59+00:00 should be 22:59:59 KRAST"); - t.equal(moment("1992-09-26T15:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "22:00:00", "1992-09-26T15:00:00+00:00 should be 22:00:00 KRAT"); - - t.equal(moment("1992-01-18T19:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -360, "1992-01-18T19:59:59+00:00 should be -360 minutes offset in KRAT"); - t.equal(moment("1992-01-18T20:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1992-01-18T20:00:00+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1992-03-28T15:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1992-03-28T16:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1992-09-26T14:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1992-09-26T14:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1992-09-26T15:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1992-09-26T15:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1993-03-27T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1993-03-27T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1993-03-27T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1993-09-25T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1993-09-25T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1993-09-25T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1993-09-25T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1993-03-27T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1993-03-27T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1993-03-27T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1993-03-27T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1993-09-25T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1993-09-25T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1993-09-25T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1993-09-25T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1994-03-26T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1994-03-26T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1994-03-26T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1994-09-24T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1994-09-24T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1994-09-24T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1994-09-24T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1994-03-26T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1994-03-26T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1994-03-26T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1994-03-26T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1994-09-24T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1994-09-24T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1994-09-24T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1994-09-24T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1995-03-25T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1995-03-25T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1995-03-25T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1995-09-23T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1995-09-23T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1995-09-23T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1995-09-23T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1995-03-25T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1995-03-25T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1995-03-25T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1995-03-25T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1995-09-23T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1995-09-23T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1995-09-23T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1995-09-23T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1996-03-30T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1996-03-30T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1996-03-30T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1996-10-26T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1996-10-26T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1996-10-26T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1996-10-26T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1996-03-30T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1996-03-30T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1996-03-30T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1996-03-30T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1996-10-26T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1996-10-26T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1996-10-26T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1996-10-26T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1997-03-29T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1997-03-29T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1997-03-29T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1997-10-25T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1997-10-25T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1997-10-25T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1997-10-25T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1997-03-29T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1997-03-29T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1997-03-29T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1997-03-29T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1997-10-25T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1997-10-25T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1997-10-25T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1997-10-25T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1998-03-28T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1998-03-28T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1998-03-28T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1998-10-24T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1998-10-24T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1998-10-24T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1998-10-24T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1998-03-28T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1998-03-28T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1998-03-28T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1998-03-28T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1998-10-24T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1998-10-24T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1998-10-24T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1998-10-24T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "1999-03-27T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("1999-03-27T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "1999-03-27T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("1999-10-30T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "1999-10-30T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("1999-10-30T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "1999-10-30T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("1999-03-27T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1999-03-27T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("1999-03-27T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1999-03-27T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1999-10-30T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "1999-10-30T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("1999-10-30T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "1999-10-30T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2000-03-25T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2000-03-25T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2000-03-25T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2000-10-28T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2000-10-28T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2000-10-28T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2000-10-28T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2000-03-25T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2000-03-25T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2000-03-25T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2000-03-25T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2000-10-28T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2000-10-28T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2000-10-28T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2000-10-28T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2001-03-24T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2001-03-24T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2001-03-24T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2001-10-27T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2001-10-27T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2001-10-27T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2001-10-27T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2001-03-24T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2001-03-24T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2001-03-24T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2001-03-24T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2001-10-27T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2001-10-27T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2001-10-27T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2001-10-27T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2002-03-30T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2002-03-30T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2002-03-30T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2002-10-26T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2002-10-26T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2002-10-26T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2002-10-26T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2002-03-30T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2002-03-30T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2002-03-30T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2002-03-30T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2002-10-26T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2002-10-26T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2002-10-26T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2002-10-26T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2003-03-29T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2003-03-29T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2003-03-29T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2003-10-25T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2003-10-25T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2003-10-25T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2003-10-25T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2003-03-29T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2003-03-29T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2003-03-29T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2003-03-29T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2003-10-25T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2003-10-25T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2003-10-25T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2003-10-25T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2004-03-27T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2004-03-27T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2004-03-27T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2004-10-30T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2004-10-30T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2004-10-30T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2004-10-30T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2004-03-27T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2004-03-27T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2004-03-27T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2004-03-27T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2004-10-30T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2004-10-30T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2004-10-30T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2004-10-30T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2005-03-26T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2005-03-26T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2005-03-26T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2005-10-29T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2005-10-29T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2005-10-29T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2005-10-29T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2005-03-26T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2005-03-26T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2005-03-26T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2005-03-26T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2005-10-29T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2005-10-29T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2005-10-29T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2005-10-29T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2006-03-25T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2006-03-25T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2006-03-25T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2006-10-28T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2006-10-28T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2006-10-28T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2006-10-28T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2006-03-25T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2006-03-25T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2006-03-25T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2006-03-25T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2006-10-28T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2006-10-28T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2006-10-28T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2006-10-28T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2007-03-24T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2007-03-24T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2007-03-24T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2007-10-27T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2007-10-27T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2007-10-27T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2007-10-27T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2007-03-24T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2007-03-24T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2007-03-24T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2007-03-24T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2007-10-27T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2007-10-27T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2007-10-27T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2007-10-27T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2008-03-29T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2008-03-29T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2008-03-29T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2008-10-25T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2008-10-25T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2008-10-25T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2008-10-25T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2008-03-29T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2008-03-29T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2008-03-29T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2008-03-29T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2008-10-25T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2008-10-25T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2008-10-25T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2008-10-25T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2009-03-28T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2009-03-28T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2009-03-28T19:00:00+00:00 should be 03:00:00 KRAST"); - t.equal(moment("2009-10-24T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2009-10-24T18:59:59+00:00 should be 02:59:59 KRAST"); - t.equal(moment("2009-10-24T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2009-10-24T19:00:00+00:00 should be 02:00:00 KRAT"); - - t.equal(moment("2009-03-28T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2009-03-28T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2009-03-28T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2009-03-28T19:00:00+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2009-10-24T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -480, "2009-10-24T18:59:59+00:00 should be -480 minutes offset in KRAST"); - t.equal(moment("2009-10-24T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2009-10-24T19:00:00+00:00 should be -420 minutes offset in KRAT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T18:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2010-03-27T18:59:59+00:00 should be 01:59:59 KRAT"); - t.equal(moment("2010-03-27T19:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2010-03-27T19:00:00+00:00 should be 02:00:00 NOVST"); - t.equal(moment("2010-10-30T19:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:59:59", "2010-10-30T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2010-10-30T20:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "02:00:00", "2010-10-30T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2010-03-27T18:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2010-03-27T18:59:59+00:00 should be -420 minutes offset in KRAT"); - t.equal(moment("2010-03-27T19:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2010-03-27T19:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2010-10-30T19:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2010-10-30T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2010-10-30T20:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -360, "2010-10-30T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T19:59:59+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "01:59:59", "2011-03-26T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2011-03-26T20:00:00+00:00").tz("Asia/Novokuznetsk").format("HH:mm:ss"), "03:00:00", "2011-03-26T20:00:00+00:00 should be 03:00:00 NOVT"); - - t.equal(moment("2011-03-26T19:59:59+00:00").tz("Asia/Novokuznetsk").zone(), -360, "2011-03-26T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2011-03-26T20:00:00+00:00").tz("Asia/Novokuznetsk").zone(), -420, "2011-03-26T20:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/novosibirsk.js b/tests/asia/novosibirsk.js deleted file mode 100644 index d6417134..00000000 --- a/tests/asia/novosibirsk.js +++ /dev/null @@ -1,462 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Novosibirsk"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-14T00:28:19+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "05:59:59", "1919-12-14T00:28:19+00:00 should be 05:59:59 LMT"); - t.equal(moment("1919-12-14T00:28:20+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "06:28:20", "1919-12-14T00:28:20+00:00 should be 06:28:20 NOVT"); - - t.equal(moment("1919-12-14T00:28:19+00:00").tz("Asia/Novosibirsk").zone(), -19900 / 60, "1919-12-14T00:28:19+00:00 should be -19900 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-14T00:28:20+00:00").tz("Asia/Novosibirsk").zone(), -360, "1919-12-14T00:28:20+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T17:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:59:59", "1930-06-20T17:59:59+00:00 should be 23:59:59 NOVT"); - t.equal(moment("1930-06-20T18:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:00:00", "1930-06-20T18:00:00+00:00 should be 01:00:00 NOVT"); - - t.equal(moment("1930-06-20T17:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "1930-06-20T17:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("1930-06-20T18:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1930-06-20T18:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T16:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:59:59", "1981-03-31T16:59:59+00:00 should be 23:59:59 NOVT"); - t.equal(moment("1981-03-31T17:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:00:00", "1981-03-31T17:00:00+00:00 should be 01:00:00 NOVST"); - t.equal(moment("1981-09-30T15:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:59:59", "1981-09-30T15:59:59+00:00 should be 23:59:59 NOVST"); - t.equal(moment("1981-09-30T16:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:00:00", "1981-09-30T16:00:00+00:00 should be 23:00:00 NOVT"); - - t.equal(moment("1981-03-31T16:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1981-03-31T16:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1981-03-31T17:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1981-03-31T17:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1981-09-30T15:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1981-09-30T15:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1981-09-30T16:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1981-09-30T16:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T16:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:59:59", "1982-03-31T16:59:59+00:00 should be 23:59:59 NOVT"); - t.equal(moment("1982-03-31T17:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:00:00", "1982-03-31T17:00:00+00:00 should be 01:00:00 NOVST"); - t.equal(moment("1982-09-30T15:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:59:59", "1982-09-30T15:59:59+00:00 should be 23:59:59 NOVST"); - t.equal(moment("1982-09-30T16:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:00:00", "1982-09-30T16:00:00+00:00 should be 23:00:00 NOVT"); - - t.equal(moment("1982-03-31T16:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1982-03-31T16:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1982-03-31T17:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1982-03-31T17:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1982-09-30T15:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1982-09-30T15:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1982-09-30T16:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1982-09-30T16:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T16:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:59:59", "1983-03-31T16:59:59+00:00 should be 23:59:59 NOVT"); - t.equal(moment("1983-03-31T17:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:00:00", "1983-03-31T17:00:00+00:00 should be 01:00:00 NOVST"); - t.equal(moment("1983-09-30T15:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:59:59", "1983-09-30T15:59:59+00:00 should be 23:59:59 NOVST"); - t.equal(moment("1983-09-30T16:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:00:00", "1983-09-30T16:00:00+00:00 should be 23:00:00 NOVT"); - - t.equal(moment("1983-03-31T16:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1983-03-31T16:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1983-03-31T17:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1983-03-31T17:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1983-09-30T15:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1983-09-30T15:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1983-09-30T16:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1983-09-30T16:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T16:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:59:59", "1984-03-31T16:59:59+00:00 should be 23:59:59 NOVT"); - t.equal(moment("1984-03-31T17:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:00:00", "1984-03-31T17:00:00+00:00 should be 01:00:00 NOVST"); - t.equal(moment("1984-09-29T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1984-09-29T18:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1984-09-29T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1984-09-29T19:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1984-03-31T16:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1984-03-31T16:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1984-03-31T17:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1984-03-31T17:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1984-09-29T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1984-09-29T18:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1984-09-29T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1984-09-29T19:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1985-03-30T18:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1985-03-30T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1985-03-30T19:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1985-09-28T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1985-09-28T18:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1985-09-28T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1985-09-28T19:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1985-03-30T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1985-03-30T18:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1985-03-30T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1985-03-30T19:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1985-09-28T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1985-09-28T18:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1985-09-28T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1985-09-28T19:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1986-03-29T18:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1986-03-29T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1986-03-29T19:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1986-09-27T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1986-09-27T18:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1986-09-27T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1986-09-27T19:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1986-03-29T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1986-03-29T18:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1986-03-29T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1986-03-29T19:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1986-09-27T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1986-09-27T18:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1986-09-27T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1986-09-27T19:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1987-03-28T18:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1987-03-28T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1987-03-28T19:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1987-09-26T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1987-09-26T18:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1987-09-26T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1987-09-26T19:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1987-03-28T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1987-03-28T18:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1987-03-28T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1987-03-28T19:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1987-09-26T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1987-09-26T18:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1987-09-26T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1987-09-26T19:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1988-03-26T18:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1988-03-26T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1988-03-26T19:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1988-09-24T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1988-09-24T18:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1988-09-24T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1988-09-24T19:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1988-03-26T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1988-03-26T18:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1988-03-26T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1988-03-26T19:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1988-09-24T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1988-09-24T18:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1988-09-24T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1988-09-24T19:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1989-03-25T18:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1989-03-25T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1989-03-25T19:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1989-09-23T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1989-09-23T18:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1989-09-23T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1989-09-23T19:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1989-03-25T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1989-03-25T18:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1989-03-25T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1989-03-25T19:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1989-09-23T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1989-09-23T18:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1989-09-23T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1989-09-23T19:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1990-03-24T18:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1990-03-24T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1990-03-24T19:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1990-09-29T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1990-09-29T18:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1990-09-29T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1990-09-29T19:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1990-03-24T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1990-03-24T18:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1990-03-24T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1990-03-24T19:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1990-09-29T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1990-09-29T18:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1990-09-29T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1990-09-29T19:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1991-03-30T18:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1991-03-30T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1991-03-30T19:00:00+00:00 should be 02:00:00 NOVST"); - t.equal(moment("1991-09-28T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1991-09-28T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1991-09-28T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1991-09-28T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1991-03-30T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1991-03-30T18:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1991-03-30T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1991-03-30T19:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1991-09-28T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1991-09-28T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1991-09-28T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "1991-09-28T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1992-01-18T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1992-01-18T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1992-01-18T20:00:00+00:00 should be 03:00:00 NOVT"); - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "22:59:59", "1992-03-28T15:59:59+00:00 should be 22:59:59 NOVT"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "00:00:00", "1992-03-28T16:00:00+00:00 should be 00:00:00 NOVST"); - t.equal(moment("1992-09-26T14:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "22:59:59", "1992-09-26T14:59:59+00:00 should be 22:59:59 NOVST"); - t.equal(moment("1992-09-26T15:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "22:00:00", "1992-09-26T15:00:00+00:00 should be 22:00:00 NOVT"); - - t.equal(moment("1992-01-18T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "1992-01-18T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("1992-01-18T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1992-01-18T20:00:00+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1992-03-28T15:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1992-03-28T16:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1992-09-26T14:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1992-09-26T14:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1992-09-26T15:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1992-09-26T15:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T18:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1993-03-27T18:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1993-03-27T19:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1993-03-27T19:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1993-05-22T15:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:59:59", "1993-05-22T15:59:59+00:00 should be 23:59:59 NOVST"); - t.equal(moment("1993-05-22T16:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "23:00:00", "1993-05-22T16:00:00+00:00 should be 23:00:00 NOVST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1993-09-25T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1993-09-25T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1993-03-27T18:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1993-03-27T18:59:59+00:00 should be -420 minutes offset in NOVT"); - t.equal(moment("1993-03-27T19:00:00+00:00").tz("Asia/Novosibirsk").zone(), -480, "1993-03-27T19:00:00+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1993-05-22T15:59:59+00:00").tz("Asia/Novosibirsk").zone(), -480, "1993-05-22T15:59:59+00:00 should be -480 minutes offset in NOVST"); - t.equal(moment("1993-05-22T16:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1993-05-22T16:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1993-09-25T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "1993-09-25T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1994-03-26T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1994-03-26T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1994-03-26T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1994-09-24T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1994-09-24T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1994-03-26T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "1994-03-26T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("1994-03-26T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1994-03-26T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1994-09-24T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "1994-09-24T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1995-03-25T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1995-03-25T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1995-09-23T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1995-09-23T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "1995-03-25T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1995-03-25T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1995-09-23T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "1995-09-23T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1996-03-30T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1996-03-30T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1996-10-26T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1996-10-26T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1996-10-26T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1996-10-26T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "1996-03-30T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1996-03-30T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1996-10-26T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1996-10-26T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1996-10-26T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "1996-10-26T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1997-03-29T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1997-03-29T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1997-03-29T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1997-10-25T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1997-10-25T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1997-10-25T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1997-10-25T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1997-03-29T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "1997-03-29T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("1997-03-29T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1997-03-29T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1997-10-25T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1997-10-25T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1997-10-25T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "1997-10-25T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1998-03-28T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1998-03-28T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1998-10-24T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1998-10-24T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1998-10-24T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1998-10-24T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "1998-03-28T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1998-03-28T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1998-10-24T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1998-10-24T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1998-10-24T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "1998-10-24T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "1999-03-27T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "1999-03-27T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("1999-10-30T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "1999-10-30T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("1999-10-30T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "1999-10-30T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "1999-03-27T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "1999-03-27T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1999-10-30T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "1999-10-30T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("1999-10-30T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "1999-10-30T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2000-03-25T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2000-03-25T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2000-10-28T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2000-10-28T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2000-10-28T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2000-10-28T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2000-03-25T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2000-03-25T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2000-10-28T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2000-10-28T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2000-10-28T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2000-10-28T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2001-03-24T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2001-03-24T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2001-10-27T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2001-10-27T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2001-10-27T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2001-10-27T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2001-03-24T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2001-03-24T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2001-10-27T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2001-10-27T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2001-10-27T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2001-10-27T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2002-03-30T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2002-03-30T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2002-10-26T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2002-10-26T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2002-10-26T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2002-10-26T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2002-03-30T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2002-03-30T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2002-10-26T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2002-10-26T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2002-10-26T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2002-10-26T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2003-03-29T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2003-03-29T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2003-10-25T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2003-10-25T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2003-10-25T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2003-10-25T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2003-03-29T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2003-03-29T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2003-10-25T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2003-10-25T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2003-10-25T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2003-10-25T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2004-03-27T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2004-03-27T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2004-10-30T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2004-10-30T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2004-10-30T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2004-10-30T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2004-03-27T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2004-03-27T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2004-10-30T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2004-10-30T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2004-10-30T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2004-10-30T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2005-03-26T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2005-03-26T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2005-03-26T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2005-10-29T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2005-10-29T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2005-10-29T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2005-10-29T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2005-03-26T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2005-03-26T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2005-03-26T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2005-03-26T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2005-10-29T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2005-10-29T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2005-10-29T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2005-10-29T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2006-03-25T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2006-03-25T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2006-03-25T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2006-10-28T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2006-10-28T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2006-10-28T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2006-10-28T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2006-03-25T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2006-03-25T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2006-03-25T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2006-03-25T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2006-10-28T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2006-10-28T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2006-10-28T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2006-10-28T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2007-03-24T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2007-03-24T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2007-03-24T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2007-10-27T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2007-10-27T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2007-10-27T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2007-10-27T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2007-03-24T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2007-03-24T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2007-03-24T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2007-03-24T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2007-10-27T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2007-10-27T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2007-10-27T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2007-10-27T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2008-03-29T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2008-03-29T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2008-03-29T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2008-10-25T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2008-10-25T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2008-10-25T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2008-10-25T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2008-03-29T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2008-03-29T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2008-03-29T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2008-03-29T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2008-10-25T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2008-10-25T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2008-10-25T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2008-10-25T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2009-03-28T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2009-03-28T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2009-03-28T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2009-10-24T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2009-10-24T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2009-10-24T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2009-10-24T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2009-03-28T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2009-03-28T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2009-03-28T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2009-03-28T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2009-10-24T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2009-10-24T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2009-10-24T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2009-10-24T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2010-03-27T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2010-03-27T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2010-03-27T20:00:00+00:00 should be 03:00:00 NOVST"); - t.equal(moment("2010-10-30T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:59:59", "2010-10-30T19:59:59+00:00 should be 02:59:59 NOVST"); - t.equal(moment("2010-10-30T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "02:00:00", "2010-10-30T20:00:00+00:00 should be 02:00:00 NOVT"); - - t.equal(moment("2010-03-27T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2010-03-27T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2010-03-27T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2010-03-27T20:00:00+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2010-10-30T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -420, "2010-10-30T19:59:59+00:00 should be -420 minutes offset in NOVST"); - t.equal(moment("2010-10-30T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -360, "2010-10-30T20:00:00+00:00 should be -360 minutes offset in NOVT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T19:59:59+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "01:59:59", "2011-03-26T19:59:59+00:00 should be 01:59:59 NOVT"); - t.equal(moment("2011-03-26T20:00:00+00:00").tz("Asia/Novosibirsk").format("HH:mm:ss"), "03:00:00", "2011-03-26T20:00:00+00:00 should be 03:00:00 NOVT"); - - t.equal(moment("2011-03-26T19:59:59+00:00").tz("Asia/Novosibirsk").zone(), -360, "2011-03-26T19:59:59+00:00 should be -360 minutes offset in NOVT"); - t.equal(moment("2011-03-26T20:00:00+00:00").tz("Asia/Novosibirsk").zone(), -420, "2011-03-26T20:00:00+00:00 should be -420 minutes offset in NOVT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/omsk.js b/tests/asia/omsk.js deleted file mode 100644 index f6ae785b..00000000 --- a/tests/asia/omsk.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Omsk"] = { - - "1919" : function (t) { - t.equal(moment("1919-11-13T19:06:23+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:59:59", "1919-11-13T19:06:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-11-13T19:06:24+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "00:06:24", "1919-11-13T19:06:24+00:00 should be 00:06:24 OMST"); - - t.equal(moment("1919-11-13T19:06:23+00:00").tz("Asia/Omsk").zone(), -17616 / 60, "1919-11-13T19:06:23+00:00 should be -17616 / 60 minutes offset in LMT"); - t.equal(moment("1919-11-13T19:06:24+00:00").tz("Asia/Omsk").zone(), -300, "1919-11-13T19:06:24+00:00 should be -300 minutes offset in OMST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:59:59", "1930-06-20T18:59:59+00:00 should be 23:59:59 OMST"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:00:00", "1930-06-20T19:00:00+00:00 should be 01:00:00 OMST"); - - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Omsk").zone(), -300, "1930-06-20T18:59:59+00:00 should be -300 minutes offset in OMST"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1930-06-20T19:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:59:59", "1981-03-31T17:59:59+00:00 should be 23:59:59 OMST"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:00:00", "1981-03-31T18:00:00+00:00 should be 01:00:00 OMSST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:59:59", "1981-09-30T16:59:59+00:00 should be 23:59:59 OMSST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:00:00", "1981-09-30T17:00:00+00:00 should be 23:00:00 OMST"); - - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1981-03-31T17:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1981-03-31T18:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1981-09-30T16:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1981-09-30T17:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 OMST"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:00:00", "1982-03-31T18:00:00+00:00 should be 01:00:00 OMSST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:59:59", "1982-09-30T16:59:59+00:00 should be 23:59:59 OMSST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:00:00", "1982-09-30T17:00:00+00:00 should be 23:00:00 OMST"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1982-03-31T18:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1982-09-30T16:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1982-09-30T17:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:59:59", "1983-03-31T17:59:59+00:00 should be 23:59:59 OMST"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:00:00", "1983-03-31T18:00:00+00:00 should be 01:00:00 OMSST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:59:59", "1983-09-30T16:59:59+00:00 should be 23:59:59 OMSST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:00:00", "1983-09-30T17:00:00+00:00 should be 23:00:00 OMST"); - - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1983-03-31T17:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1983-03-31T18:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1983-09-30T16:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1983-09-30T17:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "23:59:59", "1984-03-31T17:59:59+00:00 should be 23:59:59 OMST"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:00:00", "1984-03-31T18:00:00+00:00 should be 01:00:00 OMSST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1984-09-29T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1984-09-29T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1984-03-31T17:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1984-03-31T18:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1984-09-29T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1984-09-29T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1985-03-30T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1985-03-30T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1985-09-28T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1985-09-28T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1985-03-30T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1985-03-30T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1985-09-28T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1985-09-28T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1986-03-29T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1986-03-29T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1986-09-27T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1986-09-27T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1986-03-29T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1986-03-29T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1986-09-27T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1986-09-27T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1987-03-28T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1987-03-28T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1987-09-26T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1987-09-26T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1987-03-28T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1987-03-28T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1987-09-26T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1987-09-26T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1988-03-26T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1988-03-26T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1988-09-24T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1988-09-24T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1988-03-26T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1988-03-26T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1988-09-24T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1988-09-24T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1989-03-25T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1989-03-25T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1989-09-23T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1989-09-23T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1989-03-25T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1989-03-25T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1989-09-23T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1989-09-23T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1990-03-24T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1990-03-24T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1990-09-29T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1990-09-29T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1990-03-24T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1990-03-24T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1990-09-29T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1990-09-29T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1991-03-30T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1991-03-30T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1991-03-30T20:00:00+00:00 should be 02:00:00 OMSST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1991-09-28T20:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1991-09-28T21:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1991-03-30T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1991-03-30T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1991-03-30T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1991-03-30T20:00:00+00:00 should be -360 minutes offset in OMSST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1991-09-28T20:59:59+00:00 should be -360 minutes offset in OMSST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Asia/Omsk").zone(), -300, "1991-09-28T21:00:00+00:00 should be -300 minutes offset in OMST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T20:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1992-01-18T20:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1992-01-18T21:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1992-01-18T21:00:00+00:00 should be 03:00:00 OMST"); - t.equal(moment("1992-03-28T16:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "22:59:59", "1992-03-28T16:59:59+00:00 should be 22:59:59 OMST"); - t.equal(moment("1992-03-28T17:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "00:00:00", "1992-03-28T17:00:00+00:00 should be 00:00:00 OMSST"); - t.equal(moment("1992-09-26T15:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "22:59:59", "1992-09-26T15:59:59+00:00 should be 22:59:59 OMSST"); - t.equal(moment("1992-09-26T16:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "22:00:00", "1992-09-26T16:00:00+00:00 should be 22:00:00 OMST"); - - t.equal(moment("1992-01-18T20:59:59+00:00").tz("Asia/Omsk").zone(), -300, "1992-01-18T20:59:59+00:00 should be -300 minutes offset in OMST"); - t.equal(moment("1992-01-18T21:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1992-01-18T21:00:00+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1992-03-28T16:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1992-03-28T16:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1992-03-28T17:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1992-03-28T17:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1992-09-26T15:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1992-09-26T15:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1992-09-26T16:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1992-09-26T16:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1993-03-27T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1993-03-27T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1993-03-27T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1993-09-25T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1993-09-25T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1993-03-27T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1993-03-27T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1993-03-27T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1993-03-27T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1993-09-25T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1993-09-25T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1994-03-26T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1994-03-26T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1994-03-26T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1994-09-24T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1994-09-24T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1994-03-26T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1994-03-26T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1994-03-26T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1994-03-26T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1994-09-24T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1994-09-24T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1995-03-25T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1995-03-25T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1995-09-23T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1995-09-23T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1995-03-25T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1995-03-25T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1995-09-23T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1995-09-23T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1996-03-30T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1996-03-30T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1996-10-26T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1996-10-26T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1996-10-26T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1996-10-26T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1996-03-30T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1996-03-30T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1996-10-26T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1996-10-26T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1996-10-26T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1996-10-26T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1997-03-29T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1997-03-29T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1997-03-29T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1997-10-25T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1997-10-25T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1997-10-25T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1997-10-25T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1997-03-29T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1997-03-29T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1997-03-29T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1997-03-29T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1997-10-25T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1997-10-25T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1997-10-25T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1997-10-25T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1998-03-28T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1998-03-28T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1998-10-24T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1998-10-24T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1998-10-24T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1998-10-24T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1998-03-28T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1998-03-28T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1998-10-24T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1998-10-24T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1998-10-24T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1998-10-24T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "1999-03-27T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "1999-03-27T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("1999-10-30T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "1999-10-30T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("1999-10-30T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "1999-10-30T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "1999-03-27T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "1999-03-27T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1999-10-30T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "1999-10-30T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("1999-10-30T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "1999-10-30T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2000-03-25T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2000-03-25T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2000-10-28T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2000-10-28T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2000-10-28T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2000-10-28T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2000-03-25T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2000-03-25T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2000-10-28T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2000-10-28T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2000-10-28T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2000-10-28T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2001-03-24T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2001-03-24T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2001-10-27T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2001-10-27T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2001-10-27T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2001-10-27T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2001-03-24T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2001-03-24T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2001-10-27T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2001-10-27T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2001-10-27T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2001-10-27T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2002-03-30T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2002-03-30T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2002-10-26T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2002-10-26T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2002-10-26T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2002-10-26T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2002-03-30T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2002-03-30T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2002-10-26T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2002-10-26T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2002-10-26T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2002-10-26T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2003-03-29T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2003-03-29T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2003-10-25T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2003-10-25T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2003-10-25T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2003-10-25T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2003-03-29T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2003-03-29T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2003-10-25T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2003-10-25T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2003-10-25T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2003-10-25T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2004-03-27T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2004-03-27T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2004-10-30T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2004-10-30T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2004-10-30T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2004-10-30T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2004-03-27T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2004-03-27T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2004-10-30T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2004-10-30T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2004-10-30T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2004-10-30T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2005-03-26T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2005-03-26T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2005-03-26T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2005-10-29T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2005-10-29T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2005-10-29T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2005-10-29T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2005-03-26T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2005-03-26T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2005-03-26T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2005-03-26T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2005-10-29T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2005-10-29T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2005-10-29T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2005-10-29T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2006-03-25T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2006-03-25T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2006-03-25T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2006-10-28T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2006-10-28T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2006-10-28T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2006-10-28T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2006-03-25T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2006-03-25T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2006-03-25T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2006-03-25T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2006-10-28T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2006-10-28T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2006-10-28T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2006-10-28T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2007-03-24T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2007-03-24T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2007-03-24T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2007-10-27T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2007-10-27T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2007-10-27T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2007-10-27T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2007-03-24T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2007-03-24T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2007-03-24T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2007-03-24T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2007-10-27T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2007-10-27T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2007-10-27T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2007-10-27T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2008-03-29T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2008-03-29T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2008-03-29T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2008-10-25T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2008-10-25T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2008-10-25T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2008-10-25T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2008-03-29T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2008-03-29T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2008-03-29T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2008-03-29T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2008-10-25T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2008-10-25T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2008-10-25T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2008-10-25T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2009-03-28T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2009-03-28T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2009-03-28T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2009-10-24T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2009-10-24T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2009-10-24T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2009-10-24T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2009-03-28T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2009-03-28T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2009-03-28T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2009-03-28T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2009-10-24T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2009-10-24T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2009-10-24T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2009-10-24T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2010-03-27T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2010-03-27T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2010-03-27T20:00:00+00:00 should be 03:00:00 OMSST"); - t.equal(moment("2010-10-30T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:59:59", "2010-10-30T19:59:59+00:00 should be 02:59:59 OMSST"); - t.equal(moment("2010-10-30T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "02:00:00", "2010-10-30T20:00:00+00:00 should be 02:00:00 OMST"); - - t.equal(moment("2010-03-27T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2010-03-27T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2010-03-27T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2010-03-27T20:00:00+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2010-10-30T19:59:59+00:00").tz("Asia/Omsk").zone(), -420, "2010-10-30T19:59:59+00:00 should be -420 minutes offset in OMSST"); - t.equal(moment("2010-10-30T20:00:00+00:00").tz("Asia/Omsk").zone(), -360, "2010-10-30T20:00:00+00:00 should be -360 minutes offset in OMST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T19:59:59+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "01:59:59", "2011-03-26T19:59:59+00:00 should be 01:59:59 OMST"); - t.equal(moment("2011-03-26T20:00:00+00:00").tz("Asia/Omsk").format("HH:mm:ss"), "03:00:00", "2011-03-26T20:00:00+00:00 should be 03:00:00 OMST"); - - t.equal(moment("2011-03-26T19:59:59+00:00").tz("Asia/Omsk").zone(), -360, "2011-03-26T19:59:59+00:00 should be -360 minutes offset in OMST"); - t.equal(moment("2011-03-26T20:00:00+00:00").tz("Asia/Omsk").zone(), -420, "2011-03-26T20:00:00+00:00 should be -420 minutes offset in OMST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/oral.js b/tests/asia/oral.js deleted file mode 100644 index 07a0ce42..00000000 --- a/tests/asia/oral.js +++ /dev/null @@ -1,366 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Oral"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T20:34:35+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1924-05-01T20:34:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T20:34:36+00:00").tz("Asia/Oral").format("HH:mm:ss"), "00:34:36", "1924-05-01T20:34:36+00:00 should be 00:34:36 URAT"); - - t.equal(moment("1924-05-01T20:34:35+00:00").tz("Asia/Oral").zone(), -12324 / 60, "1924-05-01T20:34:35+00:00 should be -12324 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T20:34:36+00:00").tz("Asia/Oral").zone(), -240, "1924-05-01T20:34:36+00:00 should be -240 minutes offset in URAT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1930-06-20T19:59:59+00:00 should be 23:59:59 URAT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:00:00", "1930-06-20T20:00:00+00:00 should be 01:00:00 URAT"); - - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Oral").zone(), -240, "1930-06-20T19:59:59+00:00 should be -240 minutes offset in URAT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Oral").zone(), -300, "1930-06-20T20:00:00+00:00 should be -300 minutes offset in URAT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1981-03-31T18:59:59+00:00 should be 23:59:59 URAT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:00:00", "1981-03-31T19:00:00+00:00 should be 01:00:00 URAST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1981-09-30T17:59:59+00:00 should be 23:59:59 URAST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "00:00:00", "1981-09-30T18:00:00+00:00 should be 00:00:00 URAT"); - - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Oral").zone(), -300, "1981-03-31T18:59:59+00:00 should be -300 minutes offset in URAT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Oral").zone(), -360, "1981-03-31T19:00:00+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Oral").zone(), -360, "1981-09-30T17:59:59+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Oral").zone(), -360, "1981-09-30T18:00:00+00:00 should be -360 minutes offset in URAT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 URAT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "00:00:00", "1982-03-31T18:00:00+00:00 should be 00:00:00 URAST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1982-09-30T17:59:59+00:00 should be 23:59:59 URAST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:00:00", "1982-09-30T18:00:00+00:00 should be 23:00:00 URAT"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Oral").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in URAT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Oral").zone(), -360, "1982-03-31T18:00:00+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Oral").zone(), -360, "1982-09-30T17:59:59+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Oral").zone(), -300, "1982-09-30T18:00:00+00:00 should be -300 minutes offset in URAT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1983-03-31T18:59:59+00:00 should be 23:59:59 URAT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:00:00", "1983-03-31T19:00:00+00:00 should be 01:00:00 URAST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1983-09-30T17:59:59+00:00 should be 23:59:59 URAST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:00:00", "1983-09-30T18:00:00+00:00 should be 23:00:00 URAT"); - - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Oral").zone(), -300, "1983-03-31T18:59:59+00:00 should be -300 minutes offset in URAT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Oral").zone(), -360, "1983-03-31T19:00:00+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Oral").zone(), -360, "1983-09-30T17:59:59+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Oral").zone(), -300, "1983-09-30T18:00:00+00:00 should be -300 minutes offset in URAT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1984-03-31T18:59:59+00:00 should be 23:59:59 URAT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:00:00", "1984-03-31T19:00:00+00:00 should be 01:00:00 URAST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1984-09-29T20:59:59+00:00 should be 02:59:59 URAST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1984-09-29T21:00:00+00:00 should be 02:00:00 URAT"); - - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Oral").zone(), -300, "1984-03-31T18:59:59+00:00 should be -300 minutes offset in URAT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Oral").zone(), -360, "1984-03-31T19:00:00+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Oral").zone(), -360, "1984-09-29T20:59:59+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Oral").zone(), -300, "1984-09-29T21:00:00+00:00 should be -300 minutes offset in URAT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1985-03-30T20:59:59+00:00 should be 01:59:59 URAT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1985-03-30T21:00:00+00:00 should be 03:00:00 URAST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1985-09-28T20:59:59+00:00 should be 02:59:59 URAST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1985-09-28T21:00:00+00:00 should be 02:00:00 URAT"); - - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Oral").zone(), -300, "1985-03-30T20:59:59+00:00 should be -300 minutes offset in URAT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Oral").zone(), -360, "1985-03-30T21:00:00+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Oral").zone(), -360, "1985-09-28T20:59:59+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Oral").zone(), -300, "1985-09-28T21:00:00+00:00 should be -300 minutes offset in URAT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1986-03-29T20:59:59+00:00 should be 01:59:59 URAT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1986-03-29T21:00:00+00:00 should be 03:00:00 URAST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1986-09-27T20:59:59+00:00 should be 02:59:59 URAST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1986-09-27T21:00:00+00:00 should be 02:00:00 URAT"); - - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Oral").zone(), -300, "1986-03-29T20:59:59+00:00 should be -300 minutes offset in URAT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Oral").zone(), -360, "1986-03-29T21:00:00+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Oral").zone(), -360, "1986-09-27T20:59:59+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Oral").zone(), -300, "1986-09-27T21:00:00+00:00 should be -300 minutes offset in URAT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1987-03-28T20:59:59+00:00 should be 01:59:59 URAT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1987-03-28T21:00:00+00:00 should be 03:00:00 URAST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1987-09-26T20:59:59+00:00 should be 02:59:59 URAST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1987-09-26T21:00:00+00:00 should be 02:00:00 URAT"); - - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Oral").zone(), -300, "1987-03-28T20:59:59+00:00 should be -300 minutes offset in URAT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Oral").zone(), -360, "1987-03-28T21:00:00+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Oral").zone(), -360, "1987-09-26T20:59:59+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Oral").zone(), -300, "1987-09-26T21:00:00+00:00 should be -300 minutes offset in URAT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1988-03-26T20:59:59+00:00 should be 01:59:59 URAT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1988-03-26T21:00:00+00:00 should be 03:00:00 URAST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1988-09-24T20:59:59+00:00 should be 02:59:59 URAST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1988-09-24T21:00:00+00:00 should be 02:00:00 URAT"); - - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Oral").zone(), -300, "1988-03-26T20:59:59+00:00 should be -300 minutes offset in URAT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Oral").zone(), -360, "1988-03-26T21:00:00+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Oral").zone(), -360, "1988-09-24T20:59:59+00:00 should be -360 minutes offset in URAST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Oral").zone(), -300, "1988-09-24T21:00:00+00:00 should be -300 minutes offset in URAT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1989-03-25T20:59:59+00:00 should be 01:59:59 URAT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1989-03-25T21:00:00+00:00 should be 02:00:00 URAST"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1989-09-23T21:59:59+00:00 should be 02:59:59 URAST"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1989-09-23T22:00:00+00:00 should be 02:00:00 URAT"); - - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Oral").zone(), -300, "1989-03-25T20:59:59+00:00 should be -300 minutes offset in URAT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Oral").zone(), -300, "1989-03-25T21:00:00+00:00 should be -300 minutes offset in URAST"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "1989-09-23T21:59:59+00:00 should be -300 minutes offset in URAST"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "1989-09-23T22:00:00+00:00 should be -240 minutes offset in URAT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1990-03-24T21:59:59+00:00 should be 01:59:59 URAT"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1990-03-24T22:00:00+00:00 should be 03:00:00 URAST"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1990-09-29T21:59:59+00:00 should be 02:59:59 URAST"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1990-09-29T22:00:00+00:00 should be 02:00:00 URAT"); - - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "1990-03-24T21:59:59+00:00 should be -240 minutes offset in URAT"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "1990-03-24T22:00:00+00:00 should be -300 minutes offset in URAST"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "1990-09-29T21:59:59+00:00 should be -300 minutes offset in URAST"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "1990-09-29T22:00:00+00:00 should be -240 minutes offset in URAT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-12-15T19:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "1991-12-15T19:59:59+00:00 should be 23:59:59 URAT"); - t.equal(moment("1991-12-15T20:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "00:00:00", "1991-12-15T20:00:00+00:00 should be 00:00:00 ORAT"); - - t.equal(moment("1991-12-15T19:59:59+00:00").tz("Asia/Oral").zone(), -240, "1991-12-15T19:59:59+00:00 should be -240 minutes offset in URAT"); - t.equal(moment("1991-12-15T20:00:00+00:00").tz("Asia/Oral").zone(), -240, "1991-12-15T20:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T18:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "22:59:59", "1992-03-28T18:59:59+00:00 should be 22:59:59 ORAT"); - t.equal(moment("1992-03-28T19:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "00:00:00", "1992-03-28T19:00:00+00:00 should be 00:00:00 ORAST"); - t.equal(moment("1992-09-26T17:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "22:59:59", "1992-09-26T17:59:59+00:00 should be 22:59:59 ORAST"); - t.equal(moment("1992-09-26T18:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "22:00:00", "1992-09-26T18:00:00+00:00 should be 22:00:00 ORAT"); - - t.equal(moment("1992-03-28T18:59:59+00:00").tz("Asia/Oral").zone(), -240, "1992-03-28T18:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("1992-03-28T19:00:00+00:00").tz("Asia/Oral").zone(), -300, "1992-03-28T19:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1992-09-26T17:59:59+00:00").tz("Asia/Oral").zone(), -300, "1992-09-26T17:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1992-09-26T18:00:00+00:00").tz("Asia/Oral").zone(), -240, "1992-09-26T18:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1993-03-27T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1993-03-27T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("1993-09-25T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1993-09-25T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("1993-09-25T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1993-09-25T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "1993-03-27T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "1993-03-27T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1993-09-25T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "1993-09-25T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1993-09-25T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "1993-09-25T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1994-03-26T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1994-03-26T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("1994-09-24T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1994-09-24T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("1994-09-24T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1994-09-24T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "1994-03-26T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "1994-03-26T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1994-09-24T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "1994-09-24T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1994-09-24T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "1994-09-24T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1995-03-25T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1995-03-25T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("1995-09-23T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1995-09-23T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("1995-09-23T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1995-09-23T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "1995-03-25T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "1995-03-25T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1995-09-23T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "1995-09-23T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1995-09-23T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "1995-09-23T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1996-03-30T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1996-03-30T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("1996-10-26T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1996-10-26T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("1996-10-26T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1996-10-26T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "1996-03-30T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "1996-03-30T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1996-10-26T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "1996-10-26T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1996-10-26T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "1996-10-26T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1997-03-29T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1997-03-29T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("1997-10-25T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1997-10-25T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("1997-10-25T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1997-10-25T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "1997-03-29T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "1997-03-29T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1997-10-25T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "1997-10-25T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1997-10-25T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "1997-10-25T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1998-03-28T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1998-03-28T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("1998-10-24T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1998-10-24T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("1998-10-24T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1998-10-24T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "1998-03-28T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "1998-03-28T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1998-10-24T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "1998-10-24T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1998-10-24T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "1998-10-24T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "1999-03-27T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "1999-03-27T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("1999-10-30T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "1999-10-30T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("1999-10-30T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "1999-10-30T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "1999-03-27T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "1999-03-27T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1999-10-30T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "1999-10-30T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("1999-10-30T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "1999-10-30T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "2000-03-25T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "2000-03-25T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("2000-10-28T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "2000-10-28T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("2000-10-28T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "2000-10-28T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "2000-03-25T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "2000-03-25T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2000-10-28T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "2000-10-28T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2000-10-28T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "2000-10-28T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "2001-03-24T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "2001-03-24T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("2001-10-27T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "2001-10-27T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("2001-10-27T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "2001-10-27T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "2001-03-24T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "2001-03-24T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2001-10-27T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "2001-10-27T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2001-10-27T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "2001-10-27T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "2002-03-30T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "2002-03-30T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("2002-10-26T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "2002-10-26T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("2002-10-26T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "2002-10-26T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "2002-03-30T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "2002-03-30T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2002-10-26T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "2002-10-26T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2002-10-26T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "2002-10-26T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "2003-03-29T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "2003-03-29T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("2003-10-25T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "2003-10-25T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("2003-10-25T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "2003-10-25T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "2003-03-29T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "2003-03-29T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2003-10-25T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "2003-10-25T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2003-10-25T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "2003-10-25T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:59:59", "2004-03-27T21:59:59+00:00 should be 01:59:59 ORAT"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "03:00:00", "2004-03-27T22:00:00+00:00 should be 03:00:00 ORAST"); - t.equal(moment("2004-10-30T21:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:59:59", "2004-10-30T21:59:59+00:00 should be 02:59:59 ORAST"); - t.equal(moment("2004-10-30T22:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "02:00:00", "2004-10-30T22:00:00+00:00 should be 02:00:00 ORAT"); - - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Asia/Oral").zone(), -240, "2004-03-27T21:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Asia/Oral").zone(), -300, "2004-03-27T22:00:00+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2004-10-30T21:59:59+00:00").tz("Asia/Oral").zone(), -300, "2004-10-30T21:59:59+00:00 should be -300 minutes offset in ORAST"); - t.equal(moment("2004-10-30T22:00:00+00:00").tz("Asia/Oral").zone(), -240, "2004-10-30T22:00:00+00:00 should be -240 minutes offset in ORAT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-14T19:59:59+00:00").tz("Asia/Oral").format("HH:mm:ss"), "23:59:59", "2005-03-14T19:59:59+00:00 should be 23:59:59 ORAT"); - t.equal(moment("2005-03-14T20:00:00+00:00").tz("Asia/Oral").format("HH:mm:ss"), "01:00:00", "2005-03-14T20:00:00+00:00 should be 01:00:00 ORAT"); - - t.equal(moment("2005-03-14T19:59:59+00:00").tz("Asia/Oral").zone(), -240, "2005-03-14T19:59:59+00:00 should be -240 minutes offset in ORAT"); - t.equal(moment("2005-03-14T20:00:00+00:00").tz("Asia/Oral").zone(), -300, "2005-03-14T20:00:00+00:00 should be -300 minutes offset in ORAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/phnom_penh.js b/tests/asia/phnom_penh.js deleted file mode 100644 index f532f2a7..00000000 --- a/tests/asia/phnom_penh.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Phnom_Penh"] = { - - "1906" : function (t) { - t.equal(moment("1906-06-08T17:00:19+00:00").tz("Asia/Phnom_Penh").format("HH:mm:ss"), "23:59:59", "1906-06-08T17:00:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1906-06-08T17:00:20+00:00").tz("Asia/Phnom_Penh").format("HH:mm:ss"), "00:06:40", "1906-06-08T17:00:20+00:00 should be 00:06:40 SMT"); - - t.equal(moment("1906-06-08T17:00:19+00:00").tz("Asia/Phnom_Penh").zone(), -25180 / 60, "1906-06-08T17:00:19+00:00 should be -25180 / 60 minutes offset in LMT"); - t.equal(moment("1906-06-08T17:00:20+00:00").tz("Asia/Phnom_Penh").zone(), -25580 / 60, "1906-06-08T17:00:20+00:00 should be -25580 / 60 minutes offset in SMT"); - - t.done(); - }, - - "1911" : function (t) { - t.equal(moment("1911-03-10T16:54:39+00:00").tz("Asia/Phnom_Penh").format("HH:mm:ss"), "00:00:59", "1911-03-10T16:54:39+00:00 should be 00:00:59 SMT"); - t.equal(moment("1911-03-10T16:54:40+00:00").tz("Asia/Phnom_Penh").format("HH:mm:ss"), "23:54:40", "1911-03-10T16:54:40+00:00 should be 23:54:40 ICT"); - - t.equal(moment("1911-03-10T16:54:39+00:00").tz("Asia/Phnom_Penh").zone(), -25580 / 60, "1911-03-10T16:54:39+00:00 should be -25580 / 60 minutes offset in SMT"); - t.equal(moment("1911-03-10T16:54:40+00:00").tz("Asia/Phnom_Penh").zone(), -420, "1911-03-10T16:54:40+00:00 should be -420 minutes offset in ICT"); - - t.done(); - }, - - "1912" : function (t) { - t.equal(moment("1912-04-30T16:59:59+00:00").tz("Asia/Phnom_Penh").format("HH:mm:ss"), "23:59:59", "1912-04-30T16:59:59+00:00 should be 23:59:59 ICT"); - t.equal(moment("1912-04-30T17:00:00+00:00").tz("Asia/Phnom_Penh").format("HH:mm:ss"), "01:00:00", "1912-04-30T17:00:00+00:00 should be 01:00:00 ICT"); - - t.equal(moment("1912-04-30T16:59:59+00:00").tz("Asia/Phnom_Penh").zone(), -420, "1912-04-30T16:59:59+00:00 should be -420 minutes offset in ICT"); - t.equal(moment("1912-04-30T17:00:00+00:00").tz("Asia/Phnom_Penh").zone(), -480, "1912-04-30T17:00:00+00:00 should be -480 minutes offset in ICT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-30T15:59:59+00:00").tz("Asia/Phnom_Penh").format("HH:mm:ss"), "23:59:59", "1931-04-30T15:59:59+00:00 should be 23:59:59 ICT"); - t.equal(moment("1931-04-30T16:00:00+00:00").tz("Asia/Phnom_Penh").format("HH:mm:ss"), "23:00:00", "1931-04-30T16:00:00+00:00 should be 23:00:00 ICT"); - - t.equal(moment("1931-04-30T15:59:59+00:00").tz("Asia/Phnom_Penh").zone(), -480, "1931-04-30T15:59:59+00:00 should be -480 minutes offset in ICT"); - t.equal(moment("1931-04-30T16:00:00+00:00").tz("Asia/Phnom_Penh").zone(), -420, "1931-04-30T16:00:00+00:00 should be -420 minutes offset in ICT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/pontianak.js b/tests/asia/pontianak.js deleted file mode 100644 index 5b7a4c0e..00000000 --- a/tests/asia/pontianak.js +++ /dev/null @@ -1,84 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Pontianak"] = { - - "1908" : function (t) { - t.equal(moment("1908-04-30T16:42:39+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:59:59", "1908-04-30T16:42:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1908-04-30T16:42:40+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "00:00:00", "1908-04-30T16:42:40+00:00 should be 00:00:00 PMT"); - - t.equal(moment("1908-04-30T16:42:39+00:00").tz("Asia/Pontianak").zone(), -26240 / 60, "1908-04-30T16:42:39+00:00 should be -26240 / 60 minutes offset in LMT"); - t.equal(moment("1908-04-30T16:42:40+00:00").tz("Asia/Pontianak").zone(), -26240 / 60, "1908-04-30T16:42:40+00:00 should be -26240 / 60 minutes offset in PMT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-10-31T16:42:39+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:59:59", "1932-10-31T16:42:39+00:00 should be 23:59:59 PMT"); - t.equal(moment("1932-10-31T16:42:40+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "00:12:40", "1932-10-31T16:42:40+00:00 should be 00:12:40 WIT"); - - t.equal(moment("1932-10-31T16:42:39+00:00").tz("Asia/Pontianak").zone(), -26240 / 60, "1932-10-31T16:42:39+00:00 should be -26240 / 60 minutes offset in PMT"); - t.equal(moment("1932-10-31T16:42:40+00:00").tz("Asia/Pontianak").zone(), -450, "1932-10-31T16:42:40+00:00 should be -450 minutes offset in WIT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-01-28T16:29:59+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:59:59", "1942-01-28T16:29:59+00:00 should be 23:59:59 WIT"); - t.equal(moment("1942-01-28T16:30:00+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "01:30:00", "1942-01-28T16:30:00+00:00 should be 01:30:00 JST"); - - t.equal(moment("1942-01-28T16:29:59+00:00").tz("Asia/Pontianak").zone(), -450, "1942-01-28T16:29:59+00:00 should be -450 minutes offset in WIT"); - t.equal(moment("1942-01-28T16:30:00+00:00").tz("Asia/Pontianak").zone(), -540, "1942-01-28T16:30:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-09-22T14:59:59+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:59:59", "1945-09-22T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-09-22T15:00:00+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "22:30:00", "1945-09-22T15:00:00+00:00 should be 22:30:00 WIT"); - - t.equal(moment("1945-09-22T14:59:59+00:00").tz("Asia/Pontianak").zone(), -540, "1945-09-22T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-09-22T15:00:00+00:00").tz("Asia/Pontianak").zone(), -450, "1945-09-22T15:00:00+00:00 should be -450 minutes offset in WIT"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-30T16:29:59+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:59:59", "1948-04-30T16:29:59+00:00 should be 23:59:59 WIT"); - t.equal(moment("1948-04-30T16:30:00+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "00:30:00", "1948-04-30T16:30:00+00:00 should be 00:30:00 WIT"); - - t.equal(moment("1948-04-30T16:29:59+00:00").tz("Asia/Pontianak").zone(), -450, "1948-04-30T16:29:59+00:00 should be -450 minutes offset in WIT"); - t.equal(moment("1948-04-30T16:30:00+00:00").tz("Asia/Pontianak").zone(), -480, "1948-04-30T16:30:00+00:00 should be -480 minutes offset in WIT"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T15:59:59+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:59:59", "1950-04-30T15:59:59+00:00 should be 23:59:59 WIT"); - t.equal(moment("1950-04-30T16:00:00+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:30:00", "1950-04-30T16:00:00+00:00 should be 23:30:00 WIT"); - - t.equal(moment("1950-04-30T15:59:59+00:00").tz("Asia/Pontianak").zone(), -480, "1950-04-30T15:59:59+00:00 should be -480 minutes offset in WIT"); - t.equal(moment("1950-04-30T16:00:00+00:00").tz("Asia/Pontianak").zone(), -450, "1950-04-30T16:00:00+00:00 should be -450 minutes offset in WIT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-12-31T16:29:59+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:59:59", "1963-12-31T16:29:59+00:00 should be 23:59:59 WIT"); - t.equal(moment("1963-12-31T16:30:00+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "00:30:00", "1963-12-31T16:30:00+00:00 should be 00:30:00 CIT"); - - t.equal(moment("1963-12-31T16:29:59+00:00").tz("Asia/Pontianak").zone(), -450, "1963-12-31T16:29:59+00:00 should be -450 minutes offset in WIT"); - t.equal(moment("1963-12-31T16:30:00+00:00").tz("Asia/Pontianak").zone(), -480, "1963-12-31T16:30:00+00:00 should be -480 minutes offset in CIT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-12-31T15:59:59+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:59:59", "1987-12-31T15:59:59+00:00 should be 23:59:59 CIT"); - t.equal(moment("1987-12-31T16:00:00+00:00").tz("Asia/Pontianak").format("HH:mm:ss"), "23:00:00", "1987-12-31T16:00:00+00:00 should be 23:00:00 WIT"); - - t.equal(moment("1987-12-31T15:59:59+00:00").tz("Asia/Pontianak").zone(), -480, "1987-12-31T15:59:59+00:00 should be -480 minutes offset in CIT"); - t.equal(moment("1987-12-31T16:00:00+00:00").tz("Asia/Pontianak").zone(), -420, "1987-12-31T16:00:00+00:00 should be -420 minutes offset in WIT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/pyongyang.js b/tests/asia/pyongyang.js deleted file mode 100644 index 584f1411..00000000 --- a/tests/asia/pyongyang.js +++ /dev/null @@ -1,54 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Pyongyang"] = { - - "1904" : function (t) { - t.equal(moment("1904-11-30T15:29:59+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "23:59:59", "1904-11-30T15:29:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1904-11-30T15:30:00+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "00:30:00", "1904-11-30T15:30:00+00:00 should be 00:30:00 KST"); - - t.equal(moment("1904-11-30T15:29:59+00:00").tz("Asia/Pyongyang").zone(), -510, "1904-11-30T15:29:59+00:00 should be -510 minutes offset in KST"); - t.equal(moment("1904-11-30T15:30:00+00:00").tz("Asia/Pyongyang").zone(), -540, "1904-11-30T15:30:00+00:00 should be -540 minutes offset in KST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-12-31T14:59:59+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "23:59:59", "1927-12-31T14:59:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1927-12-31T15:00:00+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "23:30:00", "1927-12-31T15:00:00+00:00 should be 23:30:00 KST"); - - t.equal(moment("1927-12-31T14:59:59+00:00").tz("Asia/Pyongyang").zone(), -540, "1927-12-31T14:59:59+00:00 should be -540 minutes offset in KST"); - t.equal(moment("1927-12-31T15:00:00+00:00").tz("Asia/Pyongyang").zone(), -510, "1927-12-31T15:00:00+00:00 should be -510 minutes offset in KST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-12-31T15:29:59+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "23:59:59", "1931-12-31T15:29:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1931-12-31T15:30:00+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "00:30:00", "1931-12-31T15:30:00+00:00 should be 00:30:00 KST"); - - t.equal(moment("1931-12-31T15:29:59+00:00").tz("Asia/Pyongyang").zone(), -510, "1931-12-31T15:29:59+00:00 should be -510 minutes offset in KST"); - t.equal(moment("1931-12-31T15:30:00+00:00").tz("Asia/Pyongyang").zone(), -540, "1931-12-31T15:30:00+00:00 should be -540 minutes offset in KST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-03-20T14:59:59+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "23:59:59", "1954-03-20T14:59:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1954-03-20T15:00:00+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "23:00:00", "1954-03-20T15:00:00+00:00 should be 23:00:00 KST"); - - t.equal(moment("1954-03-20T14:59:59+00:00").tz("Asia/Pyongyang").zone(), -540, "1954-03-20T14:59:59+00:00 should be -540 minutes offset in KST"); - t.equal(moment("1954-03-20T15:00:00+00:00").tz("Asia/Pyongyang").zone(), -480, "1954-03-20T15:00:00+00:00 should be -480 minutes offset in KST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-08-09T15:59:59+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "23:59:59", "1961-08-09T15:59:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1961-08-09T16:00:00+00:00").tz("Asia/Pyongyang").format("HH:mm:ss"), "01:00:00", "1961-08-09T16:00:00+00:00 should be 01:00:00 KST"); - - t.equal(moment("1961-08-09T15:59:59+00:00").tz("Asia/Pyongyang").zone(), -480, "1961-08-09T15:59:59+00:00 should be -480 minutes offset in KST"); - t.equal(moment("1961-08-09T16:00:00+00:00").tz("Asia/Pyongyang").zone(), -540, "1961-08-09T16:00:00+00:00 should be -540 minutes offset in KST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/qatar.js b/tests/asia/qatar.js deleted file mode 100644 index 9d946313..00000000 --- a/tests/asia/qatar.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Qatar"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T20:33:51+00:00").tz("Asia/Qatar").format("HH:mm:ss"), "23:59:59", "1919-12-31T20:33:51+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-31T20:33:52+00:00").tz("Asia/Qatar").format("HH:mm:ss"), "00:33:52", "1919-12-31T20:33:52+00:00 should be 00:33:52 GST"); - - t.equal(moment("1919-12-31T20:33:51+00:00").tz("Asia/Qatar").zone(), -12368 / 60, "1919-12-31T20:33:51+00:00 should be -12368 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-31T20:33:52+00:00").tz("Asia/Qatar").zone(), -240, "1919-12-31T20:33:52+00:00 should be -240 minutes offset in GST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-05-31T19:59:59+00:00").tz("Asia/Qatar").format("HH:mm:ss"), "23:59:59", "1972-05-31T19:59:59+00:00 should be 23:59:59 GST"); - t.equal(moment("1972-05-31T20:00:00+00:00").tz("Asia/Qatar").format("HH:mm:ss"), "23:00:00", "1972-05-31T20:00:00+00:00 should be 23:00:00 AST"); - - t.equal(moment("1972-05-31T19:59:59+00:00").tz("Asia/Qatar").zone(), -240, "1972-05-31T19:59:59+00:00 should be -240 minutes offset in GST"); - t.equal(moment("1972-05-31T20:00:00+00:00").tz("Asia/Qatar").zone(), -180, "1972-05-31T20:00:00+00:00 should be -180 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/qyzylorda.js b/tests/asia/qyzylorda.js deleted file mode 100644 index 08e0b8c1..00000000 --- a/tests/asia/qyzylorda.js +++ /dev/null @@ -1,360 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Qyzylorda"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T19:38:07+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1924-05-01T19:38:07+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T19:38:08+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:38:08", "1924-05-01T19:38:08+00:00 should be 23:38:08 KIZT"); - - t.equal(moment("1924-05-01T19:38:07+00:00").tz("Asia/Qyzylorda").zone(), -15712 / 60, "1924-05-01T19:38:07+00:00 should be -15712 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T19:38:08+00:00").tz("Asia/Qyzylorda").zone(), -240, "1924-05-01T19:38:08+00:00 should be -240 minutes offset in KIZT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1930-06-20T19:59:59+00:00 should be 23:59:59 KIZT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:00:00", "1930-06-20T20:00:00+00:00 should be 01:00:00 KIZT"); - - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -240, "1930-06-20T19:59:59+00:00 should be -240 minutes offset in KIZT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1930-06-20T20:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1981-03-31T18:59:59+00:00 should be 23:59:59 KIZT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:00:00", "1981-03-31T19:00:00+00:00 should be 01:00:00 KIZST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1981-09-30T17:59:59+00:00 should be 23:59:59 KIZST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "00:00:00", "1981-09-30T18:00:00+00:00 should be 00:00:00 KIZT"); - - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1981-03-31T18:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1981-03-31T19:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1981-09-30T17:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1981-09-30T18:00:00+00:00 should be -360 minutes offset in KIZT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 KIZT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "00:00:00", "1982-03-31T18:00:00+00:00 should be 00:00:00 KIZST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1982-09-30T17:59:59+00:00 should be 23:59:59 KIZST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:00:00", "1982-09-30T18:00:00+00:00 should be 23:00:00 KIZT"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in KIZT"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1982-03-31T18:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1982-09-30T17:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1982-09-30T18:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1983-03-31T18:59:59+00:00 should be 23:59:59 KIZT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:00:00", "1983-03-31T19:00:00+00:00 should be 01:00:00 KIZST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1983-09-30T17:59:59+00:00 should be 23:59:59 KIZST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:00:00", "1983-09-30T18:00:00+00:00 should be 23:00:00 KIZT"); - - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1983-03-31T18:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1983-03-31T19:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1983-09-30T17:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1983-09-30T18:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1984-03-31T18:59:59+00:00 should be 23:59:59 KIZT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:00:00", "1984-03-31T19:00:00+00:00 should be 01:00:00 KIZST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1984-09-29T20:59:59+00:00 should be 02:59:59 KIZST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1984-09-29T21:00:00+00:00 should be 02:00:00 KIZT"); - - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1984-03-31T18:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1984-03-31T19:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1984-09-29T20:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1984-09-29T21:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1985-03-30T20:59:59+00:00 should be 01:59:59 KIZT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1985-03-30T21:00:00+00:00 should be 03:00:00 KIZST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1985-09-28T20:59:59+00:00 should be 02:59:59 KIZST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1985-09-28T21:00:00+00:00 should be 02:00:00 KIZT"); - - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1985-03-30T20:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1985-03-30T21:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1985-09-28T20:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1985-09-28T21:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1986-03-29T20:59:59+00:00 should be 01:59:59 KIZT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1986-03-29T21:00:00+00:00 should be 03:00:00 KIZST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1986-09-27T20:59:59+00:00 should be 02:59:59 KIZST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1986-09-27T21:00:00+00:00 should be 02:00:00 KIZT"); - - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1986-03-29T20:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1986-03-29T21:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1986-09-27T20:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1986-09-27T21:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1987-03-28T20:59:59+00:00 should be 01:59:59 KIZT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1987-03-28T21:00:00+00:00 should be 03:00:00 KIZST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1987-09-26T20:59:59+00:00 should be 02:59:59 KIZST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1987-09-26T21:00:00+00:00 should be 02:00:00 KIZT"); - - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1987-03-28T20:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1987-03-28T21:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1987-09-26T20:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1987-09-26T21:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1988-03-26T20:59:59+00:00 should be 01:59:59 KIZT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1988-03-26T21:00:00+00:00 should be 03:00:00 KIZST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1988-09-24T20:59:59+00:00 should be 02:59:59 KIZST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1988-09-24T21:00:00+00:00 should be 02:00:00 KIZT"); - - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1988-03-26T20:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1988-03-26T21:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1988-09-24T20:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1988-09-24T21:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1989-03-25T20:59:59+00:00 should be 01:59:59 KIZT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1989-03-25T21:00:00+00:00 should be 03:00:00 KIZST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1989-09-23T20:59:59+00:00 should be 02:59:59 KIZST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1989-09-23T21:00:00+00:00 should be 02:00:00 KIZT"); - - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1989-03-25T20:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1989-03-25T21:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1989-09-23T20:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1989-09-23T21:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1990-03-24T20:59:59+00:00 should be 01:59:59 KIZT"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1990-03-24T21:00:00+00:00 should be 03:00:00 KIZST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1990-09-29T20:59:59+00:00 should be 02:59:59 KIZST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1990-09-29T21:00:00+00:00 should be 02:00:00 KIZT"); - - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1990-03-24T20:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1990-03-24T21:00:00+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1990-09-29T20:59:59+00:00 should be -360 minutes offset in KIZST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1990-09-29T21:00:00+00:00 should be -300 minutes offset in KIZT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-12-15T18:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "23:59:59", "1991-12-15T18:59:59+00:00 should be 23:59:59 KIZT"); - t.equal(moment("1991-12-15T19:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "00:00:00", "1991-12-15T19:00:00+00:00 should be 00:00:00 QYZT"); - - t.equal(moment("1991-12-15T18:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1991-12-15T18:59:59+00:00 should be -300 minutes offset in KIZT"); - t.equal(moment("1991-12-15T19:00:00+00:00").tz("Asia/Qyzylorda").zone(), -300, "1991-12-15T19:00:00+00:00 should be -300 minutes offset in QYZT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T20:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1992-01-18T20:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("1992-01-18T21:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1992-01-18T21:00:00+00:00 should be 03:00:00 QYZT"); - t.equal(moment("1992-03-28T16:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "22:59:59", "1992-03-28T16:59:59+00:00 should be 22:59:59 QYZT"); - t.equal(moment("1992-03-28T17:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "00:00:00", "1992-03-28T17:00:00+00:00 should be 00:00:00 QYZST"); - t.equal(moment("1992-09-26T15:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "22:59:59", "1992-09-26T15:59:59+00:00 should be 22:59:59 QYZST"); - t.equal(moment("1992-09-26T16:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "22:00:00", "1992-09-26T16:00:00+00:00 should be 22:00:00 QYZT"); - - t.equal(moment("1992-01-18T20:59:59+00:00").tz("Asia/Qyzylorda").zone(), -300, "1992-01-18T20:59:59+00:00 should be -300 minutes offset in QYZT"); - t.equal(moment("1992-01-18T21:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1992-01-18T21:00:00+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("1992-03-28T16:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1992-03-28T16:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("1992-03-28T17:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "1992-03-28T17:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1992-09-26T15:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "1992-09-26T15:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1992-09-26T16:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1992-09-26T16:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1993-03-27T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("1993-03-27T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1993-03-27T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1993-09-25T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1993-09-25T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("1993-03-27T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1993-03-27T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("1993-03-27T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "1993-03-27T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "1993-09-25T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1993-09-25T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1994-03-26T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("1994-03-26T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1994-03-26T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1994-09-24T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1994-09-24T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("1994-03-26T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1994-03-26T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("1994-03-26T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "1994-03-26T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "1994-09-24T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1994-09-24T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1995-03-25T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1995-03-25T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1995-09-23T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1995-09-23T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1995-03-25T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "1995-03-25T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "1995-09-23T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1995-09-23T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1996-03-30T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1996-03-30T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("1996-10-26T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1996-10-26T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("1996-10-26T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1996-10-26T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1996-03-30T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "1996-03-30T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1996-10-26T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "1996-10-26T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1996-10-26T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1996-10-26T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1997-03-29T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("1997-03-29T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1997-03-29T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("1997-10-25T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1997-10-25T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("1997-10-25T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1997-10-25T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("1997-03-29T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1997-03-29T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("1997-03-29T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "1997-03-29T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1997-10-25T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "1997-10-25T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1997-10-25T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1997-10-25T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1998-03-28T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1998-03-28T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("1998-10-24T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1998-10-24T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("1998-10-24T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1998-10-24T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1998-03-28T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "1998-03-28T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1998-10-24T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "1998-10-24T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1998-10-24T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1998-10-24T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "1999-03-27T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "1999-03-27T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("1999-10-30T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "1999-10-30T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("1999-10-30T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "1999-10-30T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "1999-03-27T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "1999-03-27T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1999-10-30T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "1999-10-30T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("1999-10-30T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "1999-10-30T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "2000-03-25T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "2000-03-25T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("2000-10-28T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "2000-10-28T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("2000-10-28T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "2000-10-28T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "2000-03-25T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "2000-03-25T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2000-10-28T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "2000-10-28T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2000-10-28T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "2000-10-28T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "2001-03-24T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "2001-03-24T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("2001-10-27T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "2001-10-27T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("2001-10-27T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "2001-10-27T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "2001-03-24T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "2001-03-24T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2001-10-27T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "2001-10-27T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2001-10-27T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "2001-10-27T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "2002-03-30T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "2002-03-30T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("2002-10-26T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "2002-10-26T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("2002-10-26T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "2002-10-26T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "2002-03-30T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "2002-03-30T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2002-10-26T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "2002-10-26T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2002-10-26T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "2002-10-26T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "2003-03-29T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "2003-03-29T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("2003-10-25T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "2003-10-25T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("2003-10-25T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "2003-10-25T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "2003-03-29T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "2003-03-29T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2003-10-25T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "2003-10-25T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2003-10-25T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "2003-10-25T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "01:59:59", "2004-03-27T19:59:59+00:00 should be 01:59:59 QYZT"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "03:00:00", "2004-03-27T20:00:00+00:00 should be 03:00:00 QYZST"); - t.equal(moment("2004-10-30T19:59:59+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:59:59", "2004-10-30T19:59:59+00:00 should be 02:59:59 QYZST"); - t.equal(moment("2004-10-30T20:00:00+00:00").tz("Asia/Qyzylorda").format("HH:mm:ss"), "02:00:00", "2004-10-30T20:00:00+00:00 should be 02:00:00 QYZT"); - - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -360, "2004-03-27T19:59:59+00:00 should be -360 minutes offset in QYZT"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -420, "2004-03-27T20:00:00+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2004-10-30T19:59:59+00:00").tz("Asia/Qyzylorda").zone(), -420, "2004-10-30T19:59:59+00:00 should be -420 minutes offset in QYZST"); - t.equal(moment("2004-10-30T20:00:00+00:00").tz("Asia/Qyzylorda").zone(), -360, "2004-10-30T20:00:00+00:00 should be -360 minutes offset in QYZT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/rangoon.js b/tests/asia/rangoon.js deleted file mode 100644 index 8608652e..00000000 --- a/tests/asia/rangoon.js +++ /dev/null @@ -1,34 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Rangoon"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-31T17:35:19+00:00").tz("Asia/Rangoon").format("HH:mm:ss"), "23:59:59", "1919-12-31T17:35:19+00:00 should be 23:59:59 RMT"); - t.equal(moment("1919-12-31T17:35:20+00:00").tz("Asia/Rangoon").format("HH:mm:ss"), "00:05:20", "1919-12-31T17:35:20+00:00 should be 00:05:20 BURT"); - - t.equal(moment("1919-12-31T17:35:19+00:00").tz("Asia/Rangoon").zone(), -23080 / 60, "1919-12-31T17:35:19+00:00 should be -23080 / 60 minutes offset in RMT"); - t.equal(moment("1919-12-31T17:35:20+00:00").tz("Asia/Rangoon").zone(), -390, "1919-12-31T17:35:20+00:00 should be -390 minutes offset in BURT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-30T17:29:59+00:00").tz("Asia/Rangoon").format("HH:mm:ss"), "23:59:59", "1942-04-30T17:29:59+00:00 should be 23:59:59 BURT"); - t.equal(moment("1942-04-30T17:30:00+00:00").tz("Asia/Rangoon").format("HH:mm:ss"), "02:30:00", "1942-04-30T17:30:00+00:00 should be 02:30:00 JST"); - - t.equal(moment("1942-04-30T17:29:59+00:00").tz("Asia/Rangoon").zone(), -390, "1942-04-30T17:29:59+00:00 should be -390 minutes offset in BURT"); - t.equal(moment("1942-04-30T17:30:00+00:00").tz("Asia/Rangoon").zone(), -540, "1942-04-30T17:30:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-05-02T14:59:59+00:00").tz("Asia/Rangoon").format("HH:mm:ss"), "23:59:59", "1945-05-02T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-05-02T15:00:00+00:00").tz("Asia/Rangoon").format("HH:mm:ss"), "21:30:00", "1945-05-02T15:00:00+00:00 should be 21:30:00 MMT"); - - t.equal(moment("1945-05-02T14:59:59+00:00").tz("Asia/Rangoon").zone(), -540, "1945-05-02T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-05-02T15:00:00+00:00").tz("Asia/Rangoon").zone(), -390, "1945-05-02T15:00:00+00:00 should be -390 minutes offset in MMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/riyadh.js b/tests/asia/riyadh.js deleted file mode 100644 index 64a1a1a7..00000000 --- a/tests/asia/riyadh.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Riyadh"] = { - - "1949" : function (t) { - t.equal(moment("1949-12-31T20:53:07+00:00").tz("Asia/Riyadh").format("HH:mm:ss"), "23:59:59", "1949-12-31T20:53:07+00:00 should be 23:59:59 LMT"); - t.equal(moment("1949-12-31T20:53:08+00:00").tz("Asia/Riyadh").format("HH:mm:ss"), "23:53:08", "1949-12-31T20:53:08+00:00 should be 23:53:08 AST"); - - t.equal(moment("1949-12-31T20:53:07+00:00").tz("Asia/Riyadh").zone(), -11212 / 60, "1949-12-31T20:53:07+00:00 should be -11212 / 60 minutes offset in LMT"); - t.equal(moment("1949-12-31T20:53:08+00:00").tz("Asia/Riyadh").zone(), -180, "1949-12-31T20:53:08+00:00 should be -180 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/sakhalin.js b/tests/asia/sakhalin.js deleted file mode 100644 index 33079b2e..00000000 --- a/tests/asia/sakhalin.js +++ /dev/null @@ -1,468 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Sakhalin"] = { - - "1905" : function (t) { - t.equal(moment("1905-08-22T14:29:11+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1905-08-22T14:29:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1905-08-22T14:29:12+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:29:12", "1905-08-22T14:29:12+00:00 should be 23:29:12 CJT"); - - t.equal(moment("1905-08-22T14:29:11+00:00").tz("Asia/Sakhalin").zone(), -34248 / 60, "1905-08-22T14:29:11+00:00 should be -34248 / 60 minutes offset in LMT"); - t.equal(moment("1905-08-22T14:29:12+00:00").tz("Asia/Sakhalin").zone(), -540, "1905-08-22T14:29:12+00:00 should be -540 minutes offset in CJT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-12-31T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1937-12-31T14:59:59+00:00 should be 23:59:59 CJT"); - t.equal(moment("1937-12-31T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "00:00:00", "1937-12-31T15:00:00+00:00 should be 00:00:00 JST"); - - t.equal(moment("1937-12-31T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -540, "1937-12-31T14:59:59+00:00 should be -540 minutes offset in CJT"); - t.equal(moment("1937-12-31T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -540, "1937-12-31T15:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-24T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1945-08-24T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-08-24T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1945-08-24T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1945-08-24T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -540, "1945-08-24T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-08-24T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1945-08-24T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T12:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1981-03-31T12:59:59+00:00 should be 23:59:59 SAKT"); - t.equal(moment("1981-03-31T13:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:00:00", "1981-03-31T13:00:00+00:00 should be 01:00:00 SAKST"); - t.equal(moment("1981-09-30T11:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1981-09-30T11:59:59+00:00 should be 23:59:59 SAKST"); - t.equal(moment("1981-09-30T12:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:00:00", "1981-09-30T12:00:00+00:00 should be 23:00:00 SAKT"); - - t.equal(moment("1981-03-31T12:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1981-03-31T12:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1981-03-31T13:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1981-03-31T13:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1981-09-30T11:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1981-09-30T11:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1981-09-30T12:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1981-09-30T12:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T12:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1982-03-31T12:59:59+00:00 should be 23:59:59 SAKT"); - t.equal(moment("1982-03-31T13:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:00:00", "1982-03-31T13:00:00+00:00 should be 01:00:00 SAKST"); - t.equal(moment("1982-09-30T11:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1982-09-30T11:59:59+00:00 should be 23:59:59 SAKST"); - t.equal(moment("1982-09-30T12:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:00:00", "1982-09-30T12:00:00+00:00 should be 23:00:00 SAKT"); - - t.equal(moment("1982-03-31T12:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1982-03-31T12:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1982-03-31T13:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1982-03-31T13:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1982-09-30T11:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1982-09-30T11:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1982-09-30T12:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1982-09-30T12:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T12:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1983-03-31T12:59:59+00:00 should be 23:59:59 SAKT"); - t.equal(moment("1983-03-31T13:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:00:00", "1983-03-31T13:00:00+00:00 should be 01:00:00 SAKST"); - t.equal(moment("1983-09-30T11:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1983-09-30T11:59:59+00:00 should be 23:59:59 SAKST"); - t.equal(moment("1983-09-30T12:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:00:00", "1983-09-30T12:00:00+00:00 should be 23:00:00 SAKT"); - - t.equal(moment("1983-03-31T12:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1983-03-31T12:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1983-03-31T13:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1983-03-31T13:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1983-09-30T11:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1983-09-30T11:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1983-09-30T12:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1983-09-30T12:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T12:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "23:59:59", "1984-03-31T12:59:59+00:00 should be 23:59:59 SAKT"); - t.equal(moment("1984-03-31T13:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:00:00", "1984-03-31T13:00:00+00:00 should be 01:00:00 SAKST"); - t.equal(moment("1984-09-29T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1984-09-29T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1984-09-29T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1984-09-29T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1984-03-31T12:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1984-03-31T12:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1984-03-31T13:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1984-03-31T13:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1984-09-29T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1984-09-29T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1984-09-29T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1984-09-29T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1985-03-30T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1985-03-30T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1985-03-30T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1985-09-28T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1985-09-28T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1985-09-28T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1985-09-28T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1985-03-30T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1985-03-30T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1985-03-30T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1985-03-30T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1985-09-28T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1985-09-28T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1985-09-28T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1985-09-28T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1986-03-29T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1986-03-29T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1986-03-29T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1986-09-27T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1986-09-27T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1986-09-27T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1986-09-27T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1986-03-29T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1986-03-29T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1986-03-29T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1986-03-29T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1986-09-27T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1986-09-27T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1986-09-27T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1986-09-27T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1987-03-28T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1987-03-28T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1987-03-28T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1987-09-26T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1987-09-26T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1987-09-26T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1987-09-26T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1987-03-28T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1987-03-28T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1987-03-28T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1987-03-28T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1987-09-26T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1987-09-26T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1987-09-26T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1987-09-26T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1988-03-26T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1988-03-26T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1988-03-26T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1988-09-24T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1988-09-24T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1988-09-24T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1988-09-24T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1988-03-26T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1988-03-26T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1988-03-26T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1988-03-26T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1988-09-24T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1988-09-24T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1988-09-24T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1988-09-24T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1989-03-25T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1989-03-25T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1989-03-25T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1989-09-23T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1989-09-23T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1989-09-23T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1989-09-23T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1989-03-25T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1989-03-25T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1989-03-25T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1989-03-25T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1989-09-23T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1989-09-23T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1989-09-23T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1989-09-23T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1990-03-24T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1990-03-24T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1990-03-24T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1990-09-29T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1990-09-29T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1990-09-29T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1990-09-29T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1990-03-24T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1990-03-24T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1990-03-24T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1990-03-24T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1990-09-29T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1990-09-29T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1990-09-29T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1990-09-29T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1991-03-30T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1991-03-30T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1991-03-30T15:00:00+00:00 should be 02:00:00 SAKST"); - t.equal(moment("1991-09-28T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1991-09-28T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1991-09-28T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1991-09-28T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1991-03-30T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1991-03-30T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1991-03-30T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1991-03-30T15:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("1991-09-28T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1991-09-28T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("1991-09-28T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "1991-09-28T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1992-01-18T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1992-01-18T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1992-01-18T16:00:00+00:00 should be 03:00:00 SAKT"); - t.equal(moment("1992-03-28T11:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "22:59:59", "1992-03-28T11:59:59+00:00 should be 22:59:59 SAKT"); - t.equal(moment("1992-03-28T12:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "00:00:00", "1992-03-28T12:00:00+00:00 should be 00:00:00 SAKST"); - t.equal(moment("1992-09-26T10:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "22:59:59", "1992-09-26T10:59:59+00:00 should be 22:59:59 SAKST"); - t.equal(moment("1992-09-26T11:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "22:00:00", "1992-09-26T11:00:00+00:00 should be 22:00:00 SAKT"); - - t.equal(moment("1992-01-18T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "1992-01-18T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("1992-01-18T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1992-01-18T16:00:00+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1992-03-28T11:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1992-03-28T11:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1992-03-28T12:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1992-03-28T12:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1992-09-26T10:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1992-09-26T10:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1992-09-26T11:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1992-09-26T11:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1993-03-27T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1993-03-27T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1993-03-27T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1993-09-25T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1993-09-25T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1993-09-25T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1993-09-25T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1993-03-27T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1993-03-27T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1993-03-27T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1993-03-27T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1993-09-25T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1993-09-25T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1993-09-25T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1993-09-25T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1994-03-26T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1994-03-26T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1994-03-26T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1994-09-24T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1994-09-24T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1994-09-24T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1994-09-24T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1994-03-26T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1994-03-26T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1994-03-26T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1994-03-26T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1994-09-24T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1994-09-24T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1994-09-24T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1994-09-24T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1995-03-25T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1995-03-25T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1995-03-25T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1995-09-23T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1995-09-23T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1995-09-23T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1995-09-23T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1995-03-25T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1995-03-25T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1995-03-25T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1995-03-25T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1995-09-23T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1995-09-23T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1995-09-23T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1995-09-23T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1996-03-30T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1996-03-30T15:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1996-10-26T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1996-10-26T14:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1996-10-26T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1996-10-26T15:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1996-03-30T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -720, "1996-03-30T15:00:00+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1996-10-26T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -720, "1996-10-26T14:59:59+00:00 should be -720 minutes offset in SAKST"); - t.equal(moment("1996-10-26T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1996-10-26T15:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1997-03-29T14:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1997-03-29T15:00:00+00:00 should be 02:00:00 SAKST"); - t.equal(moment("1997-10-25T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1997-10-25T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1997-10-25T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1997-10-25T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1997-03-29T14:59:59+00:00 should be -660 minutes offset in SAKT"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1997-03-29T15:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("1997-10-25T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1997-10-25T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("1997-10-25T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "1997-10-25T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1998-03-28T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1998-03-28T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1998-10-24T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1998-10-24T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1998-10-24T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1998-10-24T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "1998-03-28T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1998-03-28T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("1998-10-24T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1998-10-24T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("1998-10-24T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "1998-10-24T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "1999-03-27T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "1999-03-27T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("1999-10-30T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "1999-10-30T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("1999-10-30T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "1999-10-30T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "1999-03-27T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "1999-03-27T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("1999-10-30T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "1999-10-30T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("1999-10-30T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "1999-10-30T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2000-03-25T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2000-03-25T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2000-10-28T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2000-10-28T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2000-10-28T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2000-10-28T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2000-03-25T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2000-03-25T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2000-10-28T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2000-10-28T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2000-10-28T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2000-10-28T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2001-03-24T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2001-03-24T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2001-10-27T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2001-10-27T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2001-10-27T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2001-10-27T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2001-03-24T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2001-03-24T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2001-10-27T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2001-10-27T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2001-10-27T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2001-10-27T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2002-03-30T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2002-03-30T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2002-10-26T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2002-10-26T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2002-10-26T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2002-10-26T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2002-03-30T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2002-03-30T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2002-10-26T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2002-10-26T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2002-10-26T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2002-10-26T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2003-03-29T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2003-03-29T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2003-10-25T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2003-10-25T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2003-10-25T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2003-10-25T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2003-03-29T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2003-03-29T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2003-10-25T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2003-10-25T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2003-10-25T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2003-10-25T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2004-03-27T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2004-03-27T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2004-10-30T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2004-10-30T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2004-03-27T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2004-03-27T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2004-10-30T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2004-10-30T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2005-03-26T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2005-03-26T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2005-10-29T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2005-10-29T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2005-03-26T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2005-03-26T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2005-10-29T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2005-10-29T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2006-03-25T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2006-03-25T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2006-03-25T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2006-10-28T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2006-10-28T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2006-03-25T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2006-03-25T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2006-03-25T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2006-03-25T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2006-10-28T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2006-10-28T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2007-03-24T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2007-03-24T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2007-10-27T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2007-10-27T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2007-03-24T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2007-03-24T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2007-10-27T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2007-10-27T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2008-03-29T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2008-03-29T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2008-03-29T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2008-10-25T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2008-10-25T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2008-10-25T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2008-10-25T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2008-03-29T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2008-03-29T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2008-03-29T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2008-03-29T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2008-10-25T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2008-10-25T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2008-10-25T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2008-10-25T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2009-03-28T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2009-03-28T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2009-03-28T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2009-10-24T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2009-10-24T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2009-10-24T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2009-10-24T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2009-03-28T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2009-03-28T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2009-03-28T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2009-03-28T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2009-10-24T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2009-10-24T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2009-10-24T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2009-10-24T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2010-03-27T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2010-03-27T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2010-03-27T16:00:00+00:00 should be 03:00:00 SAKST"); - t.equal(moment("2010-10-30T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:59:59", "2010-10-30T15:59:59+00:00 should be 02:59:59 SAKST"); - t.equal(moment("2010-10-30T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "02:00:00", "2010-10-30T16:00:00+00:00 should be 02:00:00 SAKT"); - - t.equal(moment("2010-03-27T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2010-03-27T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2010-03-27T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2010-03-27T16:00:00+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2010-10-30T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -660, "2010-10-30T15:59:59+00:00 should be -660 minutes offset in SAKST"); - t.equal(moment("2010-10-30T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -600, "2010-10-30T16:00:00+00:00 should be -600 minutes offset in SAKT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T15:59:59+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "01:59:59", "2011-03-26T15:59:59+00:00 should be 01:59:59 SAKT"); - t.equal(moment("2011-03-26T16:00:00+00:00").tz("Asia/Sakhalin").format("HH:mm:ss"), "03:00:00", "2011-03-26T16:00:00+00:00 should be 03:00:00 SAKT"); - - t.equal(moment("2011-03-26T15:59:59+00:00").tz("Asia/Sakhalin").zone(), -600, "2011-03-26T15:59:59+00:00 should be -600 minutes offset in SAKT"); - t.equal(moment("2011-03-26T16:00:00+00:00").tz("Asia/Sakhalin").zone(), -660, "2011-03-26T16:00:00+00:00 should be -660 minutes offset in SAKT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/samarkand.js b/tests/asia/samarkand.js deleted file mode 100644 index 3a42c1a7..00000000 --- a/tests/asia/samarkand.js +++ /dev/null @@ -1,182 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Samarkand"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T19:32:47+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1924-05-01T19:32:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T19:32:48+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:32:48", "1924-05-01T19:32:48+00:00 should be 23:32:48 SAMT"); - - t.equal(moment("1924-05-01T19:32:47+00:00").tz("Asia/Samarkand").zone(), -16032 / 60, "1924-05-01T19:32:47+00:00 should be -16032 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T19:32:48+00:00").tz("Asia/Samarkand").zone(), -240, "1924-05-01T19:32:48+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1930-06-20T19:59:59+00:00 should be 23:59:59 SAMT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:00:00", "1930-06-20T20:00:00+00:00 should be 01:00:00 SAMT"); - - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Samarkand").zone(), -240, "1930-06-20T19:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1930-06-20T20:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1981-03-31T18:59:59+00:00 should be 23:59:59 SAMT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:00:00", "1981-03-31T19:00:00+00:00 should be 01:00:00 SAMST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1981-09-30T17:59:59+00:00 should be 23:59:59 SAMST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "00:00:00", "1981-09-30T18:00:00+00:00 should be 00:00:00 TAST"); - - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1981-03-31T18:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1981-03-31T19:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1981-09-30T17:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1981-09-30T18:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 TAST"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "00:00:00", "1982-03-31T18:00:00+00:00 should be 00:00:00 SAMST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1982-09-30T17:59:59+00:00 should be 23:59:59 SAMST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:00:00", "1982-09-30T18:00:00+00:00 should be 23:00:00 SAMT"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1982-03-31T18:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1982-09-30T17:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1982-09-30T18:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1983-03-31T18:59:59+00:00 should be 23:59:59 SAMT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:00:00", "1983-03-31T19:00:00+00:00 should be 01:00:00 SAMST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1983-09-30T17:59:59+00:00 should be 23:59:59 SAMST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:00:00", "1983-09-30T18:00:00+00:00 should be 23:00:00 SAMT"); - - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1983-03-31T18:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1983-03-31T19:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1983-09-30T17:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1983-09-30T18:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1984-03-31T18:59:59+00:00 should be 23:59:59 SAMT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:00:00", "1984-03-31T19:00:00+00:00 should be 01:00:00 SAMST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:59:59", "1984-09-29T20:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:00:00", "1984-09-29T21:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1984-03-31T18:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1984-03-31T19:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1984-09-29T20:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1984-09-29T21:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:59:59", "1985-03-30T20:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "03:00:00", "1985-03-30T21:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:59:59", "1985-09-28T20:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:00:00", "1985-09-28T21:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1985-03-30T20:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1985-03-30T21:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1985-09-28T20:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1985-09-28T21:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:59:59", "1986-03-29T20:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "03:00:00", "1986-03-29T21:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:59:59", "1986-09-27T20:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:00:00", "1986-09-27T21:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1986-03-29T20:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1986-03-29T21:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1986-09-27T20:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1986-09-27T21:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:59:59", "1987-03-28T20:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "03:00:00", "1987-03-28T21:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:59:59", "1987-09-26T20:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:00:00", "1987-09-26T21:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1987-03-28T20:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1987-03-28T21:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1987-09-26T20:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1987-09-26T21:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:59:59", "1988-03-26T20:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "03:00:00", "1988-03-26T21:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:59:59", "1988-09-24T20:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:00:00", "1988-09-24T21:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1988-03-26T20:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1988-03-26T21:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1988-09-24T20:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1988-09-24T21:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:59:59", "1989-03-25T20:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "03:00:00", "1989-03-25T21:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:59:59", "1989-09-23T20:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:00:00", "1989-09-23T21:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1989-03-25T20:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1989-03-25T21:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1989-09-23T20:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1989-09-23T21:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:59:59", "1990-03-24T20:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "03:00:00", "1990-03-24T21:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:59:59", "1990-09-29T20:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:00:00", "1990-09-29T21:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1990-03-24T20:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1990-03-24T21:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1990-09-29T20:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1990-09-29T21:00:00+00:00 should be -300 minutes offset in SAMT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "01:59:59", "1991-03-30T20:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1991-03-30T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "03:00:00", "1991-03-30T21:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1991-08-31T17:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "23:59:59", "1991-08-31T17:59:59+00:00 should be 23:59:59 SAMST"); - t.equal(moment("1991-08-31T18:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "00:00:00", "1991-08-31T18:00:00+00:00 should be 00:00:00 UZST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:59:59", "1991-09-28T20:59:59+00:00 should be 02:59:59 UZST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Asia/Samarkand").format("HH:mm:ss"), "02:00:00", "1991-09-28T21:00:00+00:00 should be 02:00:00 UZT"); - - t.equal(moment("1991-03-30T20:59:59+00:00").tz("Asia/Samarkand").zone(), -300, "1991-03-30T20:59:59+00:00 should be -300 minutes offset in SAMT"); - t.equal(moment("1991-03-30T21:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1991-03-30T21:00:00+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1991-08-31T17:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1991-08-31T17:59:59+00:00 should be -360 minutes offset in SAMST"); - t.equal(moment("1991-08-31T18:00:00+00:00").tz("Asia/Samarkand").zone(), -360, "1991-08-31T18:00:00+00:00 should be -360 minutes offset in UZST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Asia/Samarkand").zone(), -360, "1991-09-28T20:59:59+00:00 should be -360 minutes offset in UZST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Asia/Samarkand").zone(), -300, "1991-09-28T21:00:00+00:00 should be -300 minutes offset in UZT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/seoul.js b/tests/asia/seoul.js deleted file mode 100644 index 7376be18..00000000 --- a/tests/asia/seoul.js +++ /dev/null @@ -1,106 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Seoul"] = { - - "1904" : function (t) { - t.equal(moment("1904-11-30T15:29:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1904-11-30T15:29:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1904-11-30T15:30:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "00:30:00", "1904-11-30T15:30:00+00:00 should be 00:30:00 KST"); - - t.equal(moment("1904-11-30T15:29:59+00:00").tz("Asia/Seoul").zone(), -510, "1904-11-30T15:29:59+00:00 should be -510 minutes offset in KST"); - t.equal(moment("1904-11-30T15:30:00+00:00").tz("Asia/Seoul").zone(), -540, "1904-11-30T15:30:00+00:00 should be -540 minutes offset in KST"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-12-31T14:59:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1927-12-31T14:59:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1927-12-31T15:00:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:30:00", "1927-12-31T15:00:00+00:00 should be 23:30:00 KST"); - - t.equal(moment("1927-12-31T14:59:59+00:00").tz("Asia/Seoul").zone(), -540, "1927-12-31T14:59:59+00:00 should be -540 minutes offset in KST"); - t.equal(moment("1927-12-31T15:00:00+00:00").tz("Asia/Seoul").zone(), -510, "1927-12-31T15:00:00+00:00 should be -510 minutes offset in KST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-12-31T15:29:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1931-12-31T15:29:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1931-12-31T15:30:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "00:30:00", "1931-12-31T15:30:00+00:00 should be 00:30:00 KST"); - - t.equal(moment("1931-12-31T15:29:59+00:00").tz("Asia/Seoul").zone(), -510, "1931-12-31T15:29:59+00:00 should be -510 minutes offset in KST"); - t.equal(moment("1931-12-31T15:30:00+00:00").tz("Asia/Seoul").zone(), -540, "1931-12-31T15:30:00+00:00 should be -540 minutes offset in KST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-03-20T14:59:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1954-03-20T14:59:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1954-03-20T15:00:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:00:00", "1954-03-20T15:00:00+00:00 should be 23:00:00 KST"); - - t.equal(moment("1954-03-20T14:59:59+00:00").tz("Asia/Seoul").zone(), -540, "1954-03-20T14:59:59+00:00 should be -540 minutes offset in KST"); - t.equal(moment("1954-03-20T15:00:00+00:00").tz("Asia/Seoul").zone(), -480, "1954-03-20T15:00:00+00:00 should be -480 minutes offset in KST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-05-14T15:59:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1960-05-14T15:59:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1960-05-14T16:00:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "01:00:00", "1960-05-14T16:00:00+00:00 should be 01:00:00 KDT"); - t.equal(moment("1960-09-12T14:59:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1960-09-12T14:59:59+00:00 should be 23:59:59 KDT"); - t.equal(moment("1960-09-12T15:00:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:00:00", "1960-09-12T15:00:00+00:00 should be 23:00:00 KST"); - - t.equal(moment("1960-05-14T15:59:59+00:00").tz("Asia/Seoul").zone(), -480, "1960-05-14T15:59:59+00:00 should be -480 minutes offset in KST"); - t.equal(moment("1960-05-14T16:00:00+00:00").tz("Asia/Seoul").zone(), -540, "1960-05-14T16:00:00+00:00 should be -540 minutes offset in KDT"); - t.equal(moment("1960-09-12T14:59:59+00:00").tz("Asia/Seoul").zone(), -540, "1960-09-12T14:59:59+00:00 should be -540 minutes offset in KDT"); - t.equal(moment("1960-09-12T15:00:00+00:00").tz("Asia/Seoul").zone(), -480, "1960-09-12T15:00:00+00:00 should be -480 minutes offset in KST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-08-09T15:59:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1961-08-09T15:59:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1961-08-09T16:00:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "00:30:00", "1961-08-09T16:00:00+00:00 should be 00:30:00 KST"); - - t.equal(moment("1961-08-09T15:59:59+00:00").tz("Asia/Seoul").zone(), -480, "1961-08-09T15:59:59+00:00 should be -480 minutes offset in KST"); - t.equal(moment("1961-08-09T16:00:00+00:00").tz("Asia/Seoul").zone(), -510, "1961-08-09T16:00:00+00:00 should be -510 minutes offset in KST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-09-30T15:29:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1968-09-30T15:29:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1968-09-30T15:30:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "00:30:00", "1968-09-30T15:30:00+00:00 should be 00:30:00 KST"); - - t.equal(moment("1968-09-30T15:29:59+00:00").tz("Asia/Seoul").zone(), -510, "1968-09-30T15:29:59+00:00 should be -510 minutes offset in KST"); - t.equal(moment("1968-09-30T15:30:00+00:00").tz("Asia/Seoul").zone(), -540, "1968-09-30T15:30:00+00:00 should be -540 minutes offset in KST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-05-09T14:59:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1987-05-09T14:59:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1987-05-09T15:00:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "01:00:00", "1987-05-09T15:00:00+00:00 should be 01:00:00 KDT"); - t.equal(moment("1987-10-10T13:59:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1987-10-10T13:59:59+00:00 should be 23:59:59 KDT"); - t.equal(moment("1987-10-10T14:00:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:00:00", "1987-10-10T14:00:00+00:00 should be 23:00:00 KST"); - - t.equal(moment("1987-05-09T14:59:59+00:00").tz("Asia/Seoul").zone(), -540, "1987-05-09T14:59:59+00:00 should be -540 minutes offset in KST"); - t.equal(moment("1987-05-09T15:00:00+00:00").tz("Asia/Seoul").zone(), -600, "1987-05-09T15:00:00+00:00 should be -600 minutes offset in KDT"); - t.equal(moment("1987-10-10T13:59:59+00:00").tz("Asia/Seoul").zone(), -600, "1987-10-10T13:59:59+00:00 should be -600 minutes offset in KDT"); - t.equal(moment("1987-10-10T14:00:00+00:00").tz("Asia/Seoul").zone(), -540, "1987-10-10T14:00:00+00:00 should be -540 minutes offset in KST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-05-07T14:59:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1988-05-07T14:59:59+00:00 should be 23:59:59 KST"); - t.equal(moment("1988-05-07T15:00:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "01:00:00", "1988-05-07T15:00:00+00:00 should be 01:00:00 KDT"); - t.equal(moment("1988-10-08T13:59:59+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:59:59", "1988-10-08T13:59:59+00:00 should be 23:59:59 KDT"); - t.equal(moment("1988-10-08T14:00:00+00:00").tz("Asia/Seoul").format("HH:mm:ss"), "23:00:00", "1988-10-08T14:00:00+00:00 should be 23:00:00 KST"); - - t.equal(moment("1988-05-07T14:59:59+00:00").tz("Asia/Seoul").zone(), -540, "1988-05-07T14:59:59+00:00 should be -540 minutes offset in KST"); - t.equal(moment("1988-05-07T15:00:00+00:00").tz("Asia/Seoul").zone(), -600, "1988-05-07T15:00:00+00:00 should be -600 minutes offset in KDT"); - t.equal(moment("1988-10-08T13:59:59+00:00").tz("Asia/Seoul").zone(), -600, "1988-10-08T13:59:59+00:00 should be -600 minutes offset in KDT"); - t.equal(moment("1988-10-08T14:00:00+00:00").tz("Asia/Seoul").zone(), -540, "1988-10-08T14:00:00+00:00 should be -540 minutes offset in KST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/shanghai.js b/tests/asia/shanghai.js deleted file mode 100644 index ad526959..00000000 --- a/tests/asia/shanghai.js +++ /dev/null @@ -1,126 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Shanghai"] = { - - "1927" : function (t) { - t.equal(moment("1927-12-31T15:54:02+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1927-12-31T15:54:02+00:00 should be 23:59:59 LMT"); - t.equal(moment("1927-12-31T15:54:03+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:54:03", "1927-12-31T15:54:03+00:00 should be 23:54:03 CST"); - - t.equal(moment("1927-12-31T15:54:02+00:00").tz("Asia/Shanghai").zone(), -29157 / 60, "1927-12-31T15:54:02+00:00 should be -29157 / 60 minutes offset in LMT"); - t.equal(moment("1927-12-31T15:54:03+00:00").tz("Asia/Shanghai").zone(), -480, "1927-12-31T15:54:03+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-06-02T15:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1940-06-02T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1940-06-02T16:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "01:00:00", "1940-06-02T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1940-09-30T14:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1940-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1940-09-30T15:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:00:00", "1940-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1940-06-02T15:59:59+00:00").tz("Asia/Shanghai").zone(), -480, "1940-06-02T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1940-06-02T16:00:00+00:00").tz("Asia/Shanghai").zone(), -540, "1940-06-02T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1940-09-30T14:59:59+00:00").tz("Asia/Shanghai").zone(), -540, "1940-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1940-09-30T15:00:00+00:00").tz("Asia/Shanghai").zone(), -480, "1940-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-03-15T15:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1941-03-15T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1941-03-15T16:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "01:00:00", "1941-03-15T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1941-09-30T14:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1941-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1941-09-30T15:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:00:00", "1941-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1941-03-15T15:59:59+00:00").tz("Asia/Shanghai").zone(), -480, "1941-03-15T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1941-03-15T16:00:00+00:00").tz("Asia/Shanghai").zone(), -540, "1941-03-15T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1941-09-30T14:59:59+00:00").tz("Asia/Shanghai").zone(), -540, "1941-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1941-09-30T15:00:00+00:00").tz("Asia/Shanghai").zone(), -480, "1941-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1986-05-03T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "01:00:00", "1986-05-03T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1986-09-13T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:00:00", "1986-09-13T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Shanghai").zone(), -480, "1986-05-03T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Shanghai").zone(), -540, "1986-05-03T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Shanghai").zone(), -540, "1986-09-13T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Shanghai").zone(), -480, "1986-09-13T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1987-04-11T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "01:00:00", "1987-04-11T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1987-09-12T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:00:00", "1987-09-12T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Shanghai").zone(), -480, "1987-04-11T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Shanghai").zone(), -540, "1987-04-11T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Shanghai").zone(), -540, "1987-09-12T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Shanghai").zone(), -480, "1987-09-12T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1988-04-09T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "01:00:00", "1988-04-09T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1988-09-10T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:00:00", "1988-09-10T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Shanghai").zone(), -480, "1988-04-09T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Shanghai").zone(), -540, "1988-04-09T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Shanghai").zone(), -540, "1988-09-10T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Shanghai").zone(), -480, "1988-09-10T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1989-04-15T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "01:00:00", "1989-04-15T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1989-09-16T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:00:00", "1989-09-16T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Shanghai").zone(), -480, "1989-04-15T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Shanghai").zone(), -540, "1989-04-15T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Shanghai").zone(), -540, "1989-09-16T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Shanghai").zone(), -480, "1989-09-16T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1990-04-14T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "01:00:00", "1990-04-14T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1990-09-15T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:00:00", "1990-09-15T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Shanghai").zone(), -480, "1990-04-14T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Shanghai").zone(), -540, "1990-04-14T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Shanghai").zone(), -540, "1990-09-15T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Shanghai").zone(), -480, "1990-09-15T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1991-04-13T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "01:00:00", "1991-04-13T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:59:59", "1991-09-14T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Shanghai").format("HH:mm:ss"), "23:00:00", "1991-09-14T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Shanghai").zone(), -480, "1991-04-13T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Shanghai").zone(), -540, "1991-04-13T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Shanghai").zone(), -540, "1991-09-14T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Shanghai").zone(), -480, "1991-09-14T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/singapore.js b/tests/asia/singapore.js deleted file mode 100644 index 22b8a5cd..00000000 --- a/tests/asia/singapore.js +++ /dev/null @@ -1,84 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Singapore"] = { - - "1905" : function (t) { - t.equal(moment("1905-05-31T17:04:34+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "23:59:59", "1905-05-31T17:04:34+00:00 should be 23:59:59 SMT"); - t.equal(moment("1905-05-31T17:04:35+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "00:04:35", "1905-05-31T17:04:35+00:00 should be 00:04:35 MALT"); - - t.equal(moment("1905-05-31T17:04:34+00:00").tz("Asia/Singapore").zone(), -24925 / 60, "1905-05-31T17:04:34+00:00 should be -24925 / 60 minutes offset in SMT"); - t.equal(moment("1905-05-31T17:04:35+00:00").tz("Asia/Singapore").zone(), -420, "1905-05-31T17:04:35+00:00 should be -420 minutes offset in MALT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-12-31T16:59:59+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "23:59:59", "1932-12-31T16:59:59+00:00 should be 23:59:59 MALT"); - t.equal(moment("1932-12-31T17:00:00+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "00:20:00", "1932-12-31T17:00:00+00:00 should be 00:20:00 MALST"); - - t.equal(moment("1932-12-31T16:59:59+00:00").tz("Asia/Singapore").zone(), -420, "1932-12-31T16:59:59+00:00 should be -420 minutes offset in MALT"); - t.equal(moment("1932-12-31T17:00:00+00:00").tz("Asia/Singapore").zone(), -440, "1932-12-31T17:00:00+00:00 should be -440 minutes offset in MALST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-12-31T16:39:59+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "23:59:59", "1935-12-31T16:39:59+00:00 should be 23:59:59 MALST"); - t.equal(moment("1935-12-31T16:40:00+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "00:00:00", "1935-12-31T16:40:00+00:00 should be 00:00:00 MALT"); - - t.equal(moment("1935-12-31T16:39:59+00:00").tz("Asia/Singapore").zone(), -440, "1935-12-31T16:39:59+00:00 should be -440 minutes offset in MALST"); - t.equal(moment("1935-12-31T16:40:00+00:00").tz("Asia/Singapore").zone(), -440, "1935-12-31T16:40:00+00:00 should be -440 minutes offset in MALT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-08-31T16:39:59+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "23:59:59", "1941-08-31T16:39:59+00:00 should be 23:59:59 MALT"); - t.equal(moment("1941-08-31T16:40:00+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "00:10:00", "1941-08-31T16:40:00+00:00 should be 00:10:00 MALT"); - - t.equal(moment("1941-08-31T16:39:59+00:00").tz("Asia/Singapore").zone(), -440, "1941-08-31T16:39:59+00:00 should be -440 minutes offset in MALT"); - t.equal(moment("1941-08-31T16:40:00+00:00").tz("Asia/Singapore").zone(), -450, "1941-08-31T16:40:00+00:00 should be -450 minutes offset in MALT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-15T16:29:59+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "23:59:59", "1942-02-15T16:29:59+00:00 should be 23:59:59 MALT"); - t.equal(moment("1942-02-15T16:30:00+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "01:30:00", "1942-02-15T16:30:00+00:00 should be 01:30:00 JST"); - - t.equal(moment("1942-02-15T16:29:59+00:00").tz("Asia/Singapore").zone(), -450, "1942-02-15T16:29:59+00:00 should be -450 minutes offset in MALT"); - t.equal(moment("1942-02-15T16:30:00+00:00").tz("Asia/Singapore").zone(), -540, "1942-02-15T16:30:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-09-11T14:59:59+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "23:59:59", "1945-09-11T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1945-09-11T15:00:00+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "22:30:00", "1945-09-11T15:00:00+00:00 should be 22:30:00 MALT"); - - t.equal(moment("1945-09-11T14:59:59+00:00").tz("Asia/Singapore").zone(), -540, "1945-09-11T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1945-09-11T15:00:00+00:00").tz("Asia/Singapore").zone(), -450, "1945-09-11T15:00:00+00:00 should be -450 minutes offset in MALT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-08-08T16:29:59+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "23:59:59", "1965-08-08T16:29:59+00:00 should be 23:59:59 MALT"); - t.equal(moment("1965-08-08T16:30:00+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "00:00:00", "1965-08-08T16:30:00+00:00 should be 00:00:00 SGT"); - - t.equal(moment("1965-08-08T16:29:59+00:00").tz("Asia/Singapore").zone(), -450, "1965-08-08T16:29:59+00:00 should be -450 minutes offset in MALT"); - t.equal(moment("1965-08-08T16:30:00+00:00").tz("Asia/Singapore").zone(), -450, "1965-08-08T16:30:00+00:00 should be -450 minutes offset in SGT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-12-31T16:29:59+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "23:59:59", "1981-12-31T16:29:59+00:00 should be 23:59:59 SGT"); - t.equal(moment("1981-12-31T16:30:00+00:00").tz("Asia/Singapore").format("HH:mm:ss"), "00:30:00", "1981-12-31T16:30:00+00:00 should be 00:30:00 SGT"); - - t.equal(moment("1981-12-31T16:29:59+00:00").tz("Asia/Singapore").zone(), -450, "1981-12-31T16:29:59+00:00 should be -450 minutes offset in SGT"); - t.equal(moment("1981-12-31T16:30:00+00:00").tz("Asia/Singapore").zone(), -480, "1981-12-31T16:30:00+00:00 should be -480 minutes offset in SGT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/taipei.js b/tests/asia/taipei.js deleted file mode 100644 index 80481134..00000000 --- a/tests/asia/taipei.js +++ /dev/null @@ -1,284 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Taipei"] = { - - "1945" : function (t) { - t.equal(moment("1945-04-30T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1945-04-30T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1945-04-30T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1945-04-30T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1945-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1945-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1945-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1945-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1945-04-30T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1945-04-30T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1945-04-30T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1945-04-30T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1945-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1945-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1945-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1945-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-30T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1946-04-30T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1946-04-30T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1946-04-30T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1946-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1946-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1946-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1946-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1946-04-30T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1946-04-30T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1946-04-30T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1946-04-30T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1946-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1946-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1946-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1946-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-30T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1947-04-30T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1947-04-30T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1947-04-30T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1947-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1947-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1947-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1947-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1947-04-30T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1947-04-30T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1947-04-30T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1947-04-30T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1947-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1947-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1947-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1947-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-30T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1948-04-30T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1948-04-30T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1948-04-30T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1948-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1948-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1948-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1948-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1948-04-30T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1948-04-30T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1948-04-30T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1948-04-30T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1948-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1948-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1948-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1948-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-30T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1949-04-30T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1949-04-30T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1949-04-30T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1949-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1949-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1949-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1949-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1949-04-30T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1949-04-30T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1949-04-30T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1949-04-30T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1949-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1949-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1949-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1949-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-30T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1950-04-30T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1950-04-30T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1950-04-30T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1950-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1950-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1950-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1950-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1950-04-30T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1950-04-30T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1950-04-30T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1950-04-30T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1950-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1950-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1950-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1950-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-30T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1951-04-30T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1951-04-30T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1951-04-30T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1951-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1951-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1951-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1951-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1951-04-30T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1951-04-30T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1951-04-30T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1951-04-30T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1951-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1951-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1951-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1951-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-02-29T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1952-02-29T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1952-02-29T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1952-02-29T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1952-10-31T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1952-10-31T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1952-10-31T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1952-10-31T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1952-02-29T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1952-02-29T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1952-02-29T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1952-02-29T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1952-10-31T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1952-10-31T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1952-10-31T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1952-10-31T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-03-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1953-03-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1953-03-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1953-03-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1953-10-31T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1953-10-31T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1953-10-31T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1953-10-31T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1953-03-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1953-03-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1953-03-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1953-03-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1953-10-31T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1953-10-31T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1953-10-31T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1953-10-31T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-03-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1954-03-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1954-03-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1954-03-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1954-10-31T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1954-10-31T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1954-10-31T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1954-10-31T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1954-03-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1954-03-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1954-03-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1954-03-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1954-10-31T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1954-10-31T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1954-10-31T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1954-10-31T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-03-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1955-03-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1955-03-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1955-03-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1955-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1955-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1955-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1955-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1955-03-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1955-03-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1955-03-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1955-03-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1955-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1955-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1955-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1955-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-03-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1956-03-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1956-03-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1956-03-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1956-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1956-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1956-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1956-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1956-03-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1956-03-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1956-03-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1956-03-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1956-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1956-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1956-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1956-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-03-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1957-03-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1957-03-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1957-03-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1957-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1957-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1957-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1957-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1957-03-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1957-03-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1957-03-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1957-03-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1957-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1957-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1957-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1957-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-03-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1958-03-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1958-03-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1958-03-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1958-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1958-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1958-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1958-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1958-03-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1958-03-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1958-03-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1958-03-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1958-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1958-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1958-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1958-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-03-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1959-03-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1959-03-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1959-03-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1959-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1959-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1959-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1959-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1959-03-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1959-03-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1959-03-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1959-03-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1959-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1959-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1959-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1959-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-05-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1960-05-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1960-05-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1960-05-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1960-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1960-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1960-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1960-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1960-05-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1960-05-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1960-05-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1960-05-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1960-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1960-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1960-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1960-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-05-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1961-05-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1961-05-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1961-05-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1961-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1961-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1961-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1961-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1961-05-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1961-05-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1961-05-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1961-05-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1961-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1961-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1961-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1961-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1974-03-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1974-03-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1974-03-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1974-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1974-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1974-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1974-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1974-03-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1974-03-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1974-03-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1974-03-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1974-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1974-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1974-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1974-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-31T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1975-03-31T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1975-03-31T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1975-03-31T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1975-09-30T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1975-09-30T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1975-09-30T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1975-09-30T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1975-03-31T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1975-03-31T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1975-03-31T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1975-03-31T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1975-09-30T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1975-09-30T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1975-09-30T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1975-09-30T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-06-29T15:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1979-06-29T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1979-06-29T16:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "01:00:00", "1979-06-29T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1979-09-29T14:59:59+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:59:59", "1979-09-29T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1979-09-29T15:00:00+00:00").tz("Asia/Taipei").format("HH:mm:ss"), "23:00:00", "1979-09-29T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1979-06-29T15:59:59+00:00").tz("Asia/Taipei").zone(), -480, "1979-06-29T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1979-06-29T16:00:00+00:00").tz("Asia/Taipei").zone(), -540, "1979-06-29T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1979-09-29T14:59:59+00:00").tz("Asia/Taipei").zone(), -540, "1979-09-29T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1979-09-29T15:00:00+00:00").tz("Asia/Taipei").zone(), -480, "1979-09-29T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/tashkent.js b/tests/asia/tashkent.js deleted file mode 100644 index 6b1a2a9b..00000000 --- a/tests/asia/tashkent.js +++ /dev/null @@ -1,182 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Tashkent"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T19:22:47+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1924-05-01T19:22:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T19:22:48+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "00:22:48", "1924-05-01T19:22:48+00:00 should be 00:22:48 TAST"); - - t.equal(moment("1924-05-01T19:22:47+00:00").tz("Asia/Tashkent").zone(), -16632 / 60, "1924-05-01T19:22:47+00:00 should be -16632 / 60 minutes offset in LMT"); - t.equal(moment("1924-05-01T19:22:48+00:00").tz("Asia/Tashkent").zone(), -300, "1924-05-01T19:22:48+00:00 should be -300 minutes offset in TAST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1930-06-20T18:59:59+00:00 should be 23:59:59 TAST"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:00:00", "1930-06-20T19:00:00+00:00 should be 01:00:00 TAST"); - - t.equal(moment("1930-06-20T18:59:59+00:00").tz("Asia/Tashkent").zone(), -300, "1930-06-20T18:59:59+00:00 should be -300 minutes offset in TAST"); - t.equal(moment("1930-06-20T19:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1930-06-20T19:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1981-03-31T17:59:59+00:00 should be 23:59:59 TAST"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:00:00", "1981-03-31T18:00:00+00:00 should be 01:00:00 TASST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1981-09-30T16:59:59+00:00 should be 23:59:59 TASST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:00:00", "1981-09-30T17:00:00+00:00 should be 23:00:00 TAST"); - - t.equal(moment("1981-03-31T17:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1981-03-31T17:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1981-03-31T18:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1981-03-31T18:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1981-09-30T16:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1981-09-30T16:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1981-09-30T17:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1981-09-30T17:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1982-03-31T17:59:59+00:00 should be 23:59:59 TAST"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:00:00", "1982-03-31T18:00:00+00:00 should be 01:00:00 TASST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1982-09-30T16:59:59+00:00 should be 23:59:59 TASST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:00:00", "1982-09-30T17:00:00+00:00 should be 23:00:00 TAST"); - - t.equal(moment("1982-03-31T17:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1982-03-31T17:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1982-03-31T18:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1982-03-31T18:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1982-09-30T16:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1982-09-30T16:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1982-09-30T17:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1982-09-30T17:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1983-03-31T17:59:59+00:00 should be 23:59:59 TAST"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:00:00", "1983-03-31T18:00:00+00:00 should be 01:00:00 TASST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1983-09-30T16:59:59+00:00 should be 23:59:59 TASST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:00:00", "1983-09-30T17:00:00+00:00 should be 23:00:00 TAST"); - - t.equal(moment("1983-03-31T17:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1983-03-31T17:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1983-03-31T18:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1983-03-31T18:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1983-09-30T16:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1983-09-30T16:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1983-09-30T17:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1983-09-30T17:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1984-03-31T17:59:59+00:00 should be 23:59:59 TAST"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:00:00", "1984-03-31T18:00:00+00:00 should be 01:00:00 TASST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:59:59", "1984-09-29T19:59:59+00:00 should be 02:59:59 TASST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:00:00", "1984-09-29T20:00:00+00:00 should be 02:00:00 TAST"); - - t.equal(moment("1984-03-31T17:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1984-03-31T17:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1984-03-31T18:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1984-03-31T18:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1984-09-29T19:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1984-09-29T19:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1984-09-29T20:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1984-09-29T20:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:59:59", "1985-03-30T19:59:59+00:00 should be 01:59:59 TAST"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "03:00:00", "1985-03-30T20:00:00+00:00 should be 03:00:00 TASST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:59:59", "1985-09-28T19:59:59+00:00 should be 02:59:59 TASST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:00:00", "1985-09-28T20:00:00+00:00 should be 02:00:00 TAST"); - - t.equal(moment("1985-03-30T19:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1985-03-30T19:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1985-03-30T20:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1985-03-30T20:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1985-09-28T19:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1985-09-28T19:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1985-09-28T20:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1985-09-28T20:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:59:59", "1986-03-29T19:59:59+00:00 should be 01:59:59 TAST"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "03:00:00", "1986-03-29T20:00:00+00:00 should be 03:00:00 TASST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:59:59", "1986-09-27T19:59:59+00:00 should be 02:59:59 TASST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:00:00", "1986-09-27T20:00:00+00:00 should be 02:00:00 TAST"); - - t.equal(moment("1986-03-29T19:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1986-03-29T19:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1986-03-29T20:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1986-03-29T20:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1986-09-27T19:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1986-09-27T19:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1986-09-27T20:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1986-09-27T20:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:59:59", "1987-03-28T19:59:59+00:00 should be 01:59:59 TAST"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "03:00:00", "1987-03-28T20:00:00+00:00 should be 03:00:00 TASST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:59:59", "1987-09-26T19:59:59+00:00 should be 02:59:59 TASST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:00:00", "1987-09-26T20:00:00+00:00 should be 02:00:00 TAST"); - - t.equal(moment("1987-03-28T19:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1987-03-28T19:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1987-03-28T20:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1987-03-28T20:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1987-09-26T19:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1987-09-26T19:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1987-09-26T20:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1987-09-26T20:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:59:59", "1988-03-26T19:59:59+00:00 should be 01:59:59 TAST"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "03:00:00", "1988-03-26T20:00:00+00:00 should be 03:00:00 TASST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:59:59", "1988-09-24T19:59:59+00:00 should be 02:59:59 TASST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:00:00", "1988-09-24T20:00:00+00:00 should be 02:00:00 TAST"); - - t.equal(moment("1988-03-26T19:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1988-03-26T19:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1988-03-26T20:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1988-03-26T20:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1988-09-24T19:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1988-09-24T19:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1988-09-24T20:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1988-09-24T20:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:59:59", "1989-03-25T19:59:59+00:00 should be 01:59:59 TAST"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "03:00:00", "1989-03-25T20:00:00+00:00 should be 03:00:00 TASST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:59:59", "1989-09-23T19:59:59+00:00 should be 02:59:59 TASST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:00:00", "1989-09-23T20:00:00+00:00 should be 02:00:00 TAST"); - - t.equal(moment("1989-03-25T19:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1989-03-25T19:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1989-03-25T20:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1989-03-25T20:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1989-09-23T19:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1989-09-23T19:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1989-09-23T20:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1989-09-23T20:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:59:59", "1990-03-24T19:59:59+00:00 should be 01:59:59 TAST"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "03:00:00", "1990-03-24T20:00:00+00:00 should be 03:00:00 TASST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:59:59", "1990-09-29T19:59:59+00:00 should be 02:59:59 TASST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:00:00", "1990-09-29T20:00:00+00:00 should be 02:00:00 TAST"); - - t.equal(moment("1990-03-24T19:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1990-03-24T19:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1990-03-24T20:00:00+00:00").tz("Asia/Tashkent").zone(), -420, "1990-03-24T20:00:00+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1990-09-29T19:59:59+00:00").tz("Asia/Tashkent").zone(), -420, "1990-09-29T19:59:59+00:00 should be -420 minutes offset in TASST"); - t.equal(moment("1990-09-29T20:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1990-09-29T20:00:00+00:00 should be -360 minutes offset in TAST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T19:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "01:59:59", "1991-03-30T19:59:59+00:00 should be 01:59:59 TAST"); - t.equal(moment("1991-03-30T20:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:00:00", "1991-03-30T20:00:00+00:00 should be 02:00:00 TASST"); - t.equal(moment("1991-08-31T17:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "23:59:59", "1991-08-31T17:59:59+00:00 should be 23:59:59 TASST"); - t.equal(moment("1991-08-31T18:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "00:00:00", "1991-08-31T18:00:00+00:00 should be 00:00:00 UZST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:59:59", "1991-09-28T20:59:59+00:00 should be 02:59:59 UZST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Asia/Tashkent").format("HH:mm:ss"), "02:00:00", "1991-09-28T21:00:00+00:00 should be 02:00:00 UZT"); - - t.equal(moment("1991-03-30T19:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1991-03-30T19:59:59+00:00 should be -360 minutes offset in TAST"); - t.equal(moment("1991-03-30T20:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1991-03-30T20:00:00+00:00 should be -360 minutes offset in TASST"); - t.equal(moment("1991-08-31T17:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1991-08-31T17:59:59+00:00 should be -360 minutes offset in TASST"); - t.equal(moment("1991-08-31T18:00:00+00:00").tz("Asia/Tashkent").zone(), -360, "1991-08-31T18:00:00+00:00 should be -360 minutes offset in UZST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Asia/Tashkent").zone(), -360, "1991-09-28T20:59:59+00:00 should be -360 minutes offset in UZST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Asia/Tashkent").zone(), -300, "1991-09-28T21:00:00+00:00 should be -300 minutes offset in UZT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/tbilisi.js b/tests/asia/tbilisi.js deleted file mode 100644 index 0e6387f4..00000000 --- a/tests/asia/tbilisi.js +++ /dev/null @@ -1,370 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Tbilisi"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T21:00:43+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1924-05-01T21:00:43+00:00 should be 23:59:59 TBMT"); - t.equal(moment("1924-05-01T21:00:44+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "00:00:44", "1924-05-01T21:00:44+00:00 should be 00:00:44 TBIT"); - - t.equal(moment("1924-05-01T21:00:43+00:00").tz("Asia/Tbilisi").zone(), -10756 / 60, "1924-05-01T21:00:43+00:00 should be -10756 / 60 minutes offset in TBMT"); - t.equal(moment("1924-05-01T21:00:44+00:00").tz("Asia/Tbilisi").zone(), -180, "1924-05-01T21:00:44+00:00 should be -180 minutes offset in TBIT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-02-28T20:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1957-02-28T20:59:59+00:00 should be 23:59:59 TBIT"); - t.equal(moment("1957-02-28T21:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1957-02-28T21:00:00+00:00 should be 01:00:00 TBIT"); - - t.equal(moment("1957-02-28T20:59:59+00:00").tz("Asia/Tbilisi").zone(), -180, "1957-02-28T20:59:59+00:00 should be -180 minutes offset in TBIT"); - t.equal(moment("1957-02-28T21:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1957-02-28T21:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1981-03-31T19:59:59+00:00 should be 23:59:59 TBIT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1981-03-31T20:00:00+00:00 should be 01:00:00 TBIST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1981-09-30T18:59:59+00:00 should be 23:59:59 TBIST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "1981-09-30T19:00:00+00:00 should be 23:00:00 TBIT"); - - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1981-03-31T19:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1981-03-31T20:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1981-09-30T18:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1981-09-30T19:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1982-03-31T19:59:59+00:00 should be 23:59:59 TBIT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1982-03-31T20:00:00+00:00 should be 01:00:00 TBIST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1982-09-30T18:59:59+00:00 should be 23:59:59 TBIST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "1982-09-30T19:00:00+00:00 should be 23:00:00 TBIT"); - - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1982-03-31T19:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1982-03-31T20:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1982-09-30T18:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1982-09-30T19:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1983-03-31T19:59:59+00:00 should be 23:59:59 TBIT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1983-03-31T20:00:00+00:00 should be 01:00:00 TBIST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1983-09-30T18:59:59+00:00 should be 23:59:59 TBIST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "1983-09-30T19:00:00+00:00 should be 23:00:00 TBIT"); - - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1983-03-31T19:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1983-03-31T20:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1983-09-30T18:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1983-09-30T19:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1984-03-31T19:59:59+00:00 should be 23:59:59 TBIT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1984-03-31T20:00:00+00:00 should be 01:00:00 TBIST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:59:59", "1984-09-29T21:59:59+00:00 should be 02:59:59 TBIST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "1984-09-29T22:00:00+00:00 should be 02:00:00 TBIT"); - - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1984-03-31T19:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1984-03-31T20:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1984-09-29T21:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1984-09-29T22:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:59:59", "1985-03-30T21:59:59+00:00 should be 01:59:59 TBIT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "03:00:00", "1985-03-30T22:00:00+00:00 should be 03:00:00 TBIST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:59:59", "1985-09-28T21:59:59+00:00 should be 02:59:59 TBIST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "1985-09-28T22:00:00+00:00 should be 02:00:00 TBIT"); - - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1985-03-30T21:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1985-03-30T22:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1985-09-28T21:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1985-09-28T22:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:59:59", "1986-03-29T21:59:59+00:00 should be 01:59:59 TBIT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "03:00:00", "1986-03-29T22:00:00+00:00 should be 03:00:00 TBIST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:59:59", "1986-09-27T21:59:59+00:00 should be 02:59:59 TBIST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "1986-09-27T22:00:00+00:00 should be 02:00:00 TBIT"); - - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1986-03-29T21:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1986-03-29T22:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1986-09-27T21:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1986-09-27T22:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:59:59", "1987-03-28T21:59:59+00:00 should be 01:59:59 TBIT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "03:00:00", "1987-03-28T22:00:00+00:00 should be 03:00:00 TBIST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:59:59", "1987-09-26T21:59:59+00:00 should be 02:59:59 TBIST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "1987-09-26T22:00:00+00:00 should be 02:00:00 TBIT"); - - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1987-03-28T21:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1987-03-28T22:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1987-09-26T21:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1987-09-26T22:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:59:59", "1988-03-26T21:59:59+00:00 should be 01:59:59 TBIT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "03:00:00", "1988-03-26T22:00:00+00:00 should be 03:00:00 TBIST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:59:59", "1988-09-24T21:59:59+00:00 should be 02:59:59 TBIST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "1988-09-24T22:00:00+00:00 should be 02:00:00 TBIT"); - - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1988-03-26T21:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1988-03-26T22:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1988-09-24T21:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1988-09-24T22:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:59:59", "1989-03-25T21:59:59+00:00 should be 01:59:59 TBIT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "03:00:00", "1989-03-25T22:00:00+00:00 should be 03:00:00 TBIST"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:59:59", "1989-09-23T21:59:59+00:00 should be 02:59:59 TBIST"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "1989-09-23T22:00:00+00:00 should be 02:00:00 TBIT"); - - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1989-03-25T21:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1989-03-25T22:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1989-09-23T21:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1989-09-23T22:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:59:59", "1990-03-24T21:59:59+00:00 should be 01:59:59 TBIT"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "03:00:00", "1990-03-24T22:00:00+00:00 should be 03:00:00 TBIST"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:59:59", "1990-09-29T21:59:59+00:00 should be 02:59:59 TBIST"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "1990-09-29T22:00:00+00:00 should be 02:00:00 TBIT"); - - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1990-03-24T21:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1990-03-24T22:00:00+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1990-09-29T21:59:59+00:00 should be -300 minutes offset in TBIST"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1990-09-29T22:00:00+00:00 should be -240 minutes offset in TBIT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:59:59", "1991-03-30T21:59:59+00:00 should be 01:59:59 TBIT"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "1991-03-30T22:00:00+00:00 should be 02:00:00 TBIST"); - t.equal(moment("1991-04-08T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1991-04-08T19:59:59+00:00 should be 23:59:59 TBIST"); - t.equal(moment("1991-04-08T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "00:00:00", "1991-04-08T20:00:00+00:00 should be 00:00:00 GEST"); - t.equal(moment("1991-09-28T22:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:59:59", "1991-09-28T22:59:59+00:00 should be 02:59:59 GEST"); - t.equal(moment("1991-09-28T23:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "1991-09-28T23:00:00+00:00 should be 02:00:00 GET"); - - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1991-03-30T21:59:59+00:00 should be -240 minutes offset in TBIT"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1991-03-30T22:00:00+00:00 should be -240 minutes offset in TBIST"); - t.equal(moment("1991-04-08T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1991-04-08T19:59:59+00:00 should be -240 minutes offset in TBIST"); - t.equal(moment("1991-04-08T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1991-04-08T20:00:00+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("1991-09-28T22:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1991-09-28T22:59:59+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("1991-09-28T23:00:00+00:00").tz("Asia/Tbilisi").zone(), -180, "1991-09-28T23:00:00+00:00 should be -180 minutes offset in GET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T20:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1992-03-28T20:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("1992-03-28T21:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1992-03-28T21:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("1992-09-26T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1992-09-26T19:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("1992-09-26T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "1992-09-26T20:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("1992-03-28T20:59:59+00:00").tz("Asia/Tbilisi").zone(), -180, "1992-03-28T20:59:59+00:00 should be -180 minutes offset in GET"); - t.equal(moment("1992-03-28T21:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1992-03-28T21:00:00+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("1992-09-26T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1992-09-26T19:59:59+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("1992-09-26T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -180, "1992-09-26T20:00:00+00:00 should be -180 minutes offset in GET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T20:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1993-03-27T20:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("1993-03-27T21:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1993-03-27T21:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1993-09-25T19:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "1993-09-25T20:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("1993-03-27T20:59:59+00:00").tz("Asia/Tbilisi").zone(), -180, "1993-03-27T20:59:59+00:00 should be -180 minutes offset in GET"); - t.equal(moment("1993-03-27T21:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1993-03-27T21:00:00+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("1993-09-25T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1993-09-25T19:59:59+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("1993-09-25T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -180, "1993-09-25T20:00:00+00:00 should be -180 minutes offset in GET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T20:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1994-03-26T20:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("1994-03-26T21:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1994-03-26T21:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1994-09-24T19:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "00:00:00", "1994-09-24T20:00:00+00:00 should be 00:00:00 GET"); - - t.equal(moment("1994-03-26T20:59:59+00:00").tz("Asia/Tbilisi").zone(), -180, "1994-03-26T20:59:59+00:00 should be -180 minutes offset in GET"); - t.equal(moment("1994-03-26T21:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1994-03-26T21:00:00+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1994-09-24T19:59:59+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1994-09-24T20:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1995-03-25T19:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1995-03-25T20:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("1995-09-23T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1995-09-23T18:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("1995-09-23T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "1995-09-23T19:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("1995-03-25T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1995-03-25T19:59:59+00:00 should be -240 minutes offset in GET"); - t.equal(moment("1995-03-25T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1995-03-25T20:00:00+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("1995-09-23T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1995-09-23T18:59:59+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("1995-09-23T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1995-09-23T19:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1996-03-30T19:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1996-03-30T20:00:00+00:00 should be 01:00:00 GEST"); - - t.equal(moment("1996-03-30T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1996-03-30T19:59:59+00:00 should be -240 minutes offset in GET"); - t.equal(moment("1996-03-30T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1996-03-30T20:00:00+00:00 should be -300 minutes offset in GEST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-10-25T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1997-10-25T18:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("1997-10-25T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "1997-10-25T19:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("1997-10-25T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1997-10-25T18:59:59+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("1997-10-25T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1997-10-25T19:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1998-03-28T19:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1998-03-28T20:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("1998-10-24T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1998-10-24T18:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("1998-10-24T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "1998-10-24T19:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("1998-03-28T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1998-03-28T19:59:59+00:00 should be -240 minutes offset in GET"); - t.equal(moment("1998-03-28T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1998-03-28T20:00:00+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("1998-10-24T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1998-10-24T18:59:59+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("1998-10-24T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1998-10-24T19:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1999-03-27T19:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "1999-03-27T20:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("1999-10-30T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "1999-10-30T18:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("1999-10-30T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "1999-10-30T19:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("1999-03-27T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "1999-03-27T19:59:59+00:00 should be -240 minutes offset in GET"); - t.equal(moment("1999-03-27T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "1999-03-27T20:00:00+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("1999-10-30T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "1999-10-30T18:59:59+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("1999-10-30T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "1999-10-30T19:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2000-03-25T19:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "2000-03-25T20:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("2000-10-28T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2000-10-28T18:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("2000-10-28T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "2000-10-28T19:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("2000-03-25T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "2000-03-25T19:59:59+00:00 should be -240 minutes offset in GET"); - t.equal(moment("2000-03-25T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "2000-03-25T20:00:00+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2000-10-28T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "2000-10-28T18:59:59+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2000-10-28T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "2000-10-28T19:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2001-03-24T19:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "2001-03-24T20:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("2001-10-27T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2001-10-27T18:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("2001-10-27T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "2001-10-27T19:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("2001-03-24T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "2001-03-24T19:59:59+00:00 should be -240 minutes offset in GET"); - t.equal(moment("2001-03-24T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "2001-03-24T20:00:00+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2001-10-27T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "2001-10-27T18:59:59+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2001-10-27T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "2001-10-27T19:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2002-03-30T19:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "2002-03-30T20:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("2002-10-26T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2002-10-26T18:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("2002-10-26T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "2002-10-26T19:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("2002-03-30T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "2002-03-30T19:59:59+00:00 should be -240 minutes offset in GET"); - t.equal(moment("2002-03-30T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "2002-03-30T20:00:00+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2002-10-26T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "2002-10-26T18:59:59+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2002-10-26T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "2002-10-26T19:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2003-03-29T19:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "2003-03-29T20:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("2003-10-25T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2003-10-25T18:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("2003-10-25T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "2003-10-25T19:00:00+00:00 should be 23:00:00 GET"); - - t.equal(moment("2003-03-29T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "2003-03-29T19:59:59+00:00 should be -240 minutes offset in GET"); - t.equal(moment("2003-03-29T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "2003-03-29T20:00:00+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2003-10-25T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "2003-10-25T18:59:59+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2003-10-25T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "2003-10-25T19:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2004-03-27T19:59:59+00:00 should be 23:59:59 GET"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:00:00", "2004-03-27T20:00:00+00:00 should be 01:00:00 GEST"); - t.equal(moment("2004-06-26T18:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:59:59", "2004-06-26T18:59:59+00:00 should be 23:59:59 GEST"); - t.equal(moment("2004-06-26T19:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "23:00:00", "2004-06-26T19:00:00+00:00 should be 23:00:00 GEST"); - t.equal(moment("2004-10-30T22:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:59:59", "2004-10-30T22:59:59+00:00 should be 02:59:59 GEST"); - t.equal(moment("2004-10-30T23:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "02:00:00", "2004-10-30T23:00:00+00:00 should be 02:00:00 GET"); - - t.equal(moment("2004-03-27T19:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "2004-03-27T19:59:59+00:00 should be -240 minutes offset in GET"); - t.equal(moment("2004-03-27T20:00:00+00:00").tz("Asia/Tbilisi").zone(), -300, "2004-03-27T20:00:00+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2004-06-26T18:59:59+00:00").tz("Asia/Tbilisi").zone(), -300, "2004-06-26T18:59:59+00:00 should be -300 minutes offset in GEST"); - t.equal(moment("2004-06-26T19:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "2004-06-26T19:00:00+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("2004-10-30T22:59:59+00:00").tz("Asia/Tbilisi").zone(), -240, "2004-10-30T22:59:59+00:00 should be -240 minutes offset in GEST"); - t.equal(moment("2004-10-30T23:00:00+00:00").tz("Asia/Tbilisi").zone(), -180, "2004-10-30T23:00:00+00:00 should be -180 minutes offset in GET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T22:59:59+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "01:59:59", "2005-03-26T22:59:59+00:00 should be 01:59:59 GET"); - t.equal(moment("2005-03-26T23:00:00+00:00").tz("Asia/Tbilisi").format("HH:mm:ss"), "03:00:00", "2005-03-26T23:00:00+00:00 should be 03:00:00 GET"); - - t.equal(moment("2005-03-26T22:59:59+00:00").tz("Asia/Tbilisi").zone(), -180, "2005-03-26T22:59:59+00:00 should be -180 minutes offset in GET"); - t.equal(moment("2005-03-26T23:00:00+00:00").tz("Asia/Tbilisi").zone(), -240, "2005-03-26T23:00:00+00:00 should be -240 minutes offset in GET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/tehran.js b/tests/asia/tehran.js deleted file mode 100644 index 6902754d..00000000 --- a/tests/asia/tehran.js +++ /dev/null @@ -1,710 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Tehran"] = { - - "1915" : function (t) { - t.equal(moment("1915-12-31T20:34:15+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1915-12-31T20:34:15+00:00 should be 23:59:59 LMT"); - t.equal(moment("1915-12-31T20:34:16+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "00:00:00", "1915-12-31T20:34:16+00:00 should be 00:00:00 TMT"); - - t.equal(moment("1915-12-31T20:34:15+00:00").tz("Asia/Tehran").zone(), -12344 / 60, "1915-12-31T20:34:15+00:00 should be -12344 / 60 minutes offset in LMT"); - t.equal(moment("1915-12-31T20:34:16+00:00").tz("Asia/Tehran").zone(), -12344 / 60, "1915-12-31T20:34:16+00:00 should be -12344 / 60 minutes offset in TMT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-12-31T20:34:15+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1945-12-31T20:34:15+00:00 should be 23:59:59 TMT"); - t.equal(moment("1945-12-31T20:34:16+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "00:04:16", "1945-12-31T20:34:16+00:00 should be 00:04:16 IRST"); - - t.equal(moment("1945-12-31T20:34:15+00:00").tz("Asia/Tehran").zone(), -12344 / 60, "1945-12-31T20:34:15+00:00 should be -12344 / 60 minutes offset in TMT"); - t.equal(moment("1945-12-31T20:34:16+00:00").tz("Asia/Tehran").zone(), -210, "1945-12-31T20:34:16+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-10-31T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1977-10-31T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1977-10-31T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "00:30:00", "1977-10-31T20:30:00+00:00 should be 00:30:00 IRST"); - - t.equal(moment("1977-10-31T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1977-10-31T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1977-10-31T20:30:00+00:00").tz("Asia/Tehran").zone(), -240, "1977-10-31T20:30:00+00:00 should be -240 minutes offset in IRST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-20T19:59:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1978-03-20T19:59:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1978-03-20T20:00:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1978-03-20T20:00:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1978-10-20T18:59:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1978-10-20T18:59:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1978-10-20T19:00:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1978-10-20T19:00:00+00:00 should be 23:00:00 IRST"); - t.equal(moment("1978-12-31T19:59:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1978-12-31T19:59:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1978-12-31T20:00:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:30:00", "1978-12-31T20:00:00+00:00 should be 23:30:00 IRST"); - - t.equal(moment("1978-03-20T19:59:59+00:00").tz("Asia/Tehran").zone(), -240, "1978-03-20T19:59:59+00:00 should be -240 minutes offset in IRST"); - t.equal(moment("1978-03-20T20:00:00+00:00").tz("Asia/Tehran").zone(), -300, "1978-03-20T20:00:00+00:00 should be -300 minutes offset in IRDT"); - t.equal(moment("1978-10-20T18:59:59+00:00").tz("Asia/Tehran").zone(), -300, "1978-10-20T18:59:59+00:00 should be -300 minutes offset in IRDT"); - t.equal(moment("1978-10-20T19:00:00+00:00").tz("Asia/Tehran").zone(), -240, "1978-10-20T19:00:00+00:00 should be -240 minutes offset in IRST"); - t.equal(moment("1978-12-31T19:59:59+00:00").tz("Asia/Tehran").zone(), -240, "1978-12-31T19:59:59+00:00 should be -240 minutes offset in IRST"); - t.equal(moment("1978-12-31T20:00:00+00:00").tz("Asia/Tehran").zone(), -210, "1978-12-31T20:00:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1979-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1979-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1979-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1979-09-18T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1979-09-18T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1979-09-18T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1979-09-18T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1979-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1979-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1979-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1979-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1979-09-18T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1979-09-18T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1979-09-18T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1979-09-18T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1980-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1980-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1980-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1980-09-22T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1980-09-22T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1980-09-22T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1980-09-22T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1980-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1980-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1980-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1980-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1980-09-22T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1980-09-22T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1980-09-22T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1980-09-22T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-05-02T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1991-05-02T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1991-05-02T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1991-05-02T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1991-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1991-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1991-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1991-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1991-05-02T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1991-05-02T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1991-05-02T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1991-05-02T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1991-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1991-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1991-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1991-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1992-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1992-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1992-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1992-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1992-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1992-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1992-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1992-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1992-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1992-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1992-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1992-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1992-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1992-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1992-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1993-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1993-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1993-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1993-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1993-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1993-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1993-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1993-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1993-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1993-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1993-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1993-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1993-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1993-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1993-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1994-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1994-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1994-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1994-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1994-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1994-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1994-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1994-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1994-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1994-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1994-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1994-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1994-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1994-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1994-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1995-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1995-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1995-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1995-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1995-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1995-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1995-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1995-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1995-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1995-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1995-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1995-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1995-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1995-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1995-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1996-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1996-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1996-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1996-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1996-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1996-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1996-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1996-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1996-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1996-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1996-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1996-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1996-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1996-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1996-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1997-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1997-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1997-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1997-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1997-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1997-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1997-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1997-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1997-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1997-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1997-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1997-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1997-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1997-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1997-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1998-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1998-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1998-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1998-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1998-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1998-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1998-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1998-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1998-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1998-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1998-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1998-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1998-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1998-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1998-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1999-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("1999-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "1999-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("1999-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "1999-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("1999-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "1999-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("1999-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "1999-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("1999-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "1999-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1999-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "1999-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("1999-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "1999-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2000-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2000-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2000-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2000-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2000-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2000-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2000-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2000-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2000-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2000-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2000-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2000-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2000-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2000-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2000-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2001-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2001-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2001-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2001-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2001-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2001-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2001-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2001-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2001-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2001-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2001-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2001-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2001-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2001-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2001-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2002-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2002-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2002-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2002-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2002-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2002-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2002-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2002-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2002-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2002-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2002-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2002-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2002-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2002-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2002-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2003-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2003-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2003-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2003-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2003-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2003-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2003-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2003-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2003-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2003-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2003-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2003-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2003-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2003-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2003-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2004-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2004-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2004-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2004-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2004-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2004-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2004-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2004-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2004-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2004-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2004-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2004-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2004-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2004-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2004-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2005-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2005-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2005-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2005-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2005-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2005-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2005-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2005-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2005-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2005-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2005-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2005-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2005-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2005-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2005-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2008-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2008-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2008-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2008-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2008-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2008-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2008-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2008-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2008-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2008-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2008-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2008-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2008-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2008-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2008-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2009-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2009-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2009-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2009-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2009-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2009-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2009-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2009-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2009-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2009-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2009-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2009-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2009-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2009-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2009-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2010-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2010-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2010-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2010-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2010-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2010-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2010-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2010-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2010-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2010-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2010-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2010-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2010-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2010-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2010-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2011-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2011-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2011-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2011-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2011-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2011-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2011-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2011-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2011-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2011-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2011-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2011-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2011-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2011-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2011-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2012-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2012-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2012-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2012-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2012-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2012-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2012-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2012-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2012-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2012-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2012-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2012-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2012-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2012-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2012-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2013-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2013-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2013-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2013-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2013-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2013-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2013-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2013-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2013-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2013-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2013-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2013-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2013-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2013-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2013-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2014-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2014-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2014-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2014-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2014-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2014-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2014-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2014-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2014-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2014-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2014-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2014-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2014-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2014-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2014-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2015-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2015-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2015-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2015-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2015-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2015-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2015-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2015-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2015-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2015-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2015-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2015-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2015-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2015-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2015-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2016-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2016-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2016-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2016-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2016-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2016-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2016-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2016-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2016-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2016-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2016-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2016-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2016-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2016-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2016-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2017-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2017-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2017-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2017-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2017-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2017-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2017-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2017-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2017-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2017-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2017-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2017-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2017-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2017-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2017-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2018-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2018-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2018-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2018-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2018-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2018-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2018-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2018-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2018-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2018-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2018-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2018-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2018-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2018-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2018-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2019-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2019-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2019-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2019-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2019-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2019-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2019-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2019-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2019-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2019-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2019-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2019-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2019-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2019-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2019-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2020-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2020-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2020-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2020-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2020-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2020-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2020-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2020-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2020-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2020-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2020-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2020-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2020-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2020-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2020-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2021-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2021-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2021-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2021-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2021-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2021-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2021-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2021-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2021-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2021-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2021-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2021-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2021-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2021-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2021-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2022-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2022-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2022-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2022-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2022-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2022-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2022-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2022-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2022-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2022-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2022-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2022-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2022-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2022-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2022-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2023-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2023-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2023-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2023-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2023-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2023-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2023-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2023-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2023-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2023-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2023-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2023-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2023-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2023-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2023-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2024-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2024-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2024-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2024-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2024-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2024-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2024-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2024-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2024-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2024-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2024-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2024-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2024-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2024-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2024-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2025-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2025-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2025-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2025-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2025-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2025-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2025-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2025-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2025-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2025-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2025-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2025-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2025-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2025-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2025-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2026-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2026-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2026-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2026-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2026-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2026-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2026-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2026-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2026-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2026-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2026-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2026-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2026-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2026-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2026-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2027-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2027-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2027-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2027-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2027-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2027-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2027-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2027-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2027-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2027-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2027-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2027-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2027-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2027-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2027-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2028-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2028-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2028-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2028-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2028-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2028-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2028-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2028-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2028-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2028-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2028-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2028-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2028-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2028-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2028-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2029-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2029-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2029-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2029-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2029-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2029-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2029-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2029-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2029-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2029-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2029-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2029-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2029-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2029-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2029-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2030-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2030-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2030-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2030-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2030-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2030-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2030-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2030-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2030-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2030-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2030-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2030-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2030-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2030-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2030-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2031-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2031-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2031-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2031-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2031-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2031-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2031-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2031-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2031-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2031-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2031-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2031-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2031-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2031-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2031-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2032-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2032-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2032-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2032-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2032-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2032-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2032-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2032-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2032-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2032-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2032-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2032-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2032-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2032-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2032-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2033-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2033-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2033-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2033-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2033-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2033-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2033-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2033-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2033-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2033-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2033-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2033-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2033-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2033-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2033-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2034-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2034-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2034-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2034-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2034-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2034-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2034-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2034-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2034-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2034-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2034-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2034-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2034-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2034-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2034-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-21T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2035-03-21T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2035-03-21T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2035-03-21T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2035-09-21T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2035-09-21T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2035-09-21T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2035-09-21T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2035-03-21T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2035-03-21T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2035-03-21T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2035-03-21T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2035-09-21T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2035-09-21T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2035-09-21T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2035-09-21T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2036-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2036-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2036-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2036-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2036-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2036-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2036-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2036-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2036-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2036-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2036-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2036-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2036-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2036-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2036-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-20T20:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2037-03-20T20:29:59+00:00 should be 23:59:59 IRST"); - t.equal(moment("2037-03-20T20:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "01:00:00", "2037-03-20T20:30:00+00:00 should be 01:00:00 IRDT"); - t.equal(moment("2037-09-20T19:29:59+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:59:59", "2037-09-20T19:29:59+00:00 should be 23:59:59 IRDT"); - t.equal(moment("2037-09-20T19:30:00+00:00").tz("Asia/Tehran").format("HH:mm:ss"), "23:00:00", "2037-09-20T19:30:00+00:00 should be 23:00:00 IRST"); - - t.equal(moment("2037-03-20T20:29:59+00:00").tz("Asia/Tehran").zone(), -210, "2037-03-20T20:29:59+00:00 should be -210 minutes offset in IRST"); - t.equal(moment("2037-03-20T20:30:00+00:00").tz("Asia/Tehran").zone(), -270, "2037-03-20T20:30:00+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2037-09-20T19:29:59+00:00").tz("Asia/Tehran").zone(), -270, "2037-09-20T19:29:59+00:00 should be -270 minutes offset in IRDT"); - t.equal(moment("2037-09-20T19:30:00+00:00").tz("Asia/Tehran").zone(), -210, "2037-09-20T19:30:00+00:00 should be -210 minutes offset in IRST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/thimphu.js b/tests/asia/thimphu.js deleted file mode 100644 index 555d4d7d..00000000 --- a/tests/asia/thimphu.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Thimphu"] = { - - "1947" : function (t) { - t.equal(moment("1947-08-14T18:01:23+00:00").tz("Asia/Thimphu").format("HH:mm:ss"), "23:59:59", "1947-08-14T18:01:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1947-08-14T18:01:24+00:00").tz("Asia/Thimphu").format("HH:mm:ss"), "23:31:24", "1947-08-14T18:01:24+00:00 should be 23:31:24 IST"); - - t.equal(moment("1947-08-14T18:01:23+00:00").tz("Asia/Thimphu").zone(), -21516 / 60, "1947-08-14T18:01:23+00:00 should be -21516 / 60 minutes offset in LMT"); - t.equal(moment("1947-08-14T18:01:24+00:00").tz("Asia/Thimphu").zone(), -330, "1947-08-14T18:01:24+00:00 should be -330 minutes offset in IST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-09-30T18:29:59+00:00").tz("Asia/Thimphu").format("HH:mm:ss"), "23:59:59", "1987-09-30T18:29:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1987-09-30T18:30:00+00:00").tz("Asia/Thimphu").format("HH:mm:ss"), "00:30:00", "1987-09-30T18:30:00+00:00 should be 00:30:00 BTT"); - - t.equal(moment("1987-09-30T18:29:59+00:00").tz("Asia/Thimphu").zone(), -330, "1987-09-30T18:29:59+00:00 should be -330 minutes offset in IST"); - t.equal(moment("1987-09-30T18:30:00+00:00").tz("Asia/Thimphu").zone(), -360, "1987-09-30T18:30:00+00:00 should be -360 minutes offset in BTT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/tokyo.js b/tests/asia/tokyo.js deleted file mode 100644 index 5220757e..00000000 --- a/tests/asia/tokyo.js +++ /dev/null @@ -1,70 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Tokyo"] = { - - "1937" : function (t) { - t.equal(moment("1937-12-31T14:59:59+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "23:59:59", "1937-12-31T14:59:59+00:00 should be 23:59:59 CJT"); - t.equal(moment("1937-12-31T15:00:00+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "00:00:00", "1937-12-31T15:00:00+00:00 should be 00:00:00 JST"); - - t.equal(moment("1937-12-31T14:59:59+00:00").tz("Asia/Tokyo").zone(), -540, "1937-12-31T14:59:59+00:00 should be -540 minutes offset in CJT"); - t.equal(moment("1937-12-31T15:00:00+00:00").tz("Asia/Tokyo").zone(), -540, "1937-12-31T15:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-05-01T16:59:59+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:59:59", "1948-05-01T16:59:59+00:00 should be 01:59:59 JST"); - t.equal(moment("1948-05-01T17:00:00+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "03:00:00", "1948-05-01T17:00:00+00:00 should be 03:00:00 JDT"); - t.equal(moment("1948-09-10T15:59:59+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:59:59", "1948-09-10T15:59:59+00:00 should be 01:59:59 JDT"); - t.equal(moment("1948-09-10T16:00:00+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:00:00", "1948-09-10T16:00:00+00:00 should be 01:00:00 JST"); - - t.equal(moment("1948-05-01T16:59:59+00:00").tz("Asia/Tokyo").zone(), -540, "1948-05-01T16:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1948-05-01T17:00:00+00:00").tz("Asia/Tokyo").zone(), -600, "1948-05-01T17:00:00+00:00 should be -600 minutes offset in JDT"); - t.equal(moment("1948-09-10T15:59:59+00:00").tz("Asia/Tokyo").zone(), -600, "1948-09-10T15:59:59+00:00 should be -600 minutes offset in JDT"); - t.equal(moment("1948-09-10T16:00:00+00:00").tz("Asia/Tokyo").zone(), -540, "1948-09-10T16:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-02T16:59:59+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:59:59", "1949-04-02T16:59:59+00:00 should be 01:59:59 JST"); - t.equal(moment("1949-04-02T17:00:00+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "03:00:00", "1949-04-02T17:00:00+00:00 should be 03:00:00 JDT"); - t.equal(moment("1949-09-09T15:59:59+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:59:59", "1949-09-09T15:59:59+00:00 should be 01:59:59 JDT"); - t.equal(moment("1949-09-09T16:00:00+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:00:00", "1949-09-09T16:00:00+00:00 should be 01:00:00 JST"); - - t.equal(moment("1949-04-02T16:59:59+00:00").tz("Asia/Tokyo").zone(), -540, "1949-04-02T16:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1949-04-02T17:00:00+00:00").tz("Asia/Tokyo").zone(), -600, "1949-04-02T17:00:00+00:00 should be -600 minutes offset in JDT"); - t.equal(moment("1949-09-09T15:59:59+00:00").tz("Asia/Tokyo").zone(), -600, "1949-09-09T15:59:59+00:00 should be -600 minutes offset in JDT"); - t.equal(moment("1949-09-09T16:00:00+00:00").tz("Asia/Tokyo").zone(), -540, "1949-09-09T16:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-05-06T16:59:59+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:59:59", "1950-05-06T16:59:59+00:00 should be 01:59:59 JST"); - t.equal(moment("1950-05-06T17:00:00+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "03:00:00", "1950-05-06T17:00:00+00:00 should be 03:00:00 JDT"); - t.equal(moment("1950-09-08T15:59:59+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:59:59", "1950-09-08T15:59:59+00:00 should be 01:59:59 JDT"); - t.equal(moment("1950-09-08T16:00:00+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:00:00", "1950-09-08T16:00:00+00:00 should be 01:00:00 JST"); - - t.equal(moment("1950-05-06T16:59:59+00:00").tz("Asia/Tokyo").zone(), -540, "1950-05-06T16:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1950-05-06T17:00:00+00:00").tz("Asia/Tokyo").zone(), -600, "1950-05-06T17:00:00+00:00 should be -600 minutes offset in JDT"); - t.equal(moment("1950-09-08T15:59:59+00:00").tz("Asia/Tokyo").zone(), -600, "1950-09-08T15:59:59+00:00 should be -600 minutes offset in JDT"); - t.equal(moment("1950-09-08T16:00:00+00:00").tz("Asia/Tokyo").zone(), -540, "1950-09-08T16:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-05-05T16:59:59+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:59:59", "1951-05-05T16:59:59+00:00 should be 01:59:59 JST"); - t.equal(moment("1951-05-05T17:00:00+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "03:00:00", "1951-05-05T17:00:00+00:00 should be 03:00:00 JDT"); - t.equal(moment("1951-09-07T15:59:59+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:59:59", "1951-09-07T15:59:59+00:00 should be 01:59:59 JDT"); - t.equal(moment("1951-09-07T16:00:00+00:00").tz("Asia/Tokyo").format("HH:mm:ss"), "01:00:00", "1951-09-07T16:00:00+00:00 should be 01:00:00 JST"); - - t.equal(moment("1951-05-05T16:59:59+00:00").tz("Asia/Tokyo").zone(), -540, "1951-05-05T16:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1951-05-05T17:00:00+00:00").tz("Asia/Tokyo").zone(), -600, "1951-05-05T17:00:00+00:00 should be -600 minutes offset in JDT"); - t.equal(moment("1951-09-07T15:59:59+00:00").tz("Asia/Tokyo").zone(), -600, "1951-09-07T15:59:59+00:00 should be -600 minutes offset in JDT"); - t.equal(moment("1951-09-07T16:00:00+00:00").tz("Asia/Tokyo").zone(), -540, "1951-09-07T16:00:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/ulaanbaatar.js b/tests/asia/ulaanbaatar.js deleted file mode 100644 index e8866457..00000000 --- a/tests/asia/ulaanbaatar.js +++ /dev/null @@ -1,332 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Ulaanbaatar"] = { - - "1905" : function (t) { - t.equal(moment("1905-07-31T16:52:27+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1905-07-31T16:52:27+00:00 should be 23:59:59 LMT"); - t.equal(moment("1905-07-31T16:52:28+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:52:28", "1905-07-31T16:52:28+00:00 should be 23:52:28 ULAT"); - - t.equal(moment("1905-07-31T16:52:27+00:00").tz("Asia/Ulaanbaatar").zone(), -25652 / 60, "1905-07-31T16:52:27+00:00 should be -25652 / 60 minutes offset in LMT"); - t.equal(moment("1905-07-31T16:52:28+00:00").tz("Asia/Ulaanbaatar").zone(), -420, "1905-07-31T16:52:28+00:00 should be -420 minutes offset in ULAT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-12-31T16:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1977-12-31T16:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1977-12-31T17:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1977-12-31T17:00:00+00:00 should be 01:00:00 ULAT"); - - t.equal(moment("1977-12-31T16:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -420, "1977-12-31T16:59:59+00:00 should be -420 minutes offset in ULAT"); - t.equal(moment("1977-12-31T17:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1977-12-31T17:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1983-03-31T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1983-03-31T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1983-03-31T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1983-09-30T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1983-09-30T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1983-09-30T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1983-09-30T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1983-03-31T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1983-03-31T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1983-03-31T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1983-03-31T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1983-09-30T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1983-09-30T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1983-09-30T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1983-09-30T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1984-03-31T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1984-03-31T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1984-03-31T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1984-09-29T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1984-09-29T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1984-09-29T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1984-09-29T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1984-03-31T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1984-03-31T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1984-03-31T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1984-03-31T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1984-09-29T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1984-09-29T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1984-09-29T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1984-09-29T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1985-03-30T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1985-03-30T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1985-03-30T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1985-09-28T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1985-09-28T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1985-09-28T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1985-09-28T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1985-03-30T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1985-03-30T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1985-03-30T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1985-03-30T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1985-09-28T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1985-09-28T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1985-09-28T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1985-09-28T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1986-03-29T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1986-03-29T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1986-03-29T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1986-09-27T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1986-09-27T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1986-09-27T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1986-09-27T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1986-03-29T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1986-03-29T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1986-03-29T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1986-03-29T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1986-09-27T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1986-09-27T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1986-09-27T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1986-09-27T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1987-03-28T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1987-03-28T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1987-03-28T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1987-09-26T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1987-09-26T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1987-09-26T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1987-09-26T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1987-03-28T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1987-03-28T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1987-03-28T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1987-03-28T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1987-09-26T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1987-09-26T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1987-09-26T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1987-09-26T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1988-03-26T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1988-03-26T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1988-03-26T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1988-09-24T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1988-09-24T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1988-09-24T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1988-09-24T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1988-03-26T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1988-03-26T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1988-03-26T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1988-03-26T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1988-09-24T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1988-09-24T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1988-09-24T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1988-09-24T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1989-03-25T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1989-03-25T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1989-03-25T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1989-09-23T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1989-09-23T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1989-09-23T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1989-09-23T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1989-03-25T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1989-03-25T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1989-03-25T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1989-03-25T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1989-09-23T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1989-09-23T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1989-09-23T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1989-09-23T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1990-03-24T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1990-03-24T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1990-03-24T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1990-09-29T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1990-09-29T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1990-09-29T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1990-09-29T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1990-03-24T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1990-03-24T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1990-03-24T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1990-03-24T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1990-09-29T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1990-09-29T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1990-09-29T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1990-09-29T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1991-03-30T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1991-03-30T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1991-09-28T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1991-09-28T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1991-09-28T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1991-09-28T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1991-03-30T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1991-03-30T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1991-09-28T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1991-09-28T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1991-09-28T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1991-09-28T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1992-03-28T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1992-03-28T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1992-09-26T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1992-09-26T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1992-09-26T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1992-09-26T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1992-03-28T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1992-03-28T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1992-09-26T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1992-09-26T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1992-09-26T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1992-09-26T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1993-03-27T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1993-03-27T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1993-09-25T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1993-09-25T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1993-09-25T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1993-09-25T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1993-03-27T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1993-03-27T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1993-09-25T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1993-09-25T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1993-09-25T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1993-09-25T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1994-03-26T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1994-03-26T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1994-09-24T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1994-09-24T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1994-09-24T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1994-09-24T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1994-03-26T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1994-03-26T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1994-09-24T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1994-09-24T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1994-09-24T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1994-09-24T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1995-03-25T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1995-03-25T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1995-09-23T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1995-09-23T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1995-09-23T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1995-09-23T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1995-03-25T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1995-03-25T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1995-09-23T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1995-09-23T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1995-09-23T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1995-09-23T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1996-03-30T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1996-03-30T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1996-09-28T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1996-09-28T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1996-09-28T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1996-09-28T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1996-03-30T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1996-03-30T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1996-09-28T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1996-09-28T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1996-09-28T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1996-09-28T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1997-03-29T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1997-03-29T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1997-09-27T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1997-09-27T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1997-09-27T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1997-09-27T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1997-03-29T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1997-03-29T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1997-09-27T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1997-09-27T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1997-09-27T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1997-09-27T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1998-03-28T15:59:59+00:00 should be 23:59:59 ULAT"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "1998-03-28T16:00:00+00:00 should be 01:00:00 ULAST"); - t.equal(moment("1998-09-26T14:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:59:59", "1998-09-26T14:59:59+00:00 should be 23:59:59 ULAST"); - t.equal(moment("1998-09-26T15:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "23:00:00", "1998-09-26T15:00:00+00:00 should be 23:00:00 ULAT"); - - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1998-03-28T15:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1998-03-28T16:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1998-09-26T14:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "1998-09-26T14:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("1998-09-26T15:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "1998-09-26T15:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-27T17:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2001-04-27T17:59:59+00:00 should be 01:59:59 ULAT"); - t.equal(moment("2001-04-27T18:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "03:00:00", "2001-04-27T18:00:00+00:00 should be 03:00:00 ULAST"); - t.equal(moment("2001-09-28T16:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2001-09-28T16:59:59+00:00 should be 01:59:59 ULAST"); - t.equal(moment("2001-09-28T17:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "2001-09-28T17:00:00+00:00 should be 01:00:00 ULAT"); - - t.equal(moment("2001-04-27T17:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2001-04-27T17:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("2001-04-27T18:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2001-04-27T18:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2001-09-28T16:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2001-09-28T16:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2001-09-28T17:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2001-09-28T17:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-29T17:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2002-03-29T17:59:59+00:00 should be 01:59:59 ULAT"); - t.equal(moment("2002-03-29T18:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "03:00:00", "2002-03-29T18:00:00+00:00 should be 03:00:00 ULAST"); - t.equal(moment("2002-09-27T16:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2002-09-27T16:59:59+00:00 should be 01:59:59 ULAST"); - t.equal(moment("2002-09-27T17:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "2002-09-27T17:00:00+00:00 should be 01:00:00 ULAT"); - - t.equal(moment("2002-03-29T17:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2002-03-29T17:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("2002-03-29T18:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2002-03-29T18:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2002-09-27T16:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2002-09-27T16:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2002-09-27T17:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2002-09-27T17:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-28T17:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2003-03-28T17:59:59+00:00 should be 01:59:59 ULAT"); - t.equal(moment("2003-03-28T18:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "03:00:00", "2003-03-28T18:00:00+00:00 should be 03:00:00 ULAST"); - t.equal(moment("2003-09-26T16:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2003-09-26T16:59:59+00:00 should be 01:59:59 ULAST"); - t.equal(moment("2003-09-26T17:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "2003-09-26T17:00:00+00:00 should be 01:00:00 ULAT"); - - t.equal(moment("2003-03-28T17:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2003-03-28T17:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("2003-03-28T18:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2003-03-28T18:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2003-09-26T16:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2003-09-26T16:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2003-09-26T17:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2003-09-26T17:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-26T17:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2004-03-26T17:59:59+00:00 should be 01:59:59 ULAT"); - t.equal(moment("2004-03-26T18:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "03:00:00", "2004-03-26T18:00:00+00:00 should be 03:00:00 ULAST"); - t.equal(moment("2004-09-24T16:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2004-09-24T16:59:59+00:00 should be 01:59:59 ULAST"); - t.equal(moment("2004-09-24T17:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "2004-09-24T17:00:00+00:00 should be 01:00:00 ULAT"); - - t.equal(moment("2004-03-26T17:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2004-03-26T17:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("2004-03-26T18:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2004-03-26T18:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2004-09-24T16:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2004-09-24T16:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2004-09-24T17:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2004-09-24T17:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-25T17:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2005-03-25T17:59:59+00:00 should be 01:59:59 ULAT"); - t.equal(moment("2005-03-25T18:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "03:00:00", "2005-03-25T18:00:00+00:00 should be 03:00:00 ULAST"); - t.equal(moment("2005-09-23T16:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2005-09-23T16:59:59+00:00 should be 01:59:59 ULAST"); - t.equal(moment("2005-09-23T17:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "2005-09-23T17:00:00+00:00 should be 01:00:00 ULAT"); - - t.equal(moment("2005-03-25T17:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2005-03-25T17:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("2005-03-25T18:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2005-03-25T18:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2005-09-23T16:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2005-09-23T16:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2005-09-23T17:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2005-09-23T17:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-24T17:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2006-03-24T17:59:59+00:00 should be 01:59:59 ULAT"); - t.equal(moment("2006-03-24T18:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "03:00:00", "2006-03-24T18:00:00+00:00 should be 03:00:00 ULAST"); - t.equal(moment("2006-09-29T16:59:59+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:59:59", "2006-09-29T16:59:59+00:00 should be 01:59:59 ULAST"); - t.equal(moment("2006-09-29T17:00:00+00:00").tz("Asia/Ulaanbaatar").format("HH:mm:ss"), "01:00:00", "2006-09-29T17:00:00+00:00 should be 01:00:00 ULAT"); - - t.equal(moment("2006-03-24T17:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2006-03-24T17:59:59+00:00 should be -480 minutes offset in ULAT"); - t.equal(moment("2006-03-24T18:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2006-03-24T18:00:00+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2006-09-29T16:59:59+00:00").tz("Asia/Ulaanbaatar").zone(), -540, "2006-09-29T16:59:59+00:00 should be -540 minutes offset in ULAST"); - t.equal(moment("2006-09-29T17:00:00+00:00").tz("Asia/Ulaanbaatar").zone(), -480, "2006-09-29T17:00:00+00:00 should be -480 minutes offset in ULAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/urumqi.js b/tests/asia/urumqi.js deleted file mode 100644 index e1330f0b..00000000 --- a/tests/asia/urumqi.js +++ /dev/null @@ -1,108 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Urumqi"] = { - - "1927" : function (t) { - t.equal(moment("1927-12-31T18:09:39+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1927-12-31T18:09:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1927-12-31T18:09:40+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "00:09:40", "1927-12-31T18:09:40+00:00 should be 00:09:40 URUT"); - - t.equal(moment("1927-12-31T18:09:39+00:00").tz("Asia/Urumqi").zone(), -21020 / 60, "1927-12-31T18:09:39+00:00 should be -21020 / 60 minutes offset in LMT"); - t.equal(moment("1927-12-31T18:09:40+00:00").tz("Asia/Urumqi").zone(), -360, "1927-12-31T18:09:40+00:00 should be -360 minutes offset in URUT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-30T17:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1980-04-30T17:59:59+00:00 should be 23:59:59 URUT"); - t.equal(moment("1980-04-30T18:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "02:00:00", "1980-04-30T18:00:00+00:00 should be 02:00:00 CST"); - - t.equal(moment("1980-04-30T17:59:59+00:00").tz("Asia/Urumqi").zone(), -360, "1980-04-30T17:59:59+00:00 should be -360 minutes offset in URUT"); - t.equal(moment("1980-04-30T18:00:00+00:00").tz("Asia/Urumqi").zone(), -480, "1980-04-30T18:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1986-05-03T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "01:00:00", "1986-05-03T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1986-09-13T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:00:00", "1986-09-13T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1986-05-03T15:59:59+00:00").tz("Asia/Urumqi").zone(), -480, "1986-05-03T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1986-05-03T16:00:00+00:00").tz("Asia/Urumqi").zone(), -540, "1986-05-03T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T14:59:59+00:00").tz("Asia/Urumqi").zone(), -540, "1986-09-13T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1986-09-13T15:00:00+00:00").tz("Asia/Urumqi").zone(), -480, "1986-09-13T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1987-04-11T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "01:00:00", "1987-04-11T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1987-09-12T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:00:00", "1987-09-12T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1987-04-11T15:59:59+00:00").tz("Asia/Urumqi").zone(), -480, "1987-04-11T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1987-04-11T16:00:00+00:00").tz("Asia/Urumqi").zone(), -540, "1987-04-11T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T14:59:59+00:00").tz("Asia/Urumqi").zone(), -540, "1987-09-12T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1987-09-12T15:00:00+00:00").tz("Asia/Urumqi").zone(), -480, "1987-09-12T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1988-04-09T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "01:00:00", "1988-04-09T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1988-09-10T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:00:00", "1988-09-10T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1988-04-09T15:59:59+00:00").tz("Asia/Urumqi").zone(), -480, "1988-04-09T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1988-04-09T16:00:00+00:00").tz("Asia/Urumqi").zone(), -540, "1988-04-09T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T14:59:59+00:00").tz("Asia/Urumqi").zone(), -540, "1988-09-10T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1988-09-10T15:00:00+00:00").tz("Asia/Urumqi").zone(), -480, "1988-09-10T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1989-04-15T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "01:00:00", "1989-04-15T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1989-09-16T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:00:00", "1989-09-16T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1989-04-15T15:59:59+00:00").tz("Asia/Urumqi").zone(), -480, "1989-04-15T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1989-04-15T16:00:00+00:00").tz("Asia/Urumqi").zone(), -540, "1989-04-15T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T14:59:59+00:00").tz("Asia/Urumqi").zone(), -540, "1989-09-16T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1989-09-16T15:00:00+00:00").tz("Asia/Urumqi").zone(), -480, "1989-09-16T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1990-04-14T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "01:00:00", "1990-04-14T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1990-09-15T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:00:00", "1990-09-15T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1990-04-14T15:59:59+00:00").tz("Asia/Urumqi").zone(), -480, "1990-04-14T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1990-04-14T16:00:00+00:00").tz("Asia/Urumqi").zone(), -540, "1990-04-14T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T14:59:59+00:00").tz("Asia/Urumqi").zone(), -540, "1990-09-15T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1990-09-15T15:00:00+00:00").tz("Asia/Urumqi").zone(), -480, "1990-09-15T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1991-04-13T15:59:59+00:00 should be 23:59:59 CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "01:00:00", "1991-04-13T16:00:00+00:00 should be 01:00:00 CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:59:59", "1991-09-14T14:59:59+00:00 should be 23:59:59 CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Urumqi").format("HH:mm:ss"), "23:00:00", "1991-09-14T15:00:00+00:00 should be 23:00:00 CST"); - - t.equal(moment("1991-04-13T15:59:59+00:00").tz("Asia/Urumqi").zone(), -480, "1991-04-13T15:59:59+00:00 should be -480 minutes offset in CST"); - t.equal(moment("1991-04-13T16:00:00+00:00").tz("Asia/Urumqi").zone(), -540, "1991-04-13T16:00:00+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T14:59:59+00:00").tz("Asia/Urumqi").zone(), -540, "1991-09-14T14:59:59+00:00 should be -540 minutes offset in CDT"); - t.equal(moment("1991-09-14T15:00:00+00:00").tz("Asia/Urumqi").zone(), -480, "1991-09-14T15:00:00+00:00 should be -480 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/ust-nera.js b/tests/asia/ust-nera.js deleted file mode 100644 index b652d404..00000000 --- a/tests/asia/ust-nera.js +++ /dev/null @@ -1,462 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Ust-Nera"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-14T14:27:05+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "1919-12-14T14:27:05+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-14T14:27:06+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "22:27:06", "1919-12-14T14:27:06+00:00 should be 22:27:06 YAKT"); - - t.equal(moment("1919-12-14T14:27:05+00:00").tz("Asia/Ust-Nera").zone(), -34374 / 60, "1919-12-14T14:27:05+00:00 should be -34374 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-14T14:27:06+00:00").tz("Asia/Ust-Nera").zone(), -480, "1919-12-14T14:27:06+00:00 should be -480 minutes offset in YAKT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T15:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "1930-06-20T15:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1930-06-20T16:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:00:00", "1930-06-20T16:00:00+00:00 should be 01:00:00 YAKT"); - - t.equal(moment("1930-06-20T15:59:59+00:00").tz("Asia/Ust-Nera").zone(), -480, "1930-06-20T15:59:59+00:00 should be -480 minutes offset in YAKT"); - t.equal(moment("1930-06-20T16:00:00+00:00").tz("Asia/Ust-Nera").zone(), -540, "1930-06-20T16:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "1981-03-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1981-03-31T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1981-03-31T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1981-09-30T11:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "1981-09-30T11:59:59+00:00 should be 23:59:59 MAGST"); - t.equal(moment("1981-09-30T12:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:00:00", "1981-09-30T12:00:00+00:00 should be 23:00:00 MAGT"); - - t.equal(moment("1981-03-31T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -540, "1981-03-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1981-03-31T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1981-03-31T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1981-09-30T11:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1981-09-30T11:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1981-09-30T12:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1981-09-30T12:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T12:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "1982-03-31T12:59:59+00:00 should be 23:59:59 MAGT"); - t.equal(moment("1982-03-31T13:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:00:00", "1982-03-31T13:00:00+00:00 should be 01:00:00 MAGST"); - t.equal(moment("1982-09-30T11:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "1982-09-30T11:59:59+00:00 should be 23:59:59 MAGST"); - t.equal(moment("1982-09-30T12:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:00:00", "1982-09-30T12:00:00+00:00 should be 23:00:00 MAGT"); - - t.equal(moment("1982-03-31T12:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1982-03-31T12:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1982-03-31T13:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1982-03-31T13:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1982-09-30T11:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1982-09-30T11:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1982-09-30T12:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1982-09-30T12:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T12:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "1983-03-31T12:59:59+00:00 should be 23:59:59 MAGT"); - t.equal(moment("1983-03-31T13:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:00:00", "1983-03-31T13:00:00+00:00 should be 01:00:00 MAGST"); - t.equal(moment("1983-09-30T11:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "1983-09-30T11:59:59+00:00 should be 23:59:59 MAGST"); - t.equal(moment("1983-09-30T12:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:00:00", "1983-09-30T12:00:00+00:00 should be 23:00:00 MAGT"); - - t.equal(moment("1983-03-31T12:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1983-03-31T12:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1983-03-31T13:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1983-03-31T13:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1983-09-30T11:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1983-09-30T11:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1983-09-30T12:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1983-09-30T12:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T12:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "1984-03-31T12:59:59+00:00 should be 23:59:59 MAGT"); - t.equal(moment("1984-03-31T13:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:00:00", "1984-03-31T13:00:00+00:00 should be 01:00:00 MAGST"); - t.equal(moment("1984-09-29T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1984-09-29T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1984-09-29T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1984-09-29T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1984-03-31T12:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1984-03-31T12:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1984-03-31T13:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1984-03-31T13:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1984-09-29T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1984-09-29T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1984-09-29T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1984-09-29T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1985-03-30T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1985-03-30T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1985-03-30T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1985-09-28T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1985-09-28T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1985-09-28T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1985-09-28T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1985-03-30T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1985-03-30T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1985-03-30T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1985-03-30T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1985-09-28T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1985-09-28T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1985-09-28T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1985-09-28T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1986-03-29T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1986-03-29T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1986-03-29T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1986-09-27T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1986-09-27T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1986-09-27T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1986-09-27T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1986-03-29T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1986-03-29T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1986-03-29T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1986-03-29T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1986-09-27T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1986-09-27T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1986-09-27T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1986-09-27T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1987-03-28T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1987-03-28T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1987-03-28T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1987-09-26T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1987-09-26T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1987-09-26T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1987-09-26T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1987-03-28T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1987-03-28T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1987-03-28T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1987-03-28T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1987-09-26T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1987-09-26T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1987-09-26T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1987-09-26T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1988-03-26T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1988-03-26T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1988-03-26T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1988-09-24T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1988-09-24T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1988-09-24T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1988-09-24T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1988-03-26T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1988-03-26T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1988-03-26T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1988-03-26T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1988-09-24T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1988-09-24T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1988-09-24T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1988-09-24T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1989-03-25T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1989-03-25T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1989-03-25T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1989-09-23T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1989-09-23T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1989-09-23T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1989-09-23T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1989-03-25T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1989-03-25T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1989-03-25T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1989-03-25T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1989-09-23T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1989-09-23T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1989-09-23T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1989-09-23T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1990-03-24T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1990-03-24T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1990-03-24T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1990-09-29T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1990-09-29T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1990-09-29T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1990-09-29T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1990-03-24T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1990-03-24T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1990-03-24T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1990-03-24T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1990-09-29T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1990-09-29T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1990-09-29T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1990-09-29T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1991-03-30T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1991-03-30T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1991-03-30T15:00:00+00:00 should be 02:00:00 MAGST"); - t.equal(moment("1991-09-28T15:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1991-09-28T15:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1991-09-28T16:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1991-09-28T16:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1991-03-30T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1991-03-30T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1991-03-30T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1991-03-30T15:00:00+00:00 should be -660 minutes offset in MAGST"); - t.equal(moment("1991-09-28T15:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1991-09-28T15:59:59+00:00 should be -660 minutes offset in MAGST"); - t.equal(moment("1991-09-28T16:00:00+00:00").tz("Asia/Ust-Nera").zone(), -600, "1991-09-28T16:00:00+00:00 should be -600 minutes offset in MAGT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T15:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1992-01-18T15:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1992-01-18T16:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1992-01-18T16:00:00+00:00 should be 03:00:00 MAGT"); - t.equal(moment("1992-03-28T11:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "22:59:59", "1992-03-28T11:59:59+00:00 should be 22:59:59 MAGT"); - t.equal(moment("1992-03-28T12:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "00:00:00", "1992-03-28T12:00:00+00:00 should be 00:00:00 MAGST"); - t.equal(moment("1992-09-26T10:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "22:59:59", "1992-09-26T10:59:59+00:00 should be 22:59:59 MAGST"); - t.equal(moment("1992-09-26T11:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "22:00:00", "1992-09-26T11:00:00+00:00 should be 22:00:00 MAGT"); - - t.equal(moment("1992-01-18T15:59:59+00:00").tz("Asia/Ust-Nera").zone(), -600, "1992-01-18T15:59:59+00:00 should be -600 minutes offset in MAGT"); - t.equal(moment("1992-01-18T16:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1992-01-18T16:00:00+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1992-03-28T11:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1992-03-28T11:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1992-03-28T12:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1992-03-28T12:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1992-09-26T10:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1992-09-26T10:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1992-09-26T11:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1992-09-26T11:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1993-03-27T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1993-03-27T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1993-03-27T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1993-09-25T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1993-09-25T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1993-09-25T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1993-09-25T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1993-03-27T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1993-03-27T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1993-03-27T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1993-03-27T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1993-09-25T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1993-09-25T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1993-09-25T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1993-09-25T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1994-03-26T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1994-03-26T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1994-03-26T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1994-09-24T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1994-09-24T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1994-09-24T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1994-09-24T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1994-03-26T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1994-03-26T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1994-03-26T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1994-03-26T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1994-09-24T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1994-09-24T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1994-09-24T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1994-09-24T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1995-03-25T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1995-03-25T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1995-03-25T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1995-09-23T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1995-09-23T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1995-09-23T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1995-09-23T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1995-03-25T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1995-03-25T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1995-03-25T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1995-03-25T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1995-09-23T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1995-09-23T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1995-09-23T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1995-09-23T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1996-03-30T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1996-03-30T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1996-10-26T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1996-10-26T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1996-10-26T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1996-10-26T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1996-03-30T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1996-03-30T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1996-10-26T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1996-10-26T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1996-10-26T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1996-10-26T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1997-03-29T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1997-03-29T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1997-10-25T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1997-10-25T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1997-10-25T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1997-10-25T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1997-03-29T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1997-03-29T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1997-10-25T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1997-10-25T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1997-10-25T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1997-10-25T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1998-03-28T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1998-03-28T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1998-03-28T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1998-10-24T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1998-10-24T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1998-10-24T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1998-10-24T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1998-03-28T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1998-03-28T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1998-03-28T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1998-03-28T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1998-10-24T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1998-10-24T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1998-10-24T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1998-10-24T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "1999-03-27T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("1999-03-27T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "1999-03-27T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("1999-10-30T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "1999-10-30T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("1999-10-30T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "1999-10-30T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("1999-03-27T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "1999-03-27T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("1999-03-27T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "1999-03-27T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1999-10-30T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "1999-10-30T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("1999-10-30T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "1999-10-30T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2000-03-25T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2000-03-25T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2000-03-25T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2000-10-28T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2000-10-28T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2000-10-28T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2000-10-28T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2000-03-25T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2000-03-25T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2000-03-25T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2000-03-25T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2000-10-28T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2000-10-28T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2000-10-28T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2000-10-28T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2001-03-24T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2001-03-24T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2001-03-24T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2001-10-27T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2001-10-27T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2001-10-27T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2001-10-27T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2001-03-24T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2001-03-24T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2001-03-24T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2001-03-24T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2001-10-27T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2001-10-27T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2001-10-27T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2001-10-27T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2002-03-30T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2002-03-30T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2002-03-30T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2002-10-26T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2002-10-26T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2002-10-26T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2002-10-26T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2002-03-30T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2002-03-30T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2002-03-30T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2002-03-30T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2002-10-26T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2002-10-26T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2002-10-26T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2002-10-26T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2003-03-29T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2003-03-29T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2003-03-29T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2003-10-25T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2003-10-25T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2003-10-25T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2003-10-25T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2003-03-29T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2003-03-29T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2003-03-29T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2003-03-29T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2003-10-25T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2003-10-25T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2003-10-25T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2003-10-25T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2004-03-27T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2004-03-27T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2004-03-27T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2004-10-30T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2004-10-30T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2004-10-30T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2004-10-30T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2004-03-27T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2004-03-27T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2004-03-27T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2004-03-27T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2004-10-30T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2004-10-30T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2004-10-30T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2004-10-30T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2005-03-26T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2005-03-26T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2005-03-26T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2005-10-29T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2005-10-29T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2005-10-29T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2005-10-29T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2005-03-26T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2005-03-26T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2005-03-26T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2005-03-26T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2005-10-29T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2005-10-29T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2005-10-29T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2005-10-29T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2006-03-25T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2006-03-25T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2006-03-25T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2006-10-28T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2006-10-28T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2006-10-28T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2006-10-28T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2006-03-25T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2006-03-25T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2006-03-25T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2006-03-25T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2006-10-28T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2006-10-28T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2006-10-28T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2006-10-28T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2007-03-24T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2007-03-24T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2007-03-24T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2007-10-27T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2007-10-27T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2007-10-27T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2007-10-27T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2007-03-24T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2007-03-24T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2007-03-24T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2007-03-24T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2007-10-27T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2007-10-27T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2007-10-27T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2007-10-27T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2008-03-29T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2008-03-29T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2008-03-29T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2008-10-25T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2008-10-25T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2008-10-25T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2008-10-25T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2008-03-29T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2008-03-29T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2008-03-29T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2008-03-29T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2008-10-25T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2008-10-25T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2008-10-25T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2008-10-25T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2009-03-28T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2009-03-28T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2009-03-28T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2009-10-24T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2009-10-24T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2009-10-24T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2009-10-24T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2009-03-28T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2009-03-28T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2009-03-28T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2009-03-28T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2009-10-24T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2009-10-24T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2009-10-24T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2009-10-24T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2010-03-27T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2010-03-27T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2010-03-27T15:00:00+00:00 should be 03:00:00 MAGST"); - t.equal(moment("2010-10-30T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:59:59", "2010-10-30T14:59:59+00:00 should be 02:59:59 MAGST"); - t.equal(moment("2010-10-30T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "02:00:00", "2010-10-30T15:00:00+00:00 should be 02:00:00 MAGT"); - - t.equal(moment("2010-03-27T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2010-03-27T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2010-03-27T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2010-03-27T15:00:00+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2010-10-30T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2010-10-30T14:59:59+00:00 should be -720 minutes offset in MAGST"); - t.equal(moment("2010-10-30T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2010-10-30T15:00:00+00:00 should be -660 minutes offset in MAGT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T14:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "01:59:59", "2011-03-26T14:59:59+00:00 should be 01:59:59 MAGT"); - t.equal(moment("2011-03-26T15:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "03:00:00", "2011-03-26T15:00:00+00:00 should be 03:00:00 MAGT"); - t.equal(moment("2011-09-12T11:59:59+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:59:59", "2011-09-12T11:59:59+00:00 should be 23:59:59 MAGT"); - t.equal(moment("2011-09-12T12:00:00+00:00").tz("Asia/Ust-Nera").format("HH:mm:ss"), "23:00:00", "2011-09-12T12:00:00+00:00 should be 23:00:00 VLAT"); - - t.equal(moment("2011-03-26T14:59:59+00:00").tz("Asia/Ust-Nera").zone(), -660, "2011-03-26T14:59:59+00:00 should be -660 minutes offset in MAGT"); - t.equal(moment("2011-03-26T15:00:00+00:00").tz("Asia/Ust-Nera").zone(), -720, "2011-03-26T15:00:00+00:00 should be -720 minutes offset in MAGT"); - t.equal(moment("2011-09-12T11:59:59+00:00").tz("Asia/Ust-Nera").zone(), -720, "2011-09-12T11:59:59+00:00 should be -720 minutes offset in MAGT"); - t.equal(moment("2011-09-12T12:00:00+00:00").tz("Asia/Ust-Nera").zone(), -660, "2011-09-12T12:00:00+00:00 should be -660 minutes offset in VLAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/vientiane.js b/tests/asia/vientiane.js deleted file mode 100644 index 580f256b..00000000 --- a/tests/asia/vientiane.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Vientiane"] = { - - "1906" : function (t) { - t.equal(moment("1906-06-08T17:09:35+00:00").tz("Asia/Vientiane").format("HH:mm:ss"), "23:59:59", "1906-06-08T17:09:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1906-06-08T17:09:36+00:00").tz("Asia/Vientiane").format("HH:mm:ss"), "00:15:56", "1906-06-08T17:09:36+00:00 should be 00:15:56 SMT"); - - t.equal(moment("1906-06-08T17:09:35+00:00").tz("Asia/Vientiane").zone(), -24624 / 60, "1906-06-08T17:09:35+00:00 should be -24624 / 60 minutes offset in LMT"); - t.equal(moment("1906-06-08T17:09:36+00:00").tz("Asia/Vientiane").zone(), -25580 / 60, "1906-06-08T17:09:36+00:00 should be -25580 / 60 minutes offset in SMT"); - - t.done(); - }, - - "1911" : function (t) { - t.equal(moment("1911-03-10T16:54:39+00:00").tz("Asia/Vientiane").format("HH:mm:ss"), "00:00:59", "1911-03-10T16:54:39+00:00 should be 00:00:59 SMT"); - t.equal(moment("1911-03-10T16:54:40+00:00").tz("Asia/Vientiane").format("HH:mm:ss"), "23:54:40", "1911-03-10T16:54:40+00:00 should be 23:54:40 ICT"); - - t.equal(moment("1911-03-10T16:54:39+00:00").tz("Asia/Vientiane").zone(), -25580 / 60, "1911-03-10T16:54:39+00:00 should be -25580 / 60 minutes offset in SMT"); - t.equal(moment("1911-03-10T16:54:40+00:00").tz("Asia/Vientiane").zone(), -420, "1911-03-10T16:54:40+00:00 should be -420 minutes offset in ICT"); - - t.done(); - }, - - "1912" : function (t) { - t.equal(moment("1912-04-30T16:59:59+00:00").tz("Asia/Vientiane").format("HH:mm:ss"), "23:59:59", "1912-04-30T16:59:59+00:00 should be 23:59:59 ICT"); - t.equal(moment("1912-04-30T17:00:00+00:00").tz("Asia/Vientiane").format("HH:mm:ss"), "01:00:00", "1912-04-30T17:00:00+00:00 should be 01:00:00 ICT"); - - t.equal(moment("1912-04-30T16:59:59+00:00").tz("Asia/Vientiane").zone(), -420, "1912-04-30T16:59:59+00:00 should be -420 minutes offset in ICT"); - t.equal(moment("1912-04-30T17:00:00+00:00").tz("Asia/Vientiane").zone(), -480, "1912-04-30T17:00:00+00:00 should be -480 minutes offset in ICT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-30T15:59:59+00:00").tz("Asia/Vientiane").format("HH:mm:ss"), "23:59:59", "1931-04-30T15:59:59+00:00 should be 23:59:59 ICT"); - t.equal(moment("1931-04-30T16:00:00+00:00").tz("Asia/Vientiane").format("HH:mm:ss"), "23:00:00", "1931-04-30T16:00:00+00:00 should be 23:00:00 ICT"); - - t.equal(moment("1931-04-30T15:59:59+00:00").tz("Asia/Vientiane").zone(), -480, "1931-04-30T15:59:59+00:00 should be -480 minutes offset in ICT"); - t.equal(moment("1931-04-30T16:00:00+00:00").tz("Asia/Vientiane").zone(), -420, "1931-04-30T16:00:00+00:00 should be -420 minutes offset in ICT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/vladivostok.js b/tests/asia/vladivostok.js deleted file mode 100644 index 97cd228a..00000000 --- a/tests/asia/vladivostok.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Vladivostok"] = { - - "1922" : function (t) { - t.equal(moment("1922-11-14T15:12:15+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:59:59", "1922-11-14T15:12:15+00:00 should be 23:59:59 LMT"); - t.equal(moment("1922-11-14T15:12:16+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "00:12:16", "1922-11-14T15:12:16+00:00 should be 00:12:16 VLAT"); - - t.equal(moment("1922-11-14T15:12:15+00:00").tz("Asia/Vladivostok").zone(), -31664 / 60, "1922-11-14T15:12:15+00:00 should be -31664 / 60 minutes offset in LMT"); - t.equal(moment("1922-11-14T15:12:16+00:00").tz("Asia/Vladivostok").zone(), -540, "1922-11-14T15:12:16+00:00 should be -540 minutes offset in VLAT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T14:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:59:59", "1930-06-20T14:59:59+00:00 should be 23:59:59 VLAT"); - t.equal(moment("1930-06-20T15:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:00:00", "1930-06-20T15:00:00+00:00 should be 01:00:00 VLAT"); - - t.equal(moment("1930-06-20T14:59:59+00:00").tz("Asia/Vladivostok").zone(), -540, "1930-06-20T14:59:59+00:00 should be -540 minutes offset in VLAT"); - t.equal(moment("1930-06-20T15:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1930-06-20T15:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T13:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:59:59", "1981-03-31T13:59:59+00:00 should be 23:59:59 VLAT"); - t.equal(moment("1981-03-31T14:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:00:00", "1981-03-31T14:00:00+00:00 should be 01:00:00 VLAST"); - t.equal(moment("1981-09-30T12:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:59:59", "1981-09-30T12:59:59+00:00 should be 23:59:59 VLAST"); - t.equal(moment("1981-09-30T13:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:00:00", "1981-09-30T13:00:00+00:00 should be 23:00:00 VLAT"); - - t.equal(moment("1981-03-31T13:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1981-03-31T13:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1981-03-31T14:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1981-03-31T14:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1981-09-30T12:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1981-09-30T12:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1981-09-30T13:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1981-09-30T13:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T13:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:59:59", "1982-03-31T13:59:59+00:00 should be 23:59:59 VLAT"); - t.equal(moment("1982-03-31T14:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:00:00", "1982-03-31T14:00:00+00:00 should be 01:00:00 VLAST"); - t.equal(moment("1982-09-30T12:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:59:59", "1982-09-30T12:59:59+00:00 should be 23:59:59 VLAST"); - t.equal(moment("1982-09-30T13:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:00:00", "1982-09-30T13:00:00+00:00 should be 23:00:00 VLAT"); - - t.equal(moment("1982-03-31T13:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1982-03-31T13:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1982-03-31T14:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1982-03-31T14:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1982-09-30T12:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1982-09-30T12:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1982-09-30T13:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1982-09-30T13:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T13:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:59:59", "1983-03-31T13:59:59+00:00 should be 23:59:59 VLAT"); - t.equal(moment("1983-03-31T14:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:00:00", "1983-03-31T14:00:00+00:00 should be 01:00:00 VLAST"); - t.equal(moment("1983-09-30T12:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:59:59", "1983-09-30T12:59:59+00:00 should be 23:59:59 VLAST"); - t.equal(moment("1983-09-30T13:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:00:00", "1983-09-30T13:00:00+00:00 should be 23:00:00 VLAT"); - - t.equal(moment("1983-03-31T13:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1983-03-31T13:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1983-03-31T14:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1983-03-31T14:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1983-09-30T12:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1983-09-30T12:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1983-09-30T13:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1983-09-30T13:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T13:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "23:59:59", "1984-03-31T13:59:59+00:00 should be 23:59:59 VLAT"); - t.equal(moment("1984-03-31T14:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:00:00", "1984-03-31T14:00:00+00:00 should be 01:00:00 VLAST"); - t.equal(moment("1984-09-29T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1984-09-29T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1984-09-29T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1984-09-29T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1984-03-31T13:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1984-03-31T13:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1984-03-31T14:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1984-03-31T14:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1984-09-29T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1984-09-29T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1984-09-29T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1984-09-29T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1985-03-30T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1985-03-30T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1985-03-30T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1985-09-28T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1985-09-28T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1985-09-28T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1985-09-28T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1985-03-30T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1985-03-30T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1985-03-30T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1985-03-30T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1985-09-28T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1985-09-28T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1985-09-28T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1985-09-28T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1986-03-29T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1986-03-29T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1986-03-29T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1986-09-27T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1986-09-27T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1986-09-27T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1986-09-27T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1986-03-29T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1986-03-29T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1986-03-29T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1986-03-29T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1986-09-27T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1986-09-27T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1986-09-27T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1986-09-27T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1987-03-28T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1987-03-28T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1987-03-28T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1987-09-26T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1987-09-26T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1987-09-26T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1987-09-26T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1987-03-28T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1987-03-28T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1987-03-28T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1987-03-28T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1987-09-26T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1987-09-26T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1987-09-26T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1987-09-26T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1988-03-26T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1988-03-26T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1988-03-26T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1988-09-24T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1988-09-24T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1988-09-24T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1988-09-24T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1988-03-26T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1988-03-26T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1988-03-26T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1988-03-26T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1988-09-24T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1988-09-24T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1988-09-24T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1988-09-24T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1989-03-25T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1989-03-25T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1989-03-25T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1989-09-23T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1989-09-23T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1989-09-23T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1989-09-23T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1989-03-25T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1989-03-25T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1989-03-25T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1989-03-25T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1989-09-23T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1989-09-23T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1989-09-23T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1989-09-23T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1990-03-24T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1990-03-24T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1990-03-24T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1990-09-29T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1990-09-29T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1990-09-29T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1990-09-29T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1990-03-24T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1990-03-24T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1990-03-24T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1990-03-24T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1990-09-29T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1990-09-29T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1990-09-29T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1990-09-29T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1991-03-30T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1991-03-30T16:00:00+00:00 should be 02:00:00 VLASST"); - t.equal(moment("1991-09-28T16:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1991-09-28T16:59:59+00:00 should be 02:59:59 VLASST"); - t.equal(moment("1991-09-28T17:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1991-09-28T17:00:00+00:00 should be 02:00:00 VLAST"); - - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1991-03-30T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1991-03-30T16:00:00+00:00 should be -600 minutes offset in VLASST"); - t.equal(moment("1991-09-28T16:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1991-09-28T16:59:59+00:00 should be -600 minutes offset in VLASST"); - t.equal(moment("1991-09-28T17:00:00+00:00").tz("Asia/Vladivostok").zone(), -540, "1991-09-28T17:00:00+00:00 should be -540 minutes offset in VLAST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T16:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1992-01-18T16:59:59+00:00 should be 01:59:59 VLAST"); - t.equal(moment("1992-01-18T17:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1992-01-18T17:00:00+00:00 should be 03:00:00 VLAT"); - t.equal(moment("1992-03-28T12:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "22:59:59", "1992-03-28T12:59:59+00:00 should be 22:59:59 VLAT"); - t.equal(moment("1992-03-28T13:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "00:00:00", "1992-03-28T13:00:00+00:00 should be 00:00:00 VLAST"); - t.equal(moment("1992-09-26T11:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "22:59:59", "1992-09-26T11:59:59+00:00 should be 22:59:59 VLAST"); - t.equal(moment("1992-09-26T12:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "22:00:00", "1992-09-26T12:00:00+00:00 should be 22:00:00 VLAT"); - - t.equal(moment("1992-01-18T16:59:59+00:00").tz("Asia/Vladivostok").zone(), -540, "1992-01-18T16:59:59+00:00 should be -540 minutes offset in VLAST"); - t.equal(moment("1992-01-18T17:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1992-01-18T17:00:00+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1992-03-28T12:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1992-03-28T12:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1992-03-28T13:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1992-03-28T13:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1992-09-26T11:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1992-09-26T11:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1992-09-26T12:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1992-09-26T12:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1993-03-27T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1993-03-27T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1993-09-25T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1993-09-25T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1993-09-25T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1993-09-25T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1993-03-27T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1993-03-27T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1993-09-25T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1993-09-25T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1993-09-25T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1993-09-25T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1994-03-26T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1994-03-26T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1994-09-24T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1994-09-24T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1994-09-24T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1994-09-24T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1994-03-26T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1994-03-26T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1994-09-24T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1994-09-24T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1994-09-24T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1994-09-24T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1995-03-25T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1995-03-25T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1995-09-23T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1995-09-23T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1995-09-23T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1995-09-23T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1995-03-25T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1995-03-25T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1995-09-23T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1995-09-23T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1995-09-23T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1995-09-23T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1996-03-30T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1996-03-30T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1996-10-26T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1996-10-26T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1996-10-26T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1996-10-26T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1996-03-30T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1996-03-30T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1996-10-26T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1996-10-26T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1996-10-26T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1996-10-26T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1997-03-29T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1997-03-29T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1997-10-25T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1997-10-25T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1997-10-25T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1997-10-25T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1997-03-29T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1997-03-29T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1997-10-25T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1997-10-25T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1997-10-25T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1997-10-25T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1998-03-28T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1998-03-28T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1998-10-24T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1998-10-24T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1998-10-24T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1998-10-24T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1998-03-28T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1998-03-28T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1998-10-24T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1998-10-24T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1998-10-24T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1998-10-24T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "1999-03-27T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "1999-03-27T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("1999-10-30T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "1999-10-30T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("1999-10-30T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "1999-10-30T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "1999-03-27T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "1999-03-27T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1999-10-30T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "1999-10-30T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("1999-10-30T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "1999-10-30T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2000-03-25T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2000-03-25T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2000-10-28T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2000-10-28T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2000-10-28T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2000-10-28T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2000-03-25T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2000-03-25T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2000-10-28T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2000-10-28T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2000-10-28T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2000-10-28T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2001-03-24T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2001-03-24T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2001-10-27T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2001-10-27T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2001-10-27T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2001-10-27T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2001-03-24T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2001-03-24T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2001-10-27T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2001-10-27T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2001-10-27T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2001-10-27T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2002-03-30T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2002-03-30T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2002-10-26T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2002-10-26T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2002-10-26T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2002-10-26T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2002-03-30T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2002-03-30T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2002-10-26T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2002-10-26T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2002-10-26T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2002-10-26T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2003-03-29T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2003-03-29T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2003-10-25T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2003-10-25T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2003-10-25T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2003-10-25T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2003-03-29T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2003-03-29T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2003-10-25T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2003-10-25T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2003-10-25T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2003-10-25T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2004-03-27T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2004-03-27T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2004-10-30T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2004-10-30T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2004-03-27T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2004-03-27T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2004-10-30T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2004-10-30T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2005-03-26T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2005-03-26T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2005-10-29T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2005-10-29T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2005-03-26T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2005-03-26T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2005-10-29T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2005-10-29T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2006-03-25T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2006-03-25T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2006-03-25T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2006-10-28T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2006-10-28T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2006-03-25T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2006-03-25T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2006-03-25T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2006-03-25T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2006-10-28T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2006-10-28T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2007-03-24T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2007-03-24T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2007-10-27T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2007-10-27T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2007-03-24T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2007-03-24T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2007-10-27T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2007-10-27T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2008-03-29T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2008-03-29T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2008-03-29T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2008-10-25T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2008-10-25T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2008-10-25T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2008-10-25T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2008-03-29T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2008-03-29T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2008-03-29T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2008-03-29T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2008-10-25T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2008-10-25T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2008-10-25T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2008-10-25T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2009-03-28T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2009-03-28T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2009-03-28T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2009-10-24T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2009-10-24T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2009-10-24T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2009-10-24T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2009-03-28T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2009-03-28T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2009-03-28T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2009-03-28T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2009-10-24T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2009-10-24T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2009-10-24T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2009-10-24T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2010-03-27T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2010-03-27T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2010-03-27T16:00:00+00:00 should be 03:00:00 VLAST"); - t.equal(moment("2010-10-30T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:59:59", "2010-10-30T15:59:59+00:00 should be 02:59:59 VLAST"); - t.equal(moment("2010-10-30T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "02:00:00", "2010-10-30T16:00:00+00:00 should be 02:00:00 VLAT"); - - t.equal(moment("2010-03-27T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2010-03-27T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2010-03-27T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2010-03-27T16:00:00+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2010-10-30T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -660, "2010-10-30T15:59:59+00:00 should be -660 minutes offset in VLAST"); - t.equal(moment("2010-10-30T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -600, "2010-10-30T16:00:00+00:00 should be -600 minutes offset in VLAT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T15:59:59+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "01:59:59", "2011-03-26T15:59:59+00:00 should be 01:59:59 VLAT"); - t.equal(moment("2011-03-26T16:00:00+00:00").tz("Asia/Vladivostok").format("HH:mm:ss"), "03:00:00", "2011-03-26T16:00:00+00:00 should be 03:00:00 VLAT"); - - t.equal(moment("2011-03-26T15:59:59+00:00").tz("Asia/Vladivostok").zone(), -600, "2011-03-26T15:59:59+00:00 should be -600 minutes offset in VLAT"); - t.equal(moment("2011-03-26T16:00:00+00:00").tz("Asia/Vladivostok").zone(), -660, "2011-03-26T16:00:00+00:00 should be -660 minutes offset in VLAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/yakutsk.js b/tests/asia/yakutsk.js deleted file mode 100644 index b8ab9432..00000000 --- a/tests/asia/yakutsk.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Yakutsk"] = { - - "1919" : function (t) { - t.equal(moment("1919-12-14T15:21:19+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:59:59", "1919-12-14T15:21:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1919-12-14T15:21:20+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:21:20", "1919-12-14T15:21:20+00:00 should be 23:21:20 YAKT"); - - t.equal(moment("1919-12-14T15:21:19+00:00").tz("Asia/Yakutsk").zone(), -31120 / 60, "1919-12-14T15:21:19+00:00 should be -31120 / 60 minutes offset in LMT"); - t.equal(moment("1919-12-14T15:21:20+00:00").tz("Asia/Yakutsk").zone(), -480, "1919-12-14T15:21:20+00:00 should be -480 minutes offset in YAKT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T15:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:59:59", "1930-06-20T15:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1930-06-20T16:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:00:00", "1930-06-20T16:00:00+00:00 should be 01:00:00 YAKT"); - - t.equal(moment("1930-06-20T15:59:59+00:00").tz("Asia/Yakutsk").zone(), -480, "1930-06-20T15:59:59+00:00 should be -480 minutes offset in YAKT"); - t.equal(moment("1930-06-20T16:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1930-06-20T16:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T14:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:59:59", "1981-03-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1981-03-31T15:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:00:00", "1981-03-31T15:00:00+00:00 should be 01:00:00 YAKST"); - t.equal(moment("1981-09-30T13:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:59:59", "1981-09-30T13:59:59+00:00 should be 23:59:59 YAKST"); - t.equal(moment("1981-09-30T14:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:00:00", "1981-09-30T14:00:00+00:00 should be 23:00:00 YAKT"); - - t.equal(moment("1981-03-31T14:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1981-03-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1981-03-31T15:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1981-03-31T15:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1981-09-30T13:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1981-09-30T13:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1981-09-30T14:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1981-09-30T14:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T14:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:59:59", "1982-03-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1982-03-31T15:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:00:00", "1982-03-31T15:00:00+00:00 should be 01:00:00 YAKST"); - t.equal(moment("1982-09-30T13:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:59:59", "1982-09-30T13:59:59+00:00 should be 23:59:59 YAKST"); - t.equal(moment("1982-09-30T14:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:00:00", "1982-09-30T14:00:00+00:00 should be 23:00:00 YAKT"); - - t.equal(moment("1982-03-31T14:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1982-03-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1982-03-31T15:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1982-03-31T15:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1982-09-30T13:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1982-09-30T13:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1982-09-30T14:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1982-09-30T14:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T14:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:59:59", "1983-03-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1983-03-31T15:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:00:00", "1983-03-31T15:00:00+00:00 should be 01:00:00 YAKST"); - t.equal(moment("1983-09-30T13:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:59:59", "1983-09-30T13:59:59+00:00 should be 23:59:59 YAKST"); - t.equal(moment("1983-09-30T14:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:00:00", "1983-09-30T14:00:00+00:00 should be 23:00:00 YAKT"); - - t.equal(moment("1983-03-31T14:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1983-03-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1983-03-31T15:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1983-03-31T15:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1983-09-30T13:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1983-09-30T13:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1983-09-30T14:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1983-09-30T14:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T14:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "23:59:59", "1984-03-31T14:59:59+00:00 should be 23:59:59 YAKT"); - t.equal(moment("1984-03-31T15:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:00:00", "1984-03-31T15:00:00+00:00 should be 01:00:00 YAKST"); - t.equal(moment("1984-09-29T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1984-09-29T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1984-09-29T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1984-09-29T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1984-03-31T14:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1984-03-31T14:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1984-03-31T15:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1984-03-31T15:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1984-09-29T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1984-09-29T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1984-09-29T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1984-09-29T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1985-03-30T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1985-03-30T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1985-03-30T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1985-09-28T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1985-09-28T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1985-09-28T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1985-09-28T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1985-03-30T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1985-03-30T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1985-03-30T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1985-03-30T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1985-09-28T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1985-09-28T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1985-09-28T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1985-09-28T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1986-03-29T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1986-03-29T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1986-03-29T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1986-09-27T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1986-09-27T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1986-09-27T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1986-09-27T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1986-03-29T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1986-03-29T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1986-03-29T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1986-03-29T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1986-09-27T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1986-09-27T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1986-09-27T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1986-09-27T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1987-03-28T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1987-03-28T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1987-03-28T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1987-09-26T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1987-09-26T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1987-09-26T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1987-09-26T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1987-03-28T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1987-03-28T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1987-03-28T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1987-03-28T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1987-09-26T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1987-09-26T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1987-09-26T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1987-09-26T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1988-03-26T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1988-03-26T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1988-03-26T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1988-09-24T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1988-09-24T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1988-09-24T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1988-09-24T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1988-03-26T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1988-03-26T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1988-03-26T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1988-03-26T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1988-09-24T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1988-09-24T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1988-09-24T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1988-09-24T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1989-03-25T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1989-03-25T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1989-03-25T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1989-09-23T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1989-09-23T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1989-09-23T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1989-09-23T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1989-03-25T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1989-03-25T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1989-03-25T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1989-03-25T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1989-09-23T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1989-09-23T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1989-09-23T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1989-09-23T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1990-03-24T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1990-03-24T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1990-03-24T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1990-09-29T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1990-09-29T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1990-09-29T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1990-09-29T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1990-03-24T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1990-03-24T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1990-03-24T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1990-03-24T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1990-09-29T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1990-09-29T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1990-09-29T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1990-09-29T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1991-03-30T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1991-03-30T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1991-03-30T17:00:00+00:00 should be 02:00:00 YAKST"); - t.equal(moment("1991-09-28T17:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1991-09-28T17:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1991-09-28T18:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1991-09-28T18:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1991-03-30T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1991-03-30T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1991-03-30T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1991-03-30T17:00:00+00:00 should be -540 minutes offset in YAKST"); - t.equal(moment("1991-09-28T17:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1991-09-28T17:59:59+00:00 should be -540 minutes offset in YAKST"); - t.equal(moment("1991-09-28T18:00:00+00:00").tz("Asia/Yakutsk").zone(), -480, "1991-09-28T18:00:00+00:00 should be -480 minutes offset in YAKT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T17:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1992-01-18T17:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1992-01-18T18:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1992-01-18T18:00:00+00:00 should be 03:00:00 YAKT"); - t.equal(moment("1992-03-28T13:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "22:59:59", "1992-03-28T13:59:59+00:00 should be 22:59:59 YAKT"); - t.equal(moment("1992-03-28T14:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "00:00:00", "1992-03-28T14:00:00+00:00 should be 00:00:00 YAKST"); - t.equal(moment("1992-09-26T12:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "22:59:59", "1992-09-26T12:59:59+00:00 should be 22:59:59 YAKST"); - t.equal(moment("1992-09-26T13:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "22:00:00", "1992-09-26T13:00:00+00:00 should be 22:00:00 YAKT"); - - t.equal(moment("1992-01-18T17:59:59+00:00").tz("Asia/Yakutsk").zone(), -480, "1992-01-18T17:59:59+00:00 should be -480 minutes offset in YAKT"); - t.equal(moment("1992-01-18T18:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1992-01-18T18:00:00+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1992-03-28T13:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1992-03-28T13:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1992-03-28T14:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1992-03-28T14:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1992-09-26T12:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1992-09-26T12:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1992-09-26T13:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1992-09-26T13:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1993-03-27T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1993-03-27T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1993-03-27T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1993-09-25T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1993-09-25T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1993-09-25T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1993-09-25T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1993-03-27T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1993-03-27T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1993-03-27T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1993-03-27T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1993-09-25T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1993-09-25T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1993-09-25T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1993-09-25T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1994-03-26T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1994-03-26T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1994-03-26T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1994-09-24T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1994-09-24T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1994-09-24T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1994-09-24T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1994-03-26T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1994-03-26T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1994-03-26T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1994-03-26T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1994-09-24T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1994-09-24T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1994-09-24T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1994-09-24T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1995-03-25T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1995-03-25T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1995-03-25T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1995-09-23T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1995-09-23T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1995-09-23T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1995-09-23T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1995-03-25T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1995-03-25T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1995-03-25T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1995-03-25T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1995-09-23T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1995-09-23T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1995-09-23T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1995-09-23T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1996-03-30T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1996-03-30T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1996-03-30T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1996-10-26T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1996-10-26T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1996-10-26T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1996-10-26T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1996-03-30T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1996-03-30T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1996-03-30T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1996-03-30T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1996-10-26T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1996-10-26T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1996-10-26T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1996-10-26T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1997-03-29T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1997-03-29T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1997-03-29T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1997-10-25T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1997-10-25T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1997-10-25T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1997-10-25T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1997-03-29T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1997-03-29T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1997-03-29T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1997-03-29T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1997-10-25T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1997-10-25T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1997-10-25T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1997-10-25T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1998-03-28T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1998-03-28T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1998-03-28T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1998-10-24T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1998-10-24T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1998-10-24T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1998-10-24T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1998-03-28T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1998-03-28T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1998-03-28T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1998-03-28T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1998-10-24T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1998-10-24T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1998-10-24T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1998-10-24T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "1999-03-27T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("1999-03-27T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "1999-03-27T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("1999-10-30T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "1999-10-30T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("1999-10-30T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "1999-10-30T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("1999-03-27T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "1999-03-27T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("1999-03-27T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "1999-03-27T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1999-10-30T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "1999-10-30T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("1999-10-30T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "1999-10-30T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2000-03-25T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2000-03-25T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2000-03-25T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2000-10-28T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2000-10-28T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2000-10-28T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2000-10-28T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2000-03-25T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2000-03-25T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2000-03-25T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2000-03-25T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2000-10-28T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2000-10-28T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2000-10-28T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2000-10-28T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2001-03-24T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2001-03-24T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2001-03-24T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2001-10-27T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2001-10-27T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2001-10-27T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2001-10-27T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2001-03-24T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2001-03-24T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2001-03-24T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2001-03-24T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2001-10-27T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2001-10-27T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2001-10-27T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2001-10-27T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2002-03-30T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2002-03-30T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2002-03-30T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2002-10-26T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2002-10-26T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2002-10-26T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2002-10-26T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2002-03-30T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2002-03-30T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2002-03-30T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2002-03-30T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2002-10-26T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2002-10-26T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2002-10-26T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2002-10-26T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2003-03-29T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2003-03-29T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2003-03-29T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2003-10-25T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2003-10-25T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2003-10-25T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2003-10-25T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2003-03-29T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2003-03-29T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2003-03-29T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2003-03-29T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2003-10-25T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2003-10-25T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2003-10-25T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2003-10-25T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2004-03-27T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2004-03-27T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2004-03-27T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2004-10-30T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2004-10-30T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2004-10-30T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2004-10-30T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2004-03-27T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2004-03-27T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2004-03-27T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2004-03-27T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2004-10-30T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2004-10-30T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2004-10-30T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2004-10-30T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2005-03-26T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2005-03-26T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2005-03-26T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2005-10-29T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2005-10-29T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2005-10-29T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2005-10-29T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2005-03-26T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2005-03-26T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2005-03-26T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2005-03-26T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2005-10-29T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2005-10-29T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2005-10-29T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2005-10-29T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2006-03-25T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2006-03-25T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2006-03-25T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2006-10-28T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2006-10-28T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2006-10-28T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2006-10-28T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2006-03-25T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2006-03-25T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2006-03-25T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2006-03-25T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2006-10-28T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2006-10-28T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2006-10-28T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2006-10-28T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2007-03-24T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2007-03-24T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2007-03-24T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2007-10-27T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2007-10-27T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2007-10-27T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2007-10-27T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2007-03-24T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2007-03-24T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2007-03-24T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2007-03-24T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2007-10-27T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2007-10-27T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2007-10-27T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2007-10-27T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2008-03-29T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2008-03-29T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2008-03-29T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2008-10-25T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2008-10-25T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2008-10-25T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2008-10-25T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2008-03-29T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2008-03-29T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2008-03-29T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2008-03-29T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2008-10-25T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2008-10-25T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2008-10-25T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2008-10-25T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2009-03-28T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2009-03-28T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2009-03-28T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2009-10-24T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2009-10-24T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2009-10-24T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2009-10-24T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2009-03-28T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2009-03-28T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2009-03-28T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2009-03-28T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2009-10-24T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2009-10-24T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2009-10-24T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2009-10-24T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2010-03-27T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2010-03-27T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2010-03-27T17:00:00+00:00 should be 03:00:00 YAKST"); - t.equal(moment("2010-10-30T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:59:59", "2010-10-30T16:59:59+00:00 should be 02:59:59 YAKST"); - t.equal(moment("2010-10-30T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "02:00:00", "2010-10-30T17:00:00+00:00 should be 02:00:00 YAKT"); - - t.equal(moment("2010-03-27T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2010-03-27T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2010-03-27T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2010-03-27T17:00:00+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2010-10-30T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -600, "2010-10-30T16:59:59+00:00 should be -600 minutes offset in YAKST"); - t.equal(moment("2010-10-30T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -540, "2010-10-30T17:00:00+00:00 should be -540 minutes offset in YAKT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T16:59:59+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "01:59:59", "2011-03-26T16:59:59+00:00 should be 01:59:59 YAKT"); - t.equal(moment("2011-03-26T17:00:00+00:00").tz("Asia/Yakutsk").format("HH:mm:ss"), "03:00:00", "2011-03-26T17:00:00+00:00 should be 03:00:00 YAKT"); - - t.equal(moment("2011-03-26T16:59:59+00:00").tz("Asia/Yakutsk").zone(), -540, "2011-03-26T16:59:59+00:00 should be -540 minutes offset in YAKT"); - t.equal(moment("2011-03-26T17:00:00+00:00").tz("Asia/Yakutsk").zone(), -600, "2011-03-26T17:00:00+00:00 should be -600 minutes offset in YAKT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/yekaterinburg.js b/tests/asia/yekaterinburg.js deleted file mode 100644 index cbee8fd5..00000000 --- a/tests/asia/yekaterinburg.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Yekaterinburg"] = { - - "1919" : function (t) { - t.equal(moment("1919-07-14T23:57:35+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:59:59", "1919-07-14T23:57:35+00:00 should be 03:59:59 LMT"); - t.equal(moment("1919-07-14T23:57:36+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:57:36", "1919-07-14T23:57:36+00:00 should be 03:57:36 SVET"); - - t.equal(moment("1919-07-14T23:57:35+00:00").tz("Asia/Yekaterinburg").zone(), -14544 / 60, "1919-07-14T23:57:35+00:00 should be -14544 / 60 minutes offset in LMT"); - t.equal(moment("1919-07-14T23:57:36+00:00").tz("Asia/Yekaterinburg").zone(), -240, "1919-07-14T23:57:36+00:00 should be -240 minutes offset in SVET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:59:59", "1930-06-20T19:59:59+00:00 should be 23:59:59 SVET"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:00:00", "1930-06-20T20:00:00+00:00 should be 01:00:00 SVET"); - - t.equal(moment("1930-06-20T19:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -240, "1930-06-20T19:59:59+00:00 should be -240 minutes offset in SVET"); - t.equal(moment("1930-06-20T20:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1930-06-20T20:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:59:59", "1981-03-31T18:59:59+00:00 should be 23:59:59 SVET"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:00:00", "1981-03-31T19:00:00+00:00 should be 01:00:00 SVEST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:59:59", "1981-09-30T17:59:59+00:00 should be 23:59:59 SVEST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:00:00", "1981-09-30T18:00:00+00:00 should be 23:00:00 SVET"); - - t.equal(moment("1981-03-31T18:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1981-03-31T18:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1981-03-31T19:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1981-03-31T19:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1981-09-30T17:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1981-09-30T17:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1981-09-30T18:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1981-09-30T18:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T18:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:59:59", "1982-03-31T18:59:59+00:00 should be 23:59:59 SVET"); - t.equal(moment("1982-03-31T19:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:00:00", "1982-03-31T19:00:00+00:00 should be 01:00:00 SVEST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:59:59", "1982-09-30T17:59:59+00:00 should be 23:59:59 SVEST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:00:00", "1982-09-30T18:00:00+00:00 should be 23:00:00 SVET"); - - t.equal(moment("1982-03-31T18:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1982-03-31T18:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1982-03-31T19:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1982-03-31T19:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1982-09-30T17:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1982-09-30T17:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1982-09-30T18:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1982-09-30T18:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:59:59", "1983-03-31T18:59:59+00:00 should be 23:59:59 SVET"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:00:00", "1983-03-31T19:00:00+00:00 should be 01:00:00 SVEST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:59:59", "1983-09-30T17:59:59+00:00 should be 23:59:59 SVEST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:00:00", "1983-09-30T18:00:00+00:00 should be 23:00:00 SVET"); - - t.equal(moment("1983-03-31T18:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1983-03-31T18:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1983-03-31T19:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1983-03-31T19:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1983-09-30T17:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1983-09-30T17:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1983-09-30T18:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1983-09-30T18:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "23:59:59", "1984-03-31T18:59:59+00:00 should be 23:59:59 SVET"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:00:00", "1984-03-31T19:00:00+00:00 should be 01:00:00 SVEST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1984-09-29T20:59:59+00:00 should be 02:59:59 SVEST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1984-09-29T21:00:00+00:00 should be 02:00:00 SVET"); - - t.equal(moment("1984-03-31T18:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1984-03-31T18:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1984-03-31T19:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1984-03-31T19:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1984-09-29T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1984-09-29T20:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1984-09-29T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1984-09-29T21:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1985-03-30T20:59:59+00:00 should be 01:59:59 SVET"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1985-03-30T21:00:00+00:00 should be 03:00:00 SVEST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1985-09-28T20:59:59+00:00 should be 02:59:59 SVEST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1985-09-28T21:00:00+00:00 should be 02:00:00 SVET"); - - t.equal(moment("1985-03-30T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1985-03-30T20:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1985-03-30T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1985-03-30T21:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1985-09-28T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1985-09-28T20:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1985-09-28T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1985-09-28T21:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1986-03-29T20:59:59+00:00 should be 01:59:59 SVET"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1986-03-29T21:00:00+00:00 should be 03:00:00 SVEST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1986-09-27T20:59:59+00:00 should be 02:59:59 SVEST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1986-09-27T21:00:00+00:00 should be 02:00:00 SVET"); - - t.equal(moment("1986-03-29T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1986-03-29T20:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1986-03-29T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1986-03-29T21:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1986-09-27T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1986-09-27T20:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1986-09-27T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1986-09-27T21:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1987-03-28T20:59:59+00:00 should be 01:59:59 SVET"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1987-03-28T21:00:00+00:00 should be 03:00:00 SVEST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1987-09-26T20:59:59+00:00 should be 02:59:59 SVEST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1987-09-26T21:00:00+00:00 should be 02:00:00 SVET"); - - t.equal(moment("1987-03-28T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1987-03-28T20:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1987-03-28T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1987-03-28T21:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1987-09-26T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1987-09-26T20:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1987-09-26T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1987-09-26T21:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1988-03-26T20:59:59+00:00 should be 01:59:59 SVET"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1988-03-26T21:00:00+00:00 should be 03:00:00 SVEST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1988-09-24T20:59:59+00:00 should be 02:59:59 SVEST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1988-09-24T21:00:00+00:00 should be 02:00:00 SVET"); - - t.equal(moment("1988-03-26T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1988-03-26T20:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1988-03-26T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1988-03-26T21:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1988-09-24T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1988-09-24T20:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1988-09-24T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1988-09-24T21:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1989-03-25T20:59:59+00:00 should be 01:59:59 SVET"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1989-03-25T21:00:00+00:00 should be 03:00:00 SVEST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1989-09-23T20:59:59+00:00 should be 02:59:59 SVEST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1989-09-23T21:00:00+00:00 should be 02:00:00 SVET"); - - t.equal(moment("1989-03-25T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1989-03-25T20:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1989-03-25T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1989-03-25T21:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1989-09-23T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1989-09-23T20:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1989-09-23T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1989-09-23T21:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1990-03-24T20:59:59+00:00 should be 01:59:59 SVET"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1990-03-24T21:00:00+00:00 should be 03:00:00 SVEST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1990-09-29T20:59:59+00:00 should be 02:59:59 SVEST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1990-09-29T21:00:00+00:00 should be 02:00:00 SVET"); - - t.equal(moment("1990-03-24T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1990-03-24T20:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1990-03-24T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1990-03-24T21:00:00+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1990-09-29T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1990-09-29T20:59:59+00:00 should be -360 minutes offset in SVEST"); - t.equal(moment("1990-09-29T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1990-09-29T21:00:00+00:00 should be -300 minutes offset in SVET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1991-03-30T20:59:59+00:00 should be 01:59:59 SVET"); - t.equal(moment("1991-03-30T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1991-03-30T21:00:00+00:00 should be 02:00:00 SVEST"); - t.equal(moment("1991-09-28T21:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1991-09-28T21:59:59+00:00 should be 02:59:59 SVEST"); - t.equal(moment("1991-09-28T22:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1991-09-28T22:00:00+00:00 should be 02:00:00 SVET"); - - t.equal(moment("1991-03-30T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1991-03-30T20:59:59+00:00 should be -300 minutes offset in SVET"); - t.equal(moment("1991-03-30T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1991-03-30T21:00:00+00:00 should be -300 minutes offset in SVEST"); - t.equal(moment("1991-09-28T21:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1991-09-28T21:59:59+00:00 should be -300 minutes offset in SVEST"); - t.equal(moment("1991-09-28T22:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -240, "1991-09-28T22:00:00+00:00 should be -240 minutes offset in SVET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T21:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1992-01-18T21:59:59+00:00 should be 01:59:59 SVET"); - t.equal(moment("1992-01-18T22:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1992-01-18T22:00:00+00:00 should be 03:00:00 YEKT"); - t.equal(moment("1992-03-28T17:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "22:59:59", "1992-03-28T17:59:59+00:00 should be 22:59:59 YEKT"); - t.equal(moment("1992-03-28T18:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "00:00:00", "1992-03-28T18:00:00+00:00 should be 00:00:00 YEKST"); - t.equal(moment("1992-09-26T16:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "22:59:59", "1992-09-26T16:59:59+00:00 should be 22:59:59 YEKST"); - t.equal(moment("1992-09-26T17:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "22:00:00", "1992-09-26T17:00:00+00:00 should be 22:00:00 YEKT"); - - t.equal(moment("1992-01-18T21:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -240, "1992-01-18T21:59:59+00:00 should be -240 minutes offset in SVET"); - t.equal(moment("1992-01-18T22:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1992-01-18T22:00:00+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("1992-03-28T17:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1992-03-28T17:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("1992-03-28T18:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1992-03-28T18:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1992-09-26T16:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1992-09-26T16:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1992-09-26T17:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1992-09-26T17:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1993-03-27T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("1993-03-27T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1993-03-27T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1993-09-25T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1993-09-25T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("1993-03-27T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1993-03-27T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("1993-03-27T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1993-03-27T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1993-09-25T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1993-09-25T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1994-03-26T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("1994-03-26T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1994-03-26T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1994-09-24T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1994-09-24T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("1994-03-26T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1994-03-26T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("1994-03-26T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1994-03-26T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1994-09-24T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1994-09-24T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1995-03-25T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("1995-03-25T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1995-03-25T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1995-09-23T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1995-09-23T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("1995-03-25T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1995-03-25T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("1995-03-25T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1995-03-25T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1995-09-23T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1995-09-23T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1996-03-30T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("1996-03-30T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1996-03-30T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1996-10-26T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1996-10-26T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("1996-03-30T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1996-03-30T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("1996-03-30T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1996-03-30T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1996-10-26T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1996-10-26T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1997-03-29T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("1997-03-29T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1997-03-29T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("1997-10-25T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1997-10-25T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("1997-10-25T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1997-10-25T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("1997-03-29T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1997-03-29T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("1997-03-29T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1997-03-29T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1997-10-25T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1997-10-25T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1997-10-25T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1997-10-25T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1998-03-28T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("1998-03-28T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1998-03-28T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("1998-10-24T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1998-10-24T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("1998-10-24T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1998-10-24T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("1998-03-28T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1998-03-28T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("1998-03-28T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1998-03-28T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1998-10-24T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1998-10-24T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1998-10-24T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1998-10-24T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "1999-03-27T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("1999-03-27T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "1999-03-27T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("1999-10-30T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "1999-10-30T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("1999-10-30T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "1999-10-30T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("1999-03-27T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1999-03-27T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("1999-03-27T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1999-03-27T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1999-10-30T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "1999-10-30T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("1999-10-30T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "1999-10-30T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2000-03-25T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2000-03-25T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2000-03-25T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2000-10-28T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2000-10-28T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2000-10-28T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2000-10-28T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2000-03-25T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2000-03-25T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2000-03-25T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2000-03-25T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2000-10-28T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2000-10-28T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2000-10-28T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2000-10-28T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2001-03-24T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2001-03-24T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2001-03-24T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2001-10-27T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2001-10-27T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2001-10-27T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2001-10-27T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2001-03-24T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2001-03-24T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2001-03-24T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2001-03-24T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2001-10-27T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2001-10-27T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2001-10-27T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2001-10-27T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2002-03-30T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2002-03-30T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2002-03-30T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2002-10-26T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2002-10-26T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2002-10-26T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2002-10-26T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2002-03-30T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2002-03-30T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2002-03-30T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2002-03-30T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2002-10-26T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2002-10-26T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2002-10-26T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2002-10-26T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2003-03-29T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2003-03-29T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2003-03-29T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2003-10-25T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2003-10-25T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2003-10-25T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2003-10-25T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2003-03-29T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2003-03-29T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2003-03-29T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2003-03-29T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2003-10-25T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2003-10-25T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2003-10-25T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2003-10-25T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2004-03-27T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2004-03-27T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2004-03-27T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2004-10-30T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2004-10-30T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2004-10-30T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2004-10-30T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2004-03-27T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2004-03-27T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2004-03-27T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2004-03-27T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2004-10-30T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2004-10-30T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2004-10-30T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2004-10-30T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2005-03-26T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2005-03-26T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2005-03-26T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2005-10-29T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2005-10-29T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2005-10-29T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2005-10-29T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2005-03-26T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2005-03-26T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2005-03-26T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2005-03-26T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2005-10-29T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2005-10-29T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2005-10-29T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2005-10-29T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2006-03-25T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2006-03-25T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2006-03-25T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2006-10-28T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2006-10-28T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2006-10-28T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2006-10-28T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2006-03-25T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2006-03-25T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2006-03-25T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2006-03-25T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2006-10-28T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2006-10-28T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2006-10-28T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2006-10-28T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2007-03-24T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2007-03-24T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2007-03-24T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2007-10-27T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2007-10-27T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2007-10-27T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2007-10-27T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2007-03-24T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2007-03-24T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2007-03-24T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2007-03-24T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2007-10-27T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2007-10-27T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2007-10-27T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2007-10-27T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2008-03-29T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2008-03-29T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2008-03-29T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2008-10-25T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2008-10-25T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2008-10-25T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2008-10-25T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2008-03-29T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2008-03-29T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2008-03-29T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2008-03-29T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2008-10-25T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2008-10-25T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2008-10-25T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2008-10-25T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2009-03-28T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2009-03-28T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2009-03-28T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2009-10-24T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2009-10-24T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2009-10-24T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2009-10-24T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2009-03-28T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2009-03-28T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2009-03-28T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2009-03-28T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2009-10-24T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2009-10-24T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2009-10-24T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2009-10-24T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2010-03-27T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2010-03-27T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2010-03-27T21:00:00+00:00 should be 03:00:00 YEKST"); - t.equal(moment("2010-10-30T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:59:59", "2010-10-30T20:59:59+00:00 should be 02:59:59 YEKST"); - t.equal(moment("2010-10-30T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "02:00:00", "2010-10-30T21:00:00+00:00 should be 02:00:00 YEKT"); - - t.equal(moment("2010-03-27T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2010-03-27T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2010-03-27T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2010-03-27T21:00:00+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2010-10-30T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2010-10-30T20:59:59+00:00 should be -360 minutes offset in YEKST"); - t.equal(moment("2010-10-30T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2010-10-30T21:00:00+00:00 should be -300 minutes offset in YEKT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T20:59:59+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "01:59:59", "2011-03-26T20:59:59+00:00 should be 01:59:59 YEKT"); - t.equal(moment("2011-03-26T21:00:00+00:00").tz("Asia/Yekaterinburg").format("HH:mm:ss"), "03:00:00", "2011-03-26T21:00:00+00:00 should be 03:00:00 YEKT"); - - t.equal(moment("2011-03-26T20:59:59+00:00").tz("Asia/Yekaterinburg").zone(), -300, "2011-03-26T20:59:59+00:00 should be -300 minutes offset in YEKT"); - t.equal(moment("2011-03-26T21:00:00+00:00").tz("Asia/Yekaterinburg").zone(), -360, "2011-03-26T21:00:00+00:00 should be -360 minutes offset in YEKT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/asia/yerevan.js b/tests/asia/yerevan.js deleted file mode 100644 index cf5024cc..00000000 --- a/tests/asia/yerevan.js +++ /dev/null @@ -1,448 +0,0 @@ -var moment = require("../../index"); - -exports["Asia/Yerevan"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T21:01:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1924-05-01T21:01:59+00:00 should be 23:59:59 LMT"); - t.equal(moment("1924-05-01T21:02:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "00:02:00", "1924-05-01T21:02:00+00:00 should be 00:02:00 YERT"); - - t.equal(moment("1924-05-01T21:01:59+00:00").tz("Asia/Yerevan").zone(), -178, "1924-05-01T21:01:59+00:00 should be -178 minutes offset in LMT"); - t.equal(moment("1924-05-01T21:02:00+00:00").tz("Asia/Yerevan").zone(), -180, "1924-05-01T21:02:00+00:00 should be -180 minutes offset in YERT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-02-28T20:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1957-02-28T20:59:59+00:00 should be 23:59:59 YERT"); - t.equal(moment("1957-02-28T21:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:00:00", "1957-02-28T21:00:00+00:00 should be 01:00:00 YERT"); - - t.equal(moment("1957-02-28T20:59:59+00:00").tz("Asia/Yerevan").zone(), -180, "1957-02-28T20:59:59+00:00 should be -180 minutes offset in YERT"); - t.equal(moment("1957-02-28T21:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1957-02-28T21:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1981-03-31T19:59:59+00:00 should be 23:59:59 YERT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:00:00", "1981-03-31T20:00:00+00:00 should be 01:00:00 YERST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1981-09-30T18:59:59+00:00 should be 23:59:59 YERST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:00:00", "1981-09-30T19:00:00+00:00 should be 23:00:00 YERT"); - - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1981-03-31T19:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1981-03-31T20:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1981-09-30T18:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1981-09-30T19:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1982-03-31T19:59:59+00:00 should be 23:59:59 YERT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:00:00", "1982-03-31T20:00:00+00:00 should be 01:00:00 YERST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1982-09-30T18:59:59+00:00 should be 23:59:59 YERST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:00:00", "1982-09-30T19:00:00+00:00 should be 23:00:00 YERT"); - - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1982-03-31T19:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1982-03-31T20:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1982-09-30T18:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1982-09-30T19:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1983-03-31T19:59:59+00:00 should be 23:59:59 YERT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:00:00", "1983-03-31T20:00:00+00:00 should be 01:00:00 YERST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1983-09-30T18:59:59+00:00 should be 23:59:59 YERST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:00:00", "1983-09-30T19:00:00+00:00 should be 23:00:00 YERT"); - - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1983-03-31T19:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1983-03-31T20:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1983-09-30T18:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1983-09-30T19:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1984-03-31T19:59:59+00:00 should be 23:59:59 YERT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:00:00", "1984-03-31T20:00:00+00:00 should be 01:00:00 YERST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1984-09-29T21:59:59+00:00 should be 02:59:59 YERST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1984-09-29T22:00:00+00:00 should be 02:00:00 YERT"); - - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1984-03-31T19:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1984-03-31T20:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1984-09-29T21:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1984-09-29T22:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1985-03-30T21:59:59+00:00 should be 01:59:59 YERT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1985-03-30T22:00:00+00:00 should be 03:00:00 YERST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1985-09-28T21:59:59+00:00 should be 02:59:59 YERST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1985-09-28T22:00:00+00:00 should be 02:00:00 YERT"); - - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1985-03-30T21:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1985-03-30T22:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1985-09-28T21:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1985-09-28T22:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1986-03-29T21:59:59+00:00 should be 01:59:59 YERT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1986-03-29T22:00:00+00:00 should be 03:00:00 YERST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1986-09-27T21:59:59+00:00 should be 02:59:59 YERST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1986-09-27T22:00:00+00:00 should be 02:00:00 YERT"); - - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1986-03-29T21:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1986-03-29T22:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1986-09-27T21:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1986-09-27T22:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1987-03-28T21:59:59+00:00 should be 01:59:59 YERT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1987-03-28T22:00:00+00:00 should be 03:00:00 YERST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1987-09-26T21:59:59+00:00 should be 02:59:59 YERST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1987-09-26T22:00:00+00:00 should be 02:00:00 YERT"); - - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1987-03-28T21:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1987-03-28T22:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1987-09-26T21:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1987-09-26T22:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1988-03-26T21:59:59+00:00 should be 01:59:59 YERT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1988-03-26T22:00:00+00:00 should be 03:00:00 YERST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1988-09-24T21:59:59+00:00 should be 02:59:59 YERST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1988-09-24T22:00:00+00:00 should be 02:00:00 YERT"); - - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1988-03-26T21:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1988-03-26T22:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1988-09-24T21:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1988-09-24T22:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1989-03-25T21:59:59+00:00 should be 01:59:59 YERT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1989-03-25T22:00:00+00:00 should be 03:00:00 YERST"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1989-09-23T21:59:59+00:00 should be 02:59:59 YERST"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1989-09-23T22:00:00+00:00 should be 02:00:00 YERT"); - - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1989-03-25T21:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1989-03-25T22:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1989-09-23T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1989-09-23T21:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1989-09-23T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1989-09-23T22:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1990-03-24T21:59:59+00:00 should be 01:59:59 YERT"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1990-03-24T22:00:00+00:00 should be 03:00:00 YERST"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1990-09-29T21:59:59+00:00 should be 02:59:59 YERST"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1990-09-29T22:00:00+00:00 should be 02:00:00 YERT"); - - t.equal(moment("1990-03-24T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1990-03-24T21:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1990-03-24T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1990-03-24T22:00:00+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1990-09-29T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1990-09-29T21:59:59+00:00 should be -300 minutes offset in YERST"); - t.equal(moment("1990-09-29T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1990-09-29T22:00:00+00:00 should be -240 minutes offset in YERT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1991-03-30T21:59:59+00:00 should be 01:59:59 YERT"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1991-03-30T22:00:00+00:00 should be 02:00:00 YERST"); - t.equal(moment("1991-09-22T19:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "23:59:59", "1991-09-22T19:59:59+00:00 should be 23:59:59 YERST"); - t.equal(moment("1991-09-22T20:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "00:00:00", "1991-09-22T20:00:00+00:00 should be 00:00:00 AMST"); - t.equal(moment("1991-09-28T22:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1991-09-28T22:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("1991-09-28T23:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1991-09-28T23:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1991-03-30T21:59:59+00:00 should be -240 minutes offset in YERT"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1991-03-30T22:00:00+00:00 should be -240 minutes offset in YERST"); - t.equal(moment("1991-09-22T19:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1991-09-22T19:59:59+00:00 should be -240 minutes offset in YERST"); - t.equal(moment("1991-09-22T20:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1991-09-22T20:00:00+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1991-09-28T22:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1991-09-28T22:59:59+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1991-09-28T23:00:00+00:00").tz("Asia/Yerevan").zone(), -180, "1991-09-28T23:00:00+00:00 should be -180 minutes offset in AMT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T19:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "22:59:59", "1992-03-28T19:59:59+00:00 should be 22:59:59 AMT"); - t.equal(moment("1992-03-28T20:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "00:00:00", "1992-03-28T20:00:00+00:00 should be 00:00:00 AMST"); - t.equal(moment("1992-09-26T18:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "22:59:59", "1992-09-26T18:59:59+00:00 should be 22:59:59 AMST"); - t.equal(moment("1992-09-26T19:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "22:00:00", "1992-09-26T19:00:00+00:00 should be 22:00:00 AMT"); - - t.equal(moment("1992-03-28T19:59:59+00:00").tz("Asia/Yerevan").zone(), -180, "1992-03-28T19:59:59+00:00 should be -180 minutes offset in AMT"); - t.equal(moment("1992-03-28T20:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1992-03-28T20:00:00+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1992-09-26T18:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1992-09-26T18:59:59+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1992-09-26T19:00:00+00:00").tz("Asia/Yerevan").zone(), -180, "1992-09-26T19:00:00+00:00 should be -180 minutes offset in AMT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T22:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1993-03-27T22:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("1993-03-27T23:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1993-03-27T23:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("1993-09-25T22:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1993-09-25T22:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("1993-09-25T23:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1993-09-25T23:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1993-03-27T22:59:59+00:00").tz("Asia/Yerevan").zone(), -180, "1993-03-27T22:59:59+00:00 should be -180 minutes offset in AMT"); - t.equal(moment("1993-03-27T23:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1993-03-27T23:00:00+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1993-09-25T22:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1993-09-25T22:59:59+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1993-09-25T23:00:00+00:00").tz("Asia/Yerevan").zone(), -180, "1993-09-25T23:00:00+00:00 should be -180 minutes offset in AMT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T22:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1994-03-26T22:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("1994-03-26T23:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1994-03-26T23:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("1994-09-24T22:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1994-09-24T22:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("1994-09-24T23:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1994-09-24T23:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1994-03-26T22:59:59+00:00").tz("Asia/Yerevan").zone(), -180, "1994-03-26T22:59:59+00:00 should be -180 minutes offset in AMT"); - t.equal(moment("1994-03-26T23:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1994-03-26T23:00:00+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1994-09-24T22:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1994-09-24T22:59:59+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1994-09-24T23:00:00+00:00").tz("Asia/Yerevan").zone(), -180, "1994-09-24T23:00:00+00:00 should be -180 minutes offset in AMT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T22:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1995-03-25T22:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("1995-03-25T23:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1995-03-25T23:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("1995-09-23T22:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1995-09-23T22:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("1995-09-23T23:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1995-09-23T23:00:00+00:00 should be 03:00:00 AMT"); - - t.equal(moment("1995-03-25T22:59:59+00:00").tz("Asia/Yerevan").zone(), -180, "1995-03-25T22:59:59+00:00 should be -180 minutes offset in AMT"); - t.equal(moment("1995-03-25T23:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1995-03-25T23:00:00+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1995-09-23T22:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1995-09-23T22:59:59+00:00 should be -240 minutes offset in AMST"); - t.equal(moment("1995-09-23T23:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1995-09-23T23:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1997-03-29T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1997-03-29T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("1997-10-25T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1997-10-25T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("1997-10-25T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1997-10-25T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1997-03-29T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1997-03-29T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("1997-10-25T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1997-10-25T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("1997-10-25T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1997-10-25T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1998-03-28T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1998-03-28T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("1998-10-24T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1998-10-24T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("1998-10-24T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1998-10-24T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1998-03-28T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1998-03-28T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("1998-10-24T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1998-10-24T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("1998-10-24T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1998-10-24T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "1999-03-27T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "1999-03-27T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("1999-10-30T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "1999-10-30T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("1999-10-30T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "1999-10-30T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "1999-03-27T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "1999-03-27T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("1999-10-30T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "1999-10-30T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("1999-10-30T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "1999-10-30T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2000-03-25T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2000-03-25T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2000-10-28T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2000-10-28T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2000-10-28T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2000-10-28T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2000-03-25T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2000-03-25T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2000-10-28T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2000-10-28T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2000-10-28T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2000-10-28T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2001-03-24T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2001-03-24T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2001-10-27T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2001-10-27T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2001-10-27T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2001-10-27T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2001-03-24T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2001-03-24T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2001-10-27T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2001-10-27T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2001-10-27T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2001-10-27T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2002-03-30T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2002-03-30T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2002-10-26T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2002-10-26T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2002-10-26T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2002-10-26T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2002-03-30T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2002-03-30T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2002-10-26T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2002-10-26T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2002-10-26T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2002-10-26T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2003-03-29T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2003-03-29T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2003-10-25T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2003-10-25T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2003-10-25T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2003-10-25T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2003-03-29T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2003-03-29T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2003-10-25T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2003-10-25T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2003-10-25T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2003-10-25T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2004-03-27T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2004-03-27T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2004-10-30T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2004-10-30T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2004-10-30T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2004-10-30T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2004-03-27T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2004-03-27T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2004-10-30T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2004-10-30T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2004-10-30T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2004-10-30T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2005-03-26T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2005-03-26T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2005-03-26T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2005-10-29T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2005-10-29T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2005-10-29T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2005-10-29T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2005-03-26T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2005-03-26T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2005-03-26T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2005-03-26T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2005-10-29T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2005-10-29T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2005-10-29T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2005-10-29T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2006-03-25T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2006-03-25T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2006-03-25T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2006-10-28T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2006-10-28T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2006-10-28T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2006-10-28T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2006-03-25T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2006-03-25T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2006-03-25T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2006-03-25T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2006-10-28T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2006-10-28T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2006-10-28T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2006-10-28T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2007-03-24T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2007-03-24T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2007-03-24T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2007-10-27T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2007-10-27T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2007-10-27T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2007-10-27T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2007-03-24T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2007-03-24T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2007-03-24T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2007-03-24T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2007-10-27T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2007-10-27T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2007-10-27T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2007-10-27T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2008-03-29T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2008-03-29T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2008-03-29T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2008-10-25T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2008-10-25T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2008-10-25T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2008-10-25T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2008-03-29T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2008-03-29T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2008-03-29T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2008-03-29T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2008-10-25T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2008-10-25T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2008-10-25T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2008-10-25T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2009-03-28T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2009-03-28T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2009-03-28T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2009-10-24T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2009-10-24T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2009-10-24T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2009-10-24T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2009-03-28T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2009-03-28T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2009-03-28T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2009-03-28T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2009-10-24T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2009-10-24T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2009-10-24T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2009-10-24T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2010-03-27T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2010-03-27T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2010-03-27T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2010-10-30T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2010-10-30T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2010-10-30T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2010-10-30T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2010-03-27T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2010-03-27T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2010-03-27T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2010-03-27T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2010-10-30T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2010-10-30T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2010-10-30T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2010-10-30T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "01:59:59", "2011-03-26T21:59:59+00:00 should be 01:59:59 AMT"); - t.equal(moment("2011-03-26T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "03:00:00", "2011-03-26T22:00:00+00:00 should be 03:00:00 AMST"); - t.equal(moment("2011-10-29T21:59:59+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:59:59", "2011-10-29T21:59:59+00:00 should be 02:59:59 AMST"); - t.equal(moment("2011-10-29T22:00:00+00:00").tz("Asia/Yerevan").format("HH:mm:ss"), "02:00:00", "2011-10-29T22:00:00+00:00 should be 02:00:00 AMT"); - - t.equal(moment("2011-03-26T21:59:59+00:00").tz("Asia/Yerevan").zone(), -240, "2011-03-26T21:59:59+00:00 should be -240 minutes offset in AMT"); - t.equal(moment("2011-03-26T22:00:00+00:00").tz("Asia/Yerevan").zone(), -300, "2011-03-26T22:00:00+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2011-10-29T21:59:59+00:00").tz("Asia/Yerevan").zone(), -300, "2011-10-29T21:59:59+00:00 should be -300 minutes offset in AMST"); - t.equal(moment("2011-10-29T22:00:00+00:00").tz("Asia/Yerevan").zone(), -240, "2011-10-29T22:00:00+00:00 should be -240 minutes offset in AMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/atlantic/azores.js b/tests/atlantic/azores.js deleted file mode 100644 index f620713e..00000000 --- a/tests/atlantic/azores.js +++ /dev/null @@ -1,1526 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/Azores"] = { - - "1911" : function (t) { - t.equal(moment("1911-05-24T01:54:31+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1911-05-24T01:54:31+00:00 should be 23:59:59 HMT"); - t.equal(moment("1911-05-24T01:54:32+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:54:32", "1911-05-24T01:54:32+00:00 should be 23:54:32 AZOT"); - - t.equal(moment("1911-05-24T01:54:31+00:00").tz("Atlantic/Azores").zone(), 6872 / 60, "1911-05-24T01:54:31+00:00 should be 6872 / 60 minutes offset in HMT"); - t.equal(moment("1911-05-24T01:54:32+00:00").tz("Atlantic/Azores").zone(), 120, "1911-05-24T01:54:32+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-06-18T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1916-06-18T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1916-06-18T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1916-06-18T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1916-11-01T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1916-11-01T01:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1916-11-01T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1916-11-01T02:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1916-06-18T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1916-06-18T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1916-06-18T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1916-06-18T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1916-11-01T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1916-11-01T01:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1916-11-01T02:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1916-11-01T02:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-01T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1917-03-01T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1917-03-01T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1917-03-01T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1917-10-15T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1917-10-15T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1917-10-15T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1917-10-15T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1917-03-01T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1917-03-01T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1917-03-01T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1917-03-01T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1917-10-15T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1917-10-15T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1917-10-15T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1917-10-15T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-02T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1918-03-02T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1918-03-02T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1918-03-02T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1918-10-15T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1918-10-15T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1918-10-15T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1918-10-15T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1918-03-02T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1918-03-02T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1918-03-02T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1918-03-02T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1918-10-15T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1918-10-15T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1918-10-15T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1918-10-15T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-01T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1919-03-01T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1919-03-01T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1919-03-01T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1919-10-15T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1919-10-15T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1919-10-15T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1919-10-15T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1919-03-01T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1919-03-01T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1919-03-01T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1919-03-01T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1919-10-15T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1919-10-15T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1919-10-15T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1919-10-15T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-03-01T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1920-03-01T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1920-03-01T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1920-03-01T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1920-10-15T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1920-10-15T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1920-10-15T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1920-10-15T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1920-03-01T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1920-03-01T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1920-03-01T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1920-03-01T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1920-10-15T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1920-10-15T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1920-10-15T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1920-10-15T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-03-01T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1921-03-01T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1921-03-01T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1921-03-01T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1921-10-15T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1921-10-15T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1921-10-15T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1921-10-15T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1921-03-01T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1921-03-01T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1921-03-01T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1921-03-01T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1921-10-15T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1921-10-15T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1921-10-15T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1921-10-15T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-17T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1924-04-17T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1924-04-17T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1924-04-17T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1924-10-15T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1924-10-15T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1924-10-15T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1924-10-15T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1924-04-17T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1924-04-17T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1924-04-17T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1924-04-17T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1924-10-15T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1924-10-15T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1924-10-15T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1924-10-15T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-18T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1926-04-18T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1926-04-18T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1926-04-18T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1926-10-03T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1926-10-03T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1926-10-03T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1926-10-03T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1926-04-18T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1926-04-18T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1926-04-18T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1926-04-18T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1926-10-03T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1926-10-03T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1926-10-03T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1926-10-03T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-10T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1927-04-10T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1927-04-10T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1927-04-10T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1927-10-02T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1927-10-02T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1927-10-02T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1927-10-02T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1927-04-10T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1927-04-10T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1927-04-10T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1927-04-10T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1927-10-02T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1927-10-02T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1927-10-02T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1927-10-02T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-15T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1928-04-15T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1928-04-15T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1928-04-15T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1928-10-07T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1928-10-07T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1928-10-07T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1928-10-07T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1928-04-15T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1928-04-15T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1928-04-15T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1928-04-15T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1928-10-07T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1928-10-07T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1928-10-07T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1928-10-07T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-21T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1929-04-21T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1929-04-21T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1929-04-21T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1929-10-06T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1929-10-06T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1929-10-06T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1929-10-06T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1929-04-21T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1929-04-21T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1929-04-21T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1929-04-21T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1929-10-06T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1929-10-06T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1929-10-06T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1929-10-06T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-19T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1931-04-19T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1931-04-19T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1931-04-19T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1931-10-04T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1931-10-04T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1931-10-04T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1931-10-04T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1931-04-19T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1931-04-19T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1931-04-19T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1931-04-19T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1931-10-04T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1931-10-04T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1931-10-04T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1931-10-04T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-03T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1932-04-03T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1932-04-03T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1932-04-03T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1932-10-02T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1932-10-02T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1932-10-02T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1932-10-02T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1932-04-03T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1932-04-03T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1932-04-03T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1932-04-03T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1932-10-02T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1932-10-02T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1932-10-02T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1932-10-02T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-08T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1934-04-08T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1934-04-08T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1934-04-08T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1934-10-07T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1934-10-07T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1934-10-07T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1934-10-07T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1934-04-08T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1934-04-08T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1934-04-08T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1934-04-08T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1934-10-07T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1934-10-07T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1934-10-07T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1934-10-07T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1935-03-31T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1935-03-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1935-03-31T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1935-10-06T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1935-10-06T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1935-10-06T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1935-10-06T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1935-03-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1935-03-31T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1935-03-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1935-03-31T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1935-10-06T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1935-10-06T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1935-10-06T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1935-10-06T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-19T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1936-04-19T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1936-04-19T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1936-04-19T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1936-10-04T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1936-10-04T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1936-10-04T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1936-10-04T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1936-04-19T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1936-04-19T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1936-04-19T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1936-04-19T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1936-10-04T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1936-10-04T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1936-10-04T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1936-10-04T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-04T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1937-04-04T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1937-04-04T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1937-04-04T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1937-10-03T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1937-10-03T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1937-10-03T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1937-10-03T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1937-04-04T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1937-04-04T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1937-04-04T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1937-04-04T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1937-10-03T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1937-10-03T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1937-10-03T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1937-10-03T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1938-03-27T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1938-03-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1938-03-27T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1938-10-02T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1938-10-02T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1938-10-02T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1938-10-02T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1938-03-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1938-03-27T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1938-03-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1938-03-27T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1938-10-02T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1938-10-02T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1938-10-02T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1938-10-02T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-16T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1939-04-16T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1939-04-16T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1939-04-16T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1939-11-19T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1939-11-19T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1939-11-19T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1939-11-19T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1939-04-16T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1939-04-16T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1939-04-16T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1939-04-16T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1939-11-19T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1939-11-19T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1939-11-19T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1939-11-19T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1940-02-25T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1940-02-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1940-02-25T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1940-10-06T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1940-10-06T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1940-10-06T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1940-10-06T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1940-02-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1940-02-25T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1940-02-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1940-02-25T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1940-10-06T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1940-10-06T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1940-10-06T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1940-10-06T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-06T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1941-04-06T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1941-04-06T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1941-04-06T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1941-10-06T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1941-10-06T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1941-10-06T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1941-10-06T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1941-04-06T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1941-04-06T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1941-04-06T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1941-04-06T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1941-10-06T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1941-10-06T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1941-10-06T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1941-10-06T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-15T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1942-03-15T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1942-03-15T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1942-03-15T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1942-04-25T23:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1942-04-25T23:59:59+00:00 should be 22:59:59 AZOST"); - t.equal(moment("1942-04-26T00:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1942-04-26T00:00:00+00:00 should be 00:00:00 AZOMT"); - t.equal(moment("1942-08-15T23:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1942-08-15T23:59:59+00:00 should be 23:59:59 AZOMT"); - t.equal(moment("1942-08-16T00:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1942-08-16T00:00:00+00:00 should be 23:00:00 AZOST"); - t.equal(moment("1942-10-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1942-10-25T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1942-10-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1942-10-25T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1942-03-15T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1942-03-15T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1942-03-15T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1942-03-15T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1942-04-25T23:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1942-04-25T23:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1942-04-26T00:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1942-04-26T00:00:00+00:00 should be 0 minutes offset in AZOMT"); - t.equal(moment("1942-08-15T23:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1942-08-15T23:59:59+00:00 should be 0 minutes offset in AZOMT"); - t.equal(moment("1942-08-16T00:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1942-08-16T00:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1942-10-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1942-10-25T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1942-10-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1942-10-25T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-14T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1943-03-14T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1943-03-14T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1943-03-14T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1943-04-17T23:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1943-04-17T23:59:59+00:00 should be 22:59:59 AZOST"); - t.equal(moment("1943-04-18T00:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1943-04-18T00:00:00+00:00 should be 00:00:00 AZOMT"); - t.equal(moment("1943-08-28T23:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1943-08-28T23:59:59+00:00 should be 23:59:59 AZOMT"); - t.equal(moment("1943-08-29T00:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1943-08-29T00:00:00+00:00 should be 23:00:00 AZOST"); - t.equal(moment("1943-10-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1943-10-31T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1943-10-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1943-10-31T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1943-03-14T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1943-03-14T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1943-03-14T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1943-03-14T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1943-04-17T23:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1943-04-17T23:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1943-04-18T00:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1943-04-18T00:00:00+00:00 should be 0 minutes offset in AZOMT"); - t.equal(moment("1943-08-28T23:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1943-08-28T23:59:59+00:00 should be 0 minutes offset in AZOMT"); - t.equal(moment("1943-08-29T00:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1943-08-29T00:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1943-10-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1943-10-31T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1943-10-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1943-10-31T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-12T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1944-03-12T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1944-03-12T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1944-03-12T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1944-04-22T23:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1944-04-22T23:59:59+00:00 should be 22:59:59 AZOST"); - t.equal(moment("1944-04-23T00:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1944-04-23T00:00:00+00:00 should be 00:00:00 AZOMT"); - t.equal(moment("1944-08-26T23:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1944-08-26T23:59:59+00:00 should be 23:59:59 AZOMT"); - t.equal(moment("1944-08-27T00:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1944-08-27T00:00:00+00:00 should be 23:00:00 AZOST"); - t.equal(moment("1944-10-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1944-10-29T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1944-10-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1944-10-29T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1944-03-12T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1944-03-12T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1944-03-12T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1944-03-12T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1944-04-22T23:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1944-04-22T23:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1944-04-23T00:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1944-04-23T00:00:00+00:00 should be 0 minutes offset in AZOMT"); - t.equal(moment("1944-08-26T23:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1944-08-26T23:59:59+00:00 should be 0 minutes offset in AZOMT"); - t.equal(moment("1944-08-27T00:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1944-08-27T00:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1944-10-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1944-10-29T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1944-10-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1944-10-29T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-03-11T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1945-03-11T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1945-03-11T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1945-03-11T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1945-04-21T23:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1945-04-21T23:59:59+00:00 should be 22:59:59 AZOST"); - t.equal(moment("1945-04-22T00:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1945-04-22T00:00:00+00:00 should be 00:00:00 AZOMT"); - t.equal(moment("1945-08-25T23:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1945-08-25T23:59:59+00:00 should be 23:59:59 AZOMT"); - t.equal(moment("1945-08-26T00:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1945-08-26T00:00:00+00:00 should be 23:00:00 AZOST"); - t.equal(moment("1945-10-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1945-10-28T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1945-10-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1945-10-28T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1945-03-11T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1945-03-11T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1945-03-11T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1945-03-11T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1945-04-21T23:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1945-04-21T23:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1945-04-22T00:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1945-04-22T00:00:00+00:00 should be 0 minutes offset in AZOMT"); - t.equal(moment("1945-08-25T23:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1945-08-25T23:59:59+00:00 should be 0 minutes offset in AZOMT"); - t.equal(moment("1945-08-26T00:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1945-08-26T00:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1945-10-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1945-10-28T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1945-10-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1945-10-28T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-07T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "22:59:59", "1946-04-07T00:59:59+00:00 should be 22:59:59 AZOT"); - t.equal(moment("1946-04-07T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1946-04-07T01:00:00+00:00 should be 00:00:00 AZOST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1946-10-06T00:59:59+00:00 should be 23:59:59 AZOST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:00:00", "1946-10-06T01:00:00+00:00 should be 23:00:00 AZOT"); - - t.equal(moment("1946-04-07T00:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1946-04-07T00:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1946-04-07T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1946-04-07T01:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1946-10-06T00:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1946-10-06T01:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-06T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1947-04-06T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1947-04-06T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1947-04-06T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1947-10-05T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1947-10-05T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1947-10-05T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1947-10-05T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1947-04-06T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1947-04-06T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1947-04-06T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1947-04-06T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1947-10-05T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1947-10-05T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1947-10-05T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1947-10-05T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-04T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1948-04-04T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1948-04-04T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1948-04-04T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1948-10-03T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1948-10-03T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1948-10-03T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1948-10-03T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1948-04-04T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1948-04-04T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1948-04-04T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1948-04-04T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1948-10-03T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1948-10-03T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1948-10-03T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1948-10-03T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-03T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1949-04-03T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1949-04-03T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1949-04-03T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1949-10-02T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1949-10-02T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1949-10-02T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1949-10-02T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1949-04-03T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1949-04-03T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1949-04-03T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1949-04-03T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1949-10-02T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1949-10-02T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1949-10-02T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1949-10-02T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1951-04-01T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1951-04-01T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1951-04-01T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1951-10-07T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1951-10-07T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1951-10-07T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1951-10-07T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1951-04-01T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1951-04-01T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1951-04-01T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1951-04-01T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1951-10-07T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1951-10-07T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1951-10-07T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1951-10-07T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-06T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1952-04-06T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1952-04-06T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1952-04-06T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1952-10-05T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1952-10-05T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1952-10-05T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1952-10-05T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1952-04-06T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1952-04-06T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1952-04-06T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1952-04-06T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1952-10-05T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1952-10-05T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1952-10-05T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1952-10-05T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-05T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1953-04-05T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1953-04-05T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1953-04-05T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1953-10-04T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1953-10-04T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1953-10-04T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1953-10-04T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1953-04-05T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1953-04-05T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1953-04-05T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1953-04-05T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1953-10-04T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1953-10-04T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1953-10-04T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1953-10-04T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-04T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1954-04-04T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1954-04-04T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1954-04-04T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1954-10-03T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1954-10-03T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1954-10-03T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1954-10-03T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1954-04-04T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1954-04-04T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1954-04-04T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1954-04-04T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1954-10-03T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1954-10-03T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1954-10-03T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1954-10-03T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-03T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1955-04-03T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1955-04-03T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1955-04-03T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1955-10-02T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1955-10-02T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1955-10-02T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1955-10-02T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1955-04-03T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1955-04-03T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1955-04-03T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1955-04-03T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1955-10-02T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1955-10-02T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1955-10-02T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1955-10-02T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-01T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1956-04-01T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1956-04-01T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1956-04-01T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1956-10-07T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1956-10-07T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1956-10-07T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1956-10-07T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1956-04-01T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1956-04-01T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1956-04-01T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1956-04-01T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1956-10-07T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1956-10-07T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1956-10-07T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1956-10-07T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-07T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1957-04-07T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1957-04-07T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1957-04-07T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1957-10-06T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1957-10-06T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1957-10-06T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1957-10-06T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1957-04-07T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1957-04-07T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1957-04-07T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1957-04-07T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1957-10-06T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1957-10-06T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1957-10-06T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1957-10-06T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-06T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1958-04-06T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1958-04-06T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1958-04-06T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1958-10-05T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1958-10-05T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1958-10-05T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1958-10-05T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1958-04-06T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1958-04-06T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1958-04-06T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1958-04-06T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1958-10-05T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1958-10-05T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1958-10-05T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1958-10-05T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-05T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1959-04-05T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1959-04-05T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1959-04-05T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1959-10-04T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1959-10-04T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1959-10-04T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1959-10-04T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1959-04-05T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1959-04-05T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1959-04-05T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1959-04-05T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1959-10-04T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1959-10-04T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1959-10-04T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1959-10-04T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-03T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1960-04-03T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1960-04-03T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1960-04-03T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1960-10-02T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1960-10-02T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1960-10-02T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1960-10-02T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1960-04-03T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1960-04-03T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1960-04-03T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1960-04-03T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1960-10-02T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1960-10-02T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1960-10-02T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1960-10-02T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-02T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1961-04-02T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1961-04-02T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1961-04-02T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1961-10-01T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1961-10-01T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1961-10-01T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1961-10-01T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1961-04-02T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1961-04-02T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1961-04-02T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1961-04-02T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1961-10-01T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1961-10-01T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1961-10-01T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1961-10-01T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-01T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1962-04-01T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1962-04-01T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1962-04-01T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1962-10-07T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1962-10-07T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1962-10-07T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1962-10-07T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1962-04-01T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1962-04-01T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1962-04-01T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1962-04-01T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1962-10-07T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1962-10-07T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1962-10-07T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1962-10-07T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-07T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1963-04-07T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1963-04-07T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1963-04-07T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1963-10-06T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1963-10-06T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1963-10-06T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1963-10-06T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1963-04-07T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1963-04-07T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1963-04-07T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1963-04-07T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1963-10-06T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1963-10-06T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1963-10-06T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1963-10-06T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-05T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1964-04-05T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1964-04-05T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1964-04-05T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1964-10-04T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1964-10-04T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1964-10-04T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1964-10-04T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1964-04-05T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1964-04-05T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1964-04-05T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1964-04-05T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1964-10-04T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1964-10-04T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1964-10-04T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1964-10-04T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-04T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1965-04-04T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1965-04-04T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1965-04-04T04:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1965-10-03T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:59:59", "1965-10-03T03:59:59+00:00 should be 02:59:59 AZOST"); - t.equal(moment("1965-10-03T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1965-10-03T04:00:00+00:00 should be 02:00:00 AZOT"); - - t.equal(moment("1965-04-04T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1965-04-04T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1965-04-04T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1965-04-04T04:00:00+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1965-10-03T03:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1965-10-03T03:59:59+00:00 should be 60 minutes offset in AZOST"); - t.equal(moment("1965-10-03T04:00:00+00:00").tz("Atlantic/Azores").zone(), 120, "1965-10-03T04:00:00+00:00 should be 120 minutes offset in AZOT"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-03T03:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1966-04-03T03:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1966-04-03T04:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1966-04-03T04:00:00+00:00 should be 03:00:00 AZOT"); - - t.equal(moment("1966-04-03T03:59:59+00:00").tz("Atlantic/Azores").zone(), 120, "1966-04-03T03:59:59+00:00 should be 120 minutes offset in AZOT"); - t.equal(moment("1966-04-03T04:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1966-04-03T04:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1977-03-27T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1977-03-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1977-03-27T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1977-09-25T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1977-09-25T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1977-03-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1977-03-27T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1977-03-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1977-03-27T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1977-09-25T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1977-09-25T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1978-04-02T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1978-04-02T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1978-10-01T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1978-10-01T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1978-04-02T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1978-04-02T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1978-10-01T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1978-10-01T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1979-04-01T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1979-04-01T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1979-09-30T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1979-09-30T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1979-09-30T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1979-09-30T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1979-04-01T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1979-04-01T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1979-09-30T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1979-09-30T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1979-09-30T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1979-09-30T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1980-03-30T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1980-03-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1980-03-30T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1980-09-28T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1980-09-28T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1980-09-28T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1980-09-28T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1980-03-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1980-03-30T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1980-03-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1980-03-30T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1980-09-28T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1980-09-28T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1980-09-28T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1980-09-28T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1981-03-29T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1981-03-29T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1981-03-29T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1981-09-27T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1981-09-27T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1981-09-27T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1981-09-27T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1981-03-29T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1981-03-29T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1981-03-29T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1981-03-29T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1981-09-27T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1981-09-27T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1981-09-27T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1981-09-27T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1982-03-28T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1982-03-28T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1982-03-28T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1982-09-26T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1982-09-26T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1982-09-26T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1982-09-26T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1982-03-28T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1982-03-28T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1982-03-28T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1982-03-28T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1982-09-26T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1982-09-26T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1982-09-26T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1982-09-26T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T02:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1983-03-27T02:59:59+00:00 should be 01:59:59 AZOT"); - t.equal(moment("1983-03-27T03:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "03:00:00", "1983-03-27T03:00:00+00:00 should be 03:00:00 AZOST"); - t.equal(moment("1983-09-25T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1983-09-25T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1983-09-25T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1983-09-25T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1983-03-27T02:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1983-03-27T02:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1983-03-27T03:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1983-03-27T03:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1983-09-25T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1983-09-25T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1983-09-25T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1983-09-25T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1984-03-25T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1984-03-25T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1984-03-25T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1984-09-30T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1984-09-30T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1984-09-30T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1984-09-30T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1984-03-25T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1984-03-25T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1984-03-25T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1984-03-25T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1984-09-30T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1984-09-30T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1984-09-30T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1984-09-30T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1985-03-31T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1985-03-31T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1985-03-31T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1985-09-29T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1985-09-29T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1985-09-29T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1985-09-29T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1985-03-31T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1985-03-31T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1985-03-31T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1985-03-31T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1985-09-29T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1985-09-29T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1985-09-29T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1985-09-29T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1986-03-30T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1986-03-30T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1986-03-30T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1986-09-28T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1986-09-28T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1986-09-28T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1986-09-28T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1986-03-30T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1986-03-30T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1986-03-30T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1986-03-30T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1986-09-28T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1986-09-28T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1986-09-28T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1986-09-28T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1987-03-29T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1987-03-29T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1987-03-29T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1987-09-27T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1987-09-27T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1987-09-27T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1987-09-27T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1987-03-29T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1987-03-29T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1987-03-29T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1987-03-29T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1987-09-27T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1987-09-27T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1987-09-27T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1987-09-27T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1988-03-27T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1988-03-27T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1988-03-27T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1988-09-25T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1988-09-25T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1988-09-25T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1988-09-25T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1988-03-27T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1988-03-27T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1988-03-27T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1988-03-27T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1988-09-25T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1988-09-25T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1988-09-25T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1988-09-25T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1989-03-26T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1989-03-26T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1989-03-26T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1989-09-24T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1989-09-24T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1989-09-24T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1989-09-24T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1989-03-26T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1989-03-26T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1989-03-26T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1989-03-26T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1989-09-24T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1989-09-24T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1989-09-24T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1989-09-24T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1990-03-25T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1990-03-25T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1990-03-25T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1990-09-30T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1990-09-30T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1990-09-30T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1990-09-30T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1990-03-25T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1990-03-25T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1990-03-25T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1990-03-25T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1990-09-30T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1990-09-30T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1990-09-30T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1990-09-30T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1991-03-31T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1991-03-31T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1991-03-31T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1991-09-29T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1991-09-29T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1991-09-29T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1991-09-29T02:00:00+00:00 should be 01:00:00 AZOT"); - - t.equal(moment("1991-03-31T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1991-03-31T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1991-03-31T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1991-03-31T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1991-09-29T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1991-09-29T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1991-09-29T02:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1991-09-29T02:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1992-03-29T01:59:59+00:00 should be 00:59:59 AZOT"); - t.equal(moment("1992-03-29T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1992-03-29T02:00:00+00:00 should be 02:00:00 AZOST"); - t.equal(moment("1992-09-27T01:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:59:59", "1992-09-27T01:59:59+00:00 should be 01:59:59 AZOST"); - t.equal(moment("1992-09-27T02:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "02:00:00", "1992-09-27T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1992-03-29T01:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1992-03-29T01:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1992-03-29T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1992-03-29T02:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1992-09-27T01:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1992-09-27T01:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1992-09-27T02:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1992-09-27T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1993-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1993-03-28T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1993-09-26T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1993-09-26T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1993-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1993-03-28T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1993-09-26T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1993-09-26T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1994-03-27T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1994-03-27T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1994-09-25T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1994-09-25T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1994-03-27T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1994-03-27T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1994-09-25T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1994-09-25T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1995-03-26T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1995-03-26T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1995-09-24T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1995-09-24T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1995-03-26T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1995-03-26T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1995-09-24T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1995-09-24T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1996-03-31T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1996-03-31T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1996-10-27T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1996-10-27T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1996-03-31T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1996-03-31T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1996-10-27T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1996-10-27T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1997-03-30T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1997-03-30T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1997-10-26T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1997-10-26T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1997-03-30T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1997-03-30T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1997-10-26T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1997-10-26T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1998-03-29T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1998-03-29T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1998-10-25T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1998-10-25T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1998-03-29T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1998-03-29T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1998-10-25T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1998-10-25T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "1999-03-28T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "1999-03-28T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "1999-10-31T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "1999-10-31T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "1999-03-28T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "1999-03-28T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "1999-10-31T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "1999-10-31T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2000-03-26T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2000-03-26T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2000-10-29T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2000-10-29T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2000-03-26T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2000-03-26T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2000-10-29T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2000-10-29T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2001-03-25T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2001-03-25T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2001-10-28T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2001-10-28T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2001-03-25T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2001-03-25T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2001-10-28T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2001-10-28T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2002-03-31T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2002-03-31T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2002-10-27T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2002-10-27T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2002-03-31T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2002-03-31T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2002-10-27T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2002-10-27T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2003-03-30T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2003-03-30T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2003-10-26T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2003-10-26T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2003-03-30T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2003-03-30T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2003-10-26T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2003-10-26T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2004-03-28T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2004-03-28T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2004-10-31T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2004-10-31T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2004-03-28T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2004-03-28T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2004-10-31T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2004-10-31T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2005-03-27T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2005-03-27T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2005-10-30T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2005-10-30T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2005-03-27T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2005-03-27T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2005-10-30T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2005-10-30T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2006-03-26T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2006-03-26T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2006-10-29T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2006-10-29T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2006-03-26T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2006-03-26T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2006-10-29T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2006-10-29T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2007-03-25T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2007-03-25T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2007-10-28T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2007-10-28T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2007-03-25T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2007-03-25T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2007-10-28T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2007-10-28T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2008-03-30T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2008-03-30T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2008-10-26T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2008-10-26T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2008-03-30T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2008-03-30T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2008-10-26T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2008-10-26T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2009-03-29T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2009-03-29T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2009-10-25T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2009-10-25T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2009-03-29T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2009-03-29T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2009-10-25T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2009-10-25T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2010-03-28T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2010-03-28T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2010-10-31T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2010-10-31T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2010-03-28T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2010-03-28T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2010-10-31T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2010-10-31T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2011-03-27T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2011-03-27T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2011-10-30T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2011-10-30T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2011-03-27T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2011-03-27T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2011-10-30T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2011-10-30T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2012-03-25T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2012-03-25T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2012-10-28T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2012-10-28T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2012-03-25T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2012-03-25T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2012-10-28T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2012-10-28T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2013-03-31T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2013-03-31T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2013-10-27T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2013-10-27T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2013-03-31T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2013-03-31T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2013-10-27T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2013-10-27T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2014-03-30T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2014-03-30T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2014-10-26T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2014-10-26T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2014-03-30T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2014-03-30T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2014-10-26T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2014-10-26T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2015-03-29T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2015-03-29T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2015-10-25T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2015-10-25T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2015-03-29T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2015-03-29T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2015-10-25T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2015-10-25T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2016-03-27T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2016-03-27T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2016-10-30T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2016-10-30T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2016-03-27T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2016-03-27T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2016-10-30T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2016-10-30T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2017-03-26T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2017-03-26T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2017-10-29T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2017-10-29T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2017-03-26T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2017-03-26T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2017-10-29T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2017-10-29T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2018-03-25T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2018-03-25T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2018-10-28T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2018-10-28T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2018-03-25T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2018-03-25T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2018-10-28T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2018-10-28T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2019-03-31T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2019-03-31T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2019-10-27T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2019-10-27T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2019-03-31T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2019-03-31T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2019-10-27T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2019-10-27T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2020-03-29T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2020-03-29T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2020-10-25T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2020-10-25T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2020-03-29T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2020-03-29T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2020-10-25T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2020-10-25T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2021-03-28T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2021-03-28T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2021-10-31T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2021-10-31T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2021-03-28T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2021-03-28T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2021-10-31T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2021-10-31T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2022-03-27T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2022-03-27T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2022-10-30T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2022-10-30T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2022-03-27T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2022-03-27T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2022-10-30T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2022-10-30T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2023-03-26T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2023-03-26T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2023-10-29T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2023-10-29T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2023-03-26T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2023-03-26T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2023-10-29T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2023-10-29T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2024-03-31T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2024-03-31T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2024-10-27T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2024-10-27T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2024-03-31T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2024-03-31T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2024-10-27T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2024-10-27T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2025-03-30T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2025-03-30T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2025-10-26T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2025-10-26T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2025-03-30T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2025-03-30T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2025-10-26T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2025-10-26T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2026-03-29T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2026-03-29T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2026-10-25T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2026-10-25T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2026-03-29T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2026-03-29T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2026-10-25T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2026-10-25T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2027-03-28T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2027-03-28T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2027-10-31T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2027-10-31T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2027-03-28T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2027-03-28T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2027-10-31T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2027-10-31T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2028-03-26T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2028-03-26T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2028-10-29T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2028-10-29T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2028-03-26T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2028-03-26T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2028-10-29T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2028-10-29T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2029-03-25T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2029-03-25T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2029-10-28T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2029-10-28T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2029-03-25T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2029-03-25T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2029-10-28T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2029-10-28T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2030-03-31T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2030-03-31T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2030-10-27T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2030-10-27T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2030-03-31T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2030-03-31T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2030-10-27T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2030-10-27T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2031-03-30T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2031-03-30T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2031-10-26T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2031-10-26T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2031-03-30T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2031-03-30T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2031-10-26T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2031-10-26T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2032-03-28T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2032-03-28T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2032-10-31T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2032-10-31T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2032-03-28T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2032-03-28T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2032-10-31T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2032-10-31T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2033-03-27T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2033-03-27T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2033-10-30T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2033-10-30T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2033-03-27T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2033-03-27T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2033-10-30T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2033-10-30T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2034-03-26T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2034-03-26T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2034-10-29T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2034-10-29T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2034-03-26T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2034-03-26T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2034-10-29T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2034-10-29T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2035-03-25T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2035-03-25T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2035-10-28T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2035-10-28T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2035-03-25T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2035-03-25T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2035-10-28T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2035-10-28T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2036-03-30T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2036-03-30T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2036-10-26T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2036-10-26T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2036-03-30T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2036-03-30T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2036-10-26T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2036-10-26T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "23:59:59", "2037-03-29T00:59:59+00:00 should be 23:59:59 AZOT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "01:00:00", "2037-03-29T01:00:00+00:00 should be 01:00:00 AZOST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:59:59", "2037-10-25T00:59:59+00:00 should be 00:59:59 AZOST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Atlantic/Azores").format("HH:mm:ss"), "00:00:00", "2037-10-25T01:00:00+00:00 should be 00:00:00 AZOT"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Atlantic/Azores").zone(), 60, "2037-03-29T00:59:59+00:00 should be 60 minutes offset in AZOT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Atlantic/Azores").zone(), 0, "2037-03-29T01:00:00+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Atlantic/Azores").zone(), 0, "2037-10-25T00:59:59+00:00 should be 0 minutes offset in AZOST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Atlantic/Azores").zone(), 60, "2037-10-25T01:00:00+00:00 should be 60 minutes offset in AZOT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/atlantic/bermuda.js b/tests/atlantic/bermuda.js deleted file mode 100644 index 920c6935..00000000 --- a/tests/atlantic/bermuda.js +++ /dev/null @@ -1,910 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/Bermuda"] = { - - "1930" : function (t) { - t.equal(moment("1930-01-01T06:19:17+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1930-01-01T06:19:17+00:00 should be 01:59:59 LMT"); - t.equal(moment("1930-01-01T06:19:18+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "02:19:18", "1930-01-01T06:19:18+00:00 should be 02:19:18 AST"); - - t.equal(moment("1930-01-01T06:19:17+00:00").tz("Atlantic/Bermuda").zone(), 15558 / 60, "1930-01-01T06:19:17+00:00 should be 15558 / 60 minutes offset in LMT"); - t.equal(moment("1930-01-01T06:19:18+00:00").tz("Atlantic/Bermuda").zone(), 240, "1930-01-01T06:19:18+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-28T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1974-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1974-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1974-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1974-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1974-04-28T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1974-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1974-04-28T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1974-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1974-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1974-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1974-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-27T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1975-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1975-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1975-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1975-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1975-04-27T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1975-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1975-04-27T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1975-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1975-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1975-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1975-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1976-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1976-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1976-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1976-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1976-04-25T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1976-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1976-04-25T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1976-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1976-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1976-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1976-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1977-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1977-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1977-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1977-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1977-04-24T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1977-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1977-04-24T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1977-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1977-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1977-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1977-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1978-04-30T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1978-04-30T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1978-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1978-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1978-04-30T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1978-04-30T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1978-04-30T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1978-04-30T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1978-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1978-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1978-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1979-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1979-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1979-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1979-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1979-04-29T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1979-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1979-04-29T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1979-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1979-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1979-10-28T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1979-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1980-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1980-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1980-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1980-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1980-04-27T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1980-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1980-04-27T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1980-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1980-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1980-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1980-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1981-04-26T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1981-04-26T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1981-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1981-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1981-04-26T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1981-04-26T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1981-04-26T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1981-04-26T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1981-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1981-10-25T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1981-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1982-04-25T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1982-04-25T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1982-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1982-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1982-04-25T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1982-04-25T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1982-04-25T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1982-04-25T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1982-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1982-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1982-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1983-04-24T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1983-04-24T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1983-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1983-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1983-04-24T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1983-04-24T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1983-04-24T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1983-04-24T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1983-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1983-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1983-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1984-04-29T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1984-04-29T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1984-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1984-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1984-04-29T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1984-04-29T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1984-04-29T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1984-04-29T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1984-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1984-10-28T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1984-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1985-04-28T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1985-04-28T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1985-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1985-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1985-04-28T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1985-04-28T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1985-04-28T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1985-04-28T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1985-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1985-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1985-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1986-04-27T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1986-04-27T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1986-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1986-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1986-04-27T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1986-04-27T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1986-04-27T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1986-04-27T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1986-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1986-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1986-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1987-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1987-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1987-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1987-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1987-04-05T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1987-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1987-04-05T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1987-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1987-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1987-10-25T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1987-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1988-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1988-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1988-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1988-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1988-04-03T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1988-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1988-04-03T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1988-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1988-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1988-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1988-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1989-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1989-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1989-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1989-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1989-04-02T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1989-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1989-04-02T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1989-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1989-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1989-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1989-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1990-04-01T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1990-04-01T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1990-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1990-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1990-04-01T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1990-04-01T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1990-04-01T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1990-04-01T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1990-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1990-10-28T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1990-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1991-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1991-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1991-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1991-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1991-04-07T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1991-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1991-04-07T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1991-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1991-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1991-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1991-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1992-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1992-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1992-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1992-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1992-04-05T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1992-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1992-04-05T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1992-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1992-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1992-10-25T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1992-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1993-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1993-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1993-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1993-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1993-04-04T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1993-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1993-04-04T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1993-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1993-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1993-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1993-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1994-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1994-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1994-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1994-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1994-04-03T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1994-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1994-04-03T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1994-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1994-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1994-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1994-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1995-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1995-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1995-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1995-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1995-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1995-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1995-04-02T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1995-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1995-04-02T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1995-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1995-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1995-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1995-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1996-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1996-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1996-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1996-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1996-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1996-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1996-04-07T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1996-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1996-04-07T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1996-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1996-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1996-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1996-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1997-04-06T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1997-04-06T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1997-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1997-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1997-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1997-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1997-04-06T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1997-04-06T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1997-04-06T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1997-04-06T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1997-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1997-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1997-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1998-04-05T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1998-04-05T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1998-04-05T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1998-10-25T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1998-10-25T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1998-04-05T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1998-04-05T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1998-04-05T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1998-04-05T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1998-10-25T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1998-10-25T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1998-10-25T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1999-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("1999-04-04T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "1999-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "1999-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "1999-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("1999-04-04T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "1999-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("1999-04-04T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "1999-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "1999-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("1999-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "1999-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2000-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2000-04-02T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2000-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2000-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2000-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2000-04-02T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2000-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2000-04-02T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2000-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2000-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2000-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2000-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2001-04-01T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2001-04-01T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2001-04-01T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2001-10-28T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2001-10-28T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2001-04-01T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2001-04-01T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2001-04-01T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2001-04-01T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2001-10-28T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2001-10-28T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2001-10-28T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2002-04-07T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2002-04-07T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2002-04-07T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2002-10-27T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2002-10-27T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2002-04-07T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2002-04-07T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2002-04-07T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2002-04-07T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2002-10-27T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2002-10-27T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2002-10-27T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2003-04-06T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2003-04-06T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2003-04-06T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2003-10-26T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2003-10-26T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2003-04-06T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2003-04-06T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2003-04-06T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2003-04-06T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2003-10-26T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2003-10-26T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2003-10-26T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2004-04-04T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2004-04-04T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2004-04-04T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2004-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2004-10-31T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2004-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2004-10-31T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2004-04-04T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2004-04-04T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2004-04-04T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2004-04-04T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2004-10-31T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2004-10-31T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2004-10-31T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2005-04-03T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2005-04-03T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2005-04-03T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2005-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2005-10-30T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2005-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2005-10-30T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2005-04-03T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2005-04-03T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2005-04-03T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2005-04-03T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2005-10-30T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2005-10-30T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2005-10-30T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2006-04-02T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2006-04-02T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2006-04-02T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2006-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2006-10-29T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2006-10-29T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2006-04-02T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2006-04-02T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2006-04-02T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2006-04-02T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2006-10-29T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2006-10-29T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2006-10-29T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2007-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2007-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2007-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2007-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2007-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2007-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2007-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2007-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2007-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2007-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2007-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2008-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2008-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2008-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2008-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2008-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2008-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2008-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2008-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2008-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2008-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2008-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2009-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2009-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2009-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2009-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2009-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2009-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2009-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2009-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2009-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2009-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2009-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2010-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2010-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2010-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2010-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2010-03-14T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2010-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2010-03-14T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2010-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2010-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2010-11-07T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2010-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2011-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2011-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2011-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2011-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2011-03-13T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2011-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2011-03-13T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2011-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2011-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2011-11-06T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2011-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2012-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2012-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2012-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2012-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2012-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2012-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2012-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2012-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2012-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2012-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2012-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2013-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2013-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2013-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2013-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2013-03-10T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2013-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2013-03-10T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2013-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2013-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2013-11-03T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2013-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2014-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2014-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2014-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2014-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2014-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2014-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2014-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2014-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2014-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2014-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2014-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2015-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2015-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2015-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2015-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2015-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2015-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2015-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2015-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2015-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2015-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2015-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2016-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2016-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2016-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2016-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2016-03-13T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2016-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2016-03-13T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2016-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2016-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2016-11-06T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2016-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2017-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2017-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2017-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2017-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2017-03-12T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2017-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2017-03-12T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2017-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2017-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2017-11-05T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2017-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2018-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2018-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2018-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2018-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2018-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2018-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2018-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2018-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2018-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2018-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2018-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2019-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2019-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2019-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2019-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2019-03-10T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2019-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2019-03-10T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2019-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2019-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2019-11-03T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2019-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2020-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2020-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2020-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2020-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2020-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2020-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2020-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2020-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2020-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2020-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2020-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2021-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2021-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2021-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2021-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2021-03-14T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2021-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2021-03-14T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2021-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2021-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2021-11-07T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2021-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2022-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2022-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2022-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2022-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2022-03-13T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2022-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2022-03-13T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2022-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2022-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2022-11-06T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2022-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2023-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2023-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2023-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2023-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2023-03-12T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2023-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2023-03-12T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2023-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2023-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2023-11-05T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2023-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2024-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2024-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2024-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2024-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2024-03-10T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2024-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2024-03-10T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2024-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2024-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2024-11-03T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2024-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2025-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2025-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2025-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2025-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2025-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2025-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2025-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2025-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2025-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2025-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2025-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2026-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2026-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2026-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2026-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2026-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2026-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2026-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2026-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2026-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2026-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2026-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2027-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2027-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2027-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2027-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2027-03-14T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2027-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2027-03-14T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2027-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2027-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2027-11-07T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2027-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2028-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2028-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2028-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2028-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2028-03-12T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2028-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2028-03-12T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2028-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2028-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2028-11-05T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2028-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2029-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2029-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2029-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2029-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2029-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2029-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2029-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2029-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2029-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2029-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2029-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2030-03-10T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2030-03-10T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2030-11-03T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2030-11-03T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2030-03-10T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2030-03-10T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2030-03-10T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2030-03-10T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2030-11-03T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2030-11-03T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2030-11-03T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2031-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2031-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2031-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2031-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2031-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2031-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2031-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2031-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2031-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2031-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2031-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2032-03-14T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2032-03-14T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2032-11-07T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2032-11-07T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2032-03-14T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2032-03-14T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2032-03-14T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2032-03-14T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2032-11-07T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2032-11-07T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2032-11-07T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2033-03-13T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2033-03-13T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2033-11-06T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2033-11-06T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2033-03-13T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2033-03-13T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2033-03-13T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2033-03-13T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2033-11-06T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2033-11-06T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2033-11-06T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2034-03-12T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2034-03-12T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2034-11-05T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2034-11-05T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2034-03-12T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2034-03-12T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2034-03-12T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2034-03-12T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2034-11-05T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2034-11-05T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2034-11-05T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2035-03-11T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2035-03-11T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2035-11-04T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2035-11-04T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2035-03-11T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2035-03-11T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2035-03-11T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2035-03-11T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2035-11-04T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2035-11-04T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2035-11-04T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2036-03-09T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2036-03-09T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2036-11-02T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2036-11-02T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2036-03-09T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2036-03-09T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2036-03-09T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2036-03-09T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2036-11-02T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2036-11-02T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2036-11-02T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2037-03-08T05:59:59+00:00 should be 01:59:59 AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "03:00:00", "2037-03-08T06:00:00+00:00 should be 03:00:00 ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:59:59", "2037-11-01T04:59:59+00:00 should be 01:59:59 ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").format("HH:mm:ss"), "01:00:00", "2037-11-01T05:00:00+00:00 should be 01:00:00 AST"); - - t.equal(moment("2037-03-08T05:59:59+00:00").tz("Atlantic/Bermuda").zone(), 240, "2037-03-08T05:59:59+00:00 should be 240 minutes offset in AST"); - t.equal(moment("2037-03-08T06:00:00+00:00").tz("Atlantic/Bermuda").zone(), 180, "2037-03-08T06:00:00+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T04:59:59+00:00").tz("Atlantic/Bermuda").zone(), 180, "2037-11-01T04:59:59+00:00 should be 180 minutes offset in ADT"); - t.equal(moment("2037-11-01T05:00:00+00:00").tz("Atlantic/Bermuda").zone(), 240, "2037-11-01T05:00:00+00:00 should be 240 minutes offset in AST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/atlantic/canary.js b/tests/atlantic/canary.js deleted file mode 100644 index 0e3fda1c..00000000 --- a/tests/atlantic/canary.js +++ /dev/null @@ -1,836 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/Canary"] = { - - "1922" : function (t) { - t.equal(moment("1922-03-01T01:01:35+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "23:59:59", "1922-03-01T01:01:35+00:00 should be 23:59:59 LMT"); - t.equal(moment("1922-03-01T01:01:36+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:01:36", "1922-03-01T01:01:36+00:00 should be 00:01:36 CANT"); - - t.equal(moment("1922-03-01T01:01:35+00:00").tz("Atlantic/Canary").zone(), 3696 / 60, "1922-03-01T01:01:35+00:00 should be 3696 / 60 minutes offset in LMT"); - t.equal(moment("1922-03-01T01:01:36+00:00").tz("Atlantic/Canary").zone(), 60, "1922-03-01T01:01:36+00:00 should be 60 minutes offset in CANT"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-09-30T01:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1946-09-30T01:59:59+00:00 should be 00:59:59 CANT"); - t.equal(moment("1946-09-30T02:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1946-09-30T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1946-09-30T01:59:59+00:00").tz("Atlantic/Canary").zone(), 60, "1946-09-30T01:59:59+00:00 should be 60 minutes offset in CANT"); - t.equal(moment("1946-09-30T02:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1946-09-30T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-05T23:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "23:59:59", "1980-04-05T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1980-04-06T00:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1980-04-06T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1980-09-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1980-09-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1980-04-05T23:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1980-04-05T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1980-04-06T00:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1980-04-06T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1980-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1980-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1981-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1981-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1981-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1981-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1981-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1981-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1981-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1981-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1982-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1982-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1982-09-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1982-09-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1982-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1982-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1982-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1982-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1983-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1983-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1983-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1983-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1983-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1983-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1983-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1983-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1984-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1984-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1984-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1984-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1984-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1984-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1984-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1984-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1985-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1985-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1985-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1985-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1985-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1985-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1985-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1985-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1986-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1986-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1986-09-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1986-09-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1986-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1986-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1986-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1986-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1987-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1987-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1987-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1987-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1987-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1987-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1987-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1987-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1988-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1988-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1988-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1988-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1988-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1988-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1988-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1988-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1989-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1989-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1989-09-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1989-09-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1989-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1989-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1989-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1989-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1990-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1990-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1990-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1990-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1990-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1990-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1990-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1990-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1991-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1991-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1991-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1991-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1991-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1991-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1991-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1991-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1992-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1992-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1992-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1992-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1992-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1992-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1992-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1992-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1993-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1993-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1993-09-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1993-09-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1993-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1993-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1993-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1993-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1994-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1994-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1994-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1994-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1994-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1994-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1994-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1994-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1995-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1995-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1995-09-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1995-09-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1995-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1995-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1995-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1995-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1996-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1996-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1996-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1996-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1996-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1996-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1996-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1996-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1997-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1997-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1997-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1997-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1997-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1997-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1997-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1997-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1998-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1998-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1998-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1998-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1998-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1998-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1998-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1998-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1999-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1999-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1999-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1999-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1999-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1999-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1999-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1999-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2000-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2000-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2000-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2000-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2000-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2000-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2000-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2000-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2001-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2001-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2001-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2001-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2001-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2001-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2001-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2001-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2002-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2002-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2002-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2002-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2002-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2002-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2002-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2002-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2003-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2003-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2003-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2003-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2003-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2003-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2003-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2003-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2004-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2004-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2004-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2004-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2004-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2004-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2004-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2004-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2005-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2005-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2005-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2005-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2005-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2005-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2005-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2005-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2006-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2006-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2006-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2006-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2006-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2006-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2006-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2006-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2007-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2007-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2007-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2007-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2007-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2007-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2007-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2007-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2008-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2008-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2008-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2008-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2008-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2008-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2008-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2008-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2009-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2009-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2009-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2009-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2009-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2009-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2009-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2009-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2010-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2010-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2010-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2010-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2010-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2010-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2010-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2010-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2011-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2011-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2011-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2011-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2011-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2011-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2011-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2011-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2012-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2012-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2012-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2012-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2012-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2012-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2012-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2012-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2013-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2013-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2013-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2013-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2013-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2013-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2013-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2013-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2014-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2014-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2014-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2014-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2014-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2014-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2014-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2014-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2015-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2015-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2015-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2015-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2015-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2015-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2015-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2015-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2016-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2016-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2016-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2016-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2016-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2016-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2016-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2016-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2017-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2017-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2017-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2017-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2017-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2017-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2017-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2017-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2018-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2018-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2018-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2018-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2018-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2018-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2018-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2018-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2019-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2019-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2019-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2019-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2019-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2019-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2019-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2019-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2020-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2020-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2020-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2020-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2020-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2020-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2020-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2020-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2021-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2021-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2021-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2021-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2021-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2021-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2021-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2021-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2022-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2022-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2022-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2022-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2022-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2022-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2022-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2022-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2023-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2023-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2023-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2023-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2023-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2023-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2023-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2023-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2024-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2024-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2024-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2024-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2024-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2024-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2024-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2024-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2025-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2025-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2025-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2025-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2025-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2025-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2025-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2025-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2026-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2026-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2026-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2026-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2026-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2026-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2026-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2026-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2027-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2027-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2027-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2027-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2027-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2027-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2027-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2027-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2028-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2028-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2028-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2028-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2028-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2028-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2028-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2028-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2029-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2029-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2029-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2029-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2029-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2029-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2029-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2029-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2030-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2030-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2030-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2030-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2030-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2030-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2030-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2030-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2031-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2031-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2031-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2031-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2031-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2031-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2031-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2031-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2032-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2032-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2032-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2032-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2032-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2032-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2032-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2032-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2033-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2033-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2033-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2033-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2033-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2033-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2033-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2033-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2034-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2034-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2034-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2034-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2034-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2034-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2034-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2034-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2035-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2035-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2035-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2035-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2035-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2035-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2035-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2035-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2036-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2036-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2036-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2036-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2036-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2036-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2036-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2036-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2037-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2037-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2037-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2037-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2037-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2037-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2037-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2037-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/atlantic/cape_verde.js b/tests/atlantic/cape_verde.js deleted file mode 100644 index e925d971..00000000 --- a/tests/atlantic/cape_verde.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/Cape_Verde"] = { - - "1907" : function (t) { - t.equal(moment("1907-01-01T01:34:03+00:00").tz("Atlantic/Cape_Verde").format("HH:mm:ss"), "23:59:59", "1907-01-01T01:34:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1907-01-01T01:34:04+00:00").tz("Atlantic/Cape_Verde").format("HH:mm:ss"), "23:34:04", "1907-01-01T01:34:04+00:00 should be 23:34:04 CVT"); - - t.equal(moment("1907-01-01T01:34:03+00:00").tz("Atlantic/Cape_Verde").zone(), 5644 / 60, "1907-01-01T01:34:03+00:00 should be 5644 / 60 minutes offset in LMT"); - t.equal(moment("1907-01-01T01:34:04+00:00").tz("Atlantic/Cape_Verde").zone(), 120, "1907-01-01T01:34:04+00:00 should be 120 minutes offset in CVT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-09-01T01:59:59+00:00").tz("Atlantic/Cape_Verde").format("HH:mm:ss"), "23:59:59", "1942-09-01T01:59:59+00:00 should be 23:59:59 CVT"); - t.equal(moment("1942-09-01T02:00:00+00:00").tz("Atlantic/Cape_Verde").format("HH:mm:ss"), "01:00:00", "1942-09-01T02:00:00+00:00 should be 01:00:00 CVST"); - - t.equal(moment("1942-09-01T01:59:59+00:00").tz("Atlantic/Cape_Verde").zone(), 120, "1942-09-01T01:59:59+00:00 should be 120 minutes offset in CVT"); - t.equal(moment("1942-09-01T02:00:00+00:00").tz("Atlantic/Cape_Verde").zone(), 60, "1942-09-01T02:00:00+00:00 should be 60 minutes offset in CVST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-10-15T00:59:59+00:00").tz("Atlantic/Cape_Verde").format("HH:mm:ss"), "23:59:59", "1945-10-15T00:59:59+00:00 should be 23:59:59 CVST"); - t.equal(moment("1945-10-15T01:00:00+00:00").tz("Atlantic/Cape_Verde").format("HH:mm:ss"), "23:00:00", "1945-10-15T01:00:00+00:00 should be 23:00:00 CVT"); - - t.equal(moment("1945-10-15T00:59:59+00:00").tz("Atlantic/Cape_Verde").zone(), 60, "1945-10-15T00:59:59+00:00 should be 60 minutes offset in CVST"); - t.equal(moment("1945-10-15T01:00:00+00:00").tz("Atlantic/Cape_Verde").zone(), 120, "1945-10-15T01:00:00+00:00 should be 120 minutes offset in CVT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-11-25T03:59:59+00:00").tz("Atlantic/Cape_Verde").format("HH:mm:ss"), "01:59:59", "1975-11-25T03:59:59+00:00 should be 01:59:59 CVT"); - t.equal(moment("1975-11-25T04:00:00+00:00").tz("Atlantic/Cape_Verde").format("HH:mm:ss"), "03:00:00", "1975-11-25T04:00:00+00:00 should be 03:00:00 CVT"); - - t.equal(moment("1975-11-25T03:59:59+00:00").tz("Atlantic/Cape_Verde").zone(), 120, "1975-11-25T03:59:59+00:00 should be 120 minutes offset in CVT"); - t.equal(moment("1975-11-25T04:00:00+00:00").tz("Atlantic/Cape_Verde").zone(), 60, "1975-11-25T04:00:00+00:00 should be 60 minutes offset in CVT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/atlantic/faroe.js b/tests/atlantic/faroe.js deleted file mode 100644 index 01592ea6..00000000 --- a/tests/atlantic/faroe.js +++ /dev/null @@ -1,812 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/Faroe"] = { - - "1908" : function (t) { - t.equal(moment("1908-01-11T00:27:03+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "23:59:59", "1908-01-11T00:27:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1908-01-11T00:27:04+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:27:04", "1908-01-11T00:27:04+00:00 should be 00:27:04 WET"); - - t.equal(moment("1908-01-11T00:27:03+00:00").tz("Atlantic/Faroe").zone(), 1624 / 60, "1908-01-11T00:27:03+00:00 should be 1624 / 60 minutes offset in LMT"); - t.equal(moment("1908-01-11T00:27:04+00:00").tz("Atlantic/Faroe").zone(), 0, "1908-01-11T00:27:04+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1981-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1981-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1981-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1981-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1981-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1981-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1981-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1981-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1982-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1982-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1982-09-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1982-09-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1982-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1982-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1982-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1982-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1983-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1983-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1983-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1983-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1983-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1983-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1983-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1983-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1984-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1984-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1984-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1984-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1984-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1984-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1984-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1984-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1985-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1985-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1985-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1985-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1985-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1985-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1985-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1985-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1986-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1986-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1986-09-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1986-09-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1986-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1986-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1986-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1986-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1987-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1987-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1987-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1987-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1987-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1987-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1987-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1987-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1988-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1988-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1988-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1988-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1988-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1988-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1988-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1988-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1989-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1989-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1989-09-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1989-09-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1989-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1989-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1989-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1989-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1990-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1990-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1990-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1990-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1990-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1990-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1990-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1990-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1991-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1991-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1991-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1991-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1991-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1991-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1991-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1991-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1992-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1992-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1992-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1992-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1992-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1992-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1992-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1992-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1993-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1993-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1993-09-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1993-09-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1993-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1993-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1993-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1993-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1994-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1994-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1994-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1994-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1994-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1994-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1994-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1994-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1995-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1995-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1995-09-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1995-09-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1995-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1995-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1995-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1995-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1996-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1996-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1996-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1996-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1996-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1996-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1996-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1996-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1997-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1997-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1997-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1997-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1997-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1997-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1997-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1997-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1998-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1998-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1998-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1998-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1998-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1998-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1998-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1998-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "1999-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "1999-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "1999-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "1999-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "1999-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "1999-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "1999-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "1999-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2000-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2000-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2000-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2000-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2000-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2000-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2000-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2000-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2001-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2001-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2001-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2001-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2001-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2001-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2001-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2001-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2002-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2002-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2002-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2002-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2002-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2002-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2002-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2002-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2003-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2003-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2003-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2003-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2003-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2003-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2003-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2003-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2004-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2004-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2004-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2004-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2004-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2004-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2004-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2004-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2005-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2005-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2005-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2005-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2005-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2005-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2005-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2005-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2006-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2006-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2006-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2006-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2006-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2006-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2006-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2006-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2007-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2007-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2007-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2007-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2007-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2007-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2007-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2007-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2008-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2008-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2008-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2008-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2008-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2008-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2008-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2008-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2009-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2009-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2009-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2009-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2009-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2009-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2009-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2009-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2010-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2010-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2010-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2010-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2010-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2010-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2010-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2010-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2011-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2011-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2011-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2011-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2011-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2011-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2011-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2011-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2012-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2012-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2012-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2012-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2012-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2012-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2012-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2012-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2013-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2013-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2013-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2013-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2013-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2013-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2013-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2013-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2014-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2014-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2014-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2014-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2014-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2014-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2014-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2014-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2015-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2015-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2015-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2015-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2015-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2015-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2015-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2015-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2016-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2016-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2016-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2016-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2016-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2016-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2016-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2016-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2017-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2017-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2017-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2017-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2017-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2017-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2017-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2017-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2018-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2018-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2018-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2018-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2018-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2018-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2018-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2018-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2019-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2019-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2019-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2019-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2019-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2019-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2019-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2019-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2020-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2020-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2020-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2020-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2020-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2020-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2020-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2020-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2021-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2021-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2021-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2021-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2021-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2021-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2021-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2021-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2022-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2022-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2022-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2022-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2022-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2022-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2022-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2022-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2023-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2023-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2023-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2023-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2023-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2023-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2023-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2023-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2024-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2024-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2024-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2024-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2024-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2024-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2024-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2024-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2025-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2025-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2025-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2025-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2025-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2025-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2025-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2025-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2026-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2026-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2026-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2026-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2026-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2026-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2026-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2026-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2027-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2027-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2027-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2027-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2027-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2027-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2027-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2027-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2028-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2028-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2028-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2028-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2028-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2028-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2028-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2028-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2029-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2029-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2029-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2029-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2029-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2029-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2029-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2029-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2030-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2030-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2030-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2030-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2030-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2030-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2030-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2030-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2031-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2031-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2031-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2031-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2031-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2031-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2031-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2031-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2032-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2032-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2032-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2032-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2032-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2032-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2032-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2032-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2033-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2033-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2033-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2033-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2033-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2033-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2033-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2033-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2034-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2034-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2034-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2034-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2034-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2034-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2034-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2034-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2035-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2035-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2035-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2035-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2035-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2035-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2035-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2035-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2036-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2036-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2036-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2036-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2036-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2036-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2036-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2036-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "00:59:59", "2037-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "02:00:00", "2037-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:59:59", "2037-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Atlantic/Faroe").format("HH:mm:ss"), "01:00:00", "2037-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Atlantic/Faroe").zone(), 0, "2037-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Atlantic/Faroe").zone(), -60, "2037-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Atlantic/Faroe").zone(), -60, "2037-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Atlantic/Faroe").zone(), 0, "2037-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/atlantic/madeira.js b/tests/atlantic/madeira.js deleted file mode 100644 index d62ce0c7..00000000 --- a/tests/atlantic/madeira.js +++ /dev/null @@ -1,1526 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/Madeira"] = { - - "1911" : function (t) { - t.equal(moment("1911-05-24T01:07:35+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1911-05-24T01:07:35+00:00 should be 23:59:59 FMT"); - t.equal(moment("1911-05-24T01:07:36+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:07:36", "1911-05-24T01:07:36+00:00 should be 00:07:36 MADT"); - - t.equal(moment("1911-05-24T01:07:35+00:00").tz("Atlantic/Madeira").zone(), 4056 / 60, "1911-05-24T01:07:35+00:00 should be 4056 / 60 minutes offset in FMT"); - t.equal(moment("1911-05-24T01:07:36+00:00").tz("Atlantic/Madeira").zone(), 60, "1911-05-24T01:07:36+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-06-17T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1916-06-17T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1916-06-18T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1916-06-18T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1916-11-01T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1916-11-01T00:59:59+00:00 should be 00:59:59 MADST"); - t.equal(moment("1916-11-01T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1916-11-01T01:00:00+00:00 should be 00:00:00 MADT"); - - t.equal(moment("1916-06-17T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1916-06-17T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1916-06-18T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1916-06-18T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1916-11-01T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1916-11-01T00:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1916-11-01T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1916-11-01T01:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-02-28T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1917-02-28T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1917-03-01T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1917-03-01T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1917-10-14T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1917-10-14T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1917-10-15T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1917-10-15T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1917-02-28T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1917-02-28T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1917-03-01T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1917-03-01T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1917-10-14T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1917-10-14T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1917-10-15T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1917-10-15T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-01T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1918-03-01T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1918-03-02T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1918-03-02T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1918-10-14T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1918-10-14T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1918-10-15T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1918-10-15T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1918-03-01T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1918-03-01T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1918-03-02T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1918-03-02T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1918-10-14T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1918-10-14T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1918-10-15T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1918-10-15T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-02-28T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1919-02-28T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1919-03-01T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1919-03-01T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1919-10-14T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1919-10-14T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1919-10-15T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1919-10-15T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1919-02-28T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1919-02-28T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1919-03-01T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1919-03-01T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1919-10-14T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1919-10-14T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1919-10-15T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1919-10-15T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-02-29T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1920-02-29T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1920-03-01T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1920-03-01T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1920-10-14T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1920-10-14T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1920-10-15T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1920-10-15T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1920-02-29T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1920-02-29T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1920-03-01T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1920-03-01T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1920-10-14T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1920-10-14T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1920-10-15T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1920-10-15T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-02-28T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1921-02-28T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1921-03-01T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1921-03-01T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1921-10-14T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1921-10-14T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1921-10-15T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1921-10-15T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1921-02-28T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1921-02-28T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1921-03-01T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1921-03-01T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1921-10-14T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1921-10-14T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1921-10-15T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1921-10-15T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-16T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1924-04-16T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1924-04-17T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1924-04-17T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1924-10-14T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1924-10-14T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1924-10-15T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1924-10-15T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1924-04-16T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1924-04-16T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1924-04-17T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1924-04-17T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1924-10-14T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1924-10-14T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1924-10-15T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1924-10-15T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-17T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1926-04-17T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1926-04-18T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1926-04-18T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1926-10-02T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1926-10-02T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1926-10-03T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1926-10-03T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1926-04-17T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1926-04-17T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1926-04-18T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1926-04-18T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1926-10-02T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1926-10-02T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1926-10-03T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1926-10-03T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-09T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1927-04-09T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1927-04-10T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1927-04-10T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1927-10-01T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1927-10-01T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1927-10-02T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1927-10-02T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1927-04-09T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1927-04-09T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1927-04-10T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1927-04-10T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1927-10-01T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1927-10-01T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1927-10-02T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1927-10-02T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-14T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1928-04-14T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1928-04-15T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1928-04-15T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1928-10-06T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1928-10-06T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1928-10-07T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1928-10-07T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1928-04-14T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1928-04-14T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1928-04-15T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1928-04-15T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1928-10-06T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1928-10-06T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1928-10-07T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1928-10-07T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-20T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1929-04-20T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1929-04-21T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1929-04-21T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1929-10-05T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1929-10-05T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1929-10-06T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1929-10-06T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1929-04-20T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1929-04-20T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1929-04-21T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1929-04-21T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1929-10-05T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1929-10-05T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1929-10-06T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1929-10-06T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-18T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1931-04-18T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1931-04-19T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1931-04-19T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1931-10-03T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1931-10-03T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1931-10-04T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1931-10-04T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1931-04-18T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1931-04-18T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1931-04-19T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1931-04-19T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1931-10-03T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1931-10-03T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1931-10-04T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1931-10-04T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-02T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1932-04-02T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1932-04-03T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1932-04-03T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1932-10-01T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1932-10-01T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1932-10-02T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1932-10-02T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1932-04-02T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1932-04-02T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1932-04-03T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1932-04-03T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1932-10-01T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1932-10-01T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1932-10-02T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1932-10-02T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-07T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1934-04-07T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1934-04-08T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1934-04-08T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1934-10-06T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1934-10-06T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1934-10-07T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1934-10-07T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1934-04-07T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1934-04-07T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1934-04-08T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1934-04-08T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1934-10-06T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1934-10-06T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1934-10-07T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1934-10-07T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-30T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1935-03-30T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1935-03-31T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1935-03-31T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1935-10-05T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1935-10-05T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1935-10-06T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1935-10-06T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1935-03-30T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1935-03-30T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1935-03-31T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1935-03-31T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1935-10-05T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1935-10-05T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1935-10-06T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1935-10-06T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-18T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1936-04-18T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1936-04-19T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1936-04-19T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1936-10-03T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1936-10-03T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1936-10-04T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1936-10-04T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1936-04-18T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1936-04-18T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1936-04-19T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1936-04-19T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1936-10-03T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1936-10-03T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1936-10-04T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1936-10-04T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-03T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1937-04-03T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1937-04-04T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1937-04-04T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1937-10-02T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1937-10-02T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1937-10-03T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1937-10-03T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1937-04-03T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1937-04-03T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1937-04-04T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1937-04-04T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1937-10-02T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1937-10-02T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1937-10-03T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1937-10-03T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-26T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1938-03-26T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1938-03-27T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1938-03-27T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1938-10-01T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1938-10-01T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1938-10-02T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1938-10-02T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1938-03-26T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1938-03-26T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1938-03-27T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1938-03-27T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1938-10-01T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1938-10-01T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1938-10-02T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1938-10-02T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-15T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1939-04-15T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1939-04-16T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1939-04-16T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1939-11-18T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1939-11-18T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1939-11-19T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1939-11-19T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1939-04-15T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1939-04-15T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1939-04-16T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1939-04-16T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1939-11-18T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1939-11-18T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1939-11-19T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1939-11-19T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-24T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1940-02-24T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1940-02-25T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1940-02-25T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1940-10-05T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1940-10-05T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1940-10-06T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1940-10-06T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1940-02-24T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1940-02-24T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1940-02-25T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1940-02-25T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1940-10-05T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1940-10-05T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1940-10-06T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1940-10-06T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-05T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1941-04-05T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1941-04-06T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1941-04-06T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1941-10-05T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1941-10-05T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1941-10-06T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1941-10-06T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1941-04-05T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1941-04-05T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1941-04-06T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1941-04-06T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1941-10-05T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1941-10-05T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1941-10-06T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1941-10-06T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-14T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1942-03-14T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1942-03-15T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1942-03-15T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1942-04-25T22:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1942-04-25T22:59:59+00:00 should be 22:59:59 MADST"); - t.equal(moment("1942-04-25T23:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1942-04-25T23:00:00+00:00 should be 00:00:00 MADMT"); - t.equal(moment("1942-08-15T22:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1942-08-15T22:59:59+00:00 should be 23:59:59 MADMT"); - t.equal(moment("1942-08-15T23:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1942-08-15T23:00:00+00:00 should be 23:00:00 MADST"); - t.equal(moment("1942-10-24T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1942-10-24T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1942-10-25T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1942-10-25T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1942-03-14T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1942-03-14T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1942-03-15T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1942-03-15T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1942-04-25T22:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1942-04-25T22:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1942-04-25T23:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1942-04-25T23:00:00+00:00 should be -60 minutes offset in MADMT"); - t.equal(moment("1942-08-15T22:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1942-08-15T22:59:59+00:00 should be -60 minutes offset in MADMT"); - t.equal(moment("1942-08-15T23:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1942-08-15T23:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1942-10-24T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1942-10-24T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1942-10-25T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1942-10-25T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-13T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1943-03-13T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1943-03-14T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1943-03-14T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1943-04-17T22:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1943-04-17T22:59:59+00:00 should be 22:59:59 MADST"); - t.equal(moment("1943-04-17T23:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1943-04-17T23:00:00+00:00 should be 00:00:00 MADMT"); - t.equal(moment("1943-08-28T22:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1943-08-28T22:59:59+00:00 should be 23:59:59 MADMT"); - t.equal(moment("1943-08-28T23:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1943-08-28T23:00:00+00:00 should be 23:00:00 MADST"); - t.equal(moment("1943-10-30T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1943-10-30T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1943-10-31T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1943-10-31T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1943-03-13T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1943-03-13T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1943-03-14T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1943-03-14T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1943-04-17T22:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1943-04-17T22:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1943-04-17T23:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1943-04-17T23:00:00+00:00 should be -60 minutes offset in MADMT"); - t.equal(moment("1943-08-28T22:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1943-08-28T22:59:59+00:00 should be -60 minutes offset in MADMT"); - t.equal(moment("1943-08-28T23:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1943-08-28T23:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1943-10-30T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1943-10-30T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1943-10-31T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1943-10-31T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-11T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1944-03-11T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1944-03-12T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1944-03-12T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1944-04-22T22:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1944-04-22T22:59:59+00:00 should be 22:59:59 MADST"); - t.equal(moment("1944-04-22T23:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1944-04-22T23:00:00+00:00 should be 00:00:00 MADMT"); - t.equal(moment("1944-08-26T22:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1944-08-26T22:59:59+00:00 should be 23:59:59 MADMT"); - t.equal(moment("1944-08-26T23:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1944-08-26T23:00:00+00:00 should be 23:00:00 MADST"); - t.equal(moment("1944-10-28T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1944-10-28T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1944-10-29T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1944-10-29T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1944-03-11T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1944-03-11T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1944-03-12T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1944-03-12T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1944-04-22T22:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1944-04-22T22:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1944-04-22T23:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1944-04-22T23:00:00+00:00 should be -60 minutes offset in MADMT"); - t.equal(moment("1944-08-26T22:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1944-08-26T22:59:59+00:00 should be -60 minutes offset in MADMT"); - t.equal(moment("1944-08-26T23:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1944-08-26T23:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1944-10-28T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1944-10-28T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1944-10-29T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1944-10-29T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-03-10T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1945-03-10T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1945-03-11T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1945-03-11T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1945-04-21T22:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1945-04-21T22:59:59+00:00 should be 22:59:59 MADST"); - t.equal(moment("1945-04-21T23:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1945-04-21T23:00:00+00:00 should be 00:00:00 MADMT"); - t.equal(moment("1945-08-25T22:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1945-08-25T22:59:59+00:00 should be 23:59:59 MADMT"); - t.equal(moment("1945-08-25T23:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1945-08-25T23:00:00+00:00 should be 23:00:00 MADST"); - t.equal(moment("1945-10-27T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1945-10-27T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1945-10-28T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1945-10-28T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1945-03-10T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1945-03-10T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1945-03-11T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1945-03-11T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1945-04-21T22:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1945-04-21T22:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1945-04-21T23:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1945-04-21T23:00:00+00:00 should be -60 minutes offset in MADMT"); - t.equal(moment("1945-08-25T22:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1945-08-25T22:59:59+00:00 should be -60 minutes offset in MADMT"); - t.equal(moment("1945-08-25T23:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1945-08-25T23:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1945-10-27T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1945-10-27T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1945-10-28T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1945-10-28T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-06T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "22:59:59", "1946-04-06T23:59:59+00:00 should be 22:59:59 MADT"); - t.equal(moment("1946-04-07T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1946-04-07T00:00:00+00:00 should be 00:00:00 MADST"); - t.equal(moment("1946-10-05T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1946-10-05T23:59:59+00:00 should be 23:59:59 MADST"); - t.equal(moment("1946-10-06T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:00:00", "1946-10-06T00:00:00+00:00 should be 23:00:00 MADT"); - - t.equal(moment("1946-04-06T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1946-04-06T23:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1946-04-07T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1946-04-07T00:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1946-10-05T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1946-10-05T23:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1946-10-06T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1946-10-06T00:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-06T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1947-04-06T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1947-04-06T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1947-04-06T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1947-10-05T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1947-10-05T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1947-10-05T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1947-10-05T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1947-04-06T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1947-04-06T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1947-04-06T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1947-04-06T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1947-10-05T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1947-10-05T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1947-10-05T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1947-10-05T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-04T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1948-04-04T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1948-04-04T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1948-04-04T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1948-10-03T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1948-10-03T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1948-10-03T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1948-10-03T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1948-04-04T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1948-04-04T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1948-04-04T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1948-04-04T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1948-10-03T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1948-10-03T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1948-10-03T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1948-10-03T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-03T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1949-04-03T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1949-04-03T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1949-04-03T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1949-10-02T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1949-10-02T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1949-10-02T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1949-10-02T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1949-04-03T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1949-04-03T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1949-04-03T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1949-04-03T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1949-10-02T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1949-10-02T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1949-10-02T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1949-10-02T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1951-04-01T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1951-04-01T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1951-10-07T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1951-10-07T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1951-10-07T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1951-10-07T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1951-04-01T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1951-04-01T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1951-04-01T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1951-04-01T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1951-10-07T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1951-10-07T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1951-10-07T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1951-10-07T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-06T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1952-04-06T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1952-04-06T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1952-04-06T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1952-10-05T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1952-10-05T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1952-10-05T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1952-10-05T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1952-04-06T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1952-04-06T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1952-04-06T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1952-04-06T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1952-10-05T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1952-10-05T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1952-10-05T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1952-10-05T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-05T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1953-04-05T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1953-04-05T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1953-04-05T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1953-10-04T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1953-10-04T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1953-10-04T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1953-10-04T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1953-04-05T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1953-04-05T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1953-04-05T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1953-04-05T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1953-10-04T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1953-10-04T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1953-10-04T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1953-10-04T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-04T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1954-04-04T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1954-04-04T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1954-04-04T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1954-10-03T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1954-10-03T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1954-10-03T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1954-10-03T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1954-04-04T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1954-04-04T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1954-04-04T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1954-04-04T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1954-10-03T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1954-10-03T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1954-10-03T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1954-10-03T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-03T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1955-04-03T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1955-04-03T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1955-04-03T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1955-10-02T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1955-10-02T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1955-10-02T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1955-10-02T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1955-04-03T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1955-04-03T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1955-04-03T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1955-04-03T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1955-10-02T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1955-10-02T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1955-10-02T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1955-10-02T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-01T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1956-04-01T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1956-04-01T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1956-04-01T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1956-10-07T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1956-10-07T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1956-10-07T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1956-10-07T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1956-04-01T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1956-04-01T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1956-04-01T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1956-04-01T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1956-10-07T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1956-10-07T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1956-10-07T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1956-10-07T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-07T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1957-04-07T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1957-04-07T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1957-04-07T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1957-10-06T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1957-10-06T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1957-10-06T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1957-10-06T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1957-04-07T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1957-04-07T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1957-04-07T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1957-04-07T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1957-10-06T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1957-10-06T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1957-10-06T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1957-10-06T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-06T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1958-04-06T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1958-04-06T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1958-04-06T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1958-10-05T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1958-10-05T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1958-10-05T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1958-10-05T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1958-04-06T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1958-04-06T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1958-04-06T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1958-04-06T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1958-10-05T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1958-10-05T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1958-10-05T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1958-10-05T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-05T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1959-04-05T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1959-04-05T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1959-04-05T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1959-10-04T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1959-10-04T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1959-10-04T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1959-10-04T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1959-04-05T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1959-04-05T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1959-04-05T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1959-04-05T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1959-10-04T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1959-10-04T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1959-10-04T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1959-10-04T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-03T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1960-04-03T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1960-04-03T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1960-04-03T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1960-10-02T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1960-10-02T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1960-10-02T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1960-10-02T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1960-04-03T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1960-04-03T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1960-04-03T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1960-04-03T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1960-10-02T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1960-10-02T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1960-10-02T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1960-10-02T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-02T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1961-04-02T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1961-04-02T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1961-04-02T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1961-10-01T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1961-10-01T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1961-10-01T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1961-10-01T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1961-04-02T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1961-04-02T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1961-04-02T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1961-04-02T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1961-10-01T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1961-10-01T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1961-10-01T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1961-10-01T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-01T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1962-04-01T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1962-04-01T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1962-04-01T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1962-10-07T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1962-10-07T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1962-10-07T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1962-10-07T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1962-04-01T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1962-04-01T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1962-04-01T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1962-04-01T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1962-10-07T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1962-10-07T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1962-10-07T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1962-10-07T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-07T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1963-04-07T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1963-04-07T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1963-04-07T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1963-10-06T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1963-10-06T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1963-10-06T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1963-10-06T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1963-04-07T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1963-04-07T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1963-04-07T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1963-04-07T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1963-10-06T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1963-10-06T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1963-10-06T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1963-10-06T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-05T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1964-04-05T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1964-04-05T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1964-04-05T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1964-10-04T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1964-10-04T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1964-10-04T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1964-10-04T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1964-04-05T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1964-04-05T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1964-04-05T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1964-04-05T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1964-10-04T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1964-10-04T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1964-10-04T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1964-10-04T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-04T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1965-04-04T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1965-04-04T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1965-04-04T03:00:00+00:00 should be 03:00:00 MADST"); - t.equal(moment("1965-10-03T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:59:59", "1965-10-03T02:59:59+00:00 should be 02:59:59 MADST"); - t.equal(moment("1965-10-03T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1965-10-03T03:00:00+00:00 should be 02:00:00 MADT"); - - t.equal(moment("1965-04-04T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1965-04-04T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1965-04-04T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1965-04-04T03:00:00+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1965-10-03T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1965-10-03T02:59:59+00:00 should be 0 minutes offset in MADST"); - t.equal(moment("1965-10-03T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 60, "1965-10-03T03:00:00+00:00 should be 60 minutes offset in MADT"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-03T02:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1966-04-03T02:59:59+00:00 should be 01:59:59 MADT"); - t.equal(moment("1966-04-03T03:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1966-04-03T03:00:00+00:00 should be 03:00:00 WET"); - - t.equal(moment("1966-04-03T02:59:59+00:00").tz("Atlantic/Madeira").zone(), 60, "1966-04-03T02:59:59+00:00 should be 60 minutes offset in MADT"); - t.equal(moment("1966-04-03T03:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1966-04-03T03:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-26T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1977-03-26T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1977-03-27T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1977-03-27T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1977-09-24T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1977-09-24T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1977-09-25T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1977-09-25T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1977-03-26T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1977-03-26T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1977-03-27T00:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1977-03-27T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-24T23:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1977-09-24T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-25T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1977-09-25T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-01T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1978-04-01T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1978-04-02T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1978-04-02T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1978-09-30T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1978-09-30T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1978-10-01T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:00:00", "1978-10-01T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1978-04-01T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1978-04-01T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1978-04-02T00:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1978-04-02T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-09-30T23:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1978-09-30T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-10-01T00:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1978-10-01T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-31T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1979-03-31T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1979-04-01T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1979-04-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1979-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1979-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1979-03-31T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1979-03-31T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1979-04-01T00:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1979-04-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1979-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1979-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-29T23:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "23:59:59", "1980-03-29T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1980-03-30T00:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1980-03-30T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1980-09-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1980-09-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1980-03-29T23:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1980-03-29T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1980-03-30T00:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1980-03-30T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1980-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1980-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1981-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1981-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1981-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1981-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1981-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1981-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1981-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1981-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1982-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1982-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1982-09-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1982-09-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1982-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1982-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1982-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1982-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T01:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1983-03-27T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1983-03-27T02:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "03:00:00", "1983-03-27T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1983-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1983-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1983-03-27T01:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1983-03-27T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1983-03-27T02:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1983-03-27T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1983-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1983-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1984-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1984-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1984-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1984-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1984-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1984-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1984-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1984-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1985-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1985-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1985-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1985-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1985-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1985-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1985-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1985-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1986-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1986-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1986-09-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1986-09-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1986-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1986-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1986-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1986-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1987-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1987-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1987-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1987-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1987-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1987-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1987-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1987-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1988-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1988-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1988-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1988-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1988-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1988-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1988-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1988-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1989-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1989-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1989-09-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1989-09-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1989-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1989-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1989-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1989-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1990-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1990-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1990-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1990-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1990-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1990-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1990-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1990-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1991-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1991-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1991-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1991-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1991-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1991-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1991-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1991-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1992-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1992-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1992-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1992-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1992-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1992-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1992-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1992-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1993-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1993-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1993-09-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1993-09-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1993-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1993-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1993-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1993-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1994-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1994-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1994-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1994-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1994-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1994-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1994-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1994-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1995-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1995-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1995-09-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1995-09-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1995-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1995-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1995-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1995-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1996-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1996-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1996-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1996-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1996-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1996-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1996-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1996-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1997-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1997-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1997-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1997-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1997-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1997-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1997-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1997-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1998-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1998-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1998-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1998-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1998-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1998-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1998-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1998-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "1999-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "1999-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "1999-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "1999-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "1999-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "1999-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "1999-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "1999-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2000-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2000-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2000-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2000-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2000-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2000-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2000-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2000-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2001-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2001-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2001-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2001-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2001-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2001-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2001-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2001-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2002-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2002-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2002-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2002-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2002-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2002-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2002-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2002-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2003-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2003-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2003-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2003-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2003-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2003-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2003-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2003-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2004-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2004-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2004-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2004-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2004-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2004-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2004-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2004-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2005-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2005-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2005-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2005-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2005-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2005-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2005-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2005-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2006-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2006-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2006-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2006-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2006-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2006-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2006-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2006-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2007-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2007-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2007-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2007-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2007-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2007-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2007-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2007-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2008-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2008-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2008-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2008-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2008-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2008-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2008-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2008-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2009-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2009-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2009-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2009-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2009-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2009-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2009-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2009-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2010-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2010-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2010-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2010-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2010-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2010-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2010-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2010-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2011-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2011-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2011-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2011-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2011-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2011-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2011-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2011-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2012-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2012-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2012-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2012-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2012-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2012-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2012-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2012-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2013-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2013-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2013-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2013-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2013-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2013-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2013-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2013-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2014-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2014-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2014-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2014-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2014-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2014-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2014-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2014-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2015-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2015-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2015-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2015-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2015-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2015-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2015-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2015-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2016-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2016-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2016-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2016-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2016-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2016-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2016-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2016-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2017-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2017-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2017-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2017-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2017-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2017-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2017-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2017-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2018-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2018-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2018-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2018-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2018-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2018-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2018-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2018-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2019-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2019-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2019-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2019-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2019-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2019-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2019-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2019-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2020-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2020-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2020-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2020-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2020-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2020-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2020-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2020-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2021-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2021-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2021-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2021-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2021-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2021-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2021-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2021-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2022-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2022-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2022-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2022-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2022-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2022-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2022-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2022-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2023-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2023-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2023-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2023-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2023-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2023-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2023-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2023-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2024-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2024-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2024-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2024-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2024-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2024-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2024-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2024-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2025-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2025-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2025-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2025-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2025-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2025-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2025-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2025-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2026-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2026-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2026-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2026-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2026-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2026-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2026-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2026-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2027-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2027-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2027-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2027-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2027-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2027-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2027-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2027-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2028-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2028-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2028-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2028-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2028-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2028-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2028-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2028-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2029-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2029-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2029-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2029-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2029-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2029-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2029-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2029-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2030-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2030-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2030-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2030-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2030-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2030-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2030-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2030-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2031-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2031-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2031-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2031-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2031-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2031-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2031-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2031-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2032-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2032-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2032-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2032-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2032-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2032-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2032-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2032-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2033-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2033-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2033-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2033-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2033-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2033-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2033-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2033-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2034-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2034-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2034-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2034-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2034-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2034-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2034-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2034-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2035-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2035-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2035-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2035-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2035-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2035-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2035-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2035-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2036-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2036-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2036-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2036-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2036-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2036-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2036-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2036-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "00:59:59", "2037-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "02:00:00", "2037-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:59:59", "2037-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Atlantic/Madeira").format("HH:mm:ss"), "01:00:00", "2037-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Atlantic/Madeira").zone(), 0, "2037-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Atlantic/Madeira").zone(), -60, "2037-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Atlantic/Madeira").zone(), -60, "2037-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Atlantic/Madeira").zone(), 0, "2037-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/atlantic/reykjavik.js b/tests/atlantic/reykjavik.js deleted file mode 100644 index 2291f10d..00000000 --- a/tests/atlantic/reykjavik.js +++ /dev/null @@ -1,458 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/Reykjavik"] = { - - "1908" : function (t) { - t.equal(moment("1908-01-01T01:27:47+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "23:59:59", "1908-01-01T01:27:47+00:00 should be 23:59:59 RMT"); - t.equal(moment("1908-01-01T01:27:48+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:27:48", "1908-01-01T01:27:48+00:00 should be 00:27:48 IST"); - - t.equal(moment("1908-01-01T01:27:47+00:00").tz("Atlantic/Reykjavik").zone(), 5268 / 60, "1908-01-01T01:27:47+00:00 should be 5268 / 60 minutes offset in RMT"); - t.equal(moment("1908-01-01T01:27:48+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1908-01-01T01:27:48+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-02-19T23:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "22:59:59", "1917-02-19T23:59:59+00:00 should be 22:59:59 IST"); - t.equal(moment("1917-02-20T00:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:00:00", "1917-02-20T00:00:00+00:00 should be 00:00:00 ISST"); - t.equal(moment("1917-10-21T00:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1917-10-21T00:59:59+00:00 should be 00:59:59 ISST"); - t.equal(moment("1917-10-21T01:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:00:00", "1917-10-21T01:00:00+00:00 should be 00:00:00 IST"); - - t.equal(moment("1917-02-19T23:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1917-02-19T23:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1917-02-20T00:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1917-02-20T00:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1917-10-21T00:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1917-10-21T00:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1917-10-21T01:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1917-10-21T01:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-02-19T23:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "22:59:59", "1918-02-19T23:59:59+00:00 should be 22:59:59 IST"); - t.equal(moment("1918-02-20T00:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:00:00", "1918-02-20T00:00:00+00:00 should be 00:00:00 ISST"); - t.equal(moment("1918-11-16T00:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1918-11-16T00:59:59+00:00 should be 00:59:59 ISST"); - t.equal(moment("1918-11-16T01:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:00:00", "1918-11-16T01:00:00+00:00 should be 00:00:00 IST"); - - t.equal(moment("1918-02-19T23:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1918-02-19T23:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1918-02-20T00:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1918-02-20T00:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1918-11-16T00:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1918-11-16T00:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1918-11-16T01:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1918-11-16T01:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-29T23:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "22:59:59", "1939-04-29T23:59:59+00:00 should be 22:59:59 IST"); - t.equal(moment("1939-04-30T00:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:00:00", "1939-04-30T00:00:00+00:00 should be 00:00:00 ISST"); - t.equal(moment("1939-11-29T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1939-11-29T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1939-11-29T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1939-11-29T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1939-04-29T23:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1939-04-29T23:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1939-04-30T00:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1939-04-30T00:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1939-11-29T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1939-11-29T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1939-11-29T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1939-11-29T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T02:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1940-02-25T02:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1940-02-25T03:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "03:00:00", "1940-02-25T03:00:00+00:00 should be 03:00:00 ISST"); - t.equal(moment("1940-11-03T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1940-11-03T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1940-11-03T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1940-11-03T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1940-02-25T02:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1940-02-25T02:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1940-02-25T03:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1940-02-25T03:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1940-11-03T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1940-11-03T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1940-11-03T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1940-11-03T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-03-02T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1941-03-02T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1941-03-02T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1941-03-02T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1941-11-02T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1941-11-02T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1941-11-02T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1941-11-02T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1941-03-02T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1941-03-02T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1941-03-02T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1941-03-02T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1941-11-02T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1941-11-02T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1941-11-02T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1941-11-02T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-08T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1942-03-08T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1942-03-08T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1942-03-08T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1942-10-25T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1942-10-25T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1942-10-25T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1942-10-25T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1942-03-08T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1942-03-08T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1942-03-08T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1942-03-08T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1942-10-25T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1942-10-25T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1942-10-25T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1942-10-25T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-07T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1943-03-07T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1943-03-07T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1943-03-07T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1943-10-24T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1943-10-24T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1943-10-24T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1943-10-24T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1943-03-07T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1943-03-07T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1943-03-07T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1943-03-07T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1943-10-24T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1943-10-24T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1943-10-24T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1943-10-24T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-05T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1944-03-05T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1944-03-05T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1944-03-05T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1944-10-22T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1944-10-22T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1944-10-22T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1944-10-22T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1944-03-05T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1944-03-05T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1944-03-05T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1944-03-05T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1944-10-22T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1944-10-22T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1944-10-22T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1944-10-22T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-03-04T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1945-03-04T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1945-03-04T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1945-03-04T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1945-10-28T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1945-10-28T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1945-10-28T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1945-10-28T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1945-03-04T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1945-03-04T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1945-03-04T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1945-03-04T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1945-10-28T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1945-10-28T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1945-10-28T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1945-10-28T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-03T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1946-03-03T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1946-03-03T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1946-03-03T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1946-10-27T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1946-10-27T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1946-10-27T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1946-10-27T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1946-03-03T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1946-03-03T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1946-03-03T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1946-03-03T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1946-10-27T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1946-10-27T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1946-10-27T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1946-10-27T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-06T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1947-04-06T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1947-04-06T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1947-04-06T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1947-10-26T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1947-10-26T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1947-10-26T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1947-10-26T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1947-04-06T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1947-04-06T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1947-04-06T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1947-04-06T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1947-10-26T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1947-10-26T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1947-10-26T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1947-10-26T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-04T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1948-04-04T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1948-04-04T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1948-04-04T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1948-10-24T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1948-10-24T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1948-10-24T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1948-10-24T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1948-04-04T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1948-04-04T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1948-04-04T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1948-04-04T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1948-10-24T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1948-10-24T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1948-10-24T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1948-10-24T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1949-04-03T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1949-04-03T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1949-10-30T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1949-10-30T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1949-10-30T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1949-10-30T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1949-04-03T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1949-04-03T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1949-10-30T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1949-10-30T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1949-10-30T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1949-10-30T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-02T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1950-04-02T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1950-04-02T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1950-04-02T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1950-10-22T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1950-10-22T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1950-10-22T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1950-10-22T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1950-04-02T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1950-04-02T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1950-04-02T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1950-04-02T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1950-10-22T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1950-10-22T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1950-10-22T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1950-10-22T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1951-04-01T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1951-04-01T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1951-10-28T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1951-10-28T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1951-10-28T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1951-10-28T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1951-04-01T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1951-04-01T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1951-04-01T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1951-10-28T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1951-10-28T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1951-10-28T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1951-10-28T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-06T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1952-04-06T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1952-04-06T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1952-04-06T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1952-10-26T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1952-10-26T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1952-10-26T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1952-10-26T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1952-04-06T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1952-04-06T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1952-04-06T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1952-04-06T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1952-10-26T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1952-10-26T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1952-10-26T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1952-10-26T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-05T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1953-04-05T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1953-04-05T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1953-04-05T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1953-10-25T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1953-10-25T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1953-10-25T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1953-10-25T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1953-04-05T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1953-04-05T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1953-04-05T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1953-04-05T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1953-10-25T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1953-10-25T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1953-10-25T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1953-10-25T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-04T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1954-04-04T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1954-04-04T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1954-04-04T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1954-10-24T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1954-10-24T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1954-10-24T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1954-10-24T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1954-04-04T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1954-04-04T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1954-04-04T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1954-04-04T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1954-10-24T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1954-10-24T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1954-10-24T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1954-10-24T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-03T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1955-04-03T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1955-04-03T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1955-04-03T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1955-10-23T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1955-10-23T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1955-10-23T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1955-10-23T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1955-04-03T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1955-04-03T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1955-04-03T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1955-04-03T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1955-10-23T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1955-10-23T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1955-10-23T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1955-10-23T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-01T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1956-04-01T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1956-04-01T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1956-04-01T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1956-10-28T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1956-10-28T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1956-10-28T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1956-10-28T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1956-04-01T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1956-04-01T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1956-04-01T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1956-04-01T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1956-10-28T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1956-10-28T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1956-10-28T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1956-10-28T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-07T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1957-04-07T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1957-04-07T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1957-04-07T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1957-10-27T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1957-10-27T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1957-10-27T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1957-10-27T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1957-04-07T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1957-04-07T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1957-04-07T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1957-04-07T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1957-10-27T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1957-10-27T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1957-10-27T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1957-10-27T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-06T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1958-04-06T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1958-04-06T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1958-04-06T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1958-10-26T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1958-10-26T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1958-10-26T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1958-10-26T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1958-04-06T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1958-04-06T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1958-04-06T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1958-04-06T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1958-10-26T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1958-10-26T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1958-10-26T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1958-10-26T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-05T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1959-04-05T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1959-04-05T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1959-04-05T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1959-10-25T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1959-10-25T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1959-10-25T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1959-10-25T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1959-04-05T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1959-04-05T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1959-04-05T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1959-04-05T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1959-10-25T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1959-10-25T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1959-10-25T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1959-10-25T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-03T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1960-04-03T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1960-04-03T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1960-04-03T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1960-10-23T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1960-10-23T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1960-10-23T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1960-10-23T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1960-04-03T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1960-04-03T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1960-04-03T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1960-04-03T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1960-10-23T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1960-10-23T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1960-10-23T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1960-10-23T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-02T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1961-04-02T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1961-04-02T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1961-04-02T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1961-10-22T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1961-10-22T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1961-10-22T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1961-10-22T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1961-04-02T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1961-04-02T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1961-04-02T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1961-04-02T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1961-10-22T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1961-10-22T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1961-10-22T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1961-10-22T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-01T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1962-04-01T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1962-04-01T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1962-04-01T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1962-10-28T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1962-10-28T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1962-10-28T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1962-10-28T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1962-04-01T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1962-04-01T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1962-04-01T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1962-04-01T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1962-10-28T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1962-10-28T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1962-10-28T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1962-10-28T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-07T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1963-04-07T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1963-04-07T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1963-04-07T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1963-10-27T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1963-10-27T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1963-10-27T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1963-10-27T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1963-04-07T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1963-04-07T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1963-04-07T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1963-04-07T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1963-10-27T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1963-10-27T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1963-10-27T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1963-10-27T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-05T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1964-04-05T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1964-04-05T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1964-04-05T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1964-10-25T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1964-10-25T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1964-10-25T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1964-10-25T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1964-04-05T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1964-04-05T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1964-04-05T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1964-04-05T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1964-10-25T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1964-10-25T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1964-10-25T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1964-10-25T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-04T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1965-04-04T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1965-04-04T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1965-04-04T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1965-10-24T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1965-10-24T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1965-10-24T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1965-10-24T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1965-04-04T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1965-04-04T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1965-04-04T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1965-04-04T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1965-10-24T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1965-10-24T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1965-10-24T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1965-10-24T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-03T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1966-04-03T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1966-04-03T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1966-04-03T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1966-10-23T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1966-10-23T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1966-10-23T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1966-10-23T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1966-04-03T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1966-04-03T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1966-04-03T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1966-04-03T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1966-10-23T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1966-10-23T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1966-10-23T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1966-10-23T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-02T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1967-04-02T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1967-04-02T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1967-04-02T02:00:00+00:00 should be 02:00:00 ISST"); - t.equal(moment("1967-10-29T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:59:59", "1967-10-29T01:59:59+00:00 should be 01:59:59 ISST"); - t.equal(moment("1967-10-29T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "01:00:00", "1967-10-29T02:00:00+00:00 should be 01:00:00 IST"); - - t.equal(moment("1967-04-02T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1967-04-02T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1967-04-02T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1967-04-02T02:00:00+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1967-10-29T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1967-10-29T01:59:59+00:00 should be 0 minutes offset in ISST"); - t.equal(moment("1967-10-29T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1967-10-29T02:00:00+00:00 should be 60 minutes offset in IST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-07T01:59:59+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "00:59:59", "1968-04-07T01:59:59+00:00 should be 00:59:59 IST"); - t.equal(moment("1968-04-07T02:00:00+00:00").tz("Atlantic/Reykjavik").format("HH:mm:ss"), "02:00:00", "1968-04-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1968-04-07T01:59:59+00:00").tz("Atlantic/Reykjavik").zone(), 60, "1968-04-07T01:59:59+00:00 should be 60 minutes offset in IST"); - t.equal(moment("1968-04-07T02:00:00+00:00").tz("Atlantic/Reykjavik").zone(), 0, "1968-04-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/atlantic/south_georgia.js b/tests/atlantic/south_georgia.js deleted file mode 100644 index bf40dc94..00000000 --- a/tests/atlantic/south_georgia.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/South_Georgia"] = { - - -}; \ No newline at end of file diff --git a/tests/atlantic/st_helena.js b/tests/atlantic/st_helena.js deleted file mode 100644 index a1b478f9..00000000 --- a/tests/atlantic/st_helena.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/St_Helena"] = { - - "1951" : function (t) { - t.equal(moment("1951-01-01T00:22:47+00:00").tz("Atlantic/St_Helena").format("HH:mm:ss"), "23:59:59", "1951-01-01T00:22:47+00:00 should be 23:59:59 JMT"); - t.equal(moment("1951-01-01T00:22:48+00:00").tz("Atlantic/St_Helena").format("HH:mm:ss"), "00:22:48", "1951-01-01T00:22:48+00:00 should be 00:22:48 GMT"); - - t.equal(moment("1951-01-01T00:22:47+00:00").tz("Atlantic/St_Helena").zone(), 1368 / 60, "1951-01-01T00:22:47+00:00 should be 1368 / 60 minutes offset in JMT"); - t.equal(moment("1951-01-01T00:22:48+00:00").tz("Atlantic/St_Helena").zone(), 0, "1951-01-01T00:22:48+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/atlantic/stanley.js b/tests/atlantic/stanley.js deleted file mode 100644 index bbec68f9..00000000 --- a/tests/atlantic/stanley.js +++ /dev/null @@ -1,496 +0,0 @@ -var moment = require("../../index"); - -exports["Atlantic/Stanley"] = { - - "1912" : function (t) { - t.equal(moment("1912-03-12T03:51:23+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1912-03-12T03:51:23+00:00 should be 23:59:59 SMT"); - t.equal(moment("1912-03-12T03:51:24+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:51:24", "1912-03-12T03:51:24+00:00 should be 23:51:24 FKT"); - - t.equal(moment("1912-03-12T03:51:23+00:00").tz("Atlantic/Stanley").zone(), 13884 / 60, "1912-03-12T03:51:23+00:00 should be 13884 / 60 minutes offset in SMT"); - t.equal(moment("1912-03-12T03:51:24+00:00").tz("Atlantic/Stanley").zone(), 240, "1912-03-12T03:51:24+00:00 should be 240 minutes offset in FKT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-09-26T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1937-09-26T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1937-09-26T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1937-09-26T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1937-09-26T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1937-09-26T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1937-09-26T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1937-09-26T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-20T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1938-03-20T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1938-03-20T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1938-03-20T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1938-09-25T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1938-09-25T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1938-09-25T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1938-09-25T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1938-03-20T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1938-03-20T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1938-03-20T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1938-03-20T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1938-09-25T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1938-09-25T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1938-09-25T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1938-09-25T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-03-19T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1939-03-19T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1939-03-19T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1939-03-19T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1939-10-01T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1939-10-01T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1939-10-01T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1939-10-01T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1939-03-19T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1939-03-19T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1939-03-19T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1939-03-19T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1939-10-01T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1939-10-01T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1939-10-01T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1939-10-01T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-24T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1940-03-24T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1940-03-24T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1940-03-24T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1940-09-29T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1940-09-29T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1940-09-29T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1940-09-29T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1940-03-24T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1940-03-24T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1940-03-24T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1940-03-24T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1940-09-29T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1940-09-29T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1940-09-29T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1940-09-29T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-03-23T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1941-03-23T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1941-03-23T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1941-03-23T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1941-09-28T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1941-09-28T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1941-09-28T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1941-09-28T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1941-03-23T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1941-03-23T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1941-03-23T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1941-03-23T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1941-09-28T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1941-09-28T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1941-09-28T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1941-09-28T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-22T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1942-03-22T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1942-03-22T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1942-03-22T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1942-09-27T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1942-09-27T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1942-09-27T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1942-09-27T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1942-03-22T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1942-03-22T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1942-03-22T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1942-03-22T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1942-09-27T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1942-09-27T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1942-09-27T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1942-09-27T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-01-01T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1943-01-01T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1943-01-01T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1943-01-01T03:00:00+00:00 should be 23:00:00 FKT"); - - t.equal(moment("1943-01-01T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1943-01-01T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1943-01-01T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1943-01-01T03:00:00+00:00 should be 240 minutes offset in FKT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-05-01T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1983-05-01T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1983-05-01T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1983-05-01T04:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("1983-09-25T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1983-09-25T02:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1983-09-25T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1983-09-25T03:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1983-05-01T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1983-05-01T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1983-05-01T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1983-05-01T04:00:00+00:00 should be 180 minutes offset in FKT"); - t.equal(moment("1983-09-25T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1983-09-25T02:59:59+00:00 should be 180 minutes offset in FKT"); - t.equal(moment("1983-09-25T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 120, "1983-09-25T03:00:00+00:00 should be 120 minutes offset in FKST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T01:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1984-04-29T01:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1984-04-29T02:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1984-04-29T02:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1984-09-16T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1984-09-16T02:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1984-09-16T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1984-09-16T03:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1984-04-29T01:59:59+00:00").tz("Atlantic/Stanley").zone(), 120, "1984-04-29T01:59:59+00:00 should be 120 minutes offset in FKST"); - t.equal(moment("1984-04-29T02:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1984-04-29T02:00:00+00:00 should be 180 minutes offset in FKT"); - t.equal(moment("1984-09-16T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1984-09-16T02:59:59+00:00 should be 180 minutes offset in FKT"); - t.equal(moment("1984-09-16T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 120, "1984-09-16T03:00:00+00:00 should be 120 minutes offset in FKST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T01:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1985-04-28T01:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1985-04-28T02:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1985-04-28T02:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1985-09-15T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1985-09-15T02:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1985-09-15T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "00:00:00", "1985-09-15T03:00:00+00:00 should be 00:00:00 FKST"); - - t.equal(moment("1985-04-28T01:59:59+00:00").tz("Atlantic/Stanley").zone(), 120, "1985-04-28T01:59:59+00:00 should be 120 minutes offset in FKST"); - t.equal(moment("1985-04-28T02:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1985-04-28T02:00:00+00:00 should be 180 minutes offset in FKT"); - t.equal(moment("1985-09-15T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1985-09-15T02:59:59+00:00 should be 180 minutes offset in FKT"); - t.equal(moment("1985-09-15T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1985-09-15T03:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-20T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1986-04-20T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1986-04-20T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1986-04-20T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1986-09-14T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1986-09-14T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1986-09-14T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1986-09-14T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1986-04-20T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1986-04-20T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1986-04-20T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1986-04-20T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1986-09-14T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1986-09-14T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1986-09-14T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1986-09-14T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-19T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1987-04-19T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1987-04-19T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1987-04-19T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1987-09-13T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1987-09-13T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1987-09-13T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1987-09-13T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1987-04-19T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1987-04-19T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1987-04-19T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1987-04-19T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1987-09-13T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1987-09-13T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1987-09-13T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1987-09-13T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-17T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1988-04-17T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1988-04-17T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1988-04-17T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1988-09-11T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1988-09-11T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1988-09-11T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1988-09-11T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1988-04-17T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1988-04-17T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1988-04-17T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1988-04-17T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1988-09-11T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1988-09-11T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1988-09-11T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1988-09-11T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-16T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1989-04-16T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1989-04-16T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1989-04-16T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1989-09-10T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1989-09-10T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1989-09-10T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1989-09-10T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1989-04-16T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1989-04-16T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1989-04-16T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1989-04-16T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1989-09-10T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1989-09-10T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1989-09-10T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1989-09-10T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-22T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1990-04-22T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1990-04-22T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1990-04-22T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1990-09-09T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1990-09-09T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1990-09-09T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1990-09-09T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1990-04-22T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1990-04-22T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1990-04-22T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1990-04-22T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1990-09-09T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1990-09-09T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1990-09-09T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1990-09-09T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-21T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1991-04-21T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1991-04-21T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1991-04-21T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1991-09-15T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1991-09-15T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1991-09-15T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1991-09-15T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1991-04-21T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1991-04-21T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1991-04-21T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1991-04-21T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1991-09-15T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1991-09-15T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1991-09-15T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1991-09-15T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-19T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1992-04-19T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1992-04-19T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1992-04-19T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1992-09-13T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1992-09-13T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1992-09-13T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1992-09-13T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1992-04-19T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1992-04-19T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1992-04-19T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1992-04-19T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1992-09-13T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1992-09-13T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1992-09-13T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1992-09-13T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-18T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1993-04-18T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1993-04-18T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1993-04-18T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1993-09-12T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1993-09-12T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1993-09-12T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1993-09-12T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1993-04-18T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1993-04-18T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1993-04-18T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1993-04-18T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1993-09-12T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1993-09-12T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1993-09-12T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1993-09-12T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-17T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1994-04-17T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1994-04-17T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1994-04-17T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1994-09-11T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1994-09-11T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1994-09-11T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1994-09-11T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1994-04-17T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1994-04-17T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1994-04-17T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1994-04-17T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1994-09-11T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1994-09-11T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1994-09-11T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1994-09-11T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-16T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1995-04-16T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1995-04-16T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1995-04-16T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1995-09-10T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1995-09-10T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1995-09-10T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1995-09-10T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1995-04-16T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1995-04-16T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1995-04-16T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1995-04-16T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1995-09-10T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1995-09-10T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1995-09-10T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1995-09-10T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-21T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1996-04-21T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1996-04-21T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1996-04-21T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1996-09-15T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1996-09-15T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1996-09-15T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1996-09-15T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1996-04-21T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1996-04-21T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1996-04-21T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1996-04-21T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1996-09-15T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1996-09-15T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1996-09-15T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1996-09-15T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-20T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1997-04-20T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1997-04-20T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1997-04-20T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1997-09-14T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1997-09-14T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1997-09-14T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1997-09-14T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1997-04-20T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1997-04-20T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1997-04-20T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1997-04-20T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1997-09-14T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1997-09-14T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1997-09-14T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1997-09-14T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-19T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1998-04-19T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1998-04-19T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1998-04-19T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1998-09-13T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1998-09-13T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1998-09-13T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1998-09-13T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1998-04-19T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1998-04-19T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1998-04-19T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1998-04-19T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1998-09-13T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1998-09-13T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1998-09-13T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1998-09-13T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-18T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1999-04-18T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("1999-04-18T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "1999-04-18T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("1999-09-12T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "1999-09-12T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("1999-09-12T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "1999-09-12T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("1999-04-18T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "1999-04-18T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("1999-04-18T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "1999-04-18T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1999-09-12T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "1999-09-12T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("1999-09-12T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "1999-09-12T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-16T02:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "2000-04-16T02:59:59+00:00 should be 23:59:59 FKST"); - t.equal(moment("2000-04-16T03:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:00:00", "2000-04-16T03:00:00+00:00 should be 23:00:00 FKT"); - t.equal(moment("2000-09-10T03:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "23:59:59", "2000-09-10T03:59:59+00:00 should be 23:59:59 FKT"); - t.equal(moment("2000-09-10T04:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2000-09-10T04:00:00+00:00 should be 01:00:00 FKST"); - - t.equal(moment("2000-04-16T02:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2000-04-16T02:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2000-04-16T03:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2000-04-16T03:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2000-09-10T03:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2000-09-10T03:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2000-09-10T04:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2000-09-10T04:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-15T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2001-04-15T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2001-04-15T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2001-04-15T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2001-09-02T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2001-09-02T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2001-09-02T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2001-09-02T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2001-04-15T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2001-04-15T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2001-04-15T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2001-04-15T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2001-09-02T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2001-09-02T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2001-09-02T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2001-09-02T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-21T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2002-04-21T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2002-04-21T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2002-04-21T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2002-09-01T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2002-09-01T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2002-09-01T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2002-09-01T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2002-04-21T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2002-04-21T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2002-04-21T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2002-04-21T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2002-09-01T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2002-09-01T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2002-09-01T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2002-09-01T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-20T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2003-04-20T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2003-04-20T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2003-04-20T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2003-09-07T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2003-09-07T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2003-09-07T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2003-09-07T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2003-04-20T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2003-04-20T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2003-04-20T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2003-04-20T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2003-09-07T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2003-09-07T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2003-09-07T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2003-09-07T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-18T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2004-04-18T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2004-04-18T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2004-04-18T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2004-09-05T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2004-09-05T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2004-09-05T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2004-09-05T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2004-04-18T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2004-04-18T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2004-04-18T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2004-04-18T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2004-09-05T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2004-09-05T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2004-09-05T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2004-09-05T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-17T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2005-04-17T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2005-04-17T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2005-04-17T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2005-09-04T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2005-09-04T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2005-09-04T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2005-09-04T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2005-04-17T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2005-04-17T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2005-04-17T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2005-04-17T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2005-09-04T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2005-09-04T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2005-09-04T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2005-09-04T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-16T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2006-04-16T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2006-04-16T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2006-04-16T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2006-09-03T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2006-09-03T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2006-09-03T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2006-09-03T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2006-04-16T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2006-04-16T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2006-04-16T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2006-04-16T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2006-09-03T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2006-09-03T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2006-09-03T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2006-09-03T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-04-15T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2007-04-15T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2007-04-15T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2007-04-15T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2007-09-02T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2007-09-02T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2007-09-02T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2007-09-02T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2007-04-15T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2007-04-15T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2007-04-15T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2007-04-15T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2007-09-02T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2007-09-02T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2007-09-02T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2007-09-02T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-20T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2008-04-20T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2008-04-20T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2008-04-20T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2008-09-07T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2008-09-07T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2008-09-07T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2008-09-07T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2008-04-20T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2008-04-20T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2008-04-20T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2008-04-20T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2008-09-07T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2008-09-07T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2008-09-07T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2008-09-07T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-19T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2009-04-19T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2009-04-19T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2009-04-19T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2009-09-06T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2009-09-06T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2009-09-06T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2009-09-06T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2009-04-19T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2009-04-19T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2009-04-19T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2009-04-19T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2009-09-06T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2009-09-06T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2009-09-06T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2009-09-06T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-18T04:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2010-04-18T04:59:59+00:00 should be 01:59:59 FKST"); - t.equal(moment("2010-04-18T05:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:00:00", "2010-04-18T05:00:00+00:00 should be 01:00:00 FKT"); - t.equal(moment("2010-09-05T05:59:59+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "01:59:59", "2010-09-05T05:59:59+00:00 should be 01:59:59 FKT"); - t.equal(moment("2010-09-05T06:00:00+00:00").tz("Atlantic/Stanley").format("HH:mm:ss"), "03:00:00", "2010-09-05T06:00:00+00:00 should be 03:00:00 FKST"); - - t.equal(moment("2010-04-18T04:59:59+00:00").tz("Atlantic/Stanley").zone(), 180, "2010-04-18T04:59:59+00:00 should be 180 minutes offset in FKST"); - t.equal(moment("2010-04-18T05:00:00+00:00").tz("Atlantic/Stanley").zone(), 240, "2010-04-18T05:00:00+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2010-09-05T05:59:59+00:00").tz("Atlantic/Stanley").zone(), 240, "2010-09-05T05:59:59+00:00 should be 240 minutes offset in FKT"); - t.equal(moment("2010-09-05T06:00:00+00:00").tz("Atlantic/Stanley").zone(), 180, "2010-09-05T06:00:00+00:00 should be 180 minutes offset in FKST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/adelaide.js b/tests/australia/adelaide.js deleted file mode 100644 index 24392c57..00000000 --- a/tests/australia/adelaide.js +++ /dev/null @@ -1,1006 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Adelaide"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T14:30:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "00:00:59", "1916-12-31T14:30:59+00:00 should be 00:00:59 CST"); - t.equal(moment("1916-12-31T14:31:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:01:00", "1916-12-31T14:31:00+00:00 should be 01:01:00 CST"); - - t.equal(moment("1916-12-31T14:30:59+00:00").tz("Australia/Adelaide").zone(), -570, "1916-12-31T14:30:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1916-12-31T14:31:00+00:00").tz("Australia/Adelaide").zone(), -630, "1916-12-31T14:31:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T15:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1917-03-24T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1917-03-24T15:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:30:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1917-03-24T15:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1917-03-24T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1917-03-24T15:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1917-03-24T15:30:00+00:00 should be -570 minutes offset in CST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1941-12-31T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1941-12-31T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1941-12-31T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1941-12-31T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1941-12-31T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1941-12-31T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1941-12-31T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T15:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1942-03-28T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-03-28T15:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:00:00", "1942-03-28T15:30:00+00:00 should be 01:00:00 CST"); - t.equal(moment("1942-09-26T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1942-09-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-09-26T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1942-09-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1942-03-28T15:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1942-03-28T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1942-03-28T15:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1942-03-28T15:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1942-09-26T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1942-09-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1942-09-26T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1942-09-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T15:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1943-03-27T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1943-03-27T15:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:00:00", "1943-03-27T15:30:00+00:00 should be 01:00:00 CST"); - t.equal(moment("1943-10-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1943-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1943-10-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1943-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1943-03-27T15:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1943-03-27T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1943-03-27T15:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1943-03-27T15:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1943-10-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1943-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1943-10-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1943-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-25T15:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1944-03-25T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1944-03-25T15:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:00:00", "1944-03-25T15:30:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1944-03-25T15:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1944-03-25T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1944-03-25T15:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1944-03-25T15:30:00+00:00 should be -570 minutes offset in CST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-10-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1971-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1971-10-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1971-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1971-10-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1971-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1971-10-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1971-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-02-26T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1972-02-26T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1972-02-26T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1972-02-26T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1972-10-28T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1972-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1972-10-28T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1972-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1972-02-26T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1972-02-26T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1972-02-26T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1972-02-26T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1972-10-28T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1972-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1972-10-28T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1972-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1973-03-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1973-03-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1973-03-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1973-10-27T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1973-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1973-10-27T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1973-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1973-03-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1973-03-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1973-03-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1973-03-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1973-10-27T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1973-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1973-10-27T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1973-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1974-03-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1974-03-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1974-03-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1974-10-26T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1974-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-10-26T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1974-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1974-03-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1974-03-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1974-03-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1974-03-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1974-10-26T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1974-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1974-10-26T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1974-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1975-03-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1975-03-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1975-03-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1975-10-25T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1975-10-25T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-10-25T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1975-10-25T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1975-03-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1975-03-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1975-03-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1975-03-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1975-10-25T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1975-10-25T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1975-10-25T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1975-10-25T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1976-03-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1976-03-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1976-03-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1976-10-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1976-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-10-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1976-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1976-03-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1976-03-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1976-03-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1976-03-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1976-10-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1976-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1976-10-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1976-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1977-03-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1977-03-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1977-03-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1977-10-29T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1977-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-10-29T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1977-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1977-03-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1977-03-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1977-03-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1977-03-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1977-10-29T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1977-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1977-10-29T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1977-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1978-03-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1978-03-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1978-03-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1978-10-28T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1978-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1978-10-28T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1978-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1978-03-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1978-03-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1978-03-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1978-03-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1978-10-28T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1978-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1978-10-28T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1978-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1979-03-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1979-03-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1979-03-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1979-10-27T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1979-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1979-10-27T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1979-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1979-03-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1979-03-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1979-03-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1979-03-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1979-10-27T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1979-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1979-10-27T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1979-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1980-03-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1980-03-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1980-03-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1980-10-25T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1980-10-25T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-10-25T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1980-10-25T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1980-03-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1980-03-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1980-03-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1980-03-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1980-10-25T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1980-10-25T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1980-10-25T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1980-10-25T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1981-02-28T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1981-02-28T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1981-02-28T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1981-10-24T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1981-10-24T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-10-24T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1981-10-24T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1981-02-28T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1981-02-28T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1981-02-28T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1981-02-28T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1981-10-24T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1981-10-24T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1981-10-24T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1981-10-24T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1982-03-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1982-03-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1982-03-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1982-10-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1982-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-10-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1982-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1982-03-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1982-03-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1982-03-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1982-03-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1982-10-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1982-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1982-10-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1982-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1983-03-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1983-03-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1983-03-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1983-10-29T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1983-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-10-29T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1983-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1983-03-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1983-03-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1983-03-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1983-03-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1983-10-29T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1983-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1983-10-29T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1983-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1984-03-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1984-03-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1984-03-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1984-10-27T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1984-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-10-27T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1984-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1984-03-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1984-03-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1984-03-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1984-03-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1984-10-27T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1984-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1984-10-27T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1984-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1985-03-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1985-03-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1985-03-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1985-10-26T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1985-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-10-26T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1985-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1985-03-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1985-03-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1985-03-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1985-03-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1985-10-26T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1985-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1985-10-26T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1985-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1986-03-15T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1986-03-15T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1986-03-15T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1986-10-18T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1986-10-18T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-10-18T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1986-10-18T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1986-03-15T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1986-03-15T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1986-03-15T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1986-03-15T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1986-10-18T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1986-10-18T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1986-10-18T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1986-10-18T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-14T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1987-03-14T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1987-03-14T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1987-03-14T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1987-10-24T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1987-10-24T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-10-24T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1987-10-24T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1987-03-14T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1987-03-14T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1987-03-14T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1987-03-14T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1987-10-24T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1987-10-24T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1987-10-24T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1987-10-24T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-19T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1988-03-19T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1988-03-19T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1988-03-19T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1988-10-29T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1988-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-10-29T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1988-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1988-03-19T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1988-03-19T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1988-03-19T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1988-03-19T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1988-10-29T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1988-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1988-10-29T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1988-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-18T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1989-03-18T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1989-03-18T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1989-03-18T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1989-10-28T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1989-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-10-28T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1989-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1989-03-18T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1989-03-18T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1989-03-18T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1989-03-18T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1989-10-28T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1989-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1989-10-28T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1989-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-17T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1990-03-17T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1990-03-17T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1990-03-17T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1990-10-27T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1990-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-10-27T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1990-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1990-03-17T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1990-03-17T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1990-03-17T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1990-03-17T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1990-10-27T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1990-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1990-10-27T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1990-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1991-03-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1991-03-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1991-03-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1991-10-26T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1991-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-10-26T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1991-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1991-03-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1991-03-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1991-03-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1991-03-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1991-10-26T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1991-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1991-10-26T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1991-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-21T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1992-03-21T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1992-03-21T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1992-03-21T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1992-10-24T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1992-10-24T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-10-24T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1992-10-24T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1992-03-21T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1992-03-21T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1992-03-21T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1992-03-21T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1992-10-24T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1992-10-24T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1992-10-24T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1992-10-24T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1993-03-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1993-03-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1993-03-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1993-10-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1993-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-10-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1993-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1993-03-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1993-03-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1993-03-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1993-03-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1993-10-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1993-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1993-10-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1993-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-19T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1994-03-19T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1994-03-19T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1994-03-19T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1994-10-29T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1994-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-10-29T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1994-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1994-03-19T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1994-03-19T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1994-03-19T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1994-03-19T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1994-10-29T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1994-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1994-10-29T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1994-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1995-03-25T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1995-03-25T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1995-03-25T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1995-10-28T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1995-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-10-28T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1995-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1995-03-25T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1995-03-25T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1995-03-25T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1995-03-25T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1995-10-28T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1995-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1995-10-28T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1995-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1996-03-30T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1996-03-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1996-03-30T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1996-10-26T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1996-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-10-26T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1996-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1996-03-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1996-03-30T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1996-03-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1996-03-30T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1996-10-26T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1996-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1996-10-26T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1996-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1997-03-29T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1997-03-29T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1997-03-29T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1997-10-25T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1997-10-25T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-10-25T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1997-10-25T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1997-03-29T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1997-03-29T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1997-03-29T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1997-03-29T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1997-10-25T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1997-10-25T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1997-10-25T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1997-10-25T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1998-03-28T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1998-03-28T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1998-03-28T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1998-10-24T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1998-10-24T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-10-24T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1998-10-24T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1998-03-28T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1998-03-28T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1998-03-28T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1998-03-28T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1998-10-24T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1998-10-24T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1998-10-24T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1998-10-24T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "1999-03-27T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1999-03-27T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "1999-03-27T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1999-10-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "1999-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-10-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "1999-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1999-03-27T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "1999-03-27T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1999-03-27T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "1999-03-27T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1999-10-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "1999-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1999-10-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "1999-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2000-03-25T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2000-03-25T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2000-03-25T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2000-10-28T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2000-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-10-28T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2000-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2000-03-25T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2000-03-25T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2000-03-25T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2000-03-25T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2000-10-28T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2000-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2000-10-28T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2000-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2001-03-24T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2001-03-24T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2001-03-24T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2001-10-27T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2001-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-10-27T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2001-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2001-03-24T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2001-03-24T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2001-03-24T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2001-03-24T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2001-10-27T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2001-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2001-10-27T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2001-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2002-03-30T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2002-03-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2002-03-30T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2002-10-26T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2002-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-10-26T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2002-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2002-03-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2002-03-30T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2002-03-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2002-03-30T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2002-10-26T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2002-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2002-10-26T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2002-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2003-03-29T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2003-03-29T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2003-03-29T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2003-10-25T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2003-10-25T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-10-25T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2003-10-25T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2003-03-29T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2003-03-29T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2003-03-29T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2003-03-29T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2003-10-25T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2003-10-25T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2003-10-25T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2003-10-25T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2004-03-27T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2004-03-27T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2004-03-27T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2004-10-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2004-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-10-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2004-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2004-03-27T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2004-03-27T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2004-03-27T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2004-03-27T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2004-10-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2004-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2004-10-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2004-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2005-03-26T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2005-03-26T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2005-03-26T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2005-10-29T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2005-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-10-29T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2005-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2005-03-26T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2005-03-26T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2005-03-26T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2005-03-26T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2005-10-29T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2005-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2005-10-29T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2005-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2006-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2006-04-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2006-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2006-10-28T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2006-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-10-28T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2006-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2006-04-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2006-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2006-04-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2006-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2006-10-28T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2006-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2006-10-28T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2006-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2007-03-24T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2007-03-24T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2007-03-24T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2007-10-27T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2007-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-10-27T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2007-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2007-03-24T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2007-03-24T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2007-03-24T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2007-03-24T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2007-10-27T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2007-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2007-10-27T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2007-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2008-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2008-04-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2008-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2008-10-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2008-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-10-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2008-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2008-04-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2008-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2008-04-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2008-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2008-10-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2008-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2008-10-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2008-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2009-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2009-04-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2009-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2009-10-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2009-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-10-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2009-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2009-04-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2009-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2009-04-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2009-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2009-10-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2009-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2009-10-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2009-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2010-04-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2010-04-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2010-04-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2010-10-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2010-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-10-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2010-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2010-04-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2010-04-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2010-04-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2010-04-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2010-10-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2010-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2010-10-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2010-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2011-04-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2011-04-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2011-04-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2011-10-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2011-10-01T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-10-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2011-10-01T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2011-04-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2011-04-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2011-04-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2011-04-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2011-10-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2011-10-01T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2011-10-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2011-10-01T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2012-03-31T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2012-03-31T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2012-03-31T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2012-10-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2012-10-06T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-10-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2012-10-06T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2012-03-31T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2012-03-31T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2012-03-31T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2012-03-31T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2012-10-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2012-10-06T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2012-10-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2012-10-06T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2013-04-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2013-04-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2013-04-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2013-10-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2013-10-05T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-10-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2013-10-05T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2013-04-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2013-04-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2013-04-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2013-04-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2013-10-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2013-10-05T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2013-10-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2013-10-05T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2014-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2014-04-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2014-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2014-10-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2014-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-10-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2014-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2014-04-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2014-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2014-04-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2014-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2014-10-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2014-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2014-10-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2014-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2015-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2015-04-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2015-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2015-10-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2015-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-10-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2015-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2015-04-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2015-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2015-04-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2015-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2015-10-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2015-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2015-10-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2015-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2016-04-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2016-04-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2016-04-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2016-10-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2016-10-01T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-10-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2016-10-01T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2016-04-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2016-04-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2016-04-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2016-04-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2016-10-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2016-10-01T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2016-10-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2016-10-01T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2017-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2017-04-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2017-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2017-09-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2017-09-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-09-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2017-09-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2017-04-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2017-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2017-04-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2017-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2017-09-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2017-09-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2017-09-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2017-09-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2018-03-31T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2018-03-31T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2018-03-31T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2018-10-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2018-10-06T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-10-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2018-10-06T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2018-03-31T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2018-03-31T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2018-03-31T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2018-03-31T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2018-10-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2018-10-06T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2018-10-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2018-10-06T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2019-04-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2019-04-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2019-04-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2019-10-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2019-10-05T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-10-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2019-10-05T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2019-04-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2019-04-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2019-04-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2019-04-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2019-10-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2019-10-05T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2019-10-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2019-10-05T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2020-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2020-04-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2020-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2020-10-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2020-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-10-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2020-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2020-04-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2020-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2020-04-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2020-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2020-10-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2020-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2020-10-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2020-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2021-04-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2021-04-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2021-04-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2021-10-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2021-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-10-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2021-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2021-04-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2021-04-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2021-04-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2021-04-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2021-10-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2021-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2021-10-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2021-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2022-04-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2022-04-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2022-04-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2022-10-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2022-10-01T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-10-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2022-10-01T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2022-04-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2022-04-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2022-04-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2022-04-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2022-10-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2022-10-01T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2022-10-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2022-10-01T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2023-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2023-04-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2023-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2023-09-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2023-09-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-09-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2023-09-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2023-04-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2023-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2023-04-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2023-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2023-09-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2023-09-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2023-09-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2023-09-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2024-04-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2024-04-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2024-04-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2024-10-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2024-10-05T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-10-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2024-10-05T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2024-04-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2024-04-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2024-04-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2024-04-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2024-10-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2024-10-05T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2024-10-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2024-10-05T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2025-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2025-04-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2025-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2025-10-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2025-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-10-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2025-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2025-04-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2025-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2025-04-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2025-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2025-10-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2025-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2025-10-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2025-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2026-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2026-04-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2026-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2026-10-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2026-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-10-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2026-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2026-04-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2026-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2026-04-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2026-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2026-10-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2026-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2026-10-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2026-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2027-04-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2027-04-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2027-04-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2027-10-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2027-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-10-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2027-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2027-04-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2027-04-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2027-04-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2027-04-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2027-10-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2027-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2027-10-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2027-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2028-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2028-04-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2028-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2028-09-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2028-09-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-09-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2028-09-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2028-04-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2028-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2028-04-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2028-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2028-09-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2028-09-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2028-09-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2028-09-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2029-03-31T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2029-03-31T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2029-03-31T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2029-10-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2029-10-06T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-10-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2029-10-06T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2029-03-31T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2029-03-31T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2029-03-31T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2029-03-31T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2029-10-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2029-10-06T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2029-10-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2029-10-06T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2030-04-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2030-04-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2030-04-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2030-10-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2030-10-05T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-10-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2030-10-05T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2030-04-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2030-04-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2030-04-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2030-04-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2030-10-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2030-10-05T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2030-10-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2030-10-05T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2031-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2031-04-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2031-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2031-10-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2031-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-10-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2031-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2031-04-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2031-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2031-04-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2031-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2031-10-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2031-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2031-10-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2031-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2032-04-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2032-04-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2032-04-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2032-10-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2032-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-10-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2032-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2032-04-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2032-04-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2032-04-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2032-04-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2032-10-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2032-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2032-10-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2032-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2033-04-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2033-04-02T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2033-04-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2033-10-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2033-10-01T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-10-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2033-10-01T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2033-04-02T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2033-04-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2033-04-02T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2033-04-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2033-10-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2033-10-01T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2033-10-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2033-10-01T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2034-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2034-04-01T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2034-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2034-09-30T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2034-09-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-09-30T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2034-09-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2034-04-01T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2034-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2034-04-01T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2034-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2034-09-30T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2034-09-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2034-09-30T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2034-09-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2035-03-31T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2035-03-31T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2035-03-31T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2035-10-06T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2035-10-06T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-10-06T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2035-10-06T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2035-03-31T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2035-03-31T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2035-03-31T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2035-03-31T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2035-10-06T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2035-10-06T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2035-10-06T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2035-10-06T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2036-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2036-04-05T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2036-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2036-10-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2036-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-10-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2036-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2036-04-05T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2036-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2036-04-05T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2036-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2036-10-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2036-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2036-10-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2036-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:59:59", "2037-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2037-04-04T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "02:00:00", "2037-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2037-10-03T16:29:59+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "01:59:59", "2037-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-10-03T16:30:00+00:00").tz("Australia/Adelaide").format("HH:mm:ss"), "03:00:00", "2037-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2037-04-04T16:29:59+00:00").tz("Australia/Adelaide").zone(), -630, "2037-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2037-04-04T16:30:00+00:00").tz("Australia/Adelaide").zone(), -570, "2037-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2037-10-03T16:29:59+00:00").tz("Australia/Adelaide").zone(), -570, "2037-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2037-10-03T16:30:00+00:00").tz("Australia/Adelaide").zone(), -630, "2037-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/brisbane.js b/tests/australia/brisbane.js deleted file mode 100644 index dc1d17da..00000000 --- a/tests/australia/brisbane.js +++ /dev/null @@ -1,140 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Brisbane"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T14:00:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "00:00:59", "1916-12-31T14:00:59+00:00 should be 00:00:59 EST"); - t.equal(moment("1916-12-31T14:01:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:01:00", "1916-12-31T14:01:00+00:00 should be 01:01:00 EST"); - - t.equal(moment("1916-12-31T14:00:59+00:00").tz("Australia/Brisbane").zone(), -600, "1916-12-31T14:00:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1916-12-31T14:01:00+00:00").tz("Australia/Brisbane").zone(), -660, "1916-12-31T14:01:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1917-03-24T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Brisbane").zone(), -660, "1917-03-24T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Brisbane").zone(), -600, "1917-03-24T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1941-12-31T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "03:00:00", "1941-12-31T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Brisbane").zone(), -600, "1941-12-31T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Brisbane").zone(), -660, "1941-12-31T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1942-03-28T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:00:00", "1942-03-28T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1942-09-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "03:00:00", "1942-09-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Brisbane").zone(), -660, "1942-03-28T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Brisbane").zone(), -600, "1942-03-28T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Brisbane").zone(), -600, "1942-09-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Brisbane").zone(), -660, "1942-09-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1943-03-27T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:00:00", "1943-03-27T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1943-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "03:00:00", "1943-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Brisbane").zone(), -660, "1943-03-27T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Brisbane").zone(), -600, "1943-03-27T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Brisbane").zone(), -600, "1943-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Brisbane").zone(), -660, "1943-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1944-03-25T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:00:00", "1944-03-25T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Brisbane").zone(), -660, "1944-03-25T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Brisbane").zone(), -600, "1944-03-25T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1971-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "03:00:00", "1971-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Brisbane").zone(), -600, "1971-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Brisbane").zone(), -660, "1971-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "02:59:59", "1972-02-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "02:00:00", "1972-02-26T16:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Brisbane").zone(), -660, "1972-02-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Brisbane").zone(), -600, "1972-02-26T16:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1989-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "03:00:00", "1989-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Brisbane").zone(), -600, "1989-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Brisbane").zone(), -660, "1989-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-03T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "02:59:59", "1990-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1990-03-03T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "02:00:00", "1990-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1990-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "03:00:00", "1990-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1990-03-03T15:59:59+00:00").tz("Australia/Brisbane").zone(), -660, "1990-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1990-03-03T16:00:00+00:00").tz("Australia/Brisbane").zone(), -600, "1990-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Brisbane").zone(), -600, "1990-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Brisbane").zone(), -660, "1990-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-02T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "02:59:59", "1991-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1991-03-02T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "02:00:00", "1991-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1991-10-26T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "01:59:59", "1991-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-10-26T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "03:00:00", "1991-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1991-03-02T15:59:59+00:00").tz("Australia/Brisbane").zone(), -660, "1991-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1991-03-02T16:00:00+00:00").tz("Australia/Brisbane").zone(), -600, "1991-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-26T15:59:59+00:00").tz("Australia/Brisbane").zone(), -600, "1991-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-26T16:00:00+00:00").tz("Australia/Brisbane").zone(), -660, "1991-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-29T15:59:59+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "02:59:59", "1992-02-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1992-02-29T16:00:00+00:00").tz("Australia/Brisbane").format("HH:mm:ss"), "02:00:00", "1992-02-29T16:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1992-02-29T15:59:59+00:00").tz("Australia/Brisbane").zone(), -660, "1992-02-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1992-02-29T16:00:00+00:00").tz("Australia/Brisbane").zone(), -600, "1992-02-29T16:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/broken_hill.js b/tests/australia/broken_hill.js deleted file mode 100644 index fe0bebd7..00000000 --- a/tests/australia/broken_hill.js +++ /dev/null @@ -1,1006 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Broken_Hill"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T14:30:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "00:00:59", "1916-12-31T14:30:59+00:00 should be 00:00:59 CST"); - t.equal(moment("1916-12-31T14:31:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:01:00", "1916-12-31T14:31:00+00:00 should be 01:01:00 CST"); - - t.equal(moment("1916-12-31T14:30:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1916-12-31T14:30:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1916-12-31T14:31:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1916-12-31T14:31:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T15:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1917-03-24T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1917-03-24T15:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:30:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1917-03-24T15:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1917-03-24T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1917-03-24T15:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1917-03-24T15:30:00+00:00 should be -570 minutes offset in CST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1941-12-31T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1941-12-31T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1941-12-31T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1941-12-31T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1941-12-31T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1941-12-31T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1941-12-31T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T15:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1942-03-28T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-03-28T15:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:00:00", "1942-03-28T15:30:00+00:00 should be 01:00:00 CST"); - t.equal(moment("1942-09-26T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1942-09-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-09-26T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1942-09-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1942-03-28T15:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1942-03-28T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1942-03-28T15:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1942-03-28T15:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1942-09-26T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1942-09-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1942-09-26T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1942-09-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T15:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1943-03-27T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1943-03-27T15:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:00:00", "1943-03-27T15:30:00+00:00 should be 01:00:00 CST"); - t.equal(moment("1943-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1943-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1943-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1943-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1943-03-27T15:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1943-03-27T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1943-03-27T15:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1943-03-27T15:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1943-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1943-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1943-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1943-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-25T15:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1944-03-25T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1944-03-25T15:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:00:00", "1944-03-25T15:30:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1944-03-25T15:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1944-03-25T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1944-03-25T15:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1944-03-25T15:30:00+00:00 should be -570 minutes offset in CST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1971-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1971-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1971-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1971-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1971-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1971-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1971-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-02-26T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1972-02-26T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1972-02-26T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1972-02-26T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1972-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1972-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1972-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1972-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1972-02-26T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1972-02-26T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1972-02-26T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1972-02-26T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1972-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1972-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1972-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1972-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1973-03-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1973-03-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1973-03-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1973-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1973-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1973-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1973-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1973-03-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1973-03-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1973-03-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1973-03-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1973-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1973-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1973-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1973-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1974-03-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1974-03-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1974-03-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1974-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1974-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1974-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1974-03-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1974-03-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1974-03-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1974-03-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1974-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1974-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1974-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1974-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1975-03-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1975-03-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1975-03-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1975-10-25T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1975-10-25T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-10-25T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1975-10-25T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1975-03-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1975-03-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1975-03-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1975-03-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1975-10-25T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1975-10-25T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1975-10-25T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1975-10-25T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1976-03-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1976-03-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1976-03-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1976-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1976-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1976-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1976-03-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1976-03-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1976-03-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1976-03-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1976-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1976-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1976-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1976-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1977-03-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1977-03-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1977-03-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1977-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1977-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1977-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1977-03-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1977-03-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1977-03-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1977-03-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1977-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1977-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1977-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1977-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1978-03-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1978-03-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1978-03-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1978-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1978-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1978-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1978-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1978-03-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1978-03-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1978-03-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1978-03-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1978-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1978-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1978-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1978-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1979-03-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1979-03-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1979-03-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1979-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1979-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1979-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1979-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1979-03-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1979-03-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1979-03-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1979-03-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1979-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1979-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1979-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1979-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1980-03-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1980-03-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1980-03-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1980-10-25T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1980-10-25T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-10-25T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1980-10-25T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1980-03-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1980-03-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1980-03-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1980-03-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1980-10-25T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1980-10-25T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1980-10-25T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1980-10-25T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1981-02-28T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1981-02-28T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1981-02-28T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1981-10-24T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1981-10-24T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-10-24T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1981-10-24T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1981-02-28T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1981-02-28T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1981-02-28T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1981-02-28T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1981-10-24T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1981-10-24T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1981-10-24T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1981-10-24T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1982-04-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1982-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1982-04-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1982-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1982-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1982-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1982-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1982-04-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1982-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1982-04-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1982-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1982-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1982-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1982-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1983-03-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1983-03-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1983-03-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1983-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1983-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1983-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1983-03-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1983-03-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1983-03-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1983-03-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1983-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1983-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1983-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1983-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1984-03-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1984-03-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1984-03-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1984-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1984-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1984-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1984-03-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1984-03-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1984-03-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1984-03-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1984-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1984-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1984-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1984-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1985-03-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1985-03-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1985-03-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1985-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1985-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1985-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1985-03-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1985-03-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1985-03-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1985-03-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1985-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1985-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1985-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1985-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1986-03-15T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1986-03-15T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1986-03-15T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1986-10-18T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1986-10-18T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-10-18T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1986-10-18T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1986-03-15T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1986-03-15T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1986-03-15T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1986-03-15T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1986-10-18T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1986-10-18T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1986-10-18T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1986-10-18T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-14T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1987-03-14T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1987-03-14T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1987-03-14T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1987-10-24T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1987-10-24T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-10-24T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1987-10-24T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1987-03-14T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1987-03-14T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1987-03-14T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1987-03-14T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1987-10-24T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1987-10-24T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1987-10-24T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1987-10-24T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-19T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1988-03-19T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1988-03-19T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1988-03-19T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1988-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1988-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1988-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1988-03-19T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1988-03-19T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1988-03-19T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1988-03-19T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1988-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1988-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1988-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1988-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-18T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1989-03-18T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1989-03-18T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1989-03-18T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1989-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1989-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1989-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1989-03-18T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1989-03-18T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1989-03-18T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1989-03-18T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1989-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1989-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1989-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1989-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1990-03-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1990-03-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1990-03-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1990-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1990-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1990-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1990-03-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1990-03-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1990-03-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1990-03-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1990-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1990-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1990-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1990-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1991-03-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1991-03-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1991-03-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1991-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1991-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1991-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1991-03-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1991-03-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1991-03-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1991-03-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1991-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1991-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1991-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1991-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-29T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1992-02-29T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1992-02-29T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1992-02-29T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1992-10-24T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1992-10-24T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-10-24T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1992-10-24T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1992-02-29T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1992-02-29T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1992-02-29T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1992-02-29T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1992-10-24T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1992-10-24T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1992-10-24T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1992-10-24T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1993-03-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1993-03-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1993-03-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1993-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1993-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1993-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1993-03-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1993-03-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1993-03-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1993-03-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1993-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1993-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1993-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1993-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1994-03-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1994-03-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1994-03-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1994-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1994-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1994-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1994-03-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1994-03-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1994-03-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1994-03-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1994-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1994-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1994-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1994-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1995-03-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1995-03-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1995-03-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1995-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1995-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1995-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1995-03-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1995-03-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1995-03-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1995-03-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1995-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1995-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1995-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1995-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1996-03-30T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1996-03-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1996-03-30T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1996-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1996-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1996-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1996-03-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1996-03-30T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1996-03-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1996-03-30T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1996-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1996-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1996-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1996-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1997-03-29T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1997-03-29T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1997-03-29T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1997-10-25T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1997-10-25T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-10-25T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1997-10-25T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1997-03-29T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1997-03-29T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1997-03-29T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1997-03-29T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1997-10-25T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1997-10-25T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1997-10-25T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1997-10-25T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1998-03-28T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1998-03-28T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1998-03-28T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1998-10-24T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1998-10-24T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-10-24T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1998-10-24T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1998-03-28T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1998-03-28T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1998-03-28T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1998-03-28T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1998-10-24T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1998-10-24T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1998-10-24T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1998-10-24T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "1999-03-27T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("1999-03-27T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "1999-03-27T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("1999-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "1999-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "1999-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1999-03-27T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "1999-03-27T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1999-03-27T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "1999-03-27T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1999-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "1999-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1999-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "1999-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2000-03-25T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2000-03-25T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2000-03-25T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2000-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2000-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2000-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2000-03-25T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2000-03-25T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2000-03-25T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2000-03-25T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2000-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2000-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2000-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2000-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2001-03-24T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2001-03-24T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2001-03-24T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2001-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2001-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2001-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2001-03-24T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2001-03-24T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2001-03-24T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2001-03-24T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2001-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2001-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2001-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2001-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2002-03-30T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2002-03-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2002-03-30T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2002-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2002-10-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2002-10-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2002-03-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2002-03-30T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2002-03-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2002-03-30T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2002-10-26T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2002-10-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2002-10-26T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2002-10-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2003-03-29T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2003-03-29T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2003-03-29T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2003-10-25T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2003-10-25T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-10-25T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2003-10-25T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2003-03-29T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2003-03-29T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2003-03-29T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2003-03-29T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2003-10-25T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2003-10-25T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2003-10-25T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2003-10-25T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2004-03-27T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2004-03-27T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2004-03-27T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2004-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2004-10-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2004-10-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2004-03-27T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2004-03-27T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2004-03-27T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2004-03-27T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2004-10-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2004-10-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2004-10-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2004-10-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2005-03-26T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2005-03-26T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2005-03-26T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2005-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2005-10-29T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2005-10-29T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2005-03-26T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2005-03-26T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2005-03-26T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2005-03-26T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2005-10-29T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2005-10-29T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2005-10-29T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2005-10-29T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2006-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2006-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2006-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2006-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2006-10-28T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2006-10-28T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2006-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2006-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2006-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2006-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2006-10-28T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2006-10-28T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2006-10-28T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2006-10-28T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2007-03-24T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2007-03-24T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2007-03-24T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2007-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2007-10-27T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2007-10-27T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2007-03-24T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2007-03-24T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2007-03-24T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2007-03-24T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2007-10-27T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2007-10-27T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2007-10-27T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2007-10-27T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2008-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2008-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2008-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2008-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2008-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2008-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2008-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2008-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2008-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2008-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2008-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2008-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2008-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2008-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2009-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2009-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2009-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2009-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2009-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2009-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2009-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2009-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2009-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2009-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2009-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2009-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2009-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2009-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2010-04-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2010-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2010-04-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2010-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2010-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2010-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2010-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2010-04-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2010-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2010-04-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2010-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2010-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2010-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2010-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2011-04-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2011-04-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2011-04-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2011-10-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2011-10-01T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-10-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2011-10-01T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2011-04-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2011-04-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2011-04-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2011-04-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2011-10-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2011-10-01T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2011-10-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2011-10-01T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2012-03-31T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2012-03-31T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2012-03-31T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2012-10-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2012-10-06T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-10-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2012-10-06T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2012-03-31T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2012-03-31T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2012-03-31T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2012-03-31T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2012-10-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2012-10-06T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2012-10-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2012-10-06T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2013-04-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2013-04-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2013-04-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2013-10-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2013-10-05T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-10-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2013-10-05T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2013-04-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2013-04-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2013-04-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2013-04-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2013-10-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2013-10-05T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2013-10-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2013-10-05T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2014-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2014-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2014-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2014-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2014-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2014-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2014-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2014-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2014-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2014-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2014-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2014-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2014-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2014-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2015-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2015-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2015-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2015-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2015-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2015-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2015-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2015-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2015-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2015-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2015-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2015-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2015-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2015-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2016-04-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2016-04-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2016-04-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2016-10-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2016-10-01T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-10-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2016-10-01T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2016-04-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2016-04-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2016-04-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2016-04-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2016-10-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2016-10-01T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2016-10-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2016-10-01T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2017-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2017-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2017-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2017-09-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2017-09-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-09-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2017-09-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2017-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2017-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2017-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2017-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2017-09-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2017-09-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2017-09-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2017-09-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2018-03-31T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2018-03-31T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2018-03-31T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2018-10-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2018-10-06T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-10-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2018-10-06T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2018-03-31T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2018-03-31T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2018-03-31T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2018-03-31T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2018-10-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2018-10-06T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2018-10-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2018-10-06T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2019-04-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2019-04-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2019-04-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2019-10-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2019-10-05T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-10-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2019-10-05T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2019-04-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2019-04-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2019-04-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2019-04-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2019-10-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2019-10-05T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2019-10-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2019-10-05T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2020-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2020-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2020-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2020-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2020-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2020-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2020-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2020-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2020-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2020-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2020-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2020-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2020-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2020-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2021-04-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2021-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2021-04-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2021-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2021-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2021-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2021-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2021-04-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2021-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2021-04-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2021-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2021-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2021-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2021-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2022-04-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2022-04-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2022-04-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2022-10-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2022-10-01T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-10-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2022-10-01T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2022-04-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2022-04-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2022-04-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2022-04-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2022-10-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2022-10-01T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2022-10-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2022-10-01T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2023-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2023-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2023-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2023-09-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2023-09-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-09-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2023-09-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2023-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2023-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2023-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2023-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2023-09-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2023-09-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2023-09-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2023-09-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2024-04-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2024-04-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2024-04-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2024-10-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2024-10-05T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-10-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2024-10-05T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2024-04-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2024-04-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2024-04-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2024-04-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2024-10-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2024-10-05T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2024-10-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2024-10-05T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2025-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2025-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2025-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2025-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2025-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2025-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2025-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2025-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2025-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2025-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2025-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2025-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2025-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2025-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2026-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2026-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2026-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2026-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2026-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2026-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2026-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2026-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2026-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2026-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2026-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2026-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2026-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2026-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2027-04-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2027-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2027-04-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2027-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2027-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2027-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2027-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2027-04-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2027-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2027-04-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2027-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2027-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2027-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2027-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2028-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2028-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2028-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2028-09-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2028-09-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-09-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2028-09-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2028-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2028-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2028-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2028-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2028-09-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2028-09-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2028-09-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2028-09-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2029-03-31T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2029-03-31T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2029-03-31T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2029-10-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2029-10-06T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-10-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2029-10-06T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2029-03-31T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2029-03-31T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2029-03-31T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2029-03-31T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2029-10-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2029-10-06T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2029-10-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2029-10-06T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2030-04-06T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2030-04-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2030-04-06T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2030-10-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2030-10-05T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-10-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2030-10-05T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2030-04-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2030-04-06T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2030-04-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2030-04-06T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2030-10-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2030-10-05T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2030-10-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2030-10-05T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2031-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2031-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2031-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2031-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2031-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2031-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2031-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2031-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2031-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2031-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2031-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2031-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2031-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2031-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2032-04-03T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2032-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2032-04-03T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2032-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2032-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2032-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2032-04-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2032-04-03T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2032-04-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2032-04-03T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2032-10-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2032-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2032-10-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2032-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2033-04-02T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2033-04-02T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2033-04-02T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2033-10-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2033-10-01T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-10-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2033-10-01T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2033-04-02T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2033-04-02T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2033-04-02T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2033-04-02T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2033-10-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2033-10-01T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2033-10-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2033-10-01T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2034-04-01T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2034-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2034-04-01T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2034-09-30T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2034-09-30T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-09-30T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2034-09-30T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2034-04-01T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2034-04-01T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2034-04-01T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2034-04-01T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2034-09-30T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2034-09-30T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2034-09-30T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2034-09-30T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2035-03-31T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2035-03-31T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2035-03-31T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2035-10-06T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2035-10-06T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-10-06T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2035-10-06T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2035-03-31T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2035-03-31T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2035-03-31T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2035-03-31T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2035-10-06T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2035-10-06T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2035-10-06T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2035-10-06T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2036-04-05T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2036-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2036-04-05T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2036-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2036-10-04T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2036-10-04T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2036-04-05T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2036-04-05T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2036-04-05T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2036-04-05T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2036-10-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2036-10-04T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2036-10-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2036-10-04T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:59:59", "2037-04-04T16:29:59+00:00 should be 02:59:59 CST"); - t.equal(moment("2037-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "02:00:00", "2037-04-04T16:30:00+00:00 should be 02:00:00 CST"); - t.equal(moment("2037-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "01:59:59", "2037-10-03T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").format("HH:mm:ss"), "03:00:00", "2037-10-03T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("2037-04-04T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -630, "2037-04-04T16:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("2037-04-04T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -570, "2037-04-04T16:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2037-10-03T16:29:59+00:00").tz("Australia/Broken_Hill").zone(), -570, "2037-10-03T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("2037-10-03T16:30:00+00:00").tz("Australia/Broken_Hill").zone(), -630, "2037-10-03T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/currie.js b/tests/australia/currie.js deleted file mode 100644 index 5e497e3c..00000000 --- a/tests/australia/currie.js +++ /dev/null @@ -1,1006 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Currie"] = { - - "1916" : function (t) { - t.equal(moment("1916-09-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1916-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1916-09-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1916-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1916-09-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1916-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1916-09-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1916-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1917-03-24T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Currie").zone(), -660, "1917-03-24T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Currie").zone(), -600, "1917-03-24T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1941-12-31T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1941-12-31T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1941-12-31T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1941-12-31T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1942-03-28T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:00:00", "1942-03-28T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1942-09-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1942-09-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Currie").zone(), -660, "1942-03-28T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Currie").zone(), -600, "1942-03-28T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1942-09-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1942-09-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1943-03-27T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:00:00", "1943-03-27T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1943-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1943-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Currie").zone(), -660, "1943-03-27T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Currie").zone(), -600, "1943-03-27T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1943-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1943-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1944-03-25T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:00:00", "1944-03-25T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Currie").zone(), -660, "1944-03-25T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Currie").zone(), -600, "1944-03-25T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1971-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1971-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1971-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1971-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1972-02-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1972-02-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1972-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1972-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1972-02-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1972-02-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1972-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1972-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1973-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1973-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1973-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1973-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1973-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1973-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1973-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1973-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1974-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1974-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1974-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1974-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1974-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1974-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1974-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1974-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1975-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1975-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1975-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1975-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1975-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1975-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1975-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1975-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1976-03-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1976-03-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1976-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1976-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1976-03-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1976-03-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1976-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1976-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1977-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1977-03-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1977-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1977-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1977-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1977-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1977-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1977-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1978-03-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1978-03-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1978-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1978-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1978-03-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1978-03-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1978-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1978-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1979-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1979-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1979-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1979-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1979-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1979-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1979-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1979-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1980-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1980-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1980-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1980-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1980-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1980-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1980-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1980-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1981-02-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1981-02-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1981-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1981-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1981-02-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1981-02-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1981-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1981-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-27T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1982-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1982-03-27T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1982-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1982-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1982-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1982-03-27T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1982-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1982-03-27T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1982-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1982-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1982-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-26T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1983-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1983-03-26T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1983-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1983-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1983-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1983-03-26T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1983-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1983-03-26T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1983-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1983-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1983-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1984-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1984-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1984-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1984-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1984-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1984-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1984-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1984-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1985-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1985-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1985-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1985-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1985-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1985-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1985-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1985-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1986-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1986-03-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1986-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1986-10-18T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1986-10-18T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1986-03-01T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1986-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1986-03-01T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1986-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1986-10-18T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1986-10-18T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1987-03-14T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1987-03-14T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1987-10-24T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1987-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-10-24T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1987-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1987-03-14T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1987-03-14T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-24T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1987-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-24T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1987-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1988-03-19T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1988-03-19T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1988-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1988-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1988-03-19T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1988-03-19T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1988-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1988-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1989-03-18T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1989-03-18T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1989-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1989-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1989-03-18T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1989-03-18T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1989-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1989-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-17T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1990-03-17T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1990-03-17T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1990-03-17T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1990-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1990-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1990-03-17T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1990-03-17T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1990-03-17T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1990-03-17T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1990-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1990-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1991-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1991-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1991-10-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1991-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-10-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1991-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1991-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1991-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-05T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1991-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-05T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1991-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1992-03-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1992-03-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1992-10-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1992-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-10-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1992-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1992-03-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1992-03-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-03T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1992-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-03T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1992-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1993-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1993-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1993-10-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1993-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-10-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1993-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1993-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1993-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-02T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1993-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-02T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1993-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1994-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1994-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1994-10-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1994-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-10-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1994-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1994-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1994-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-01T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1994-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-01T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1994-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1995-03-25T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1995-03-25T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1995-09-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1995-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-09-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1995-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1995-03-25T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1995-03-25T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-09-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1995-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-09-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1995-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1996-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1996-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1996-10-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1996-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-10-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1996-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1996-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1996-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-05T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1996-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-05T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1996-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1997-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1997-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1997-10-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1997-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-10-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1997-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1997-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1997-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-04T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1997-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-04T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1997-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1998-03-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1998-03-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1998-10-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1998-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-10-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1998-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1998-03-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1998-03-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-03T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1998-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-03T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1998-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "1999-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "1999-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1999-10-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "1999-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-10-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "1999-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "1999-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "1999-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-02T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "1999-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-02T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "1999-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2000-03-25T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2000-03-25T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2000-08-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2000-08-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2000-03-25T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2000-03-25T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2000-08-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2000-08-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2001-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2001-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2001-10-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2001-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-10-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2001-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2001-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2001-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-06T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2001-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-06T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2001-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2002-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2002-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2002-10-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2002-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-10-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2002-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2002-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2002-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-05T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2002-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-05T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2002-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2003-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2003-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2003-10-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2003-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-10-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2003-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2003-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2003-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-04T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2003-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-04T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2003-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2004-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2004-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2004-10-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2004-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-10-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2004-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2004-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2004-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-02T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2004-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-02T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2004-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2005-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2005-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2005-10-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2005-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-10-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2005-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2005-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2005-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-01T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2005-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-01T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2005-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2006-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2006-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2006-09-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2006-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-09-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2006-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2006-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2006-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-09-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2006-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-09-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2006-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2007-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2007-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2007-10-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2007-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-10-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2007-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2007-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2007-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-06T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2007-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-06T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2007-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2008-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2008-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2008-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2008-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2008-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2008-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2008-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2008-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2009-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2009-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2009-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2009-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2009-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2009-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2009-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2009-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2010-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2010-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2010-10-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2010-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-10-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2010-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2010-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2010-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2010-10-02T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2010-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2010-10-02T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2010-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2011-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2011-04-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2011-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2011-10-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2011-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-10-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2011-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2011-04-02T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2011-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2011-04-02T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2011-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2011-10-01T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2011-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2011-10-01T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2011-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2012-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2012-03-31T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2012-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2012-10-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2012-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-10-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2012-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2012-03-31T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2012-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2012-03-31T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2012-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2012-10-06T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2012-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2012-10-06T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2012-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2013-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2013-04-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2013-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2013-10-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2013-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-10-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2013-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2013-04-06T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2013-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2013-04-06T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2013-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2013-10-05T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2013-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2013-10-05T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2013-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2014-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2014-04-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2014-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2014-10-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2014-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-10-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2014-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2014-04-05T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2014-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2014-04-05T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2014-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2014-10-04T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2014-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2014-10-04T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2014-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2015-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2015-04-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2015-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2015-10-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2015-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-10-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2015-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2015-04-04T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2015-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2015-04-04T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2015-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2015-10-03T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2015-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2015-10-03T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2015-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2016-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2016-04-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2016-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2016-10-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2016-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-10-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2016-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2016-04-02T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2016-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2016-04-02T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2016-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2016-10-01T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2016-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2016-10-01T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2016-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2017-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2017-04-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2017-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2017-09-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2017-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-09-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2017-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2017-04-01T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2017-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2017-04-01T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2017-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2017-09-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2017-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2017-09-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2017-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2018-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2018-03-31T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2018-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2018-10-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2018-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-10-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2018-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2018-03-31T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2018-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2018-03-31T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2018-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2018-10-06T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2018-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2018-10-06T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2018-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2019-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2019-04-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2019-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2019-10-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2019-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-10-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2019-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2019-04-06T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2019-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2019-04-06T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2019-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2019-10-05T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2019-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2019-10-05T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2019-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2020-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2020-04-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2020-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2020-10-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2020-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-10-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2020-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2020-04-04T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2020-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2020-04-04T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2020-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2020-10-03T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2020-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2020-10-03T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2020-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2021-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2021-04-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2021-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2021-10-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2021-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-10-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2021-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2021-04-03T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2021-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2021-04-03T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2021-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2021-10-02T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2021-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2021-10-02T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2021-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2022-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2022-04-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2022-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2022-10-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2022-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-10-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2022-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2022-04-02T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2022-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2022-04-02T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2022-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2022-10-01T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2022-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2022-10-01T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2022-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2023-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2023-04-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2023-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2023-09-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2023-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-09-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2023-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2023-04-01T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2023-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2023-04-01T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2023-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2023-09-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2023-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2023-09-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2023-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2024-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2024-04-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2024-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2024-10-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2024-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-10-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2024-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2024-04-06T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2024-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2024-04-06T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2024-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2024-10-05T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2024-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2024-10-05T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2024-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2025-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2025-04-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2025-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2025-10-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2025-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-10-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2025-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2025-04-05T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2025-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2025-04-05T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2025-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2025-10-04T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2025-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2025-10-04T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2025-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2026-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2026-04-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2026-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2026-10-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2026-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-10-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2026-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2026-04-04T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2026-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2026-04-04T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2026-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2026-10-03T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2026-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2026-10-03T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2026-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2027-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2027-04-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2027-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2027-10-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2027-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-10-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2027-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2027-04-03T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2027-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2027-04-03T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2027-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2027-10-02T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2027-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2027-10-02T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2027-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2028-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2028-04-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2028-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2028-09-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2028-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-09-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2028-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2028-04-01T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2028-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2028-04-01T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2028-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2028-09-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2028-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2028-09-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2028-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2029-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2029-03-31T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2029-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2029-10-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2029-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-10-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2029-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2029-03-31T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2029-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2029-03-31T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2029-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2029-10-06T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2029-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2029-10-06T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2029-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2030-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2030-04-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2030-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2030-10-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2030-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-10-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2030-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2030-04-06T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2030-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2030-04-06T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2030-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2030-10-05T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2030-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2030-10-05T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2030-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2031-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2031-04-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2031-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2031-10-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2031-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-10-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2031-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2031-04-05T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2031-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2031-04-05T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2031-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2031-10-04T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2031-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2031-10-04T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2031-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2032-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2032-04-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2032-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2032-10-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2032-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-10-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2032-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2032-04-03T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2032-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2032-04-03T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2032-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2032-10-02T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2032-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2032-10-02T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2032-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2033-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2033-04-02T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2033-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2033-10-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2033-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-10-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2033-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2033-04-02T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2033-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2033-04-02T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2033-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2033-10-01T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2033-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2033-10-01T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2033-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2034-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2034-04-01T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2034-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2034-09-30T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2034-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-09-30T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2034-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2034-04-01T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2034-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2034-04-01T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2034-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2034-09-30T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2034-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2034-09-30T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2034-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2035-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2035-03-31T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2035-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2035-10-06T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2035-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-10-06T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2035-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2035-03-31T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2035-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2035-03-31T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2035-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2035-10-06T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2035-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2035-10-06T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2035-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2036-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2036-04-05T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2036-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2036-10-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2036-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-10-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2036-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2036-04-05T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2036-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2036-04-05T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2036-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2036-10-04T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2036-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2036-10-04T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2036-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:59:59", "2037-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2037-04-04T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "02:00:00", "2037-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2037-10-03T15:59:59+00:00").tz("Australia/Currie").format("HH:mm:ss"), "01:59:59", "2037-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-10-03T16:00:00+00:00").tz("Australia/Currie").format("HH:mm:ss"), "03:00:00", "2037-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2037-04-04T15:59:59+00:00").tz("Australia/Currie").zone(), -660, "2037-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2037-04-04T16:00:00+00:00").tz("Australia/Currie").zone(), -600, "2037-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2037-10-03T15:59:59+00:00").tz("Australia/Currie").zone(), -600, "2037-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2037-10-03T16:00:00+00:00").tz("Australia/Currie").zone(), -660, "2037-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/darwin.js b/tests/australia/darwin.js deleted file mode 100644 index 9674ea2c..00000000 --- a/tests/australia/darwin.js +++ /dev/null @@ -1,72 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Darwin"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T14:30:59+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "00:00:59", "1916-12-31T14:30:59+00:00 should be 00:00:59 CST"); - t.equal(moment("1916-12-31T14:31:00+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:01:00", "1916-12-31T14:31:00+00:00 should be 01:01:00 CST"); - - t.equal(moment("1916-12-31T14:30:59+00:00").tz("Australia/Darwin").zone(), -570, "1916-12-31T14:30:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1916-12-31T14:31:00+00:00").tz("Australia/Darwin").zone(), -630, "1916-12-31T14:31:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T15:29:59+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:59:59", "1917-03-24T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1917-03-24T15:30:00+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:30:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1917-03-24T15:29:59+00:00").tz("Australia/Darwin").zone(), -630, "1917-03-24T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1917-03-24T15:30:00+00:00").tz("Australia/Darwin").zone(), -570, "1917-03-24T15:30:00+00:00 should be -570 minutes offset in CST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T16:29:59+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:59:59", "1941-12-31T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1941-12-31T16:30:00+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "03:00:00", "1941-12-31T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1941-12-31T16:29:59+00:00").tz("Australia/Darwin").zone(), -570, "1941-12-31T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1941-12-31T16:30:00+00:00").tz("Australia/Darwin").zone(), -630, "1941-12-31T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T15:29:59+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:59:59", "1942-03-28T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-03-28T15:30:00+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:00:00", "1942-03-28T15:30:00+00:00 should be 01:00:00 CST"); - t.equal(moment("1942-09-26T16:29:59+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:59:59", "1942-09-26T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-09-26T16:30:00+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "03:00:00", "1942-09-26T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1942-03-28T15:29:59+00:00").tz("Australia/Darwin").zone(), -630, "1942-03-28T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1942-03-28T15:30:00+00:00").tz("Australia/Darwin").zone(), -570, "1942-03-28T15:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1942-09-26T16:29:59+00:00").tz("Australia/Darwin").zone(), -570, "1942-09-26T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1942-09-26T16:30:00+00:00").tz("Australia/Darwin").zone(), -630, "1942-09-26T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T15:29:59+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:59:59", "1943-03-27T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1943-03-27T15:30:00+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:00:00", "1943-03-27T15:30:00+00:00 should be 01:00:00 CST"); - t.equal(moment("1943-10-02T16:29:59+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:59:59", "1943-10-02T16:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1943-10-02T16:30:00+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "03:00:00", "1943-10-02T16:30:00+00:00 should be 03:00:00 CST"); - - t.equal(moment("1943-03-27T15:29:59+00:00").tz("Australia/Darwin").zone(), -630, "1943-03-27T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1943-03-27T15:30:00+00:00").tz("Australia/Darwin").zone(), -570, "1943-03-27T15:30:00+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1943-10-02T16:29:59+00:00").tz("Australia/Darwin").zone(), -570, "1943-10-02T16:29:59+00:00 should be -570 minutes offset in CST"); - t.equal(moment("1943-10-02T16:30:00+00:00").tz("Australia/Darwin").zone(), -630, "1943-10-02T16:30:00+00:00 should be -630 minutes offset in CST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-25T15:29:59+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:59:59", "1944-03-25T15:29:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1944-03-25T15:30:00+00:00").tz("Australia/Darwin").format("HH:mm:ss"), "01:00:00", "1944-03-25T15:30:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1944-03-25T15:29:59+00:00").tz("Australia/Darwin").zone(), -630, "1944-03-25T15:29:59+00:00 should be -630 minutes offset in CST"); - t.equal(moment("1944-03-25T15:30:00+00:00").tz("Australia/Darwin").zone(), -570, "1944-03-25T15:30:00+00:00 should be -570 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/eucla.js b/tests/australia/eucla.js deleted file mode 100644 index 27b0921d..00000000 --- a/tests/australia/eucla.js +++ /dev/null @@ -1,166 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Eucla"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T15:15:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "00:00:59", "1916-12-31T15:15:59+00:00 should be 00:00:59 CWST"); - t.equal(moment("1916-12-31T15:16:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:01:00", "1916-12-31T15:16:00+00:00 should be 01:01:00 CWST"); - - t.equal(moment("1916-12-31T15:15:59+00:00").tz("Australia/Eucla").zone(), -525, "1916-12-31T15:15:59+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("1916-12-31T15:16:00+00:00").tz("Australia/Eucla").zone(), -585, "1916-12-31T15:16:00+00:00 should be -585 minutes offset in CWST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T16:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "1917-03-24T16:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("1917-03-24T16:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:00:00", "1917-03-24T16:15:00+00:00 should be 01:00:00 CWST"); - - t.equal(moment("1917-03-24T16:14:59+00:00").tz("Australia/Eucla").zone(), -585, "1917-03-24T16:14:59+00:00 should be -585 minutes offset in CWST"); - t.equal(moment("1917-03-24T16:15:00+00:00").tz("Australia/Eucla").zone(), -525, "1917-03-24T16:15:00+00:00 should be -525 minutes offset in CWST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "1941-12-31T17:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("1941-12-31T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "03:00:00", "1941-12-31T17:15:00+00:00 should be 03:00:00 CWST"); - - t.equal(moment("1941-12-31T17:14:59+00:00").tz("Australia/Eucla").zone(), -525, "1941-12-31T17:14:59+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("1941-12-31T17:15:00+00:00").tz("Australia/Eucla").zone(), -585, "1941-12-31T17:15:00+00:00 should be -585 minutes offset in CWST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T16:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "1942-03-28T16:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("1942-03-28T16:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:00:00", "1942-03-28T16:15:00+00:00 should be 01:00:00 CWST"); - t.equal(moment("1942-09-26T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "1942-09-26T17:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("1942-09-26T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "03:00:00", "1942-09-26T17:15:00+00:00 should be 03:00:00 CWST"); - - t.equal(moment("1942-03-28T16:14:59+00:00").tz("Australia/Eucla").zone(), -585, "1942-03-28T16:14:59+00:00 should be -585 minutes offset in CWST"); - t.equal(moment("1942-03-28T16:15:00+00:00").tz("Australia/Eucla").zone(), -525, "1942-03-28T16:15:00+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("1942-09-26T17:14:59+00:00").tz("Australia/Eucla").zone(), -525, "1942-09-26T17:14:59+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("1942-09-26T17:15:00+00:00").tz("Australia/Eucla").zone(), -585, "1942-09-26T17:15:00+00:00 should be -585 minutes offset in CWST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T16:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "1943-03-27T16:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("1943-03-27T16:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:00:00", "1943-03-27T16:15:00+00:00 should be 01:00:00 CWST"); - - t.equal(moment("1943-03-27T16:14:59+00:00").tz("Australia/Eucla").zone(), -585, "1943-03-27T16:14:59+00:00 should be -585 minutes offset in CWST"); - t.equal(moment("1943-03-27T16:15:00+00:00").tz("Australia/Eucla").zone(), -525, "1943-03-27T16:15:00+00:00 should be -525 minutes offset in CWST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-10-26T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "1974-10-26T17:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("1974-10-26T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "03:00:00", "1974-10-26T17:15:00+00:00 should be 03:00:00 CWST"); - - t.equal(moment("1974-10-26T17:14:59+00:00").tz("Australia/Eucla").zone(), -525, "1974-10-26T17:14:59+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("1974-10-26T17:15:00+00:00").tz("Australia/Eucla").zone(), -585, "1974-10-26T17:15:00+00:00 should be -585 minutes offset in CWST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-01T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:59:59", "1975-03-01T17:14:59+00:00 should be 02:59:59 CWST"); - t.equal(moment("1975-03-01T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:00:00", "1975-03-01T17:15:00+00:00 should be 02:00:00 CWST"); - - t.equal(moment("1975-03-01T17:14:59+00:00").tz("Australia/Eucla").zone(), -585, "1975-03-01T17:14:59+00:00 should be -585 minutes offset in CWST"); - t.equal(moment("1975-03-01T17:15:00+00:00").tz("Australia/Eucla").zone(), -525, "1975-03-01T17:15:00+00:00 should be -525 minutes offset in CWST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-10-29T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "1983-10-29T17:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("1983-10-29T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "03:00:00", "1983-10-29T17:15:00+00:00 should be 03:00:00 CWST"); - - t.equal(moment("1983-10-29T17:14:59+00:00").tz("Australia/Eucla").zone(), -525, "1983-10-29T17:14:59+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("1983-10-29T17:15:00+00:00").tz("Australia/Eucla").zone(), -585, "1983-10-29T17:15:00+00:00 should be -585 minutes offset in CWST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:59:59", "1984-03-03T17:14:59+00:00 should be 02:59:59 CWST"); - t.equal(moment("1984-03-03T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:00:00", "1984-03-03T17:15:00+00:00 should be 02:00:00 CWST"); - - t.equal(moment("1984-03-03T17:14:59+00:00").tz("Australia/Eucla").zone(), -585, "1984-03-03T17:14:59+00:00 should be -585 minutes offset in CWST"); - t.equal(moment("1984-03-03T17:15:00+00:00").tz("Australia/Eucla").zone(), -525, "1984-03-03T17:15:00+00:00 should be -525 minutes offset in CWST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-11-16T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "1991-11-16T17:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("1991-11-16T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "03:00:00", "1991-11-16T17:15:00+00:00 should be 03:00:00 CWST"); - - t.equal(moment("1991-11-16T17:14:59+00:00").tz("Australia/Eucla").zone(), -525, "1991-11-16T17:14:59+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("1991-11-16T17:15:00+00:00").tz("Australia/Eucla").zone(), -585, "1991-11-16T17:15:00+00:00 should be -585 minutes offset in CWST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-29T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:59:59", "1992-02-29T17:14:59+00:00 should be 02:59:59 CWST"); - t.equal(moment("1992-02-29T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:00:00", "1992-02-29T17:15:00+00:00 should be 02:00:00 CWST"); - - t.equal(moment("1992-02-29T17:14:59+00:00").tz("Australia/Eucla").zone(), -585, "1992-02-29T17:14:59+00:00 should be -585 minutes offset in CWST"); - t.equal(moment("1992-02-29T17:15:00+00:00").tz("Australia/Eucla").zone(), -525, "1992-02-29T17:15:00+00:00 should be -525 minutes offset in CWST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-12-02T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "2006-12-02T17:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("2006-12-02T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "03:00:00", "2006-12-02T17:15:00+00:00 should be 03:00:00 CWST"); - - t.equal(moment("2006-12-02T17:14:59+00:00").tz("Australia/Eucla").zone(), -525, "2006-12-02T17:14:59+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("2006-12-02T17:15:00+00:00").tz("Australia/Eucla").zone(), -585, "2006-12-02T17:15:00+00:00 should be -585 minutes offset in CWST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:59:59", "2007-03-24T17:14:59+00:00 should be 02:59:59 CWST"); - t.equal(moment("2007-03-24T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:00:00", "2007-03-24T17:15:00+00:00 should be 02:00:00 CWST"); - t.equal(moment("2007-10-27T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "2007-10-27T17:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("2007-10-27T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "03:00:00", "2007-10-27T17:15:00+00:00 should be 03:00:00 CWST"); - - t.equal(moment("2007-03-24T17:14:59+00:00").tz("Australia/Eucla").zone(), -585, "2007-03-24T17:14:59+00:00 should be -585 minutes offset in CWST"); - t.equal(moment("2007-03-24T17:15:00+00:00").tz("Australia/Eucla").zone(), -525, "2007-03-24T17:15:00+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("2007-10-27T17:14:59+00:00").tz("Australia/Eucla").zone(), -525, "2007-10-27T17:14:59+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("2007-10-27T17:15:00+00:00").tz("Australia/Eucla").zone(), -585, "2007-10-27T17:15:00+00:00 should be -585 minutes offset in CWST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:59:59", "2008-03-29T17:14:59+00:00 should be 02:59:59 CWST"); - t.equal(moment("2008-03-29T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:00:00", "2008-03-29T17:15:00+00:00 should be 02:00:00 CWST"); - t.equal(moment("2008-10-25T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "01:59:59", "2008-10-25T17:14:59+00:00 should be 01:59:59 CWST"); - t.equal(moment("2008-10-25T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "03:00:00", "2008-10-25T17:15:00+00:00 should be 03:00:00 CWST"); - - t.equal(moment("2008-03-29T17:14:59+00:00").tz("Australia/Eucla").zone(), -585, "2008-03-29T17:14:59+00:00 should be -585 minutes offset in CWST"); - t.equal(moment("2008-03-29T17:15:00+00:00").tz("Australia/Eucla").zone(), -525, "2008-03-29T17:15:00+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("2008-10-25T17:14:59+00:00").tz("Australia/Eucla").zone(), -525, "2008-10-25T17:14:59+00:00 should be -525 minutes offset in CWST"); - t.equal(moment("2008-10-25T17:15:00+00:00").tz("Australia/Eucla").zone(), -585, "2008-10-25T17:15:00+00:00 should be -585 minutes offset in CWST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T17:14:59+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:59:59", "2009-03-28T17:14:59+00:00 should be 02:59:59 CWST"); - t.equal(moment("2009-03-28T17:15:00+00:00").tz("Australia/Eucla").format("HH:mm:ss"), "02:00:00", "2009-03-28T17:15:00+00:00 should be 02:00:00 CWST"); - - t.equal(moment("2009-03-28T17:14:59+00:00").tz("Australia/Eucla").zone(), -585, "2009-03-28T17:14:59+00:00 should be -585 minutes offset in CWST"); - t.equal(moment("2009-03-28T17:15:00+00:00").tz("Australia/Eucla").zone(), -525, "2009-03-28T17:15:00+00:00 should be -525 minutes offset in CWST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/hobart.js b/tests/australia/hobart.js deleted file mode 100644 index e97745c1..00000000 --- a/tests/australia/hobart.js +++ /dev/null @@ -1,1062 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Hobart"] = { - - "1916" : function (t) { - t.equal(moment("1916-09-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1916-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1916-09-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1916-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1916-09-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1916-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1916-09-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1916-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1917-03-24T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1917-03-24T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1917-03-24T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1941-12-31T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1941-12-31T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1941-12-31T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1941-12-31T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1942-03-28T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:00:00", "1942-03-28T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1942-09-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1942-09-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1942-03-28T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1942-03-28T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1942-09-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1942-09-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1943-03-27T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:00:00", "1943-03-27T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1943-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1943-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1943-03-27T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1943-03-27T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1943-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1943-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1944-03-25T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:00:00", "1944-03-25T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1944-03-25T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1944-03-25T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-09-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1967-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1967-09-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1967-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1967-09-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1967-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1967-09-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1967-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-03-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1968-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1968-03-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1968-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1968-10-26T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1968-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1968-10-26T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1968-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1968-03-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1968-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1968-03-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1968-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1968-10-26T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1968-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1968-10-26T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1968-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-03-08T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1969-03-08T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1969-03-08T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1969-03-08T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1969-10-25T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1969-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-10-25T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1969-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1969-03-08T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1969-03-08T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1969-03-08T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1969-03-08T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1969-10-25T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1969-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1969-10-25T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1969-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-03-07T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1970-03-07T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1970-03-07T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1970-03-07T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1970-10-24T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1970-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-10-24T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1970-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1970-03-07T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1970-03-07T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1970-03-07T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1970-03-07T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1970-10-24T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1970-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1970-10-24T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1970-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-03-13T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1971-03-13T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1971-03-13T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1971-03-13T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1971-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1971-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1971-03-13T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1971-03-13T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1971-03-13T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1971-03-13T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1971-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1971-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1972-02-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1972-02-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1972-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1972-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1972-02-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1972-02-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1972-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1972-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1973-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1973-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1973-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1973-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1973-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1973-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1973-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1973-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1974-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1974-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1974-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1974-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1974-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1974-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1974-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1974-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1975-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1975-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1975-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1975-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1975-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1975-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1975-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1975-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1976-03-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1976-03-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1976-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1976-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1976-03-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1976-03-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1976-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1976-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1977-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1977-03-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1977-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1977-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1977-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1977-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1977-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1977-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1978-03-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1978-03-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1978-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1978-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1978-03-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1978-03-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1978-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1978-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1979-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1979-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1979-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1979-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1979-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1979-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1979-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1979-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1980-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1980-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1980-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1980-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1980-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1980-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1980-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1980-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1981-02-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1981-02-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1981-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1981-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1981-02-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1981-02-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1981-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1981-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-27T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1982-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1982-03-27T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1982-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1982-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1982-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1982-03-27T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1982-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1982-03-27T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1982-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1982-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1982-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-26T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1983-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1983-03-26T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1983-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1983-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1983-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1983-03-26T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1983-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1983-03-26T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1983-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1983-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1983-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1984-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1984-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1984-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1984-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1984-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1984-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1984-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1984-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1985-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1985-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1985-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1985-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1985-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1985-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1985-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1985-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1986-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1986-03-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1986-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1986-10-18T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1986-10-18T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1986-03-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1986-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1986-03-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1986-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1986-10-18T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1986-10-18T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1987-03-14T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1987-03-14T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1987-10-24T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1987-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-10-24T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1987-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1987-03-14T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1987-03-14T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-24T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1987-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-24T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1987-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1988-03-19T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1988-03-19T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1988-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1988-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1988-03-19T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1988-03-19T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1988-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1988-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1989-03-18T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1989-03-18T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1989-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1989-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1989-03-18T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1989-03-18T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1989-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1989-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-17T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1990-03-17T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1990-03-17T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1990-03-17T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1990-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1990-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1990-03-17T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1990-03-17T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1990-03-17T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1990-03-17T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1990-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1990-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1991-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1991-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1991-10-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1991-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-10-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1991-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1991-03-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1991-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1991-03-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1991-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1991-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1991-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1992-03-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1992-03-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1992-10-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1992-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-10-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1992-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1992-03-28T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1992-03-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1992-03-28T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1992-03-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1992-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1992-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1993-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1993-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1993-10-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1993-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-10-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1993-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1993-03-27T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1993-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1993-03-27T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1993-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1993-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1993-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1994-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1994-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1994-10-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1994-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-10-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1994-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1994-03-26T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1994-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1994-03-26T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1994-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1994-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1994-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1995-03-25T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1995-03-25T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1995-09-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1995-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-09-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1995-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1995-03-25T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1995-03-25T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-09-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1995-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-09-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1995-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1996-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1996-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1996-10-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1996-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-10-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1996-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1996-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1996-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1996-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1996-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1997-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1997-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1997-10-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1997-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-10-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1997-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1997-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1997-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1997-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1997-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1998-03-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1998-03-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1998-10-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1998-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-10-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1998-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1998-03-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1998-03-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1998-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1998-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "1999-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "1999-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1999-10-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "1999-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-10-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "1999-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "1999-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "1999-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "1999-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "1999-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2000-03-25T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2000-03-25T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2000-08-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2000-08-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2000-03-25T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2000-03-25T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2000-08-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2000-08-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2001-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2001-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2001-10-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2001-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-10-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2001-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2001-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2001-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2001-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2001-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2002-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2002-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2002-10-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2002-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-10-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2002-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2002-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2002-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2002-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2002-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2003-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2003-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2003-10-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2003-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-10-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2003-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2003-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2003-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2003-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2003-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2004-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2004-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2004-10-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2004-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-10-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2004-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2004-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2004-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2004-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2004-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2005-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2005-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2005-10-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2005-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-10-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2005-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2005-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2005-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2005-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2005-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2006-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2006-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2006-09-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2006-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-09-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2006-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2006-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2006-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-09-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2006-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-09-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2006-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2007-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2007-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2007-10-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2007-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-10-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2007-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2007-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2007-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2007-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2007-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2008-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2008-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2008-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2008-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2008-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2008-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2008-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2008-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2009-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2009-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2009-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2009-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2009-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2009-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2009-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2009-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2010-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2010-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2010-10-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2010-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-10-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2010-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2010-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2010-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2010-10-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2010-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2010-10-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2010-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2011-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2011-04-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2011-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2011-10-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2011-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-10-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2011-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2011-04-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2011-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2011-04-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2011-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2011-10-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2011-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2011-10-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2011-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2012-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2012-03-31T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2012-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2012-10-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2012-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-10-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2012-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2012-03-31T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2012-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2012-03-31T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2012-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2012-10-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2012-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2012-10-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2012-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2013-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2013-04-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2013-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2013-10-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2013-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-10-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2013-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2013-04-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2013-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2013-04-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2013-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2013-10-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2013-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2013-10-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2013-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2014-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2014-04-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2014-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2014-10-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2014-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-10-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2014-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2014-04-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2014-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2014-04-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2014-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2014-10-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2014-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2014-10-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2014-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2015-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2015-04-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2015-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2015-10-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2015-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-10-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2015-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2015-04-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2015-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2015-04-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2015-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2015-10-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2015-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2015-10-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2015-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2016-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2016-04-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2016-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2016-10-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2016-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-10-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2016-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2016-04-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2016-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2016-04-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2016-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2016-10-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2016-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2016-10-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2016-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2017-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2017-04-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2017-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2017-09-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2017-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-09-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2017-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2017-04-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2017-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2017-04-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2017-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2017-09-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2017-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2017-09-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2017-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2018-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2018-03-31T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2018-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2018-10-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2018-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-10-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2018-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2018-03-31T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2018-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2018-03-31T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2018-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2018-10-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2018-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2018-10-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2018-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2019-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2019-04-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2019-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2019-10-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2019-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-10-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2019-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2019-04-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2019-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2019-04-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2019-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2019-10-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2019-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2019-10-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2019-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2020-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2020-04-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2020-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2020-10-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2020-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-10-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2020-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2020-04-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2020-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2020-04-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2020-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2020-10-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2020-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2020-10-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2020-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2021-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2021-04-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2021-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2021-10-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2021-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-10-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2021-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2021-04-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2021-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2021-04-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2021-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2021-10-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2021-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2021-10-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2021-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2022-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2022-04-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2022-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2022-10-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2022-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-10-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2022-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2022-04-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2022-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2022-04-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2022-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2022-10-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2022-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2022-10-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2022-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2023-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2023-04-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2023-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2023-09-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2023-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-09-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2023-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2023-04-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2023-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2023-04-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2023-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2023-09-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2023-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2023-09-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2023-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2024-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2024-04-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2024-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2024-10-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2024-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-10-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2024-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2024-04-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2024-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2024-04-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2024-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2024-10-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2024-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2024-10-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2024-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2025-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2025-04-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2025-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2025-10-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2025-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-10-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2025-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2025-04-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2025-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2025-04-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2025-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2025-10-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2025-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2025-10-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2025-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2026-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2026-04-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2026-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2026-10-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2026-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-10-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2026-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2026-04-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2026-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2026-04-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2026-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2026-10-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2026-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2026-10-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2026-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2027-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2027-04-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2027-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2027-10-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2027-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-10-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2027-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2027-04-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2027-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2027-04-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2027-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2027-10-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2027-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2027-10-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2027-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2028-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2028-04-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2028-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2028-09-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2028-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-09-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2028-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2028-04-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2028-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2028-04-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2028-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2028-09-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2028-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2028-09-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2028-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2029-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2029-03-31T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2029-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2029-10-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2029-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-10-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2029-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2029-03-31T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2029-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2029-03-31T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2029-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2029-10-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2029-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2029-10-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2029-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2030-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2030-04-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2030-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2030-10-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2030-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-10-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2030-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2030-04-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2030-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2030-04-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2030-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2030-10-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2030-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2030-10-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2030-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2031-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2031-04-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2031-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2031-10-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2031-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-10-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2031-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2031-04-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2031-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2031-04-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2031-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2031-10-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2031-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2031-10-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2031-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2032-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2032-04-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2032-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2032-10-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2032-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-10-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2032-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2032-04-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2032-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2032-04-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2032-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2032-10-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2032-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2032-10-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2032-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2033-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2033-04-02T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2033-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2033-10-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2033-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-10-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2033-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2033-04-02T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2033-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2033-04-02T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2033-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2033-10-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2033-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2033-10-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2033-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2034-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2034-04-01T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2034-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2034-09-30T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2034-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-09-30T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2034-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2034-04-01T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2034-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2034-04-01T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2034-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2034-09-30T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2034-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2034-09-30T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2034-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2035-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2035-03-31T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2035-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2035-10-06T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2035-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-10-06T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2035-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2035-03-31T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2035-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2035-03-31T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2035-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2035-10-06T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2035-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2035-10-06T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2035-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2036-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2036-04-05T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2036-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2036-10-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2036-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-10-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2036-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2036-04-05T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2036-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2036-04-05T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2036-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2036-10-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2036-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2036-10-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2036-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:59:59", "2037-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2037-04-04T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "02:00:00", "2037-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2037-10-03T15:59:59+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "01:59:59", "2037-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-10-03T16:00:00+00:00").tz("Australia/Hobart").format("HH:mm:ss"), "03:00:00", "2037-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2037-04-04T15:59:59+00:00").tz("Australia/Hobart").zone(), -660, "2037-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2037-04-04T16:00:00+00:00").tz("Australia/Hobart").zone(), -600, "2037-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2037-10-03T15:59:59+00:00").tz("Australia/Hobart").zone(), -600, "2037-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2037-10-03T16:00:00+00:00").tz("Australia/Hobart").zone(), -660, "2037-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/lindeman.js b/tests/australia/lindeman.js deleted file mode 100644 index 0d0ae24f..00000000 --- a/tests/australia/lindeman.js +++ /dev/null @@ -1,168 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Lindeman"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T14:00:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "00:00:59", "1916-12-31T14:00:59+00:00 should be 00:00:59 EST"); - t.equal(moment("1916-12-31T14:01:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:01:00", "1916-12-31T14:01:00+00:00 should be 01:01:00 EST"); - - t.equal(moment("1916-12-31T14:00:59+00:00").tz("Australia/Lindeman").zone(), -600, "1916-12-31T14:00:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1916-12-31T14:01:00+00:00").tz("Australia/Lindeman").zone(), -660, "1916-12-31T14:01:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1917-03-24T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1917-03-24T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1917-03-24T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1941-12-31T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "03:00:00", "1941-12-31T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Lindeman").zone(), -600, "1941-12-31T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Lindeman").zone(), -660, "1941-12-31T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1942-03-28T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:00:00", "1942-03-28T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1942-09-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "03:00:00", "1942-09-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1942-03-28T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1942-03-28T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Lindeman").zone(), -600, "1942-09-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Lindeman").zone(), -660, "1942-09-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1943-03-27T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:00:00", "1943-03-27T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1943-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "03:00:00", "1943-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1943-03-27T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1943-03-27T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Lindeman").zone(), -600, "1943-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Lindeman").zone(), -660, "1943-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1944-03-25T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:00:00", "1944-03-25T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1944-03-25T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1944-03-25T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1971-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "03:00:00", "1971-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Lindeman").zone(), -600, "1971-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Lindeman").zone(), -660, "1971-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:59:59", "1972-02-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:00:00", "1972-02-26T16:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1972-02-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1972-02-26T16:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1989-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "03:00:00", "1989-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Lindeman").zone(), -600, "1989-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Lindeman").zone(), -660, "1989-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-03T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:59:59", "1990-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1990-03-03T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:00:00", "1990-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1990-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "03:00:00", "1990-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1990-03-03T15:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1990-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1990-03-03T16:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1990-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Lindeman").zone(), -600, "1990-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Lindeman").zone(), -660, "1990-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-02T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:59:59", "1991-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1991-03-02T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:00:00", "1991-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1991-10-26T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1991-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-10-26T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "03:00:00", "1991-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1991-03-02T15:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1991-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1991-03-02T16:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1991-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-26T15:59:59+00:00").tz("Australia/Lindeman").zone(), -600, "1991-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-26T16:00:00+00:00").tz("Australia/Lindeman").zone(), -660, "1991-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-29T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:59:59", "1992-02-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1992-02-29T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:00:00", "1992-02-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1992-10-24T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1992-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-10-24T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "03:00:00", "1992-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1992-02-29T15:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1992-02-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1992-02-29T16:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1992-02-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-24T15:59:59+00:00").tz("Australia/Lindeman").zone(), -600, "1992-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-24T16:00:00+00:00").tz("Australia/Lindeman").zone(), -660, "1992-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-06T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:59:59", "1993-03-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1993-03-06T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:00:00", "1993-03-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1993-10-30T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "01:59:59", "1993-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-10-30T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "03:00:00", "1993-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1993-03-06T15:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1993-03-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1993-03-06T16:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1993-03-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-30T15:59:59+00:00").tz("Australia/Lindeman").zone(), -600, "1993-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-30T16:00:00+00:00").tz("Australia/Lindeman").zone(), -660, "1993-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-05T15:59:59+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:59:59", "1994-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1994-03-05T16:00:00+00:00").tz("Australia/Lindeman").format("HH:mm:ss"), "02:00:00", "1994-03-05T16:00:00+00:00 should be 02:00:00 EST"); - - t.equal(moment("1994-03-05T15:59:59+00:00").tz("Australia/Lindeman").zone(), -660, "1994-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1994-03-05T16:00:00+00:00").tz("Australia/Lindeman").zone(), -600, "1994-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/lord_howe.js b/tests/australia/lord_howe.js deleted file mode 100644 index 2376fdd5..00000000 --- a/tests/australia/lord_howe.js +++ /dev/null @@ -1,802 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Lord_Howe"] = { - - "1981" : function (t) { - t.equal(moment("1981-02-28T13:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "23:59:59", "1981-02-28T13:59:59+00:00 should be 23:59:59 EST"); - t.equal(moment("1981-02-28T14:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "00:30:00", "1981-02-28T14:00:00+00:00 should be 00:30:00 LHST"); - t.equal(moment("1981-10-24T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1981-10-24T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1981-10-24T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "03:00:00", "1981-10-24T15:30:00+00:00 should be 03:00:00 LHST"); - - t.equal(moment("1981-02-28T13:59:59+00:00").tz("Australia/Lord_Howe").zone(), -600, "1981-02-28T13:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-02-28T14:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1981-02-28T14:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1981-10-24T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1981-10-24T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1981-10-24T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -690, "1981-10-24T15:30:00+00:00 should be -690 minutes offset in LHST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-06T14:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1982-03-06T14:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1982-03-06T14:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:00:00", "1982-03-06T14:30:00+00:00 should be 01:00:00 LHST"); - t.equal(moment("1982-10-30T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1982-10-30T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1982-10-30T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "03:00:00", "1982-10-30T15:30:00+00:00 should be 03:00:00 LHST"); - - t.equal(moment("1982-03-06T14:29:59+00:00").tz("Australia/Lord_Howe").zone(), -690, "1982-03-06T14:29:59+00:00 should be -690 minutes offset in LHST"); - t.equal(moment("1982-03-06T14:30:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1982-03-06T14:30:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1982-10-30T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1982-10-30T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1982-10-30T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -690, "1982-10-30T15:30:00+00:00 should be -690 minutes offset in LHST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-05T14:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1983-03-05T14:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1983-03-05T14:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:00:00", "1983-03-05T14:30:00+00:00 should be 01:00:00 LHST"); - t.equal(moment("1983-10-29T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1983-10-29T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1983-10-29T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "03:00:00", "1983-10-29T15:30:00+00:00 should be 03:00:00 LHST"); - - t.equal(moment("1983-03-05T14:29:59+00:00").tz("Australia/Lord_Howe").zone(), -690, "1983-03-05T14:29:59+00:00 should be -690 minutes offset in LHST"); - t.equal(moment("1983-03-05T14:30:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1983-03-05T14:30:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1983-10-29T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1983-10-29T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1983-10-29T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -690, "1983-10-29T15:30:00+00:00 should be -690 minutes offset in LHST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T14:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1984-03-03T14:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1984-03-03T14:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:00:00", "1984-03-03T14:30:00+00:00 should be 01:00:00 LHST"); - t.equal(moment("1984-10-27T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1984-10-27T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1984-10-27T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "03:00:00", "1984-10-27T15:30:00+00:00 should be 03:00:00 LHST"); - - t.equal(moment("1984-03-03T14:29:59+00:00").tz("Australia/Lord_Howe").zone(), -690, "1984-03-03T14:29:59+00:00 should be -690 minutes offset in LHST"); - t.equal(moment("1984-03-03T14:30:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1984-03-03T14:30:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1984-10-27T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1984-10-27T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1984-10-27T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -690, "1984-10-27T15:30:00+00:00 should be -690 minutes offset in LHST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T14:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1985-03-02T14:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1985-03-02T14:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:00:00", "1985-03-02T14:30:00+00:00 should be 01:00:00 LHST"); - t.equal(moment("1985-10-26T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1985-10-26T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1985-10-26T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1985-10-26T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1985-03-02T14:29:59+00:00").tz("Australia/Lord_Howe").zone(), -690, "1985-03-02T14:29:59+00:00 should be -690 minutes offset in LHST"); - t.equal(moment("1985-03-02T14:30:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1985-03-02T14:30:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1985-10-26T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1985-10-26T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1985-10-26T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1985-10-26T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1986-03-15T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1986-03-15T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1986-03-15T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1986-10-18T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1986-10-18T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1986-10-18T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1986-10-18T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1986-03-15T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1986-03-15T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1986-03-15T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1986-03-15T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1986-10-18T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1986-10-18T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1986-10-18T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1986-10-18T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-14T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1987-03-14T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1987-03-14T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1987-03-14T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1987-10-24T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1987-10-24T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1987-10-24T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1987-10-24T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1987-03-14T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1987-03-14T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1987-03-14T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1987-03-14T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1987-10-24T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1987-10-24T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1987-10-24T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1987-10-24T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-19T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1988-03-19T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1988-03-19T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1988-03-19T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1988-10-29T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1988-10-29T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1988-10-29T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1988-10-29T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1988-03-19T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1988-03-19T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1988-03-19T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1988-03-19T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1988-10-29T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1988-10-29T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1988-10-29T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1988-10-29T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-18T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1989-03-18T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1989-03-18T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1989-03-18T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1989-10-28T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1989-10-28T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1989-10-28T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1989-10-28T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1989-03-18T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1989-03-18T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1989-03-18T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1989-03-18T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1989-10-28T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1989-10-28T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1989-10-28T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1989-10-28T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-03T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1990-03-03T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1990-03-03T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1990-03-03T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1990-10-27T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1990-10-27T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1990-10-27T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1990-10-27T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1990-03-03T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1990-03-03T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1990-03-03T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1990-03-03T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1990-10-27T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1990-10-27T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1990-10-27T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1990-10-27T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-02T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1991-03-02T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1991-03-02T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1991-03-02T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1991-10-26T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1991-10-26T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1991-10-26T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1991-10-26T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1991-03-02T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1991-03-02T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1991-03-02T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1991-03-02T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1991-10-26T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1991-10-26T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1991-10-26T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1991-10-26T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-29T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1992-02-29T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1992-02-29T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1992-02-29T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1992-10-24T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1992-10-24T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1992-10-24T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1992-10-24T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1992-02-29T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1992-02-29T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1992-02-29T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1992-02-29T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1992-10-24T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1992-10-24T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1992-10-24T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1992-10-24T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-06T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1993-03-06T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1993-03-06T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1993-03-06T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1993-10-30T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1993-10-30T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1993-10-30T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1993-10-30T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1993-03-06T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1993-03-06T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1993-03-06T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1993-03-06T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1993-10-30T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1993-10-30T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1993-10-30T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1993-10-30T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-05T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1994-03-05T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1994-03-05T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1994-03-05T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1994-10-29T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1994-10-29T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1994-10-29T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1994-10-29T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1994-03-05T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1994-03-05T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1994-03-05T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1994-03-05T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1994-10-29T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1994-10-29T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1994-10-29T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1994-10-29T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-04T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1995-03-04T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1995-03-04T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1995-03-04T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1995-10-28T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1995-10-28T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1995-10-28T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1995-10-28T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1995-03-04T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1995-03-04T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1995-03-04T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1995-03-04T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1995-10-28T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1995-10-28T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1995-10-28T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1995-10-28T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1996-03-30T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1996-03-30T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1996-10-26T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1996-10-26T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1996-10-26T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1996-10-26T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1996-03-30T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1996-03-30T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1996-03-30T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1996-03-30T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1996-10-26T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1996-10-26T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1996-10-26T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1996-10-26T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1997-03-29T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1997-03-29T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1997-10-25T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1997-10-25T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1997-10-25T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1997-10-25T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1997-03-29T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1997-03-29T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1997-03-29T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1997-03-29T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1997-10-25T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1997-10-25T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1997-10-25T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1997-10-25T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1998-03-28T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1998-03-28T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1998-03-28T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1998-10-24T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1998-10-24T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1998-10-24T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1998-10-24T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1998-03-28T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1998-03-28T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1998-03-28T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1998-03-28T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1998-10-24T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1998-10-24T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1998-10-24T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1998-10-24T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1999-03-27T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1999-03-27T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "1999-03-27T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("1999-10-30T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "1999-10-30T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("1999-10-30T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "1999-10-30T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("1999-03-27T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "1999-03-27T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("1999-03-27T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "1999-03-27T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1999-10-30T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "1999-10-30T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("1999-10-30T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "1999-10-30T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2000-03-25T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2000-03-25T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2000-03-25T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2000-08-26T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2000-08-26T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2000-08-26T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2000-08-26T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2000-03-25T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2000-03-25T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2000-03-25T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2000-03-25T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2000-08-26T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2000-08-26T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2000-08-26T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2000-08-26T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2001-03-24T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2001-03-24T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2001-03-24T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2001-10-27T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2001-10-27T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2001-10-27T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2001-10-27T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2001-03-24T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2001-03-24T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2001-03-24T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2001-03-24T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2001-10-27T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2001-10-27T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2001-10-27T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2001-10-27T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2002-03-30T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2002-03-30T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2002-03-30T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2002-10-26T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2002-10-26T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2002-10-26T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2002-10-26T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2002-03-30T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2002-03-30T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2002-03-30T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2002-03-30T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2002-10-26T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2002-10-26T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2002-10-26T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2002-10-26T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2003-03-29T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2003-03-29T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2003-03-29T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2003-10-25T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2003-10-25T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2003-10-25T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2003-10-25T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2003-03-29T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2003-03-29T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2003-03-29T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2003-03-29T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2003-10-25T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2003-10-25T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2003-10-25T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2003-10-25T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2004-03-27T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2004-03-27T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2004-03-27T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2004-10-30T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2004-10-30T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2004-10-30T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2004-10-30T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2004-03-27T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2004-03-27T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2004-03-27T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2004-03-27T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2004-10-30T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2004-10-30T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2004-10-30T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2004-10-30T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2005-03-26T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2005-03-26T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2005-03-26T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2005-10-29T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2005-10-29T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2005-10-29T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2005-10-29T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2005-03-26T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2005-03-26T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2005-03-26T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2005-03-26T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2005-10-29T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2005-10-29T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2005-10-29T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2005-10-29T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2006-04-01T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2006-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2006-04-01T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2006-10-28T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2006-10-28T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2006-10-28T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2006-10-28T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2006-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2006-04-01T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2006-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2006-04-01T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2006-10-28T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2006-10-28T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2006-10-28T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2006-10-28T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2007-03-24T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2007-03-24T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2007-03-24T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2007-10-27T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2007-10-27T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2007-10-27T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2007-10-27T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2007-03-24T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2007-03-24T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2007-03-24T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2007-03-24T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2007-10-27T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2007-10-27T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2007-10-27T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2007-10-27T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2008-04-05T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2008-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2008-04-05T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2008-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2008-10-04T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2008-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2008-10-04T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2008-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2008-04-05T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2008-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2008-04-05T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2008-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2008-10-04T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2008-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2008-10-04T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2009-04-04T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2009-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2009-04-04T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2009-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2009-10-03T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2009-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2009-10-03T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2009-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2009-04-04T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2009-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2009-04-04T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2009-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2009-10-03T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2009-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2009-10-03T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2010-04-03T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2010-04-03T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2010-04-03T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2010-10-02T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2010-10-02T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2010-10-02T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2010-10-02T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2010-04-03T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2010-04-03T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2010-04-03T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2010-04-03T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2010-10-02T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2010-10-02T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2010-10-02T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2010-10-02T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2011-04-02T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2011-04-02T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2011-04-02T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2011-10-01T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2011-10-01T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2011-10-01T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2011-10-01T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2011-04-02T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2011-04-02T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2011-04-02T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2011-04-02T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2011-10-01T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2011-10-01T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2011-10-01T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2011-10-01T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2012-03-31T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2012-03-31T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2012-03-31T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2012-10-06T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2012-10-06T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2012-10-06T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2012-10-06T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2012-03-31T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2012-03-31T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2012-03-31T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2012-03-31T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2012-10-06T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2012-10-06T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2012-10-06T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2012-10-06T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2013-04-06T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2013-04-06T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2013-04-06T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2013-10-05T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2013-10-05T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2013-10-05T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2013-10-05T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2013-04-06T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2013-04-06T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2013-04-06T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2013-04-06T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2013-10-05T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2013-10-05T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2013-10-05T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2013-10-05T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2014-04-05T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2014-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2014-04-05T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2014-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2014-10-04T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2014-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2014-10-04T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2014-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2014-04-05T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2014-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2014-04-05T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2014-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2014-10-04T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2014-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2014-10-04T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2015-04-04T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2015-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2015-04-04T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2015-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2015-10-03T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2015-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2015-10-03T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2015-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2015-04-04T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2015-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2015-04-04T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2015-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2015-10-03T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2015-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2015-10-03T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2016-04-02T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2016-04-02T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2016-04-02T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2016-10-01T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2016-10-01T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2016-10-01T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2016-10-01T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2016-04-02T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2016-04-02T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2016-04-02T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2016-04-02T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2016-10-01T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2016-10-01T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2016-10-01T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2016-10-01T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2017-04-01T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2017-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2017-04-01T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2017-09-30T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2017-09-30T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2017-09-30T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2017-09-30T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2017-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2017-04-01T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2017-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2017-04-01T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2017-09-30T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2017-09-30T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2017-09-30T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2017-09-30T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2018-03-31T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2018-03-31T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2018-03-31T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2018-10-06T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2018-10-06T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2018-10-06T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2018-10-06T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2018-03-31T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2018-03-31T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2018-03-31T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2018-03-31T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2018-10-06T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2018-10-06T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2018-10-06T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2018-10-06T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2019-04-06T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2019-04-06T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2019-04-06T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2019-10-05T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2019-10-05T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2019-10-05T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2019-10-05T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2019-04-06T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2019-04-06T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2019-04-06T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2019-04-06T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2019-10-05T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2019-10-05T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2019-10-05T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2019-10-05T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2020-04-04T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2020-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2020-04-04T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2020-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2020-10-03T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2020-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2020-10-03T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2020-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2020-04-04T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2020-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2020-04-04T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2020-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2020-10-03T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2020-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2020-10-03T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2021-04-03T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2021-04-03T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2021-04-03T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2021-10-02T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2021-10-02T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2021-10-02T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2021-10-02T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2021-04-03T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2021-04-03T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2021-04-03T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2021-04-03T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2021-10-02T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2021-10-02T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2021-10-02T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2021-10-02T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2022-04-02T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2022-04-02T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2022-04-02T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2022-10-01T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2022-10-01T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2022-10-01T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2022-10-01T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2022-04-02T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2022-04-02T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2022-04-02T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2022-04-02T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2022-10-01T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2022-10-01T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2022-10-01T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2022-10-01T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2023-04-01T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2023-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2023-04-01T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2023-09-30T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2023-09-30T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2023-09-30T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2023-09-30T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2023-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2023-04-01T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2023-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2023-04-01T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2023-09-30T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2023-09-30T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2023-09-30T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2023-09-30T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2024-04-06T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2024-04-06T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2024-04-06T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2024-10-05T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2024-10-05T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2024-10-05T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2024-10-05T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2024-04-06T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2024-04-06T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2024-04-06T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2024-04-06T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2024-10-05T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2024-10-05T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2024-10-05T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2024-10-05T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2025-04-05T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2025-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2025-04-05T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2025-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2025-10-04T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2025-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2025-10-04T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2025-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2025-04-05T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2025-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2025-04-05T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2025-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2025-10-04T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2025-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2025-10-04T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2026-04-04T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2026-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2026-04-04T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2026-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2026-10-03T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2026-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2026-10-03T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2026-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2026-04-04T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2026-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2026-04-04T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2026-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2026-10-03T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2026-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2026-10-03T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2027-04-03T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2027-04-03T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2027-04-03T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2027-10-02T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2027-10-02T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2027-10-02T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2027-10-02T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2027-04-03T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2027-04-03T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2027-04-03T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2027-04-03T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2027-10-02T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2027-10-02T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2027-10-02T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2027-10-02T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2028-04-01T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2028-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2028-04-01T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2028-09-30T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2028-09-30T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2028-09-30T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2028-09-30T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2028-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2028-04-01T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2028-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2028-04-01T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2028-09-30T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2028-09-30T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2028-09-30T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2028-09-30T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2029-03-31T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2029-03-31T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2029-03-31T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2029-10-06T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2029-10-06T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2029-10-06T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2029-10-06T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2029-03-31T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2029-03-31T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2029-03-31T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2029-03-31T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2029-10-06T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2029-10-06T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2029-10-06T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2029-10-06T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2030-04-06T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2030-04-06T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2030-04-06T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2030-10-05T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2030-10-05T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2030-10-05T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2030-10-05T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2030-04-06T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2030-04-06T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2030-04-06T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2030-04-06T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2030-10-05T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2030-10-05T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2030-10-05T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2030-10-05T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2031-04-05T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2031-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2031-04-05T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2031-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2031-10-04T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2031-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2031-10-04T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2031-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2031-04-05T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2031-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2031-04-05T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2031-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2031-10-04T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2031-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2031-10-04T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2032-04-03T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2032-04-03T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2032-04-03T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2032-10-02T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2032-10-02T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2032-10-02T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2032-10-02T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2032-04-03T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2032-04-03T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2032-04-03T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2032-04-03T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2032-10-02T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2032-10-02T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2032-10-02T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2032-10-02T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2033-04-02T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2033-04-02T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2033-04-02T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2033-10-01T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2033-10-01T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2033-10-01T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2033-10-01T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2033-04-02T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2033-04-02T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2033-04-02T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2033-04-02T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2033-10-01T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2033-10-01T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2033-10-01T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2033-10-01T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2034-04-01T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2034-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2034-04-01T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2034-09-30T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2034-09-30T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2034-09-30T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2034-09-30T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2034-04-01T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2034-04-01T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2034-04-01T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2034-04-01T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2034-09-30T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2034-09-30T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2034-09-30T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2034-09-30T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2035-03-31T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2035-03-31T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2035-03-31T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2035-10-06T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2035-10-06T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2035-10-06T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2035-10-06T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2035-03-31T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2035-03-31T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2035-03-31T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2035-03-31T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2035-10-06T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2035-10-06T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2035-10-06T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2035-10-06T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2036-04-05T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2036-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2036-04-05T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2036-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2036-10-04T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2036-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2036-10-04T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2036-04-05T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2036-04-05T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2036-04-05T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2036-04-05T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2036-10-04T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2036-10-04T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2036-10-04T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2036-10-04T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2037-04-04T14:59:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2037-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:30:00", "2037-04-04T15:00:00+00:00 should be 01:30:00 LHST"); - t.equal(moment("2037-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "01:59:59", "2037-10-03T15:29:59+00:00 should be 01:59:59 LHST"); - t.equal(moment("2037-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").format("HH:mm:ss"), "02:30:00", "2037-10-03T15:30:00+00:00 should be 02:30:00 LHST"); - - t.equal(moment("2037-04-04T14:59:59+00:00").tz("Australia/Lord_Howe").zone(), -660, "2037-04-04T14:59:59+00:00 should be -660 minutes offset in LHST"); - t.equal(moment("2037-04-04T15:00:00+00:00").tz("Australia/Lord_Howe").zone(), -630, "2037-04-04T15:00:00+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2037-10-03T15:29:59+00:00").tz("Australia/Lord_Howe").zone(), -630, "2037-10-03T15:29:59+00:00 should be -630 minutes offset in LHST"); - t.equal(moment("2037-10-03T15:30:00+00:00").tz("Australia/Lord_Howe").zone(), -660, "2037-10-03T15:30:00+00:00 should be -660 minutes offset in LHST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/melbourne.js b/tests/australia/melbourne.js deleted file mode 100644 index bf4354bb..00000000 --- a/tests/australia/melbourne.js +++ /dev/null @@ -1,1006 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Melbourne"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T14:00:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "00:00:59", "1916-12-31T14:00:59+00:00 should be 00:00:59 EST"); - t.equal(moment("1916-12-31T14:01:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:01:00", "1916-12-31T14:01:00+00:00 should be 01:01:00 EST"); - - t.equal(moment("1916-12-31T14:00:59+00:00").tz("Australia/Melbourne").zone(), -600, "1916-12-31T14:00:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1916-12-31T14:01:00+00:00").tz("Australia/Melbourne").zone(), -660, "1916-12-31T14:01:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1917-03-24T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1917-03-24T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1917-03-24T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1941-12-31T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1941-12-31T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1941-12-31T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1941-12-31T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1942-03-28T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:00:00", "1942-03-28T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1942-09-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1942-09-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1942-03-28T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1942-03-28T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1942-09-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1942-09-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1943-03-27T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:00:00", "1943-03-27T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1943-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1943-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1943-03-27T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1943-03-27T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1943-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1943-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1944-03-25T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:00:00", "1944-03-25T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1944-03-25T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1944-03-25T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1971-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1971-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1971-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1971-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1972-02-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1972-02-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1972-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1972-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1972-02-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1972-02-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1972-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1972-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1973-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1973-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1973-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1973-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1973-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1973-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1973-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1973-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1974-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1974-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1974-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1974-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1974-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1974-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1974-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1974-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1975-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1975-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1975-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1975-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1975-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1975-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1975-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1975-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1976-03-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1976-03-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1976-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1976-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1976-03-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1976-03-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1976-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1976-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1977-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1977-03-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1977-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1977-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1977-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1977-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1977-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1977-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1978-03-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1978-03-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1978-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1978-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1978-03-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1978-03-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1978-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1978-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1979-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1979-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1979-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1979-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1979-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1979-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1979-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1979-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1980-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1980-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1980-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1980-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1980-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1980-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1980-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1980-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1981-02-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1981-02-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1981-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1981-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1981-02-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1981-02-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1981-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1981-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1982-03-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1982-03-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1982-03-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1982-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1982-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1982-03-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1982-03-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1982-03-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1982-03-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1982-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1982-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1983-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1983-03-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1983-03-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1983-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1983-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1983-03-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1983-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1983-03-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1983-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1983-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1983-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1984-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1984-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1984-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1984-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1984-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1984-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1984-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1984-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1985-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1985-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1985-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1985-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1985-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1985-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1985-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1985-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1986-03-15T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1986-03-15T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1986-03-15T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1986-10-18T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1986-10-18T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1986-03-15T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1986-03-15T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1986-03-15T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1986-03-15T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1986-10-18T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1986-10-18T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1987-03-14T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1987-03-14T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1987-10-17T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1987-10-17T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-10-17T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1987-10-17T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1987-03-14T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1987-03-14T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-17T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1987-10-17T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-17T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1987-10-17T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1988-03-19T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1988-03-19T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1988-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1988-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1988-03-19T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1988-03-19T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1988-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1988-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1989-03-18T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1989-03-18T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1989-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1989-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1989-03-18T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1989-03-18T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1989-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1989-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-17T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1990-03-17T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1990-03-17T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1990-03-17T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1990-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1990-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1990-03-17T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1990-03-17T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1990-03-17T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1990-03-17T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1990-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1990-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1991-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1991-03-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1991-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1991-10-26T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1991-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-10-26T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1991-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1991-03-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1991-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1991-03-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1991-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-26T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1991-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-26T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1991-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-29T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1992-02-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1992-02-29T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1992-02-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1992-10-24T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1992-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-10-24T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1992-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1992-02-29T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1992-02-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1992-02-29T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1992-02-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-24T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1992-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-24T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1992-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1993-03-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1993-03-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1993-03-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1993-10-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1993-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-10-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1993-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1993-03-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1993-03-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1993-03-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1993-03-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1993-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1993-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1994-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1994-03-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1994-03-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1994-10-29T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1994-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-10-29T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1994-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1994-03-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1994-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1994-03-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1994-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-29T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1994-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-29T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1994-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1995-03-25T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1995-03-25T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1995-10-28T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1995-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-10-28T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1995-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1995-03-25T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1995-03-25T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1995-03-25T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1995-03-25T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-10-28T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1995-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-10-28T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1995-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1996-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1996-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1996-10-26T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1996-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-10-26T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1996-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1996-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1996-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-26T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1996-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-26T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1996-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1997-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1997-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1997-10-25T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1997-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-10-25T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1997-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1997-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1997-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-25T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1997-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-25T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1997-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1998-03-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1998-03-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1998-10-24T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1998-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-10-24T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1998-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1998-03-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1998-03-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-24T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1998-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-24T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1998-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "1999-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "1999-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1999-10-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "1999-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-10-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "1999-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "1999-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "1999-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "1999-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "1999-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2000-03-25T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2000-03-25T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2000-08-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2000-08-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2000-03-25T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2000-03-25T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2000-08-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2000-08-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2001-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2001-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2001-10-27T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2001-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-10-27T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2001-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2001-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2001-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-27T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2001-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-27T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2001-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2002-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2002-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2002-10-26T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2002-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-10-26T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2002-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2002-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2002-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-26T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2002-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-26T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2002-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2003-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2003-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2003-10-25T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2003-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-10-25T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2003-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2003-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2003-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-25T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2003-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-25T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2003-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2004-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2004-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2004-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2004-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2004-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2004-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2004-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2004-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2005-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2005-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2005-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2005-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2005-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2005-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2005-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2005-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2006-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2006-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2006-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2006-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2006-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2006-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2006-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2006-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2007-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2007-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2007-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2007-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2007-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2007-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2007-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2007-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2008-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2008-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2008-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2008-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2008-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2008-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2008-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2008-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2009-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2009-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2009-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2009-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2009-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2009-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2009-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2009-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2010-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2010-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2010-10-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2010-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-10-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2010-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2010-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2010-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2010-10-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2010-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2010-10-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2010-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2011-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2011-04-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2011-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2011-10-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2011-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-10-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2011-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2011-04-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2011-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2011-04-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2011-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2011-10-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2011-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2011-10-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2011-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2012-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2012-03-31T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2012-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2012-10-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2012-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-10-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2012-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2012-03-31T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2012-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2012-03-31T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2012-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2012-10-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2012-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2012-10-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2012-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2013-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2013-04-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2013-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2013-10-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2013-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-10-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2013-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2013-04-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2013-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2013-04-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2013-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2013-10-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2013-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2013-10-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2013-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2014-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2014-04-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2014-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2014-10-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2014-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-10-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2014-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2014-04-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2014-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2014-04-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2014-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2014-10-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2014-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2014-10-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2014-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2015-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2015-04-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2015-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2015-10-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2015-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-10-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2015-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2015-04-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2015-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2015-04-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2015-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2015-10-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2015-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2015-10-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2015-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2016-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2016-04-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2016-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2016-10-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2016-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-10-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2016-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2016-04-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2016-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2016-04-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2016-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2016-10-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2016-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2016-10-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2016-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2017-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2017-04-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2017-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2017-09-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2017-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-09-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2017-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2017-04-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2017-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2017-04-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2017-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2017-09-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2017-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2017-09-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2017-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2018-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2018-03-31T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2018-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2018-10-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2018-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-10-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2018-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2018-03-31T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2018-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2018-03-31T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2018-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2018-10-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2018-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2018-10-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2018-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2019-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2019-04-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2019-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2019-10-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2019-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-10-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2019-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2019-04-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2019-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2019-04-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2019-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2019-10-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2019-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2019-10-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2019-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2020-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2020-04-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2020-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2020-10-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2020-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-10-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2020-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2020-04-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2020-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2020-04-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2020-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2020-10-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2020-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2020-10-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2020-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2021-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2021-04-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2021-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2021-10-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2021-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-10-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2021-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2021-04-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2021-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2021-04-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2021-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2021-10-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2021-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2021-10-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2021-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2022-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2022-04-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2022-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2022-10-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2022-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-10-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2022-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2022-04-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2022-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2022-04-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2022-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2022-10-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2022-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2022-10-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2022-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2023-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2023-04-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2023-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2023-09-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2023-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-09-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2023-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2023-04-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2023-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2023-04-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2023-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2023-09-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2023-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2023-09-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2023-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2024-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2024-04-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2024-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2024-10-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2024-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-10-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2024-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2024-04-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2024-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2024-04-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2024-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2024-10-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2024-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2024-10-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2024-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2025-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2025-04-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2025-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2025-10-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2025-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-10-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2025-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2025-04-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2025-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2025-04-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2025-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2025-10-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2025-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2025-10-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2025-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2026-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2026-04-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2026-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2026-10-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2026-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-10-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2026-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2026-04-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2026-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2026-04-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2026-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2026-10-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2026-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2026-10-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2026-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2027-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2027-04-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2027-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2027-10-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2027-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-10-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2027-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2027-04-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2027-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2027-04-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2027-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2027-10-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2027-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2027-10-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2027-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2028-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2028-04-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2028-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2028-09-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2028-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-09-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2028-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2028-04-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2028-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2028-04-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2028-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2028-09-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2028-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2028-09-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2028-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2029-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2029-03-31T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2029-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2029-10-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2029-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-10-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2029-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2029-03-31T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2029-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2029-03-31T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2029-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2029-10-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2029-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2029-10-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2029-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2030-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2030-04-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2030-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2030-10-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2030-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-10-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2030-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2030-04-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2030-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2030-04-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2030-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2030-10-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2030-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2030-10-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2030-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2031-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2031-04-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2031-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2031-10-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2031-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-10-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2031-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2031-04-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2031-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2031-04-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2031-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2031-10-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2031-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2031-10-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2031-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2032-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2032-04-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2032-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2032-10-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2032-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-10-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2032-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2032-04-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2032-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2032-04-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2032-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2032-10-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2032-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2032-10-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2032-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2033-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2033-04-02T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2033-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2033-10-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2033-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-10-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2033-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2033-04-02T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2033-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2033-04-02T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2033-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2033-10-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2033-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2033-10-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2033-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2034-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2034-04-01T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2034-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2034-09-30T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2034-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-09-30T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2034-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2034-04-01T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2034-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2034-04-01T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2034-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2034-09-30T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2034-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2034-09-30T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2034-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2035-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2035-03-31T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2035-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2035-10-06T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2035-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-10-06T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2035-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2035-03-31T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2035-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2035-03-31T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2035-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2035-10-06T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2035-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2035-10-06T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2035-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2036-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2036-04-05T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2036-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2036-10-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2036-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-10-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2036-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2036-04-05T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2036-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2036-04-05T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2036-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2036-10-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2036-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2036-10-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2036-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:59:59", "2037-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2037-04-04T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "02:00:00", "2037-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2037-10-03T15:59:59+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "01:59:59", "2037-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-10-03T16:00:00+00:00").tz("Australia/Melbourne").format("HH:mm:ss"), "03:00:00", "2037-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2037-04-04T15:59:59+00:00").tz("Australia/Melbourne").zone(), -660, "2037-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2037-04-04T16:00:00+00:00").tz("Australia/Melbourne").zone(), -600, "2037-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2037-10-03T15:59:59+00:00").tz("Australia/Melbourne").zone(), -600, "2037-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2037-10-03T16:00:00+00:00").tz("Australia/Melbourne").zone(), -660, "2037-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/perth.js b/tests/australia/perth.js deleted file mode 100644 index 83709356..00000000 --- a/tests/australia/perth.js +++ /dev/null @@ -1,166 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Perth"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T16:00:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "00:00:59", "1916-12-31T16:00:59+00:00 should be 00:00:59 WST"); - t.equal(moment("1916-12-31T16:01:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:01:00", "1916-12-31T16:01:00+00:00 should be 01:01:00 WST"); - - t.equal(moment("1916-12-31T16:00:59+00:00").tz("Australia/Perth").zone(), -480, "1916-12-31T16:00:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("1916-12-31T16:01:00+00:00").tz("Australia/Perth").zone(), -540, "1916-12-31T16:01:00+00:00 should be -540 minutes offset in WST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T16:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "1917-03-24T16:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("1917-03-24T17:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:00:00", "1917-03-24T17:00:00+00:00 should be 01:00:00 WST"); - - t.equal(moment("1917-03-24T16:59:59+00:00").tz("Australia/Perth").zone(), -540, "1917-03-24T16:59:59+00:00 should be -540 minutes offset in WST"); - t.equal(moment("1917-03-24T17:00:00+00:00").tz("Australia/Perth").zone(), -480, "1917-03-24T17:00:00+00:00 should be -480 minutes offset in WST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "1941-12-31T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("1941-12-31T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "03:00:00", "1941-12-31T18:00:00+00:00 should be 03:00:00 WST"); - - t.equal(moment("1941-12-31T17:59:59+00:00").tz("Australia/Perth").zone(), -480, "1941-12-31T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("1941-12-31T18:00:00+00:00").tz("Australia/Perth").zone(), -540, "1941-12-31T18:00:00+00:00 should be -540 minutes offset in WST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T16:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "1942-03-28T16:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("1942-03-28T17:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:00:00", "1942-03-28T17:00:00+00:00 should be 01:00:00 WST"); - t.equal(moment("1942-09-26T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "1942-09-26T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("1942-09-26T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "03:00:00", "1942-09-26T18:00:00+00:00 should be 03:00:00 WST"); - - t.equal(moment("1942-03-28T16:59:59+00:00").tz("Australia/Perth").zone(), -540, "1942-03-28T16:59:59+00:00 should be -540 minutes offset in WST"); - t.equal(moment("1942-03-28T17:00:00+00:00").tz("Australia/Perth").zone(), -480, "1942-03-28T17:00:00+00:00 should be -480 minutes offset in WST"); - t.equal(moment("1942-09-26T17:59:59+00:00").tz("Australia/Perth").zone(), -480, "1942-09-26T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("1942-09-26T18:00:00+00:00").tz("Australia/Perth").zone(), -540, "1942-09-26T18:00:00+00:00 should be -540 minutes offset in WST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T16:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "1943-03-27T16:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("1943-03-27T17:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:00:00", "1943-03-27T17:00:00+00:00 should be 01:00:00 WST"); - - t.equal(moment("1943-03-27T16:59:59+00:00").tz("Australia/Perth").zone(), -540, "1943-03-27T16:59:59+00:00 should be -540 minutes offset in WST"); - t.equal(moment("1943-03-27T17:00:00+00:00").tz("Australia/Perth").zone(), -480, "1943-03-27T17:00:00+00:00 should be -480 minutes offset in WST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-10-26T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "1974-10-26T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("1974-10-26T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "03:00:00", "1974-10-26T18:00:00+00:00 should be 03:00:00 WST"); - - t.equal(moment("1974-10-26T17:59:59+00:00").tz("Australia/Perth").zone(), -480, "1974-10-26T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("1974-10-26T18:00:00+00:00").tz("Australia/Perth").zone(), -540, "1974-10-26T18:00:00+00:00 should be -540 minutes offset in WST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-01T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:59:59", "1975-03-01T17:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("1975-03-01T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:00:00", "1975-03-01T18:00:00+00:00 should be 02:00:00 WST"); - - t.equal(moment("1975-03-01T17:59:59+00:00").tz("Australia/Perth").zone(), -540, "1975-03-01T17:59:59+00:00 should be -540 minutes offset in WST"); - t.equal(moment("1975-03-01T18:00:00+00:00").tz("Australia/Perth").zone(), -480, "1975-03-01T18:00:00+00:00 should be -480 minutes offset in WST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-10-29T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "1983-10-29T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("1983-10-29T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "03:00:00", "1983-10-29T18:00:00+00:00 should be 03:00:00 WST"); - - t.equal(moment("1983-10-29T17:59:59+00:00").tz("Australia/Perth").zone(), -480, "1983-10-29T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("1983-10-29T18:00:00+00:00").tz("Australia/Perth").zone(), -540, "1983-10-29T18:00:00+00:00 should be -540 minutes offset in WST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:59:59", "1984-03-03T17:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("1984-03-03T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:00:00", "1984-03-03T18:00:00+00:00 should be 02:00:00 WST"); - - t.equal(moment("1984-03-03T17:59:59+00:00").tz("Australia/Perth").zone(), -540, "1984-03-03T17:59:59+00:00 should be -540 minutes offset in WST"); - t.equal(moment("1984-03-03T18:00:00+00:00").tz("Australia/Perth").zone(), -480, "1984-03-03T18:00:00+00:00 should be -480 minutes offset in WST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-11-16T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "1991-11-16T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("1991-11-16T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "03:00:00", "1991-11-16T18:00:00+00:00 should be 03:00:00 WST"); - - t.equal(moment("1991-11-16T17:59:59+00:00").tz("Australia/Perth").zone(), -480, "1991-11-16T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("1991-11-16T18:00:00+00:00").tz("Australia/Perth").zone(), -540, "1991-11-16T18:00:00+00:00 should be -540 minutes offset in WST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-29T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:59:59", "1992-02-29T17:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("1992-02-29T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:00:00", "1992-02-29T18:00:00+00:00 should be 02:00:00 WST"); - - t.equal(moment("1992-02-29T17:59:59+00:00").tz("Australia/Perth").zone(), -540, "1992-02-29T17:59:59+00:00 should be -540 minutes offset in WST"); - t.equal(moment("1992-02-29T18:00:00+00:00").tz("Australia/Perth").zone(), -480, "1992-02-29T18:00:00+00:00 should be -480 minutes offset in WST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-12-02T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "2006-12-02T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("2006-12-02T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "03:00:00", "2006-12-02T18:00:00+00:00 should be 03:00:00 WST"); - - t.equal(moment("2006-12-02T17:59:59+00:00").tz("Australia/Perth").zone(), -480, "2006-12-02T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("2006-12-02T18:00:00+00:00").tz("Australia/Perth").zone(), -540, "2006-12-02T18:00:00+00:00 should be -540 minutes offset in WST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:59:59", "2007-03-24T17:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2007-03-24T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:00:00", "2007-03-24T18:00:00+00:00 should be 02:00:00 WST"); - t.equal(moment("2007-10-27T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "2007-10-27T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("2007-10-27T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "03:00:00", "2007-10-27T18:00:00+00:00 should be 03:00:00 WST"); - - t.equal(moment("2007-03-24T17:59:59+00:00").tz("Australia/Perth").zone(), -540, "2007-03-24T17:59:59+00:00 should be -540 minutes offset in WST"); - t.equal(moment("2007-03-24T18:00:00+00:00").tz("Australia/Perth").zone(), -480, "2007-03-24T18:00:00+00:00 should be -480 minutes offset in WST"); - t.equal(moment("2007-10-27T17:59:59+00:00").tz("Australia/Perth").zone(), -480, "2007-10-27T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("2007-10-27T18:00:00+00:00").tz("Australia/Perth").zone(), -540, "2007-10-27T18:00:00+00:00 should be -540 minutes offset in WST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:59:59", "2008-03-29T17:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2008-03-29T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:00:00", "2008-03-29T18:00:00+00:00 should be 02:00:00 WST"); - t.equal(moment("2008-10-25T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "01:59:59", "2008-10-25T17:59:59+00:00 should be 01:59:59 WST"); - t.equal(moment("2008-10-25T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "03:00:00", "2008-10-25T18:00:00+00:00 should be 03:00:00 WST"); - - t.equal(moment("2008-03-29T17:59:59+00:00").tz("Australia/Perth").zone(), -540, "2008-03-29T17:59:59+00:00 should be -540 minutes offset in WST"); - t.equal(moment("2008-03-29T18:00:00+00:00").tz("Australia/Perth").zone(), -480, "2008-03-29T18:00:00+00:00 should be -480 minutes offset in WST"); - t.equal(moment("2008-10-25T17:59:59+00:00").tz("Australia/Perth").zone(), -480, "2008-10-25T17:59:59+00:00 should be -480 minutes offset in WST"); - t.equal(moment("2008-10-25T18:00:00+00:00").tz("Australia/Perth").zone(), -540, "2008-10-25T18:00:00+00:00 should be -540 minutes offset in WST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T17:59:59+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:59:59", "2009-03-28T17:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2009-03-28T18:00:00+00:00").tz("Australia/Perth").format("HH:mm:ss"), "02:00:00", "2009-03-28T18:00:00+00:00 should be 02:00:00 WST"); - - t.equal(moment("2009-03-28T17:59:59+00:00").tz("Australia/Perth").zone(), -540, "2009-03-28T17:59:59+00:00 should be -540 minutes offset in WST"); - t.equal(moment("2009-03-28T18:00:00+00:00").tz("Australia/Perth").zone(), -480, "2009-03-28T18:00:00+00:00 should be -480 minutes offset in WST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/australia/sydney.js b/tests/australia/sydney.js deleted file mode 100644 index 879e7eb6..00000000 --- a/tests/australia/sydney.js +++ /dev/null @@ -1,1006 +0,0 @@ -var moment = require("../../index"); - -exports["Australia/Sydney"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T14:00:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "00:00:59", "1916-12-31T14:00:59+00:00 should be 00:00:59 EST"); - t.equal(moment("1916-12-31T14:01:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:01:00", "1916-12-31T14:01:00+00:00 should be 01:01:00 EST"); - - t.equal(moment("1916-12-31T14:00:59+00:00").tz("Australia/Sydney").zone(), -600, "1916-12-31T14:00:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1916-12-31T14:01:00+00:00").tz("Australia/Sydney").zone(), -660, "1916-12-31T14:01:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1917-03-24T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:00:00", "1917-03-24T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1917-03-24T14:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1917-03-24T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1917-03-24T15:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1917-03-24T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1941-12-31T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1941-12-31T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1941-12-31T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1941-12-31T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1941-12-31T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1941-12-31T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1942-03-28T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:00:00", "1942-03-28T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1942-09-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1942-09-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1942-03-28T14:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1942-03-28T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1942-03-28T15:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1942-03-28T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1942-09-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1942-09-26T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1942-09-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1943-03-27T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:00:00", "1943-03-27T15:00:00+00:00 should be 01:00:00 EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1943-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1943-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1943-03-27T14:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1943-03-27T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1943-03-27T15:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1943-03-27T15:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1943-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1943-10-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1943-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1944-03-25T14:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:00:00", "1944-03-25T15:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1944-03-25T14:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1944-03-25T14:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1944-03-25T15:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1944-03-25T15:00:00+00:00 should be -600 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1971-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1971-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1971-10-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1971-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1971-10-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1971-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1972-02-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1972-02-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1972-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1972-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1972-02-26T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1972-02-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1972-02-26T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1972-02-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1972-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1972-10-28T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1972-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1973-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1973-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1973-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1973-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1973-03-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1973-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1973-03-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1973-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1973-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1973-10-27T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1973-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1974-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1974-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1974-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1974-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1974-03-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1974-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1974-03-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1974-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1974-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1974-10-26T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1974-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1975-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1975-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1975-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1975-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1975-03-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1975-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1975-03-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1975-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1975-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1975-10-25T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1975-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1976-03-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1976-03-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1976-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1976-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1976-03-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1976-03-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1976-03-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1976-03-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1976-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1976-10-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1976-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1977-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1977-03-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1977-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1977-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1977-03-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1977-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1977-03-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1977-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1977-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1977-10-29T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1977-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1978-03-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1978-03-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1978-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1978-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1978-03-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1978-03-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1978-03-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1978-03-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1978-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1978-10-28T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1978-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1979-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1979-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1979-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1979-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1979-03-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1979-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1979-03-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1979-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1979-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1979-10-27T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1979-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1980-03-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1980-03-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1980-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1980-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1980-03-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1980-03-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1980-03-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1980-03-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1980-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1980-10-25T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1980-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1981-02-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1981-02-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1981-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1981-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1981-02-28T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1981-02-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1981-02-28T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1981-02-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1981-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1981-10-24T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1981-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1982-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1982-04-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1982-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1982-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1982-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1982-04-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1982-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1982-04-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1982-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1982-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1982-10-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1982-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1983-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1983-03-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1983-03-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1983-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1983-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1983-03-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1983-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1983-03-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1983-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1983-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1983-10-29T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1983-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1984-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1984-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1984-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1984-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1984-03-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1984-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1984-03-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1984-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1984-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1984-10-27T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1984-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1985-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1985-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1985-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1985-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1985-03-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1985-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1985-03-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1985-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1985-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1985-10-26T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1985-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-15T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1986-03-15T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1986-03-15T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1986-03-15T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1986-10-18T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1986-10-18T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1986-03-15T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1986-03-15T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1986-03-15T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1986-03-15T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1986-10-18T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1986-10-18T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1986-10-18T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1987-03-14T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1987-03-14T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1987-10-24T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1987-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-10-24T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1987-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1987-03-14T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1987-03-14T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1987-03-14T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1987-03-14T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-24T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1987-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1987-10-24T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1987-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1988-03-19T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1988-03-19T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1988-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1988-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1988-03-19T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1988-03-19T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1988-03-19T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1988-03-19T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1988-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1988-10-29T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1988-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1989-03-18T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1989-03-18T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1989-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1989-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1989-03-18T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1989-03-18T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1989-03-18T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1989-03-18T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1989-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1989-10-28T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1989-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1990-03-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1990-03-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1990-03-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1990-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1990-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1990-03-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1990-03-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1990-03-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1990-03-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1990-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1990-10-27T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1990-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1991-03-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1991-03-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1991-03-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1991-10-26T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1991-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-10-26T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1991-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1991-03-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1991-03-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1991-03-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1991-03-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-26T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1991-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1991-10-26T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1991-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-02-29T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1992-02-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1992-02-29T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1992-02-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1992-10-24T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1992-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-10-24T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1992-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1992-02-29T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1992-02-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1992-02-29T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1992-02-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-24T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1992-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1992-10-24T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1992-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1993-03-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1993-03-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1993-03-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1993-10-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1993-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-10-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1993-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1993-03-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1993-03-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1993-03-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1993-03-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1993-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1993-10-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1993-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1994-03-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1994-03-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1994-03-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1994-10-29T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1994-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-10-29T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1994-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1994-03-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1994-03-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1994-03-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1994-03-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-29T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1994-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1994-10-29T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1994-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1995-03-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1995-03-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1995-03-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1995-10-28T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1995-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-10-28T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1995-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1995-03-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1995-03-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1995-03-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1995-03-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-10-28T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1995-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1995-10-28T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1995-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1996-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1996-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1996-10-26T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1996-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-10-26T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1996-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1996-03-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1996-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1996-03-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1996-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-26T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1996-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1996-10-26T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1996-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1997-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1997-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1997-10-25T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1997-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-10-25T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1997-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1997-03-29T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1997-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1997-03-29T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1997-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-25T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1997-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1997-10-25T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1997-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1998-03-28T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1998-03-28T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1998-10-24T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1998-10-24T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-10-24T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1998-10-24T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1998-03-28T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1998-03-28T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1998-03-28T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1998-03-28T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-24T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1998-10-24T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1998-10-24T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1998-10-24T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "1999-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "1999-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("1999-10-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "1999-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-10-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "1999-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("1999-03-27T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "1999-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("1999-03-27T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "1999-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "1999-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("1999-10-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "1999-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2000-03-25T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2000-03-25T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2000-08-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2000-08-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2000-03-25T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2000-03-25T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2000-03-25T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2000-03-25T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2000-08-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2000-08-26T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2000-08-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2001-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2001-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2001-10-27T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2001-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-10-27T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2001-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2001-03-24T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2001-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2001-03-24T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2001-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-27T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2001-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2001-10-27T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2001-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2002-03-30T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2002-03-30T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2002-10-26T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2002-10-26T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-10-26T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2002-10-26T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2002-03-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2002-03-30T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2002-03-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2002-03-30T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-26T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2002-10-26T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2002-10-26T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2002-10-26T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2003-03-29T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2003-03-29T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2003-10-25T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2003-10-25T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-10-25T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2003-10-25T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2003-03-29T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2003-03-29T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2003-03-29T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2003-03-29T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-25T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2003-10-25T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2003-10-25T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2003-10-25T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2004-03-27T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2004-03-27T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2004-10-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2004-10-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2004-03-27T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2004-03-27T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2004-03-27T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2004-03-27T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2004-10-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2004-10-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2004-10-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2005-03-26T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2005-03-26T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2005-10-29T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2005-10-29T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2005-03-26T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2005-03-26T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2005-03-26T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2005-03-26T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-29T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2005-10-29T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2005-10-29T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2005-10-29T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2006-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2006-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2006-10-28T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2006-10-28T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2006-04-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2006-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2006-04-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2006-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-10-28T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2006-10-28T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2006-10-28T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2006-10-28T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2007-03-24T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2007-03-24T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2007-10-27T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2007-10-27T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2007-03-24T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2007-03-24T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2007-03-24T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2007-03-24T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-27T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2007-10-27T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2007-10-27T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2007-10-27T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2008-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2008-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2008-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2008-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2008-04-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2008-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2008-04-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2008-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2008-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2008-10-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2008-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2009-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2009-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2009-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2009-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2009-04-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2009-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2009-04-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2009-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2009-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2009-10-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2009-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2010-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2010-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2010-10-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2010-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-10-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2010-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2010-04-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2010-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2010-04-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2010-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2010-10-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2010-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2010-10-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2010-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2011-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2011-04-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2011-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2011-10-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2011-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-10-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2011-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2011-04-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2011-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2011-04-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2011-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2011-10-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2011-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2011-10-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2011-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2012-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2012-03-31T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2012-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2012-10-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2012-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-10-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2012-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2012-03-31T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2012-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2012-03-31T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2012-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2012-10-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2012-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2012-10-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2012-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2013-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2013-04-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2013-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2013-10-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2013-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-10-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2013-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2013-04-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2013-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2013-04-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2013-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2013-10-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2013-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2013-10-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2013-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2014-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2014-04-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2014-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2014-10-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2014-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-10-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2014-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2014-04-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2014-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2014-04-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2014-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2014-10-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2014-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2014-10-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2014-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2015-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2015-04-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2015-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2015-10-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2015-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-10-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2015-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2015-04-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2015-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2015-04-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2015-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2015-10-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2015-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2015-10-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2015-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2016-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2016-04-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2016-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2016-10-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2016-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-10-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2016-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2016-04-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2016-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2016-04-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2016-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2016-10-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2016-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2016-10-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2016-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2017-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2017-04-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2017-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2017-09-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2017-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-09-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2017-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2017-04-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2017-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2017-04-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2017-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2017-09-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2017-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2017-09-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2017-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2018-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2018-03-31T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2018-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2018-10-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2018-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-10-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2018-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2018-03-31T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2018-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2018-03-31T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2018-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2018-10-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2018-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2018-10-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2018-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2019-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2019-04-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2019-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2019-10-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2019-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-10-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2019-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2019-04-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2019-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2019-04-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2019-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2019-10-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2019-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2019-10-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2019-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2020-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2020-04-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2020-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2020-10-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2020-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-10-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2020-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2020-04-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2020-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2020-04-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2020-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2020-10-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2020-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2020-10-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2020-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2021-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2021-04-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2021-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2021-10-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2021-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-10-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2021-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2021-04-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2021-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2021-04-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2021-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2021-10-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2021-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2021-10-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2021-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2022-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2022-04-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2022-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2022-10-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2022-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-10-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2022-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2022-04-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2022-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2022-04-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2022-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2022-10-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2022-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2022-10-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2022-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2023-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2023-04-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2023-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2023-09-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2023-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-09-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2023-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2023-04-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2023-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2023-04-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2023-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2023-09-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2023-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2023-09-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2023-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2024-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2024-04-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2024-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2024-10-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2024-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-10-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2024-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2024-04-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2024-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2024-04-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2024-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2024-10-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2024-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2024-10-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2024-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2025-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2025-04-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2025-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2025-10-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2025-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-10-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2025-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2025-04-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2025-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2025-04-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2025-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2025-10-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2025-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2025-10-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2025-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2026-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2026-04-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2026-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2026-10-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2026-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-10-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2026-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2026-04-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2026-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2026-04-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2026-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2026-10-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2026-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2026-10-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2026-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2027-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2027-04-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2027-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2027-10-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2027-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-10-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2027-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2027-04-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2027-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2027-04-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2027-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2027-10-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2027-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2027-10-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2027-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2028-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2028-04-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2028-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2028-09-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2028-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-09-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2028-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2028-04-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2028-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2028-04-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2028-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2028-09-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2028-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2028-09-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2028-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2029-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2029-03-31T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2029-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2029-10-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2029-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-10-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2029-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2029-03-31T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2029-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2029-03-31T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2029-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2029-10-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2029-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2029-10-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2029-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2030-04-06T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2030-04-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2030-04-06T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2030-10-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2030-10-05T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-10-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2030-10-05T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2030-04-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2030-04-06T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2030-04-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2030-04-06T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2030-10-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2030-10-05T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2030-10-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2030-10-05T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2031-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2031-04-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2031-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2031-10-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2031-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-10-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2031-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2031-04-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2031-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2031-04-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2031-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2031-10-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2031-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2031-10-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2031-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2032-04-03T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2032-04-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2032-04-03T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2032-10-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2032-10-02T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-10-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2032-10-02T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2032-04-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2032-04-03T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2032-04-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2032-04-03T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2032-10-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2032-10-02T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2032-10-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2032-10-02T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2033-04-02T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2033-04-02T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2033-04-02T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2033-10-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2033-10-01T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-10-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2033-10-01T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2033-04-02T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2033-04-02T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2033-04-02T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2033-04-02T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2033-10-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2033-10-01T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2033-10-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2033-10-01T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2034-04-01T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2034-04-01T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2034-04-01T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2034-09-30T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2034-09-30T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-09-30T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2034-09-30T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2034-04-01T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2034-04-01T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2034-04-01T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2034-04-01T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2034-09-30T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2034-09-30T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2034-09-30T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2034-09-30T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2035-03-31T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2035-03-31T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2035-03-31T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2035-10-06T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2035-10-06T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-10-06T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2035-10-06T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2035-03-31T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2035-03-31T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2035-03-31T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2035-03-31T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2035-10-06T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2035-10-06T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2035-10-06T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2035-10-06T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2036-04-05T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2036-04-05T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2036-04-05T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2036-10-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2036-10-04T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-10-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2036-10-04T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2036-04-05T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2036-04-05T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2036-04-05T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2036-04-05T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2036-10-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2036-10-04T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2036-10-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2036-10-04T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:59:59", "2037-04-04T15:59:59+00:00 should be 02:59:59 EST"); - t.equal(moment("2037-04-04T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "02:00:00", "2037-04-04T16:00:00+00:00 should be 02:00:00 EST"); - t.equal(moment("2037-10-03T15:59:59+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "01:59:59", "2037-10-03T15:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-10-03T16:00:00+00:00").tz("Australia/Sydney").format("HH:mm:ss"), "03:00:00", "2037-10-03T16:00:00+00:00 should be 03:00:00 EST"); - - t.equal(moment("2037-04-04T15:59:59+00:00").tz("Australia/Sydney").zone(), -660, "2037-04-04T15:59:59+00:00 should be -660 minutes offset in EST"); - t.equal(moment("2037-04-04T16:00:00+00:00").tz("Australia/Sydney").zone(), -600, "2037-04-04T16:00:00+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2037-10-03T15:59:59+00:00").tz("Australia/Sydney").zone(), -600, "2037-10-03T15:59:59+00:00 should be -600 minutes offset in EST"); - t.equal(moment("2037-10-03T16:00:00+00:00").tz("Australia/Sydney").zone(), -660, "2037-10-03T16:00:00+00:00 should be -660 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/cet.js b/tests/cet.js deleted file mode 100644 index 44b863c6..00000000 --- a/tests/cet.js +++ /dev/null @@ -1,962 +0,0 @@ -var moment = require("../index"); - -exports["CET"] = { - - "1916" : function (t) { - t.equal(moment("1916-04-30T21:59:59+00:00").tz("CET").format("HH:mm:ss"), "22:59:59", "1916-04-30T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("CET").format("HH:mm:ss"), "00:00:00", "1916-04-30T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("CET").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("CET").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-04-30T21:59:59+00:00").tz("CET").zone(), -60, "1916-04-30T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("CET").zone(), -120, "1916-04-30T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("CET").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("CET").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1917-04-16T00:59:59+00:00").tz("CET").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("CET").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("CET").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("CET").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1918-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1918-04-15T00:59:59+00:00").tz("CET").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("CET").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("CET").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("CET").zone(), -60, "1918-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-01T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1940-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1940-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - - t.equal(moment("1940-04-01T00:59:59+00:00").tz("CET").zone(), -60, "1940-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("CET").zone(), -120, "1940-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("CET").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("CET").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("CET").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("CET").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("CET").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("CET").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("CET").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("CET").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("CET").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("CET").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1945-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1945-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("CET").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("CET").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("CET").zone(), -120, "1945-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("CET").zone(), -60, "1945-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-03T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1977-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1977-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1977-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1977-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1977-04-03T00:59:59+00:00").tz("CET").zone(), -60, "1977-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("CET").zone(), -120, "1977-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("CET").zone(), -120, "1977-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("CET").zone(), -60, "1977-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1978-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1978-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1978-10-01T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1978-10-01T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("CET").zone(), -60, "1978-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("CET").zone(), -120, "1978-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("CET").zone(), -120, "1978-10-01T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("CET").zone(), -60, "1978-10-01T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1979-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1979-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1979-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1979-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("CET").zone(), -60, "1979-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("CET").zone(), -120, "1979-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("CET").zone(), -120, "1979-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("CET").zone(), -60, "1979-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("CET").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("CET").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("CET").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("CET").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("CET").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("CET").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("CET").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("CET").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("CET").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("CET").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("CET").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("CET").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("CET").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("CET").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("CET").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("CET").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("CET").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("CET").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("CET").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("CET").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("CET").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("CET").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("CET").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("CET").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("CET").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("CET").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("CET").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("CET").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("CET").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("CET").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("CET").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("CET").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("CET").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("CET").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("CET").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("CET").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("CET").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("CET").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("CET").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("CET").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("CET").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("CET").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("CET").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("CET").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("CET").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("CET").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("CET").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("CET").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("CET").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("CET").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("CET").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("CET").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("CET").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("CET").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("CET").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("CET").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("CET").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("CET").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("CET").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("CET").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("CET").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("CET").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("CET").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("CET").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("CET").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("CET").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("CET").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("CET").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("CET").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("CET").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("CET").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("CET").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("CET").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("CET").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("CET").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("CET").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("CET").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("CET").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("CET").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("CET").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("CET").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("CET").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("CET").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("CET").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("CET").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("CET").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("CET").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("CET").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("CET").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("CET").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("CET").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("CET").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("CET").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("CET").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("CET").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("CET").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("CET").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("CET").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("CET").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("CET").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("CET").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("CET").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("CET").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("CET").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("CET").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("CET").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("CET").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("CET").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("CET").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("CET").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("CET").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("CET").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("CET").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("CET").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("CET").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("CET").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("CET").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("CET").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("CET").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("CET").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("CET").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("CET").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("CET").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("CET").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("CET").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("CET").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("CET").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("CET").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("CET").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("CET").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("CET").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("CET").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("CET").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("CET").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("CET").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("CET").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("CET").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("CET").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("CET").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("CET").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("CET").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("CET").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("CET").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("CET").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("CET").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("CET").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("CET").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("CET").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("CET").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("CET").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("CET").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("CET").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("CET").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("CET").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("CET").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("CET").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("CET").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("CET").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("CET").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("CET").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("CET").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("CET").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("CET").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("CET").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("CET").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("CET").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("CET").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("CET").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("CET").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("CET").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("CET").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("CET").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("CET").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("CET").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("CET").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("CET").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("CET").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("CET").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("CET").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("CET").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("CET").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("CET").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("CET").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("CET").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("CET").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("CET").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("CET").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("CET").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("CET").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("CET").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("CET").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("CET").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("CET").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("CET").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("CET").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("CET").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("CET").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("CET").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("CET").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("CET").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("CET").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("CET").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("CET").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("CET").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("CET").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("CET").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("CET").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("CET").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("CET").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("CET").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("CET").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("CET").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("CET").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("CET").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("CET").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("CET").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("CET").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("CET").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("CET").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("CET").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("CET").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("CET").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("CET").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("CET").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("CET").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("CET").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("CET").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("CET").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("CET").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("CET").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("CET").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("CET").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("CET").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("CET").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/cst6cdt.js b/tests/cst6cdt.js deleted file mode 100644 index 66662512..00000000 --- a/tests/cst6cdt.js +++ /dev/null @@ -1,1050 +0,0 @@ -var moment = require("../index"); - -exports["CST6CDT"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1918-03-31T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1918-03-31T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1918-10-27T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1919-03-30T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1919-03-30T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1919-10-26T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); - - t.equal(moment("1942-02-09T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1942-02-09T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("CST6CDT").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("CST6CDT").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); - t.equal(moment("1945-09-30T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1967-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1967-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1967-10-29T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1967-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1967-10-29T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1967-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1967-04-30T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1967-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1967-04-30T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1967-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1967-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1967-10-29T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1967-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1968-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1968-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1968-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1968-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1968-04-28T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1968-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1968-04-28T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1968-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1968-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1968-10-27T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1968-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1969-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1969-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1969-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1969-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1969-04-27T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1969-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1969-04-27T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1969-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1969-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1969-10-26T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1969-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1970-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1970-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1970-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1970-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1970-04-26T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1970-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1970-04-26T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1970-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1970-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1970-10-25T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1970-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1971-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1971-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1971-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1971-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1971-04-25T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1971-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1971-04-25T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1971-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1971-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1971-10-31T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1971-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1972-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1972-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1972-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1972-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1972-04-30T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1972-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1972-04-30T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1972-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1972-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1972-10-29T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1972-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1973-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1973-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1973-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1973-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1973-04-29T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1973-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1973-04-29T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1973-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1973-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1973-10-28T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1973-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1974-01-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1974-01-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1974-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1974-01-06T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1974-01-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1974-01-06T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1974-01-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1974-10-27T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1974-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1975-02-23T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1975-02-23T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1975-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1975-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1975-02-23T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1975-02-23T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1975-02-23T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1975-02-23T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1975-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1975-10-26T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1975-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1976-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1976-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1976-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1976-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1976-04-25T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1976-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1976-04-25T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1976-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1976-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1976-10-31T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1976-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1977-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1977-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1977-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1977-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1977-04-24T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1977-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1977-04-24T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1977-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1977-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1977-10-30T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1977-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1978-04-30T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1978-04-30T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1978-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1978-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1978-04-30T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1978-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1978-04-30T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1978-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1978-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1978-10-29T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1978-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1979-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1979-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1979-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1979-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1979-04-29T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1979-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1979-04-29T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1979-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1979-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1979-10-28T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1979-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1980-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1980-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1980-04-27T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1980-04-27T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1980-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1980-10-26T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1980-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1981-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1981-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1981-04-26T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1981-04-26T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1981-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1981-10-25T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1981-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1982-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1982-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1982-04-25T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1982-04-25T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1982-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1982-10-31T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1982-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1983-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1983-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1983-04-24T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1983-04-24T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1983-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1983-10-30T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1983-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1984-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1984-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1984-04-29T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1984-04-29T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1984-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1984-10-28T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1984-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1985-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1985-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1985-04-28T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1985-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1985-04-28T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1985-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1985-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1985-10-27T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1985-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1986-04-27T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1986-04-27T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1986-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1986-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1986-04-27T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1986-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1986-04-27T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1986-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1986-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1986-10-26T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1986-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1987-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1987-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1987-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1987-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1987-04-05T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1987-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1987-04-05T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1987-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1987-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1987-10-25T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1987-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1988-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1988-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1988-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1988-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1988-04-03T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1988-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1988-04-03T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1988-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1988-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1988-10-30T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1988-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1989-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1989-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1989-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1989-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1989-04-02T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1989-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1989-04-02T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1989-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1989-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1989-10-29T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1989-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1990-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1990-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1990-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1990-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1990-04-01T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1990-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1990-04-01T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1990-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1990-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1990-10-28T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1990-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1991-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1991-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1991-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1991-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1991-04-07T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1991-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1991-04-07T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1991-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1991-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1991-10-27T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1991-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1992-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1992-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1992-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1992-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1992-04-05T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1992-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1992-04-05T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1992-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1992-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1992-10-25T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1992-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1993-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1993-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1993-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1993-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1993-04-04T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1993-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1993-04-04T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1993-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1993-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1993-10-31T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1993-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1994-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1994-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1994-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1994-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1994-04-03T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1994-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1994-04-03T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1994-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1994-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1994-10-30T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1994-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1995-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1995-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1995-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1995-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1995-04-02T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1995-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1995-04-02T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1995-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1995-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1995-10-29T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1995-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1996-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1996-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1996-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1996-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1996-04-07T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1996-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1996-04-07T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1996-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1996-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1996-10-27T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1996-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1997-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1997-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1997-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1997-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1997-04-06T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1997-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1997-04-06T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1997-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1997-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1997-10-26T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1997-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1998-04-05T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1998-04-05T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1998-04-05T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1998-04-05T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1998-04-05T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1998-04-05T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1998-10-25T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("1999-04-04T07:59:59+00:00").tz("CST6CDT").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("1999-04-04T08:00:00+00:00").tz("CST6CDT").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T06:59:59+00:00").tz("CST6CDT").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("1999-10-31T07:00:00+00:00").tz("CST6CDT").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2000-04-02T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2000-04-02T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2000-10-29T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2001-04-01T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2001-04-01T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2001-10-28T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2001-10-28T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2001-04-01T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2001-04-01T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2001-04-01T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2001-04-01T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2001-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2001-10-28T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2001-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2002-04-07T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2002-04-07T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2002-10-27T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2003-04-06T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2003-04-06T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2003-10-26T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2004-04-04T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2004-04-04T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2004-10-31T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2005-04-03T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2005-04-03T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2005-10-30T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2006-04-02T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2006-04-02T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2006-10-29T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2007-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2007-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2007-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2007-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2007-03-11T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2007-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2007-03-11T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2007-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2007-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2007-11-04T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2007-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2008-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2008-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2008-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2008-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2008-03-09T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2008-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2008-03-09T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2008-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2008-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2008-11-02T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2008-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2009-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2009-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2009-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2009-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2009-03-08T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2009-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2009-03-08T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2009-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2009-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2009-11-01T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2009-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2010-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2010-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2010-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2010-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2010-03-14T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2010-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2010-03-14T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2010-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2010-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2010-11-07T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2010-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2011-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2011-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2011-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2011-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2011-03-13T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2011-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2011-03-13T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2011-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2011-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2011-11-06T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2011-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2012-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2012-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2012-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2012-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2012-03-11T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2012-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2012-03-11T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2012-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2012-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2012-11-04T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2012-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2013-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2013-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2013-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2013-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2013-03-10T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2013-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2013-03-10T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2013-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2013-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2013-11-03T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2013-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2014-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2014-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2014-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2014-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2014-03-09T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2014-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2014-03-09T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2014-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2014-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2014-11-02T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2014-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2015-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2015-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2015-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2015-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2015-03-08T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2015-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2015-03-08T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2015-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2015-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2015-11-01T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2015-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2016-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2016-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2016-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2016-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2016-03-13T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2016-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2016-03-13T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2016-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2016-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2016-11-06T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2016-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2017-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2017-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2017-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2017-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2017-03-12T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2017-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2017-03-12T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2017-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2017-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2017-11-05T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2017-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2018-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2018-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2018-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2018-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2018-03-11T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2018-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2018-03-11T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2018-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2018-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2018-11-04T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2018-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2019-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2019-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2019-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2019-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2019-03-10T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2019-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2019-03-10T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2019-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2019-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2019-11-03T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2019-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2020-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2020-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2020-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2020-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2020-03-08T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2020-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2020-03-08T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2020-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2020-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2020-11-01T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2020-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2021-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2021-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2021-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2021-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2021-03-14T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2021-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2021-03-14T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2021-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2021-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2021-11-07T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2021-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2022-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2022-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2022-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2022-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2022-03-13T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2022-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2022-03-13T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2022-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2022-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2022-11-06T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2022-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2023-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2023-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2023-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2023-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2023-03-12T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2023-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2023-03-12T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2023-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2023-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2023-11-05T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2023-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2024-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2024-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2024-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2024-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2024-03-10T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2024-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2024-03-10T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2024-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2024-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2024-11-03T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2024-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2025-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2025-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2025-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2025-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2025-03-09T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2025-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2025-03-09T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2025-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2025-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2025-11-02T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2025-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2026-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2026-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2026-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2026-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2026-03-08T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2026-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2026-03-08T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2026-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2026-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2026-11-01T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2026-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2027-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2027-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2027-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2027-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2027-03-14T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2027-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2027-03-14T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2027-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2027-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2027-11-07T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2027-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2028-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2028-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2028-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2028-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2028-03-12T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2028-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2028-03-12T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2028-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2028-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2028-11-05T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2028-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2029-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2029-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2029-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2029-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2029-03-11T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2029-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2029-03-11T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2029-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2029-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2029-11-04T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2029-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2030-03-10T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2030-03-10T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2030-11-03T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2030-11-03T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2030-03-10T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2030-03-10T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2030-03-10T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2030-03-10T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2030-11-03T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2030-11-03T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2030-11-03T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2031-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2031-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2031-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2031-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2031-03-09T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2031-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2031-03-09T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2031-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2031-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2031-11-02T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2031-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2032-03-14T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2032-03-14T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2032-11-07T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2032-11-07T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2032-03-14T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2032-03-14T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2032-03-14T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2032-03-14T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2032-11-07T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2032-11-07T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2032-11-07T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2033-03-13T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2033-03-13T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2033-11-06T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2033-11-06T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2033-03-13T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2033-03-13T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2033-03-13T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2033-03-13T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2033-11-06T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2033-11-06T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2033-11-06T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2034-03-12T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2034-03-12T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2034-11-05T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2034-11-05T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2034-03-12T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2034-03-12T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2034-03-12T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2034-03-12T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2034-11-05T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2034-11-05T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2034-11-05T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2035-03-11T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2035-03-11T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2035-11-04T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2035-11-04T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2035-03-11T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2035-03-11T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2035-03-11T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2035-03-11T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2035-11-04T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2035-11-04T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2035-11-04T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2036-03-09T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2036-03-09T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2036-11-02T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2036-11-02T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2036-03-09T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2036-03-09T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2036-03-09T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2036-03-09T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2036-11-02T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2036-11-02T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2036-11-02T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T07:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2037-03-08T07:59:59+00:00 should be 01:59:59 CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "03:00:00", "2037-03-08T08:00:00+00:00 should be 03:00:00 CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:59:59", "2037-11-01T06:59:59+00:00 should be 01:59:59 CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("CST6CDT").format("HH:mm:ss"), "01:00:00", "2037-11-01T07:00:00+00:00 should be 01:00:00 CST"); - - t.equal(moment("2037-03-08T07:59:59+00:00").tz("CST6CDT").zone(), 360, "2037-03-08T07:59:59+00:00 should be 360 minutes offset in CST"); - t.equal(moment("2037-03-08T08:00:00+00:00").tz("CST6CDT").zone(), 300, "2037-03-08T08:00:00+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T06:59:59+00:00").tz("CST6CDT").zone(), 300, "2037-11-01T06:59:59+00:00 should be 300 minutes offset in CDT"); - t.equal(moment("2037-11-01T07:00:00+00:00").tz("CST6CDT").zone(), 360, "2037-11-01T07:00:00+00:00 should be 360 minutes offset in CST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/eet.js b/tests/eet.js deleted file mode 100644 index 106f1061..00000000 --- a/tests/eet.js +++ /dev/null @@ -1,858 +0,0 @@ -var moment = require("../index"); - -exports["EET"] = { - - "1977" : function (t) { - t.equal(moment("1977-04-03T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1977-04-03T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1977-04-03T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1977-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1977-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1977-04-03T00:59:59+00:00").tz("EET").zone(), -120, "1977-04-03T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("EET").zone(), -180, "1977-04-03T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("EET").zone(), -180, "1977-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("EET").zone(), -120, "1977-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1978-04-02T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1978-04-02T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1978-10-01T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1978-10-01T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("EET").zone(), -120, "1978-04-02T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("EET").zone(), -180, "1978-04-02T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("EET").zone(), -180, "1978-10-01T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("EET").zone(), -120, "1978-10-01T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1979-04-01T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1979-04-01T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1979-09-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1979-09-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("EET").zone(), -120, "1979-04-01T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("EET").zone(), -180, "1979-04-01T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("EET").zone(), -180, "1979-09-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("EET").zone(), -120, "1979-09-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1980-04-06T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1980-04-06T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1980-09-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1980-09-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("EET").zone(), -120, "1980-04-06T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("EET").zone(), -180, "1980-04-06T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("EET").zone(), -180, "1980-09-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("EET").zone(), -120, "1980-09-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1981-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1981-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1981-09-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1981-09-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("EET").zone(), -120, "1981-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("EET").zone(), -180, "1981-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("EET").zone(), -180, "1981-09-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("EET").zone(), -120, "1981-09-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1982-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1982-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1982-09-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1982-09-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("EET").zone(), -120, "1982-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("EET").zone(), -180, "1982-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("EET").zone(), -180, "1982-09-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("EET").zone(), -120, "1982-09-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1983-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1983-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1983-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1983-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("EET").zone(), -120, "1983-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("EET").zone(), -180, "1983-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("EET").zone(), -180, "1983-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("EET").zone(), -120, "1983-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1984-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1984-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1984-09-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1984-09-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("EET").zone(), -120, "1984-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("EET").zone(), -180, "1984-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("EET").zone(), -180, "1984-09-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("EET").zone(), -120, "1984-09-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1985-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1985-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1985-09-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1985-09-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("EET").zone(), -120, "1985-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("EET").zone(), -180, "1985-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("EET").zone(), -180, "1985-09-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("EET").zone(), -120, "1985-09-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1986-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1986-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1986-09-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1986-09-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("EET").zone(), -120, "1986-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("EET").zone(), -180, "1986-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("EET").zone(), -180, "1986-09-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("EET").zone(), -120, "1986-09-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1987-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1987-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1987-09-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1987-09-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("EET").zone(), -120, "1987-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("EET").zone(), -180, "1987-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("EET").zone(), -180, "1987-09-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("EET").zone(), -120, "1987-09-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1988-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1988-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1988-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1988-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("EET").zone(), -120, "1988-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("EET").zone(), -180, "1988-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("EET").zone(), -180, "1988-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("EET").zone(), -120, "1988-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1989-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1989-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1989-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1989-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("EET").zone(), -120, "1989-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("EET").zone(), -180, "1989-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("EET").zone(), -180, "1989-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("EET").zone(), -120, "1989-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1990-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1990-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1990-09-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1990-09-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("EET").zone(), -120, "1990-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("EET").zone(), -180, "1990-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("EET").zone(), -180, "1990-09-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("EET").zone(), -120, "1990-09-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1991-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1991-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1991-09-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1991-09-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("EET").zone(), -120, "1991-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("EET").zone(), -180, "1991-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("EET").zone(), -180, "1991-09-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("EET").zone(), -120, "1991-09-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1992-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1992-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1992-09-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1992-09-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("EET").zone(), -120, "1992-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("EET").zone(), -180, "1992-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("EET").zone(), -180, "1992-09-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("EET").zone(), -120, "1992-09-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1993-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1993-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1993-09-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1993-09-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("EET").zone(), -120, "1993-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("EET").zone(), -180, "1993-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("EET").zone(), -180, "1993-09-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("EET").zone(), -120, "1993-09-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1994-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1994-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1994-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1994-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("EET").zone(), -120, "1994-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("EET").zone(), -180, "1994-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("EET").zone(), -180, "1994-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("EET").zone(), -120, "1994-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1995-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1995-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1995-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1995-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("EET").zone(), -120, "1995-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("EET").zone(), -180, "1995-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("EET").zone(), -180, "1995-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("EET").zone(), -120, "1995-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1996-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1996-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1996-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1996-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("EET").zone(), -120, "1996-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("EET").zone(), -180, "1996-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("EET").zone(), -180, "1996-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("EET").zone(), -120, "1996-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("EET").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("EET").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("EET").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("EET").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("EET").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("EET").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("EET").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("EET").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("EET").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("EET").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("EET").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("EET").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("EET").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("EET").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("EET").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("EET").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("EET").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("EET").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("EET").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("EET").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("EET").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("EET").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("EET").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("EET").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("EET").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("EET").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("EET").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("EET").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("EET").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("EET").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("EET").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("EET").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("EET").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("EET").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("EET").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("EET").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("EET").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("EET").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("EET").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("EET").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("EET").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("EET").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("EET").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("EET").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("EET").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("EET").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("EET").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("EET").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("EET").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("EET").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("EET").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("EET").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("EET").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("EET").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("EET").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("EET").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("EET").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("EET").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("EET").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("EET").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("EET").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("EET").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("EET").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("EET").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("EET").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("EET").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("EET").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("EET").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("EET").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("EET").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("EET").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("EET").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("EET").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("EET").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("EET").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("EET").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("EET").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("EET").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("EET").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("EET").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("EET").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("EET").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("EET").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("EET").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("EET").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("EET").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("EET").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("EET").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("EET").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("EET").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("EET").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("EET").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("EET").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("EET").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("EET").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("EET").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("EET").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("EET").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("EET").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("EET").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("EET").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("EET").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("EET").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("EET").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("EET").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("EET").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("EET").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("EET").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("EET").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("EET").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("EET").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("EET").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("EET").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("EET").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("EET").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("EET").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("EET").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("EET").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("EET").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("EET").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("EET").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("EET").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("EET").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("EET").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("EET").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("EET").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("EET").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("EET").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("EET").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("EET").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("EET").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("EET").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("EET").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("EET").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("EET").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("EET").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("EET").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("EET").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("EET").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("EET").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("EET").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("EET").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("EET").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("EET").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("EET").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("EET").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("EET").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("EET").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("EET").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("EET").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("EET").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("EET").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("EET").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("EET").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("EET").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("EET").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("EET").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("EET").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("EET").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("EET").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("EET").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("EET").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("EET").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("EET").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("EET").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("EET").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/est.js b/tests/est.js deleted file mode 100644 index be59fefe..00000000 --- a/tests/est.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../index"); - -exports["EST"] = { - - -}; \ No newline at end of file diff --git a/tests/est5edt.js b/tests/est5edt.js deleted file mode 100644 index 48e8c620..00000000 --- a/tests/est5edt.js +++ /dev/null @@ -1,1050 +0,0 @@ -var moment = require("../index"); - -exports["EST5EDT"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1918-03-31T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1918-03-31T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1918-03-31T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1918-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1918-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1918-03-31T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1918-03-31T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1918-03-31T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1918-03-31T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1918-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1918-10-27T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1918-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1919-03-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1919-03-30T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1919-03-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1919-10-26T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1919-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1919-10-26T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1919-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1919-03-30T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1919-03-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1919-03-30T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1919-03-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1919-10-26T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1919-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1919-10-26T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1919-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1942-02-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1942-02-09T07:00:00+00:00 should be 03:00:00 EWT"); - - t.equal(moment("1942-02-09T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1942-02-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1942-02-09T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1942-02-09T07:00:00+00:00 should be 240 minutes offset in EWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "18:59:59", "1945-08-14T22:59:59+00:00 should be 18:59:59 EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "19:00:00", "1945-08-14T23:00:00+00:00 should be 19:00:00 EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1945-09-30T05:59:59+00:00 should be 01:59:59 EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1945-09-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("EST5EDT").zone(), 240, "1945-08-14T22:59:59+00:00 should be 240 minutes offset in EWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("EST5EDT").zone(), 240, "1945-08-14T23:00:00+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1945-09-30T05:59:59+00:00 should be 240 minutes offset in EPT"); - t.equal(moment("1945-09-30T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1945-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1967-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1967-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1967-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1967-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1967-04-30T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1967-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1967-04-30T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1967-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1967-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1967-10-29T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1967-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1968-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1968-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1968-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1968-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1968-04-28T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1968-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1968-04-28T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1968-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1968-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1968-10-27T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1968-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1969-04-27T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1969-04-27T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1969-10-26T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1970-04-26T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1970-04-26T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1970-10-25T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1971-04-25T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1971-04-25T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1971-10-31T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1972-04-30T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1972-04-30T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1972-10-29T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1973-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1973-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1973-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1973-04-29T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1973-04-29T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1973-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1973-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1973-10-28T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1973-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1974-01-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1974-01-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1974-01-06T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1974-01-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1974-01-06T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1974-01-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1974-10-27T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1975-02-23T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1975-02-23T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1975-02-23T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1975-02-23T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1975-02-23T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1975-02-23T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1975-10-26T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1976-04-25T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1976-04-25T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1976-10-31T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1977-04-24T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1977-04-24T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1977-10-30T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1978-04-30T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1978-04-30T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1978-10-29T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1979-04-29T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1979-04-29T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1979-10-28T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1980-04-27T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1980-04-27T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1980-10-26T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1981-04-26T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1981-04-26T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1981-10-25T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1982-04-25T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1982-04-25T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1982-10-31T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1983-04-24T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1983-04-24T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1983-10-30T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1984-04-29T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1984-04-29T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1984-10-28T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1985-04-28T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1985-04-28T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1985-10-27T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1986-04-27T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1986-04-27T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1986-10-26T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1987-04-05T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1987-04-05T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1987-10-25T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1988-04-03T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1988-04-03T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1988-10-30T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1989-04-02T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1989-04-02T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1989-10-29T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1990-04-01T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1990-04-01T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1990-10-28T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1991-04-07T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1991-04-07T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1991-10-27T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1992-04-05T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1992-04-05T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1992-10-25T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1993-04-04T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1993-04-04T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1993-10-31T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1994-04-03T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1994-04-03T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1994-10-30T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1995-04-02T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1995-04-02T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1995-10-29T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1996-04-07T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1996-04-07T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1996-10-27T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1997-04-06T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1997-04-06T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1997-10-26T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1998-04-05T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1998-04-05T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1998-10-25T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("1999-04-04T06:59:59+00:00").tz("EST5EDT").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("1999-04-04T07:00:00+00:00").tz("EST5EDT").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T05:59:59+00:00").tz("EST5EDT").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("1999-10-31T06:00:00+00:00").tz("EST5EDT").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2000-04-02T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2000-04-02T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2000-10-29T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2001-04-01T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2001-04-01T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2001-10-28T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2002-04-07T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2002-04-07T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2002-10-27T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2003-04-06T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2003-04-06T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2003-10-26T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2004-04-04T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2004-04-04T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2004-10-31T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2005-04-03T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2005-04-03T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2005-10-30T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2006-04-02T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2006-04-02T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2006-10-29T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2007-03-11T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2007-03-11T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2007-11-04T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2008-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2008-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2008-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2008-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2008-03-09T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2008-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2008-03-09T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2008-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2008-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2008-11-02T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2008-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2009-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2009-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2009-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2009-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2009-03-08T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2009-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2009-03-08T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2009-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2009-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2009-11-01T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2009-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2010-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2010-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2010-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2010-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2010-03-14T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2010-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2010-03-14T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2010-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2010-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2010-11-07T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2010-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2011-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2011-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2011-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2011-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2011-03-13T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2011-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2011-03-13T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2011-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2011-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2011-11-06T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2011-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2012-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2012-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2012-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2012-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2012-03-11T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2012-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2012-03-11T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2012-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2012-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2012-11-04T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2012-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2013-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2013-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2013-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2013-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2013-03-10T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2013-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2013-03-10T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2013-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2013-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2013-11-03T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2013-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2014-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2014-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2014-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2014-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2014-03-09T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2014-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2014-03-09T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2014-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2014-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2014-11-02T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2014-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2015-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2015-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2015-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2015-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2015-03-08T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2015-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2015-03-08T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2015-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2015-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2015-11-01T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2015-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2016-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2016-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2016-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2016-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2016-03-13T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2016-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2016-03-13T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2016-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2016-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2016-11-06T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2016-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2017-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2017-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2017-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2017-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2017-03-12T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2017-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2017-03-12T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2017-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2017-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2017-11-05T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2017-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2018-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2018-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2018-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2018-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2018-03-11T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2018-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2018-03-11T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2018-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2018-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2018-11-04T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2018-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2019-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2019-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2019-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2019-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2019-03-10T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2019-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2019-03-10T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2019-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2019-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2019-11-03T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2019-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2020-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2020-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2020-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2020-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2020-03-08T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2020-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2020-03-08T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2020-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2020-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2020-11-01T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2020-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2021-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2021-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2021-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2021-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2021-03-14T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2021-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2021-03-14T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2021-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2021-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2021-11-07T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2021-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2022-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2022-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2022-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2022-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2022-03-13T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2022-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2022-03-13T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2022-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2022-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2022-11-06T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2022-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2023-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2023-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2023-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2023-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2023-03-12T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2023-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2023-03-12T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2023-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2023-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2023-11-05T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2023-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2024-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2024-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2024-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2024-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2024-03-10T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2024-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2024-03-10T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2024-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2024-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2024-11-03T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2024-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2025-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2025-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2025-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2025-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2025-03-09T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2025-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2025-03-09T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2025-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2025-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2025-11-02T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2025-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2026-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2026-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2026-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2026-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2026-03-08T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2026-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2026-03-08T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2026-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2026-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2026-11-01T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2026-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2027-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2027-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2027-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2027-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2027-03-14T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2027-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2027-03-14T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2027-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2027-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2027-11-07T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2027-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2028-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2028-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2028-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2028-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2028-03-12T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2028-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2028-03-12T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2028-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2028-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2028-11-05T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2028-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2029-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2029-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2029-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2029-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2029-03-11T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2029-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2029-03-11T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2029-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2029-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2029-11-04T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2029-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2030-03-10T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2030-03-10T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2030-11-03T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2030-11-03T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2030-03-10T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2030-03-10T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2030-03-10T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2030-03-10T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2030-11-03T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2030-11-03T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2030-11-03T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2031-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2031-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2031-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2031-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2031-03-09T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2031-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2031-03-09T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2031-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2031-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2031-11-02T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2031-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2032-03-14T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2032-03-14T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2032-11-07T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2032-11-07T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2032-03-14T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2032-03-14T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2032-03-14T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2032-03-14T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2032-11-07T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2032-11-07T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2032-11-07T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2033-03-13T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2033-03-13T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2033-11-06T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2033-11-06T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2033-03-13T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2033-03-13T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2033-03-13T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2033-03-13T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2033-11-06T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2033-11-06T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2033-11-06T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2034-03-12T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2034-03-12T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2034-11-05T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2034-11-05T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2034-03-12T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2034-03-12T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2034-03-12T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2034-03-12T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2034-11-05T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2034-11-05T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2034-11-05T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2035-03-11T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2035-03-11T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2035-11-04T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2035-11-04T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2035-03-11T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2035-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2035-03-11T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2035-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2035-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2035-11-04T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2035-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2036-03-09T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2036-03-09T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2036-11-02T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2036-11-02T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2036-03-09T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2036-03-09T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2036-03-09T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2036-03-09T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2036-11-02T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2036-11-02T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2036-11-02T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T06:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2037-03-08T06:59:59+00:00 should be 01:59:59 EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "03:00:00", "2037-03-08T07:00:00+00:00 should be 03:00:00 EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:59:59", "2037-11-01T05:59:59+00:00 should be 01:59:59 EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("EST5EDT").format("HH:mm:ss"), "01:00:00", "2037-11-01T06:00:00+00:00 should be 01:00:00 EST"); - - t.equal(moment("2037-03-08T06:59:59+00:00").tz("EST5EDT").zone(), 300, "2037-03-08T06:59:59+00:00 should be 300 minutes offset in EST"); - t.equal(moment("2037-03-08T07:00:00+00:00").tz("EST5EDT").zone(), 240, "2037-03-08T07:00:00+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T05:59:59+00:00").tz("EST5EDT").zone(), 240, "2037-11-01T05:59:59+00:00 should be 240 minutes offset in EDT"); - t.equal(moment("2037-11-01T06:00:00+00:00").tz("EST5EDT").zone(), 300, "2037-11-01T06:00:00+00:00 should be 300 minutes offset in EST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/amsterdam.js b/tests/europe/amsterdam.js deleted file mode 100644 index bdf510ce..00000000 --- a/tests/europe/amsterdam.js +++ /dev/null @@ -1,1260 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Amsterdam"] = { - - "1916" : function (t) { - t.equal(moment("1916-04-30T23:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "23:59:59", "1916-04-30T23:40:27+00:00 should be 23:59:59 AMT"); - t.equal(moment("1916-04-30T23:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:00:00", "1916-04-30T23:40:28+00:00 should be 01:00:00 NST"); - t.equal(moment("1916-09-30T22:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "23:59:59", "1916-09-30T22:40:27+00:00 should be 23:59:59 NST"); - t.equal(moment("1916-09-30T22:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "23:00:00", "1916-09-30T22:40:28+00:00 should be 23:00:00 AMT"); - - t.equal(moment("1916-04-30T23:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1916-04-30T23:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1916-04-30T23:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1916-04-30T23:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1916-09-30T22:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1916-09-30T22:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1916-09-30T22:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1916-09-30T22:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1917-04-16T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1917-04-16T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1917-09-17T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1917-09-17T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1917-09-17T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1917-04-16T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1917-04-16T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1917-04-16T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1917-04-16T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1917-09-17T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1917-09-17T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1917-09-17T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1917-09-17T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-01T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1918-04-01T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1918-04-01T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1918-04-01T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1918-09-30T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1918-09-30T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1918-09-30T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1918-09-30T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1918-04-01T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1918-04-01T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1918-04-01T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1918-04-01T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1918-09-30T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1918-09-30T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1918-09-30T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1918-09-30T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-04-07T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1919-04-07T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1919-04-07T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1919-04-07T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1919-09-29T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1919-09-29T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1919-09-29T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1919-09-29T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1919-04-07T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1919-04-07T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1919-04-07T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1919-04-07T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1919-09-29T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1919-09-29T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1919-09-29T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1919-09-29T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-04-05T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1920-04-05T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1920-04-05T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1920-04-05T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1920-09-27T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1920-09-27T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1920-09-27T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1920-09-27T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1920-04-05T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1920-04-05T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1920-04-05T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1920-04-05T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1920-09-27T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1920-09-27T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1920-09-27T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1920-09-27T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-04T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1921-04-04T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1921-04-04T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1921-04-04T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1921-09-26T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1921-09-26T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1921-09-26T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1921-09-26T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1921-04-04T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1921-04-04T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1921-04-04T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1921-04-04T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1921-09-26T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1921-09-26T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1921-09-26T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1921-09-26T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-26T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1922-03-26T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1922-03-26T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1922-03-26T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1922-10-08T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1922-10-08T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1922-10-08T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1922-10-08T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1922-03-26T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1922-03-26T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1922-03-26T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1922-03-26T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1922-10-08T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1922-10-08T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1922-10-08T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1922-10-08T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-06-01T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1923-06-01T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1923-06-01T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1923-06-01T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1923-10-07T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1923-10-07T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1923-10-07T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1923-10-07T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1923-06-01T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1923-06-01T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1923-06-01T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1923-06-01T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1923-10-07T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1923-10-07T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1923-10-07T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1923-10-07T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-03-30T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1924-03-30T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1924-03-30T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1924-03-30T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1924-10-05T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1924-10-05T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1924-10-05T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1924-10-05T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1924-03-30T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1924-03-30T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1924-03-30T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1924-03-30T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1924-10-05T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1924-10-05T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1924-10-05T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1924-10-05T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-06-05T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1925-06-05T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1925-06-05T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1925-06-05T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1925-10-04T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1925-10-04T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1925-10-04T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1925-10-04T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1925-06-05T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1925-06-05T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1925-06-05T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1925-06-05T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1925-10-04T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1925-10-04T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1925-10-04T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1925-10-04T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1926-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1926-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1926-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1926-10-03T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1926-10-03T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1926-10-03T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1926-10-03T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1926-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1926-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1926-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1926-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1926-10-03T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1926-10-03T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1926-10-03T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1926-10-03T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1927-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1927-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1927-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1927-10-02T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1927-10-02T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1927-10-02T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1927-10-02T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1927-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1927-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1927-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1927-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1927-10-02T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1927-10-02T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1927-10-02T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1927-10-02T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1928-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1928-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1928-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1928-10-07T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1928-10-07T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1928-10-07T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1928-10-07T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1928-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1928-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1928-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1928-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1928-10-07T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1928-10-07T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1928-10-07T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1928-10-07T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1929-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1929-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1929-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1929-10-06T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1929-10-06T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1929-10-06T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1929-10-06T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1929-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1929-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1929-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1929-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1929-10-06T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1929-10-06T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1929-10-06T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1929-10-06T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1930-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1930-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1930-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1930-10-05T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1930-10-05T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1930-10-05T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1930-10-05T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1930-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1930-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1930-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1930-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1930-10-05T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1930-10-05T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1930-10-05T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1930-10-05T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1931-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1931-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1931-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1931-10-04T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1931-10-04T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1931-10-04T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1931-10-04T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1931-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1931-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1931-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1931-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1931-10-04T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1931-10-04T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1931-10-04T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1931-10-04T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-05-22T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1932-05-22T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1932-05-22T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1932-05-22T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1932-10-02T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1932-10-02T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1932-10-02T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1932-10-02T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1932-05-22T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1932-05-22T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1932-05-22T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1932-05-22T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1932-10-02T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1932-10-02T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1932-10-02T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1932-10-02T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1933-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1933-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1933-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1933-10-08T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1933-10-08T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1933-10-08T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1933-10-08T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1933-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1933-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1933-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1933-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1933-10-08T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1933-10-08T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1933-10-08T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1933-10-08T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1934-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1934-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1934-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1934-10-07T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1934-10-07T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1934-10-07T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1934-10-07T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1934-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1934-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1934-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1934-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1934-10-07T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1934-10-07T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1934-10-07T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1934-10-07T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1935-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1935-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1935-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1935-10-06T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1935-10-06T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1935-10-06T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1935-10-06T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1935-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1935-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1935-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1935-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1935-10-06T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1935-10-06T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1935-10-06T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1935-10-06T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-05-15T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1936-05-15T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1936-05-15T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1936-05-15T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1936-10-04T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1936-10-04T01:40:27+00:00 should be 02:59:59 NST"); - t.equal(moment("1936-10-04T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1936-10-04T01:40:28+00:00 should be 02:00:00 AMT"); - - t.equal(moment("1936-05-15T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1936-05-15T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1936-05-15T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1936-05-15T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1936-10-04T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1936-10-04T01:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1936-10-04T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1936-10-04T01:40:28+00:00 should be -1172 / 60 minutes offset in AMT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-05-22T01:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1937-05-22T01:40:27+00:00 should be 01:59:59 AMT"); - t.equal(moment("1937-05-22T01:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1937-05-22T01:40:28+00:00 should be 03:00:00 NST"); - t.equal(moment("1937-06-30T22:40:27+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "23:59:59", "1937-06-30T22:40:27+00:00 should be 23:59:59 NST"); - t.equal(moment("1937-06-30T22:40:28+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "00:00:28", "1937-06-30T22:40:28+00:00 should be 00:00:28 NEST"); - t.equal(moment("1937-10-03T01:39:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1937-10-03T01:39:59+00:00 should be 02:59:59 NEST"); - t.equal(moment("1937-10-03T01:40:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1937-10-03T01:40:00+00:00 should be 02:00:00 NET"); - - t.equal(moment("1937-05-22T01:40:27+00:00").tz("Europe/Amsterdam").zone(), -1172 / 60, "1937-05-22T01:40:27+00:00 should be -1172 / 60 minutes offset in AMT"); - t.equal(moment("1937-05-22T01:40:28+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1937-05-22T01:40:28+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1937-06-30T22:40:27+00:00").tz("Europe/Amsterdam").zone(), -4772 / 60, "1937-06-30T22:40:27+00:00 should be -4772 / 60 minutes offset in NST"); - t.equal(moment("1937-06-30T22:40:28+00:00").tz("Europe/Amsterdam").zone(), -80, "1937-06-30T22:40:28+00:00 should be -80 minutes offset in NEST"); - t.equal(moment("1937-10-03T01:39:59+00:00").tz("Europe/Amsterdam").zone(), -80, "1937-10-03T01:39:59+00:00 should be -80 minutes offset in NEST"); - t.equal(moment("1937-10-03T01:40:00+00:00").tz("Europe/Amsterdam").zone(), -20, "1937-10-03T01:40:00+00:00 should be -20 minutes offset in NET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-05-15T01:39:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1938-05-15T01:39:59+00:00 should be 01:59:59 NET"); - t.equal(moment("1938-05-15T01:40:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1938-05-15T01:40:00+00:00 should be 03:00:00 NEST"); - t.equal(moment("1938-10-02T01:39:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1938-10-02T01:39:59+00:00 should be 02:59:59 NEST"); - t.equal(moment("1938-10-02T01:40:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1938-10-02T01:40:00+00:00 should be 02:00:00 NET"); - - t.equal(moment("1938-05-15T01:39:59+00:00").tz("Europe/Amsterdam").zone(), -20, "1938-05-15T01:39:59+00:00 should be -20 minutes offset in NET"); - t.equal(moment("1938-05-15T01:40:00+00:00").tz("Europe/Amsterdam").zone(), -80, "1938-05-15T01:40:00+00:00 should be -80 minutes offset in NEST"); - t.equal(moment("1938-10-02T01:39:59+00:00").tz("Europe/Amsterdam").zone(), -80, "1938-10-02T01:39:59+00:00 should be -80 minutes offset in NEST"); - t.equal(moment("1938-10-02T01:40:00+00:00").tz("Europe/Amsterdam").zone(), -20, "1938-10-02T01:40:00+00:00 should be -20 minutes offset in NET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-05-15T01:39:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1939-05-15T01:39:59+00:00 should be 01:59:59 NET"); - t.equal(moment("1939-05-15T01:40:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1939-05-15T01:40:00+00:00 should be 03:00:00 NEST"); - t.equal(moment("1939-10-08T01:39:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1939-10-08T01:39:59+00:00 should be 02:59:59 NEST"); - t.equal(moment("1939-10-08T01:40:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1939-10-08T01:40:00+00:00 should be 02:00:00 NET"); - - t.equal(moment("1939-05-15T01:39:59+00:00").tz("Europe/Amsterdam").zone(), -20, "1939-05-15T01:39:59+00:00 should be -20 minutes offset in NET"); - t.equal(moment("1939-05-15T01:40:00+00:00").tz("Europe/Amsterdam").zone(), -80, "1939-05-15T01:40:00+00:00 should be -80 minutes offset in NEST"); - t.equal(moment("1939-10-08T01:39:59+00:00").tz("Europe/Amsterdam").zone(), -80, "1939-10-08T01:39:59+00:00 should be -80 minutes offset in NEST"); - t.equal(moment("1939-10-08T01:40:00+00:00").tz("Europe/Amsterdam").zone(), -20, "1939-10-08T01:40:00+00:00 should be -20 minutes offset in NET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-05-15T23:39:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "23:59:59", "1940-05-15T23:39:59+00:00 should be 23:59:59 NET"); - t.equal(moment("1940-05-15T23:40:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:40:00", "1940-05-15T23:40:00+00:00 should be 01:40:00 CEST"); - - t.equal(moment("1940-05-15T23:39:59+00:00").tz("Europe/Amsterdam").zone(), -20, "1940-05-15T23:39:59+00:00 should be -20 minutes offset in NET"); - t.equal(moment("1940-05-15T23:40:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1940-05-15T23:40:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1945-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1945-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1945-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1945-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1977-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1977-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1977-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1977-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1977-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1977-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1977-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1977-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1978-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1978-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1978-10-01T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1978-10-01T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1978-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1978-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1978-10-01T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1978-10-01T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1979-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1979-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1979-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1979-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1979-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1979-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1979-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1979-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Amsterdam").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Amsterdam").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Amsterdam").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/andorra.js b/tests/europe/andorra.js deleted file mode 100644 index a3166756..00000000 --- a/tests/europe/andorra.js +++ /dev/null @@ -1,756 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Andorra"] = { - - "1946" : function (t) { - t.equal(moment("1946-09-29T23:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "23:59:59", "1946-09-29T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1946-09-30T00:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:00:00", "1946-09-30T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1946-09-29T23:59:59+00:00").tz("Europe/Andorra").zone(), 0, "1946-09-29T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1946-09-30T00:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1946-09-30T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Andorra").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Andorra").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Andorra").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Andorra").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Andorra").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/athens.js b/tests/europe/athens.js deleted file mode 100644 index 56282f10..00000000 --- a/tests/europe/athens.js +++ /dev/null @@ -1,972 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Athens"] = { - - "1916" : function (t) { - t.equal(moment("1916-07-27T22:26:07+00:00").tz("Europe/Athens").format("HH:mm:ss"), "00:00:59", "1916-07-27T22:26:07+00:00 should be 00:00:59 AMT"); - t.equal(moment("1916-07-27T22:26:08+00:00").tz("Europe/Athens").format("HH:mm:ss"), "00:26:08", "1916-07-27T22:26:08+00:00 should be 00:26:08 EET"); - - t.equal(moment("1916-07-27T22:26:07+00:00").tz("Europe/Athens").zone(), -5692 / 60, "1916-07-27T22:26:07+00:00 should be -5692 / 60 minutes offset in AMT"); - t.equal(moment("1916-07-27T22:26:08+00:00").tz("Europe/Athens").zone(), -120, "1916-07-27T22:26:08+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-07-06T21:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1932-07-06T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1932-07-06T22:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:00:00", "1932-07-06T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1932-08-31T20:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1932-08-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1932-08-31T21:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:00:00", "1932-08-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1932-07-06T21:59:59+00:00").tz("Europe/Athens").zone(), -120, "1932-07-06T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1932-07-06T22:00:00+00:00").tz("Europe/Athens").zone(), -180, "1932-07-06T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1932-08-31T20:59:59+00:00").tz("Europe/Athens").zone(), -180, "1932-08-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1932-08-31T21:00:00+00:00").tz("Europe/Athens").zone(), -120, "1932-08-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-06T21:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1941-04-06T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1941-04-06T22:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:00:00", "1941-04-06T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1941-04-29T20:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1941-04-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1941-04-29T21:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:00:00", "1941-04-29T21:00:00+00:00 should be 23:00:00 CEST"); - - t.equal(moment("1941-04-06T21:59:59+00:00").tz("Europe/Athens").zone(), -120, "1941-04-06T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1941-04-06T22:00:00+00:00").tz("Europe/Athens").zone(), -180, "1941-04-06T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1941-04-29T20:59:59+00:00").tz("Europe/Athens").zone(), -180, "1941-04-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1941-04-29T21:00:00+00:00").tz("Europe/Athens").zone(), -120, "1941-04-29T21:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Athens").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T22:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1943-03-29T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1943-03-29T23:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:00:00", "1943-03-29T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1943-10-03T21:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1943-10-03T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1943-10-03T22:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:00:00", "1943-10-03T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1943-03-29T22:59:59+00:00").tz("Europe/Athens").zone(), -60, "1943-03-29T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T23:00:00+00:00").tz("Europe/Athens").zone(), -120, "1943-03-29T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-03T21:59:59+00:00").tz("Europe/Athens").zone(), -120, "1943-10-03T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-03T22:00:00+00:00").tz("Europe/Athens").zone(), -60, "1943-10-03T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T22:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1944-04-03T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1944-04-03T23:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:00:00", "1944-04-03T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1944-04-03T22:59:59+00:00").tz("Europe/Athens").zone(), -60, "1944-04-03T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T23:00:00+00:00").tz("Europe/Athens").zone(), -120, "1944-04-03T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-06-30T21:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1952-06-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1952-06-30T22:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:00:00", "1952-06-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1952-11-01T20:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1952-11-01T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1952-11-01T21:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:00:00", "1952-11-01T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1952-06-30T21:59:59+00:00").tz("Europe/Athens").zone(), -120, "1952-06-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1952-06-30T22:00:00+00:00").tz("Europe/Athens").zone(), -180, "1952-06-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1952-11-01T20:59:59+00:00").tz("Europe/Athens").zone(), -180, "1952-11-01T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1952-11-01T21:00:00+00:00").tz("Europe/Athens").zone(), -120, "1952-11-01T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-11T21:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1975-04-11T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1975-04-11T22:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:00:00", "1975-04-11T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1975-11-25T21:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "00:59:59", "1975-11-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1975-11-25T22:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "00:00:00", "1975-11-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1975-04-11T21:59:59+00:00").tz("Europe/Athens").zone(), -120, "1975-04-11T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1975-04-11T22:00:00+00:00").tz("Europe/Athens").zone(), -180, "1975-04-11T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-11-25T21:59:59+00:00").tz("Europe/Athens").zone(), -180, "1975-11-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-11-25T22:00:00+00:00").tz("Europe/Athens").zone(), -120, "1975-11-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-10T23:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:59:59", "1976-04-10T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1976-04-11T00:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1976-04-11T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1976-10-09T23:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1976-10-09T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1976-10-10T00:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:00:00", "1976-10-10T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1976-04-10T23:59:59+00:00").tz("Europe/Athens").zone(), -120, "1976-04-10T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1976-04-11T00:00:00+00:00").tz("Europe/Athens").zone(), -180, "1976-04-11T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-10-09T23:59:59+00:00").tz("Europe/Athens").zone(), -180, "1976-10-09T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-10-10T00:00:00+00:00").tz("Europe/Athens").zone(), -120, "1976-10-10T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-02T23:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:59:59", "1977-04-02T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1977-04-03T00:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1977-04-03T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1977-09-25T23:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1977-09-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1977-09-26T00:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:00:00", "1977-09-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1977-04-02T23:59:59+00:00").tz("Europe/Athens").zone(), -120, "1977-04-02T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1977-04-03T00:00:00+00:00").tz("Europe/Athens").zone(), -180, "1977-04-03T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-25T23:59:59+00:00").tz("Europe/Athens").zone(), -180, "1977-09-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-09-26T00:00:00+00:00").tz("Europe/Athens").zone(), -120, "1977-09-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-01T23:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:59:59", "1978-04-01T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1978-04-02T00:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1978-04-02T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1978-09-24T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1978-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1978-09-24T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1978-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1978-04-01T23:59:59+00:00").tz("Europe/Athens").zone(), -120, "1978-04-01T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1978-04-02T00:00:00+00:00").tz("Europe/Athens").zone(), -180, "1978-04-02T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-09-24T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1978-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-09-24T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1978-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T06:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "08:59:59", "1979-04-01T06:59:59+00:00 should be 08:59:59 EET"); - t.equal(moment("1979-04-01T07:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "10:00:00", "1979-04-01T07:00:00+00:00 should be 10:00:00 EEST"); - t.equal(moment("1979-09-28T22:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:59:59", "1979-09-28T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1979-09-28T23:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:00:00", "1979-09-28T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1979-04-01T06:59:59+00:00").tz("Europe/Athens").zone(), -120, "1979-04-01T06:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1979-04-01T07:00:00+00:00").tz("Europe/Athens").zone(), -180, "1979-04-01T07:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-28T22:59:59+00:00").tz("Europe/Athens").zone(), -180, "1979-09-28T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-28T23:00:00+00:00").tz("Europe/Athens").zone(), -120, "1979-09-28T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-31T21:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1980-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1980-03-31T22:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "01:00:00", "1980-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1980-09-27T20:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:59:59", "1980-09-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1980-09-27T21:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "23:00:00", "1980-09-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1980-03-31T21:59:59+00:00").tz("Europe/Athens").zone(), -120, "1980-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1980-03-31T22:00:00+00:00").tz("Europe/Athens").zone(), -180, "1980-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-27T20:59:59+00:00").tz("Europe/Athens").zone(), -180, "1980-09-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-27T21:00:00+00:00").tz("Europe/Athens").zone(), -120, "1980-09-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1981-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1981-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1981-09-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1981-09-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1981-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1981-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1981-09-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1981-09-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1982-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1982-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1982-09-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1982-09-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1982-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1982-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1982-09-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1982-09-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1983-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1983-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1983-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1983-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1983-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1983-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1983-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1983-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1984-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1984-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1984-09-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1984-09-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1984-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1984-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1984-09-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1984-09-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1985-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1985-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1985-09-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1985-09-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1985-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1985-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1985-09-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1985-09-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1986-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1986-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1986-09-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1986-09-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1986-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1986-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1986-09-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1986-09-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1987-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1987-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1987-09-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1987-09-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1987-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1987-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1987-09-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1987-09-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1988-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1988-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1988-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1988-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1988-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1988-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1988-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1988-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1989-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1989-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1989-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1989-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1989-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1989-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1989-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1989-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1990-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1990-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1990-09-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1990-09-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1990-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1990-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1990-09-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1990-09-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1991-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1991-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1991-09-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1991-09-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1991-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1991-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1991-09-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1991-09-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1992-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1992-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1992-09-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1992-09-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1992-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1992-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1992-09-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1992-09-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1993-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1993-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1993-09-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1993-09-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1993-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1993-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1993-09-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1993-09-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1994-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1994-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1994-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1994-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1994-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1994-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1994-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1994-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1995-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1995-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1995-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1995-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1995-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1995-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1995-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1995-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1996-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1996-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1996-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1996-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1996-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1996-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1996-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1996-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Athens").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Athens").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Athens").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Athens").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Athens").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/belgrade.js b/tests/europe/belgrade.js deleted file mode 100644 index 3e8acd04..00000000 --- a/tests/europe/belgrade.js +++ /dev/null @@ -1,836 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Belgrade"] = { - - "1941" : function (t) { - t.equal(moment("1941-04-18T21:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "22:59:59", "1941-04-18T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1941-04-18T22:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "00:00:00", "1941-04-18T22:00:00+00:00 should be 00:00:00 CEST"); - - t.equal(moment("1941-04-18T21:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1941-04-18T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1941-04-18T22:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1941-04-18T22:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-05-08T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1945-05-08T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-05-08T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1945-05-08T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1945-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1945-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-05-08T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1945-05-08T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-05-08T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1945-05-08T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1945-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1945-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Belgrade").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Belgrade").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Belgrade").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Belgrade").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Belgrade").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/berlin.js b/tests/europe/berlin.js deleted file mode 100644 index 8e5add3b..00000000 --- a/tests/europe/berlin.js +++ /dev/null @@ -1,992 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Berlin"] = { - - "1916" : function (t) { - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "22:59:59", "1916-04-30T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "00:00:00", "1916-04-30T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1916-04-30T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1916-04-30T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1918-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1918-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1940-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1940-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1940-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1940-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-05-23T23:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1945-05-23T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1945-05-24T00:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1945-05-24T00:00:00+00:00 should be 03:00:00 CEMT"); - t.equal(moment("1945-09-23T23:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1945-09-23T23:59:59+00:00 should be 02:59:59 CEMT"); - t.equal(moment("1945-09-24T00:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1945-09-24T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1945-11-18T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1945-11-18T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-11-18T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1945-11-18T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-05-23T23:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1945-05-23T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-05-24T00:00:00+00:00").tz("Europe/Berlin").zone(), -180, "1945-05-24T00:00:00+00:00 should be -180 minutes offset in CEMT"); - t.equal(moment("1945-09-23T23:59:59+00:00").tz("Europe/Berlin").zone(), -180, "1945-09-23T23:59:59+00:00 should be -180 minutes offset in CEMT"); - t.equal(moment("1945-09-24T00:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1945-09-24T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-11-18T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1945-11-18T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-11-18T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1945-11-18T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-14T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1946-04-14T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1946-04-14T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1946-04-14T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1946-10-07T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1946-10-07T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-10-07T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1946-10-07T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-04-14T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1946-04-14T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-04-14T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1946-04-14T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-07T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1946-10-07T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-07T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1946-10-07T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-06T01:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1947-04-06T01:59:59+00:00 should be 02:59:59 CET"); - t.equal(moment("1947-04-06T02:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "04:00:00", "1947-04-06T02:00:00+00:00 should be 04:00:00 CEST"); - t.equal(moment("1947-05-11T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1947-05-11T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1947-05-11T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "04:00:00", "1947-05-11T01:00:00+00:00 should be 04:00:00 CEMT"); - t.equal(moment("1947-06-28T23:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1947-06-28T23:59:59+00:00 should be 02:59:59 CEMT"); - t.equal(moment("1947-06-29T00:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1947-06-29T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1947-10-05T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1947-10-05T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1947-04-06T01:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1947-04-06T01:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1947-04-06T02:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1947-04-06T02:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-05-11T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1947-05-11T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-05-11T01:00:00+00:00").tz("Europe/Berlin").zone(), -180, "1947-05-11T01:00:00+00:00 should be -180 minutes offset in CEMT"); - t.equal(moment("1947-06-28T23:59:59+00:00").tz("Europe/Berlin").zone(), -180, "1947-06-28T23:59:59+00:00 should be -180 minutes offset in CEMT"); - t.equal(moment("1947-06-29T00:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1947-06-29T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1947-10-05T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1947-10-05T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-18T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1948-04-18T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1948-04-18T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1948-04-18T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1948-10-03T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1948-10-03T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1948-04-18T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1948-04-18T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1948-04-18T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1948-04-18T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1948-10-03T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1948-10-03T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-10T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1949-04-10T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1949-04-10T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1949-04-10T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1949-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1949-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1949-04-10T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1949-04-10T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1949-04-10T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1949-04-10T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1949-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1949-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Berlin").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Berlin").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Berlin").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Berlin").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Berlin").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/brussels.js b/tests/europe/brussels.js deleted file mode 100644 index 309d56f0..00000000 --- a/tests/europe/brussels.js +++ /dev/null @@ -1,1288 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Brussels"] = { - - "1914" : function (t) { - t.equal(moment("1914-11-07T23:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1914-11-07T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1914-11-08T00:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:00:00", "1914-11-08T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1914-11-07T23:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1914-11-07T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1914-11-08T00:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1914-11-08T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-04-30T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1916-04-30T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1916-04-30T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:00:00", "1916-04-30T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-04-30T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1916-04-30T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-04-30T23:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1916-04-30T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1918-09-16T01:00:00+00:00 should be 02:00:00 CET"); - t.equal(moment("1918-11-11T10:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "11:59:59", "1918-11-11T10:59:59+00:00 should be 11:59:59 CET"); - t.equal(moment("1918-11-11T11:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "11:00:00", "1918-11-11T11:00:00+00:00 should be 11:00:00 WET"); - - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1918-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-11-11T10:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1918-11-11T10:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-11-11T11:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1918-11-11T11:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1919-03-01T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1919-03-01T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1919-10-04T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1919-10-04T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1919-10-04T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:00:00", "1919-10-04T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1919-03-01T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1919-03-01T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-04T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1919-10-04T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-04T23:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1919-10-04T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1920-02-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1920-02-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1920-10-23T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1920-10-23T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1920-10-23T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:00:00", "1920-10-23T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1920-02-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1920-02-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-23T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1920-10-23T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-23T23:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1920-10-23T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1921-03-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1921-03-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1921-10-25T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1921-10-25T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1921-10-25T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:00:00", "1921-10-25T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1921-03-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1921-03-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-25T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1921-10-25T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-25T23:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1921-10-25T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-25T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1922-03-25T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1922-03-25T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1922-03-25T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1922-10-07T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1922-10-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1922-10-07T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:00:00", "1922-10-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1922-03-25T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1922-03-25T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1922-03-25T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1922-03-25T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1922-10-07T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1922-10-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1922-10-07T23:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1922-10-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-21T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1923-04-21T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1923-04-21T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1923-04-21T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1923-10-06T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1923-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1923-10-06T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:00:00", "1923-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1923-04-21T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1923-04-21T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1923-04-21T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1923-04-21T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1923-10-06T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1923-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1923-10-06T23:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1923-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-03-29T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1924-03-29T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1924-03-29T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1924-03-29T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1924-10-04T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:00:00", "1924-10-04T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1924-03-29T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1924-03-29T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1924-03-29T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1924-03-29T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1924-10-04T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1924-10-04T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-04T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1925-04-04T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1925-04-04T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1925-04-04T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1925-10-03T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1925-10-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1925-10-03T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:00:00", "1925-10-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1925-04-04T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1925-04-04T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1925-04-04T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1925-04-04T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1925-10-03T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1925-10-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1925-10-03T23:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1925-10-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1926-04-17T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1926-04-17T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1926-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:00:00", "1926-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1926-04-17T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1926-04-17T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1926-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1926-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1927-04-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1927-04-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:59:59", "1927-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "23:00:00", "1927-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1927-04-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1927-04-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1927-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1927-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "22:59:59", "1928-04-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "00:00:00", "1928-04-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1928-10-07T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1928-10-07T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1928-10-07T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1928-10-07T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1928-04-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1928-04-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-07T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1928-10-07T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-07T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1928-10-07T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-21T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1929-04-21T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1929-04-21T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1929-04-21T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1929-10-06T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1929-10-06T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1929-04-21T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1929-04-21T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1929-04-21T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1929-04-21T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1929-10-06T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1929-10-06T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1930-04-13T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1930-04-13T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1930-10-05T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1930-10-05T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1930-04-13T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1930-04-13T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1930-10-05T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1930-10-05T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1931-04-19T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1931-04-19T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1931-10-04T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1931-10-04T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1931-04-19T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1931-04-19T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1931-10-04T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1931-10-04T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-03T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1932-04-03T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1932-04-03T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1932-04-03T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1932-10-02T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1932-10-02T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1932-04-03T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1932-04-03T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1932-04-03T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1932-04-03T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1932-10-02T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1932-10-02T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-26T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1933-03-26T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1933-03-26T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1933-03-26T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1933-10-08T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1933-10-08T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1933-03-26T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1933-03-26T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1933-03-26T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1933-03-26T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1933-10-08T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1933-10-08T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-08T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1934-04-08T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1934-04-08T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1934-04-08T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1934-10-07T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1934-10-07T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1934-04-08T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1934-04-08T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1934-04-08T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1934-04-08T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1934-10-07T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1934-10-07T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-31T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1935-03-31T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1935-03-31T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1935-03-31T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1935-10-06T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1935-10-06T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1935-03-31T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1935-03-31T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1935-03-31T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1935-03-31T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1935-10-06T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1935-10-06T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1936-04-19T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1936-04-19T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1936-10-04T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1936-10-04T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1936-04-19T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1936-04-19T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1936-10-04T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1936-10-04T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-04T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1937-04-04T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1937-04-04T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1937-04-04T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1937-10-03T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1937-10-03T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1937-04-04T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1937-04-04T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1937-04-04T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1937-04-04T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1937-10-03T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1937-10-03T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-27T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1938-03-27T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1938-03-27T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1938-03-27T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1938-10-02T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1938-10-02T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1938-03-27T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1938-03-27T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1938-03-27T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1938-03-27T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1938-10-02T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1938-10-02T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1939-04-16T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1939-04-16T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1939-11-19T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1939-11-19T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1939-04-16T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1939-04-16T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1939-11-19T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/Brussels").zone(), 0, "1939-11-19T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1940-02-25T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1940-02-25T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1940-05-20T01:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1940-05-20T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1940-05-20T02:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "04:00:00", "1940-05-20T02:00:00+00:00 should be 04:00:00 CEST"); - - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Brussels").zone(), 0, "1940-02-25T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1940-02-25T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1940-05-20T01:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1940-05-20T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1940-05-20T02:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1940-05-20T02:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-09-17T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1944-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-09-17T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1944-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-09-17T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1944-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-09-17T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1944-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1945-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1945-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1945-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1945-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-05-19T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1946-05-19T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1946-05-19T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1946-05-19T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1946-10-07T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1946-10-07T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-10-07T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1946-10-07T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-05-19T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1946-05-19T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-05-19T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1946-05-19T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-07T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1946-10-07T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-07T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1946-10-07T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1977-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1977-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1977-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1977-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1977-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1977-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1977-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1977-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1978-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1978-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1978-10-01T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1978-10-01T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1978-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1978-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1978-10-01T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1978-10-01T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1979-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1979-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1979-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1979-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1979-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1979-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1979-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1979-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Brussels").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Brussels").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Brussels").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Brussels").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Brussels").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/bucharest.js b/tests/europe/bucharest.js deleted file mode 100644 index 08c1c251..00000000 --- a/tests/europe/bucharest.js +++ /dev/null @@ -1,952 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Bucharest"] = { - - "1931" : function (t) { - t.equal(moment("1931-07-23T22:15:35+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1931-07-23T22:15:35+00:00 should be 23:59:59 BMT"); - t.equal(moment("1931-07-23T22:15:36+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:15:36", "1931-07-23T22:15:36+00:00 should be 00:15:36 EET"); - - t.equal(moment("1931-07-23T22:15:35+00:00").tz("Europe/Bucharest").zone(), -6264 / 60, "1931-07-23T22:15:35+00:00 should be -6264 / 60 minutes offset in BMT"); - t.equal(moment("1931-07-23T22:15:36+00:00").tz("Europe/Bucharest").zone(), -120, "1931-07-23T22:15:36+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-05-20T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1932-05-20T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1932-05-20T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1932-05-20T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1932-10-01T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1932-10-01T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1932-10-01T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1932-10-01T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1932-05-20T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1932-05-20T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1932-05-20T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1932-05-20T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1932-10-01T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1932-10-01T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1932-10-01T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1932-10-01T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1933-04-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1933-04-01T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1933-04-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1933-09-30T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1933-09-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1933-09-30T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1933-09-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1933-04-01T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1933-04-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1933-04-01T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1933-04-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1933-09-30T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1933-09-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1933-09-30T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1933-09-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-07T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1934-04-07T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1934-04-07T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1934-04-07T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1934-10-06T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1934-10-06T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1934-10-06T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1934-10-06T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1934-04-07T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1934-04-07T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1934-04-07T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1934-04-07T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1934-10-06T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1934-10-06T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1934-10-06T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1934-10-06T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-06T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1935-04-06T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1935-04-06T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1935-04-06T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1935-10-05T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1935-10-05T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1935-10-05T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1935-10-05T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1935-04-06T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1935-04-06T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1935-04-06T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1935-04-06T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1935-10-05T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1935-10-05T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1935-10-05T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1935-10-05T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-04T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1936-04-04T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1936-04-04T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1936-04-04T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1936-10-03T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1936-10-03T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1936-10-03T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1936-10-03T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1936-04-04T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1936-04-04T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1936-04-04T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1936-04-04T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1936-10-03T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1936-10-03T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1936-10-03T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1936-10-03T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-03T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1937-04-03T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1937-04-03T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1937-04-03T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1937-10-02T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1937-10-02T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1937-10-02T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1937-10-02T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1937-04-03T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1937-04-03T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1937-04-03T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1937-04-03T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1937-10-02T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1937-10-02T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1937-10-02T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1937-10-02T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-02T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1938-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1938-04-02T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1938-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1938-10-01T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1938-10-01T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1938-10-01T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1938-10-01T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1938-04-02T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1938-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1938-04-02T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1938-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1938-10-01T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1938-10-01T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1938-10-01T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1938-10-01T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-01T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1939-04-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1939-04-01T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1939-04-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1939-09-30T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1939-09-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1939-09-30T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1939-09-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1939-04-01T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1939-04-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1939-04-01T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1939-04-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1939-09-30T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1939-09-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1939-09-30T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1939-09-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-05-26T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1979-05-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1979-05-26T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1979-05-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1979-09-29T20:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1979-09-29T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1979-09-29T21:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:00:00", "1979-09-29T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1979-05-26T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1979-05-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1979-05-26T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1979-05-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-29T20:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1979-09-29T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-29T21:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1979-09-29T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-05T20:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "22:59:59", "1980-04-05T20:59:59+00:00 should be 22:59:59 EET"); - t.equal(moment("1980-04-05T21:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1980-04-05T21:00:00+00:00 should be 00:00:00 EEST"); - t.equal(moment("1980-09-27T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1980-09-27T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1980-09-27T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1980-09-27T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1980-04-05T20:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1980-04-05T20:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1980-04-05T21:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1980-04-05T21:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-27T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1980-09-27T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-27T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1980-09-27T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-28T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1981-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1981-03-29T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1981-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1981-09-26T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1981-09-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1981-09-27T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1981-09-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1981-03-28T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1981-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1981-03-29T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1981-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-26T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1981-09-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-27T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1981-09-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-27T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1982-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1982-03-28T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1982-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1982-09-25T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1982-09-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1982-09-26T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1982-09-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1982-03-27T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1982-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1982-03-28T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1982-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-25T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1982-09-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-26T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1982-09-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-26T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1983-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1983-03-27T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1983-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1983-09-24T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1983-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1983-09-25T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1983-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1983-03-26T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1983-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1983-03-27T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1983-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-24T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1983-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-25T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1983-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-24T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1984-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1984-03-25T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1984-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1984-09-29T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1984-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1984-09-30T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1984-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1984-03-24T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1984-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1984-03-25T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1984-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-29T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1984-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1984-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1985-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1985-03-31T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1985-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1985-09-28T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1985-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1985-09-29T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1985-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1985-03-30T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1985-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1985-03-31T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1985-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-28T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1985-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-29T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1985-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1986-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1986-03-30T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1986-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1986-09-27T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1986-09-27T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1986-09-28T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1986-09-28T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1986-03-29T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1986-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-03-30T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1986-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-27T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1986-09-27T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-28T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1986-09-28T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1987-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1987-03-29T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1987-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1987-09-26T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1987-09-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1987-09-27T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1987-09-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1987-03-28T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1987-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-03-29T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1987-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-26T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1987-09-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-27T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1987-09-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1988-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1988-03-27T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1988-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1988-09-24T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1988-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1988-09-25T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1988-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1988-03-26T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1988-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-03-27T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1988-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-24T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1988-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-25T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1988-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1989-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1989-03-26T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1989-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1989-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1989-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1989-03-25T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1989-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-03-26T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1989-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1989-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1989-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:59:59", "1990-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1990-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1990-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:00:00", "1990-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1990-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1990-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1990-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1990-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1991-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1991-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1991-09-28T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1991-09-28T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1991-09-28T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1991-09-28T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1991-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1991-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1991-09-28T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1991-09-28T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-26T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1992-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1992-09-26T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1992-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1992-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1992-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1993-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1993-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-25T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:59:59", "1993-09-25T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1993-09-25T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "00:00:00", "1993-09-25T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1993-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1993-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T21:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1993-09-25T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T22:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1993-09-25T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1994-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1994-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1994-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:00:00", "1994-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1994-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1994-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1994-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1994-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1995-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1995-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1995-09-23T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:00:00", "1995-09-23T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1995-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1995-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1995-09-23T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1995-09-23T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1996-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "01:00:00", "1996-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:59:59", "1996-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "23:00:00", "1996-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1996-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1996-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1996-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1996-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Bucharest").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Bucharest").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Bucharest").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Bucharest").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Bucharest").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/budapest.js b/tests/europe/budapest.js deleted file mode 100644 index 91cc96c0..00000000 --- a/tests/europe/budapest.js +++ /dev/null @@ -1,1074 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Budapest"] = { - - "1916" : function (t) { - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "22:59:59", "1916-04-30T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:00:00", "1916-04-30T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1916-04-30T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1916-04-30T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-01T01:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1918-04-01T01:59:59+00:00 should be 02:59:59 CET"); - t.equal(moment("1918-04-01T02:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "04:00:00", "1918-04-01T02:00:00+00:00 should be 04:00:00 CEST"); - t.equal(moment("1918-09-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1918-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1918-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1918-04-01T01:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1918-04-01T01:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-01T02:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1918-04-01T02:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1918-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1918-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-04-15T01:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1919-04-15T01:59:59+00:00 should be 02:59:59 CET"); - t.equal(moment("1919-04-15T02:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "04:00:00", "1919-04-15T02:00:00+00:00 should be 04:00:00 CEST"); - t.equal(moment("1919-09-15T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1919-09-15T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1919-09-15T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1919-09-15T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1919-04-15T01:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1919-04-15T01:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1919-04-15T02:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1919-04-15T02:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1919-09-15T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1919-09-15T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1919-09-15T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1919-09-15T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-04-05T01:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1920-04-05T01:59:59+00:00 should be 02:59:59 CET"); - t.equal(moment("1920-04-05T02:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "04:00:00", "1920-04-05T02:00:00+00:00 should be 04:00:00 CEST"); - t.equal(moment("1920-09-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1920-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1920-09-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1920-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1920-04-05T01:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1920-04-05T01:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1920-04-05T02:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1920-04-05T02:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1920-09-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1920-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1920-09-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1920-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-06T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1941-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1941-04-06T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1941-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - - t.equal(moment("1941-04-06T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1941-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1941-04-06T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1941-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-05-01T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "22:59:59", "1945-05-01T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1945-05-01T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:00:00", "1945-05-01T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1945-11-02T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1945-11-02T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1945-11-02T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:00:00", "1945-11-02T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1945-05-01T21:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1945-05-01T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-05-01T22:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1945-05-01T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-11-02T21:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1945-11-02T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-11-02T22:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1945-11-02T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1946-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1946-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1946-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1946-10-06T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1946-10-06T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1946-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1946-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1946-10-06T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1946-10-06T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-06T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1947-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1947-04-06T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1947-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1947-10-05T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1947-10-05T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1947-04-06T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1947-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1947-04-06T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1947-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1947-10-05T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1947-10-05T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-04T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1948-04-04T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1948-04-04T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1948-04-04T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1948-10-03T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1948-10-03T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1948-04-04T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1948-04-04T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1948-04-04T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1948-04-04T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1948-10-03T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1948-10-03T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-10T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1949-04-10T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1949-04-10T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1949-04-10T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1949-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1949-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1949-04-10T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1949-04-10T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1949-04-10T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1949-04-10T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1949-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1949-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-17T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1950-04-17T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1950-04-17T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1950-04-17T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1950-10-23T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1950-10-23T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1950-10-23T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1950-10-23T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1950-04-17T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1950-04-17T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1950-04-17T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1950-04-17T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1950-10-23T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1950-10-23T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1950-10-23T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1950-10-23T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-05-22T22:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1954-05-22T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1954-05-22T23:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:00:00", "1954-05-22T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1954-10-02T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1954-10-02T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1954-10-02T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:00:00", "1954-10-02T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1954-05-22T22:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1954-05-22T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1954-05-22T23:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1954-05-22T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1954-10-02T21:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1954-10-02T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1954-10-02T22:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1954-10-02T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-05-22T22:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1955-05-22T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1955-05-22T23:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:00:00", "1955-05-22T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1955-10-02T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1955-10-02T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1955-10-02T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:00:00", "1955-10-02T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1955-05-22T22:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1955-05-22T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1955-05-22T23:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1955-05-22T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1955-10-02T21:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1955-10-02T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1955-10-02T22:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1955-10-02T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-06-02T22:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1956-06-02T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1956-06-02T23:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:00:00", "1956-06-02T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1956-09-29T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1956-09-29T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1956-09-29T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:00:00", "1956-09-29T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1956-06-02T22:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1956-06-02T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1956-06-02T23:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1956-06-02T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1956-09-29T21:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1956-09-29T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1956-09-29T22:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1956-09-29T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-06-01T23:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:59:59", "1957-06-01T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1957-06-02T00:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1957-06-02T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1957-09-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1957-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1957-09-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1957-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1957-06-01T23:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1957-06-01T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1957-06-02T00:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1957-06-02T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1957-09-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1957-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1957-09-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1957-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-05T23:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:59:59", "1980-04-05T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1980-04-06T00:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1980-04-06T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-05T23:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1980-04-05T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T00:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1980-04-06T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/chisinau.js b/tests/europe/chisinau.js deleted file mode 100644 index 7552bf32..00000000 --- a/tests/europe/chisinau.js +++ /dev/null @@ -1,988 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Chisinau"] = { - - "1918" : function (t) { - t.equal(moment("1918-02-14T22:04:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1918-02-14T22:04:59+00:00 should be 23:59:59 CMT"); - t.equal(moment("1918-02-14T22:05:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:49:24", "1918-02-14T22:05:00+00:00 should be 23:49:24 BMT"); - - t.equal(moment("1918-02-14T22:04:59+00:00").tz("Europe/Chisinau").zone(), -115, "1918-02-14T22:04:59+00:00 should be -115 minutes offset in CMT"); - t.equal(moment("1918-02-14T22:05:00+00:00").tz("Europe/Chisinau").zone(), -6264 / 60, "1918-02-14T22:05:00+00:00 should be -6264 / 60 minutes offset in BMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-07-23T22:15:35+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1931-07-23T22:15:35+00:00 should be 23:59:59 BMT"); - t.equal(moment("1931-07-23T22:15:36+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:15:36", "1931-07-23T22:15:36+00:00 should be 00:15:36 EET"); - - t.equal(moment("1931-07-23T22:15:35+00:00").tz("Europe/Chisinau").zone(), -6264 / 60, "1931-07-23T22:15:35+00:00 should be -6264 / 60 minutes offset in BMT"); - t.equal(moment("1931-07-23T22:15:36+00:00").tz("Europe/Chisinau").zone(), -120, "1931-07-23T22:15:36+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-05-20T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1932-05-20T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1932-05-20T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1932-05-20T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1932-10-01T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:59:59", "1932-10-01T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1932-10-01T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:00:00", "1932-10-01T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1932-05-20T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1932-05-20T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1932-05-20T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1932-05-20T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1932-10-01T21:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1932-10-01T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1932-10-01T22:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1932-10-01T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-01T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1933-04-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1933-04-01T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1933-04-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1933-09-30T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:59:59", "1933-09-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1933-09-30T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:00:00", "1933-09-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1933-04-01T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1933-04-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1933-04-01T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1933-04-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1933-09-30T21:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1933-09-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1933-09-30T22:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1933-09-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-07T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1934-04-07T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1934-04-07T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1934-04-07T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1934-10-06T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:59:59", "1934-10-06T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1934-10-06T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:00:00", "1934-10-06T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1934-04-07T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1934-04-07T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1934-04-07T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1934-04-07T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1934-10-06T21:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1934-10-06T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1934-10-06T22:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1934-10-06T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-06T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1935-04-06T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1935-04-06T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1935-04-06T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1935-10-05T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:59:59", "1935-10-05T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1935-10-05T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:00:00", "1935-10-05T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1935-04-06T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1935-04-06T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1935-04-06T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1935-04-06T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1935-10-05T21:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1935-10-05T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1935-10-05T22:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1935-10-05T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-04T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1936-04-04T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1936-04-04T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1936-04-04T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1936-10-03T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:59:59", "1936-10-03T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1936-10-03T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:00:00", "1936-10-03T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1936-04-04T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1936-04-04T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1936-04-04T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1936-04-04T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1936-10-03T21:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1936-10-03T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1936-10-03T22:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1936-10-03T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-03T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1937-04-03T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1937-04-03T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1937-04-03T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1937-10-02T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:59:59", "1937-10-02T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1937-10-02T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:00:00", "1937-10-02T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1937-04-03T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1937-04-03T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1937-04-03T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1937-04-03T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1937-10-02T21:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1937-10-02T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1937-10-02T22:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1937-10-02T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-02T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1938-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1938-04-02T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1938-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1938-10-01T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:59:59", "1938-10-01T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1938-10-01T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:00:00", "1938-10-01T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1938-04-02T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1938-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1938-04-02T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1938-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1938-10-01T21:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1938-10-01T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1938-10-01T22:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1938-10-01T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-01T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1939-04-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1939-04-01T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1939-04-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1939-09-30T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:59:59", "1939-09-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1939-09-30T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "00:00:00", "1939-09-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1939-04-01T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1939-04-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1939-04-01T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1939-04-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1939-09-30T21:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1939-09-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1939-09-30T22:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1939-09-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-08-14T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1940-08-14T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1940-08-14T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1940-08-14T22:00:00+00:00 should be 01:00:00 EEST"); - - t.equal(moment("1940-08-14T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1940-08-14T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1940-08-14T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1940-08-14T22:00:00+00:00 should be -180 minutes offset in EEST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-07-16T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1941-07-16T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1941-07-16T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1941-07-16T21:00:00+00:00 should be 23:00:00 CEST"); - - t.equal(moment("1941-07-16T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1941-07-16T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1941-07-16T21:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1941-07-16T21:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Chisinau").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Chisinau").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-08-23T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1944-08-23T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1944-08-23T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1944-08-23T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Chisinau").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-08-23T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1944-08-23T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-08-23T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1944-08-23T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Chisinau").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Chisinau").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Chisinau").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Chisinau").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Chisinau").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Chisinau").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Chisinau").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Chisinau").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Chisinau").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Chisinau").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Chisinau").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Chisinau").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Chisinau").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Chisinau").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Chisinau").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Chisinau").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Chisinau").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Chisinau").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-05-05T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1990-05-05T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1990-05-05T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1990-05-05T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1990-05-05T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1990-05-05T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1990-05-05T21:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1990-05-05T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T23:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:59:59", "1991-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1991-03-31T00:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1991-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1991-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:00:00", "1991-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1991-03-30T23:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1991-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-31T00:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1991-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1991-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1991-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1992-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1992-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1992-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1992-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1993-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1993-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1993-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1993-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1993-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1993-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1993-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1993-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1994-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1994-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1994-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1994-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1994-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1994-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1994-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1994-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1995-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1995-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1995-09-23T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1995-09-23T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1995-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1995-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1995-09-23T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1995-09-23T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1996-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "01:00:00", "1996-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:59:59", "1996-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "23:00:00", "1996-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1996-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1996-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1996-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1996-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Chisinau").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Chisinau").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Chisinau").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Chisinau").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Chisinau").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/copenhagen.js b/tests/europe/copenhagen.js deleted file mode 100644 index 9024c255..00000000 --- a/tests/europe/copenhagen.js +++ /dev/null @@ -1,934 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Copenhagen"] = { - - "1916" : function (t) { - t.equal(moment("1916-05-14T21:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "22:59:59", "1916-05-14T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-05-14T22:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "00:00:00", "1916-05-14T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T20:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "22:59:59", "1916-09-30T20:59:59+00:00 should be 22:59:59 CEST"); - t.equal(moment("1916-09-30T21:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "22:00:00", "1916-09-30T21:00:00+00:00 should be 22:00:00 CET"); - - t.equal(moment("1916-05-14T21:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1916-05-14T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-05-14T22:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1916-05-14T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T20:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1916-09-30T20:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T21:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1916-09-30T21:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-05-14T22:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "23:59:59", "1940-05-14T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1940-05-14T23:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:00:00", "1940-05-14T23:00:00+00:00 should be 01:00:00 CEST"); - - t.equal(moment("1940-05-14T22:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1940-05-14T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-05-14T23:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1940-05-14T23:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-08-15T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1945-08-15T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-08-15T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1945-08-15T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-08-15T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1945-08-15T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-08-15T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1945-08-15T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-05-01T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1946-05-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1946-05-01T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1946-05-01T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1946-09-01T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1946-09-01T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-09-01T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1946-09-01T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-05-01T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1946-05-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-05-01T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1946-05-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-09-01T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1946-09-01T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-09-01T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1946-09-01T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-05-04T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1947-05-04T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1947-05-04T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1947-05-04T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1947-08-10T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1947-08-10T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1947-08-10T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1947-08-10T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1947-05-04T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1947-05-04T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1947-05-04T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1947-05-04T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-08-10T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1947-08-10T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-08-10T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1947-08-10T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-05-09T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1948-05-09T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1948-05-09T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1948-05-09T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1948-08-08T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1948-08-08T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1948-08-08T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1948-08-08T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1948-05-09T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1948-05-09T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1948-05-09T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1948-05-09T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-08-08T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1948-08-08T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-08-08T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1948-08-08T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Copenhagen").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Copenhagen").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Copenhagen").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/dublin.js b/tests/europe/dublin.js deleted file mode 100644 index e920b905..00000000 --- a/tests/europe/dublin.js +++ /dev/null @@ -1,1602 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Dublin"] = { - - "1916" : function (t) { - t.equal(moment("1916-05-21T02:25:20+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1916-05-21T02:25:20+00:00 should be 01:59:59 DMT"); - t.equal(moment("1916-05-21T02:25:21+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1916-05-21T02:25:21+00:00 should be 03:00:00 IST"); - t.equal(moment("1916-10-01T02:25:20+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1916-10-01T02:25:20+00:00 should be 02:59:59 IST"); - t.equal(moment("1916-10-01T02:25:21+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:25:21", "1916-10-01T02:25:21+00:00 should be 02:25:21 GMT"); - - t.equal(moment("1916-05-21T02:25:20+00:00").tz("Europe/Dublin").zone(), 1521 / 60, "1916-05-21T02:25:20+00:00 should be 1521 / 60 minutes offset in DMT"); - t.equal(moment("1916-05-21T02:25:21+00:00").tz("Europe/Dublin").zone(), -2079 / 60, "1916-05-21T02:25:21+00:00 should be -2079 / 60 minutes offset in IST"); - t.equal(moment("1916-10-01T02:25:20+00:00").tz("Europe/Dublin").zone(), -2079 / 60, "1916-10-01T02:25:20+00:00 should be -2079 / 60 minutes offset in IST"); - t.equal(moment("1916-10-01T02:25:21+00:00").tz("Europe/Dublin").zone(), 0, "1916-10-01T02:25:21+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-08T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1917-04-08T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1917-04-08T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1917-04-08T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1917-09-17T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1917-09-17T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1917-09-17T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1917-09-17T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1917-04-08T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1917-04-08T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1917-04-08T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1917-04-08T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1917-09-17T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1917-09-17T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1917-09-17T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1917-09-17T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-24T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1918-03-24T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1918-03-24T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1918-03-24T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1918-09-30T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1918-09-30T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1918-09-30T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1918-09-30T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1918-03-24T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1918-03-24T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1918-03-24T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1918-03-24T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1918-09-30T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1918-09-30T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1918-09-30T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1918-09-30T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1919-03-30T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1919-03-30T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1919-03-30T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1919-09-29T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1919-09-29T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1919-09-29T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1919-09-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1919-03-30T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1919-03-30T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1919-03-30T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1919-03-30T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1919-09-29T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1919-09-29T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1919-09-29T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1919-09-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-03-28T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1920-03-28T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1920-03-28T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1920-03-28T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1920-10-25T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1920-10-25T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1920-10-25T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1920-10-25T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1920-03-28T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1920-03-28T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1920-03-28T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1920-03-28T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1920-10-25T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1920-10-25T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1920-10-25T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1920-10-25T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-03T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1921-04-03T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1921-04-03T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1921-04-03T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1921-10-03T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1921-10-03T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1921-10-03T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1921-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1921-04-03T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1921-04-03T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1921-04-03T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1921-04-03T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1921-10-03T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1921-10-03T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1921-10-03T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1921-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-26T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1922-03-26T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1922-03-26T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1922-03-26T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1922-10-08T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1922-10-08T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1922-10-08T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1922-10-08T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1922-03-26T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1922-03-26T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1922-03-26T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1922-03-26T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1922-10-08T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1922-10-08T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1922-10-08T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1922-10-08T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-22T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1923-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1923-04-22T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1923-04-22T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1923-09-16T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1923-09-16T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1923-09-16T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1923-09-16T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1923-04-22T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1923-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1923-04-22T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1923-04-22T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1923-09-16T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1923-09-16T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1923-09-16T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1923-09-16T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-13T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1924-04-13T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1924-04-13T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1924-04-13T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1924-09-21T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1924-09-21T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1924-09-21T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1924-09-21T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1924-04-13T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1924-04-13T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1924-04-13T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1924-04-13T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1924-09-21T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1924-09-21T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1924-09-21T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1924-09-21T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-19T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1925-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1925-04-19T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1925-04-19T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1925-10-04T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1925-10-04T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1925-10-04T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1925-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1925-04-19T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1925-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1925-04-19T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1925-04-19T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1925-10-04T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1925-10-04T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1925-10-04T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1925-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-18T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1926-04-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1926-04-18T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1926-04-18T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1926-10-03T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1926-10-03T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1926-10-03T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1926-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1926-04-18T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1926-04-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1926-04-18T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1926-04-18T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1926-10-03T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1926-10-03T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1926-10-03T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1926-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-10T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1927-04-10T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1927-04-10T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1927-04-10T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1927-10-02T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1927-10-02T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1927-10-02T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1927-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1927-04-10T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1927-04-10T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1927-04-10T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1927-04-10T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1927-10-02T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1927-10-02T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1927-10-02T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1927-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-22T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1928-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1928-04-22T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1928-04-22T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1928-10-07T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1928-10-07T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1928-10-07T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1928-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1928-04-22T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1928-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1928-04-22T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1928-04-22T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1928-10-07T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1928-10-07T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1928-10-07T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1928-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-21T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1929-04-21T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1929-04-21T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1929-04-21T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1929-10-06T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1929-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1929-04-21T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1929-04-21T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1929-04-21T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1929-04-21T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1929-10-06T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1929-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1930-04-13T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1930-04-13T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1930-10-05T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1930-10-05T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1930-04-13T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1930-04-13T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1930-10-05T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1930-10-05T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1931-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1931-04-19T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1931-10-04T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1931-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1931-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1931-04-19T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1931-10-04T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1931-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-17T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1932-04-17T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1932-04-17T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1932-04-17T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1932-10-02T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1932-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1932-04-17T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1932-04-17T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1932-04-17T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1932-04-17T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1932-10-02T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1932-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-09T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1933-04-09T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1933-04-09T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1933-04-09T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1933-10-08T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1933-10-08T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1933-04-09T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1933-04-09T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1933-04-09T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1933-04-09T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1933-10-08T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1933-10-08T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-22T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1934-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1934-04-22T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1934-04-22T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1934-10-07T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1934-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1934-04-22T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1934-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1934-04-22T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1934-04-22T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1934-10-07T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1934-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-14T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1935-04-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1935-04-14T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1935-04-14T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1935-10-06T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1935-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1935-04-14T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1935-04-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1935-04-14T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1935-04-14T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1935-10-06T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1935-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1936-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1936-04-19T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1936-10-04T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1936-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1936-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1936-04-19T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1936-10-04T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1936-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-18T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1937-04-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1937-04-18T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1937-04-18T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1937-10-03T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1937-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1937-04-18T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1937-04-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1937-04-18T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1937-04-18T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1937-10-03T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1937-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-10T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1938-04-10T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1938-04-10T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1938-04-10T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1938-10-02T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1938-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1938-04-10T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1938-04-10T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1938-04-10T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1938-04-10T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1938-10-02T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1938-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1939-04-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1939-04-16T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1939-11-19T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1939-11-19T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1939-04-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1939-04-16T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1939-11-19T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1939-11-19T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1940-02-25T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1940-02-25T02:00:00+00:00 should be 03:00:00 IST"); - - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1940-02-25T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1940-02-25T02:00:00+00:00 should be -60 minutes offset in IST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1946-10-06T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1946-10-06T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1946-10-06T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1946-10-06T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-03-16T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1947-03-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1947-03-16T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1947-03-16T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1947-11-02T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1947-11-02T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1947-11-02T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1947-11-02T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1947-03-16T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1947-03-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1947-03-16T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1947-03-16T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1947-11-02T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1947-11-02T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1947-11-02T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1947-11-02T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-18T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1948-04-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1948-04-18T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1948-04-18T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1948-10-31T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1948-10-31T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1948-10-31T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1948-10-31T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1948-04-18T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1948-04-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1948-04-18T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1948-04-18T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1948-10-31T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1948-10-31T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1948-10-31T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1948-10-31T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1949-04-03T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1949-04-03T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1949-10-30T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1949-10-30T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1949-10-30T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1949-10-30T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1949-04-03T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1949-04-03T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1949-10-30T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1949-10-30T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1949-10-30T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1949-10-30T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1950-04-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1950-04-16T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1950-04-16T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1950-10-22T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1950-10-22T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1950-10-22T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1950-10-22T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1950-04-16T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1950-04-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1950-04-16T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1950-04-16T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1950-10-22T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1950-10-22T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1950-10-22T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1950-10-22T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-15T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1951-04-15T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1951-04-15T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1951-04-15T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1951-10-21T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1951-10-21T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1951-10-21T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1951-10-21T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1951-04-15T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1951-04-15T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1951-04-15T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1951-04-15T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1951-10-21T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1951-10-21T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1951-10-21T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1951-10-21T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-20T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1952-04-20T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1952-04-20T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1952-04-20T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1952-10-26T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1952-10-26T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1952-10-26T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1952-10-26T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1952-04-20T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1952-04-20T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1952-04-20T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1952-04-20T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1952-10-26T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1952-10-26T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1952-10-26T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1952-10-26T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-19T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1953-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1953-04-19T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1953-04-19T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1953-10-04T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1953-10-04T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1953-10-04T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1953-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1953-04-19T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1953-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1953-04-19T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1953-04-19T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1953-10-04T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1953-10-04T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1953-10-04T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1953-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-11T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1954-04-11T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1954-04-11T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1954-04-11T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1954-10-03T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1954-10-03T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1954-10-03T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1954-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1954-04-11T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1954-04-11T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1954-04-11T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1954-04-11T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1954-10-03T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1954-10-03T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1954-10-03T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1954-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-17T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1955-04-17T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1955-04-17T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1955-04-17T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1955-10-02T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1955-10-02T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1955-10-02T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1955-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1955-04-17T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1955-04-17T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1955-04-17T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1955-04-17T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1955-10-02T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1955-10-02T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1955-10-02T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1955-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-22T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1956-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1956-04-22T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1956-04-22T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1956-10-07T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1956-10-07T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1956-10-07T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1956-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1956-04-22T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1956-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1956-04-22T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1956-04-22T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1956-10-07T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1956-10-07T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1956-10-07T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1956-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-14T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1957-04-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1957-04-14T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1957-04-14T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1957-10-06T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1957-10-06T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1957-10-06T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1957-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1957-04-14T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1957-04-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1957-04-14T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1957-04-14T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1957-10-06T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1957-10-06T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1957-10-06T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1957-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-20T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1958-04-20T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1958-04-20T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1958-04-20T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1958-10-05T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1958-10-05T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1958-10-05T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1958-10-05T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1958-04-20T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1958-04-20T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1958-04-20T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1958-04-20T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1958-10-05T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1958-10-05T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1958-10-05T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1958-10-05T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-19T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1959-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1959-04-19T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1959-04-19T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1959-10-04T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1959-10-04T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1959-10-04T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1959-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1959-04-19T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1959-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1959-04-19T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1959-04-19T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1959-10-04T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1959-10-04T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1959-10-04T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1959-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-10T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1960-04-10T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1960-04-10T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1960-04-10T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1960-10-02T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1960-10-02T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1960-10-02T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1960-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1960-04-10T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1960-04-10T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1960-04-10T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1960-04-10T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1960-10-02T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1960-10-02T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1960-10-02T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1960-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-03-26T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1961-03-26T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1961-03-26T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1961-03-26T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1961-10-29T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1961-10-29T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1961-10-29T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1961-10-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1961-03-26T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1961-03-26T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1961-03-26T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1961-03-26T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1961-10-29T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1961-10-29T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1961-10-29T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1961-10-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-03-25T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1962-03-25T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1962-03-25T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1962-03-25T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1962-10-28T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1962-10-28T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1962-10-28T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1962-10-28T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1962-03-25T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1962-03-25T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1962-03-25T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1962-03-25T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1962-10-28T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1962-10-28T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1962-10-28T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1962-10-28T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-03-31T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1963-03-31T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1963-03-31T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1963-03-31T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1963-10-27T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1963-10-27T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1963-10-27T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1963-10-27T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1963-03-31T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1963-03-31T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1963-03-31T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1963-03-31T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1963-10-27T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1963-10-27T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1963-10-27T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1963-10-27T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-22T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1964-03-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1964-03-22T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1964-03-22T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1964-10-25T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1964-10-25T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1964-10-25T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1964-10-25T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1964-03-22T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1964-03-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1964-03-22T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1964-03-22T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1964-10-25T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1964-10-25T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1964-10-25T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1964-10-25T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-21T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1965-03-21T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1965-03-21T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1965-03-21T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1965-10-24T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1965-10-24T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1965-10-24T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1965-10-24T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1965-03-21T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1965-03-21T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1965-03-21T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1965-03-21T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1965-10-24T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1965-10-24T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1965-10-24T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1965-10-24T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-20T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1966-03-20T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1966-03-20T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1966-03-20T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1966-10-23T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1966-10-23T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1966-10-23T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1966-10-23T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1966-03-20T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1966-03-20T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1966-03-20T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1966-03-20T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1966-10-23T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1966-10-23T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1966-10-23T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1966-10-23T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-19T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1967-03-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1967-03-19T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1967-03-19T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1967-10-29T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1967-10-29T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1967-10-29T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1967-10-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1967-03-19T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1967-03-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1967-03-19T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1967-03-19T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1967-10-29T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1967-10-29T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1967-10-29T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1967-10-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-02-18T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1968-02-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1968-02-18T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1968-02-18T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1968-10-26T22:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "23:59:59", "1968-10-26T22:59:59+00:00 should be 23:59:59 IST"); - t.equal(moment("1968-10-26T23:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:00:00", "1968-10-26T23:00:00+00:00 should be 00:00:00 IST"); - - t.equal(moment("1968-02-18T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1968-02-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1968-02-18T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1968-02-18T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1968-10-26T22:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1968-10-26T22:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1968-10-26T23:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1968-10-26T23:00:00+00:00 should be -60 minutes offset in IST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-10-31T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1971-10-31T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1971-10-31T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1971-10-31T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1971-10-31T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1971-10-31T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1971-10-31T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1971-10-31T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-03-19T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1972-03-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1972-03-19T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1972-03-19T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1972-10-29T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1972-10-29T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1972-10-29T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1972-10-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1972-03-19T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1972-03-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1972-03-19T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1972-03-19T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1972-10-29T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1972-10-29T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1972-10-29T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1972-10-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-18T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1973-03-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1973-03-18T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1973-03-18T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1973-10-28T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1973-10-28T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1973-10-28T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1973-10-28T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1973-03-18T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1973-03-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1973-03-18T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1973-03-18T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1973-10-28T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1973-10-28T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1973-10-28T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1973-10-28T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-17T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1974-03-17T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1974-03-17T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1974-03-17T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1974-10-27T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1974-10-27T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1974-10-27T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1974-10-27T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1974-03-17T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1974-03-17T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1974-03-17T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1974-03-17T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1974-10-27T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1974-10-27T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1974-10-27T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1974-10-27T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-16T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1975-03-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1975-03-16T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1975-03-16T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1975-10-26T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1975-10-26T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1975-10-26T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1975-10-26T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1975-03-16T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1975-03-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1975-03-16T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1975-03-16T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1975-10-26T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1975-10-26T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1975-10-26T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1975-10-26T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-21T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1976-03-21T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1976-03-21T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1976-03-21T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1976-10-24T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1976-10-24T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1976-10-24T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1976-10-24T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1976-03-21T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1976-03-21T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1976-03-21T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1976-03-21T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1976-10-24T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1976-10-24T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1976-10-24T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1976-10-24T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-20T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1977-03-20T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1977-03-20T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1977-03-20T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1977-10-23T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1977-10-23T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1977-10-23T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1977-10-23T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1977-03-20T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1977-03-20T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1977-03-20T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1977-03-20T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1977-10-23T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1977-10-23T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1977-10-23T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1977-10-23T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-19T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1978-03-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1978-03-19T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1978-03-19T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1978-10-29T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1978-10-29T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1978-10-29T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1978-10-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1978-03-19T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1978-03-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1978-03-19T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1978-03-19T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1978-10-29T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1978-10-29T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1978-10-29T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1978-10-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-18T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1979-03-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1979-03-18T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1979-03-18T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1979-10-28T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1979-10-28T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1979-10-28T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1979-10-28T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1979-03-18T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1979-03-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1979-03-18T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1979-03-18T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1979-10-28T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1979-10-28T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1979-10-28T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1979-10-28T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-16T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1980-03-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1980-03-16T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "03:00:00", "1980-03-16T02:00:00+00:00 should be 03:00:00 IST"); - t.equal(moment("1980-10-26T01:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:59:59", "1980-10-26T01:59:59+00:00 should be 02:59:59 IST"); - t.equal(moment("1980-10-26T02:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1980-10-26T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1980-03-16T01:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1980-03-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1980-03-16T02:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1980-03-16T02:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1980-10-26T01:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1980-10-26T01:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1980-10-26T02:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1980-10-26T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1981-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1981-03-29T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1981-10-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1981-10-25T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1981-10-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1981-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1981-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1981-03-29T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1981-10-25T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1981-10-25T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1981-10-25T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1981-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1982-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1982-03-28T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1982-10-24T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1982-10-24T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1982-10-24T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1982-10-24T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1982-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1982-03-28T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1982-10-24T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1982-10-24T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1982-10-24T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1982-10-24T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1983-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1983-03-27T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1983-10-23T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1983-10-23T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1983-10-23T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1983-10-23T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1983-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1983-03-27T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1983-10-23T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1983-10-23T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1983-10-23T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1983-10-23T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1984-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1984-03-25T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1984-10-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1984-10-28T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1984-10-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1984-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1984-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1984-03-25T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1984-10-28T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1984-10-28T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1984-10-28T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1984-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1985-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1985-03-31T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1985-10-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1985-10-27T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1985-10-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1985-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1985-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1985-03-31T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1985-10-27T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1985-10-27T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1985-10-27T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1985-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1986-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1986-03-30T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1986-10-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1986-10-26T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1986-10-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1986-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1986-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1986-03-30T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1986-10-26T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1986-10-26T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1986-10-26T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1986-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1987-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1987-03-29T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1987-10-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1987-10-25T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1987-10-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1987-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1987-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1987-03-29T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1987-10-25T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1987-10-25T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1987-10-25T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1987-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1988-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1988-03-27T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1988-10-23T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1988-10-23T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1988-10-23T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1988-10-23T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1988-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1988-03-27T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1988-10-23T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1988-10-23T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1988-10-23T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1988-10-23T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1989-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1989-03-26T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1989-10-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1989-10-29T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1989-10-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1989-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1989-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1989-03-26T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1989-10-29T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1989-10-29T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1989-10-29T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1989-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1990-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1990-03-25T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1990-10-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1990-10-28T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1990-10-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1990-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1990-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1990-03-25T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1990-10-28T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1990-10-28T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1990-10-28T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1990-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1991-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1991-03-31T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1991-10-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1991-10-27T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1991-10-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1991-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1991-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1991-03-31T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1991-10-27T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1991-10-27T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1991-10-27T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1991-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1992-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1992-03-29T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1992-10-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1992-10-25T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1992-10-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1992-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1992-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1992-03-29T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1992-10-25T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1992-10-25T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1992-10-25T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1992-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1993-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1993-03-28T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1993-10-24T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1993-10-24T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1993-10-24T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1993-10-24T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1993-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1993-03-28T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1993-10-24T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1993-10-24T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1993-10-24T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1993-10-24T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1994-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1994-03-27T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1994-10-23T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1994-10-23T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1994-10-23T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1994-10-23T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1994-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1994-03-27T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1994-10-23T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1994-10-23T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1994-10-23T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1994-10-23T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1995-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1995-03-26T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1995-10-22T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1995-10-22T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1995-10-22T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1995-10-22T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1995-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1995-03-26T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1995-10-22T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1995-10-22T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1995-10-22T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1995-10-22T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1996-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1996-03-31T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1996-10-27T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1996-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1996-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1996-03-31T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1996-10-27T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1996-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1997-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1997-03-30T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1997-10-26T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1997-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1997-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1997-03-30T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1997-10-26T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1997-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1998-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1998-03-29T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1998-10-25T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1998-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1998-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1998-03-29T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1998-10-25T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1998-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "1999-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "1999-03-28T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "1999-10-31T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "1999-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "1999-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "1999-03-28T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "1999-10-31T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "1999-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2000-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2000-03-26T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2000-10-29T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2000-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2000-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2000-03-26T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2000-10-29T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2000-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2001-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2001-03-25T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2001-10-28T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2001-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2001-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2001-03-25T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2001-10-28T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2001-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2002-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2002-03-31T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2002-10-27T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2002-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2002-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2002-03-31T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2002-10-27T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2002-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2003-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2003-03-30T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2003-10-26T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2003-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2003-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2003-03-30T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2003-10-26T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2003-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2004-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2004-03-28T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2004-10-31T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2004-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2004-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2004-03-28T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2004-10-31T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2004-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2005-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2005-03-27T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2005-10-30T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2005-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2005-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2005-03-27T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2005-10-30T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2005-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2006-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2006-03-26T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2006-10-29T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2006-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2006-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2006-03-26T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2006-10-29T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2006-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2007-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2007-03-25T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2007-10-28T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2007-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2007-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2007-03-25T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2007-10-28T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2007-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2008-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2008-03-30T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2008-10-26T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2008-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2008-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2008-03-30T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2008-10-26T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2008-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2009-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2009-03-29T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2009-10-25T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2009-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2009-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2009-03-29T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2009-10-25T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2009-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2010-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2010-03-28T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2010-10-31T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2010-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2010-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2010-03-28T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2010-10-31T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2010-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2011-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2011-03-27T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2011-10-30T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2011-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2011-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2011-03-27T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2011-10-30T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2011-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2012-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2012-03-25T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2012-10-28T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2012-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2012-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2012-03-25T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2012-10-28T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2012-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2013-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2013-03-31T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2013-10-27T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2013-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2013-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2013-03-31T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2013-10-27T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2013-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2014-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2014-03-30T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2014-10-26T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2014-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2014-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2014-03-30T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2014-10-26T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2014-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2015-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2015-03-29T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2015-10-25T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2015-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2015-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2015-03-29T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2015-10-25T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2015-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2016-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2016-03-27T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2016-10-30T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2016-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2016-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2016-03-27T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2016-10-30T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2016-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2017-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2017-03-26T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2017-10-29T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2017-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2017-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2017-03-26T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2017-10-29T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2017-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2018-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2018-03-25T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2018-10-28T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2018-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2018-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2018-03-25T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2018-10-28T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2018-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2019-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2019-03-31T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2019-10-27T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2019-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2019-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2019-03-31T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2019-10-27T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2019-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2020-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2020-03-29T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2020-10-25T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2020-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2020-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2020-03-29T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2020-10-25T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2020-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2021-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2021-03-28T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2021-10-31T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2021-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2021-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2021-03-28T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2021-10-31T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2021-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2022-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2022-03-27T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2022-10-30T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2022-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2022-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2022-03-27T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2022-10-30T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2022-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2023-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2023-03-26T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2023-10-29T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2023-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2023-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2023-03-26T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2023-10-29T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2023-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2024-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2024-03-31T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2024-10-27T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2024-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2024-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2024-03-31T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2024-10-27T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2024-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2025-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2025-03-30T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2025-10-26T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2025-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2025-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2025-03-30T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2025-10-26T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2025-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2026-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2026-03-29T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2026-10-25T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2026-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2026-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2026-03-29T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2026-10-25T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2026-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2027-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2027-03-28T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2027-10-31T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2027-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2027-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2027-03-28T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2027-10-31T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2027-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2028-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2028-03-26T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2028-10-29T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2028-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2028-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2028-03-26T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2028-10-29T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2028-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2029-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2029-03-25T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2029-10-28T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2029-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2029-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2029-03-25T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2029-10-28T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2029-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2030-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2030-03-31T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2030-10-27T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2030-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2030-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2030-03-31T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2030-10-27T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2030-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2031-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2031-03-30T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2031-10-26T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2031-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2031-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2031-03-30T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2031-10-26T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2031-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2032-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2032-03-28T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2032-10-31T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2032-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2032-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2032-03-28T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2032-10-31T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2032-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2033-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2033-03-27T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2033-10-30T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2033-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2033-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2033-03-27T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2033-10-30T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2033-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2034-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2034-03-26T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2034-10-29T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2034-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2034-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2034-03-26T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2034-10-29T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2034-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2035-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2035-03-25T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2035-10-28T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2035-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2035-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2035-03-25T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2035-10-28T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2035-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2036-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2036-03-30T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2036-10-26T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2036-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2036-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2036-03-30T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2036-10-26T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2036-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "00:59:59", "2037-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "02:00:00", "2037-03-29T01:00:00+00:00 should be 02:00:00 IST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:59:59", "2037-10-25T00:59:59+00:00 should be 01:59:59 IST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Dublin").format("HH:mm:ss"), "01:00:00", "2037-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Dublin").zone(), 0, "2037-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Dublin").zone(), -60, "2037-03-29T01:00:00+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Dublin").zone(), -60, "2037-10-25T00:59:59+00:00 should be -60 minutes offset in IST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Dublin").zone(), 0, "2037-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/gibraltar.js b/tests/europe/gibraltar.js deleted file mode 100644 index c28d85fe..00000000 --- a/tests/europe/gibraltar.js +++ /dev/null @@ -1,1380 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Gibraltar"] = { - - "1916" : function (t) { - t.equal(moment("1916-05-21T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1916-05-21T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1916-05-21T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1916-05-21T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1916-10-01T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1916-10-01T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1916-10-01T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1916-10-01T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1916-05-21T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1916-05-21T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1916-05-21T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1916-05-21T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1916-10-01T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1916-10-01T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1916-10-01T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1916-10-01T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-08T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1917-04-08T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1917-04-08T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1917-04-08T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1917-09-17T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1917-09-17T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1917-09-17T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1917-09-17T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1917-04-08T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1917-04-08T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1917-04-08T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1917-04-08T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1917-09-17T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1917-09-17T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1917-09-17T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1917-09-17T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-24T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1918-03-24T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1918-03-24T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1918-03-24T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1918-09-30T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1918-09-30T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1918-09-30T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1918-09-30T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1918-03-24T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1918-03-24T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1918-03-24T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1918-03-24T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1918-09-30T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1918-09-30T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1918-09-30T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1918-09-30T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1919-03-30T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1919-03-30T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1919-03-30T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1919-09-29T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1919-09-29T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1919-09-29T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1919-09-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1919-03-30T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1919-03-30T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1919-03-30T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1919-03-30T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1919-09-29T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1919-09-29T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1919-09-29T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1919-09-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-03-28T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1920-03-28T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1920-03-28T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1920-03-28T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1920-10-25T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1920-10-25T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1920-10-25T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1920-10-25T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1920-03-28T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1920-03-28T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1920-03-28T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1920-03-28T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1920-10-25T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1920-10-25T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1920-10-25T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1920-10-25T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-03T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1921-04-03T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1921-04-03T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1921-04-03T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1921-10-03T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1921-10-03T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1921-10-03T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1921-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1921-04-03T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1921-04-03T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1921-04-03T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1921-04-03T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1921-10-03T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1921-10-03T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1921-10-03T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1921-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-26T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1922-03-26T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1922-03-26T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1922-03-26T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1922-10-08T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1922-10-08T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1922-10-08T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1922-10-08T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1922-03-26T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1922-03-26T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1922-03-26T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1922-03-26T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1922-10-08T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1922-10-08T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1922-10-08T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1922-10-08T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-22T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1923-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1923-04-22T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1923-04-22T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1923-09-16T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1923-09-16T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1923-09-16T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1923-09-16T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1923-04-22T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1923-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1923-04-22T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1923-04-22T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1923-09-16T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1923-09-16T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1923-09-16T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1923-09-16T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-13T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1924-04-13T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1924-04-13T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1924-04-13T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1924-09-21T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1924-09-21T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1924-09-21T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1924-09-21T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1924-04-13T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1924-04-13T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1924-04-13T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1924-04-13T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1924-09-21T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1924-09-21T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1924-09-21T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1924-09-21T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-19T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1925-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1925-04-19T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1925-04-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1925-10-04T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1925-10-04T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1925-10-04T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1925-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1925-04-19T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1925-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1925-04-19T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1925-04-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1925-10-04T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1925-10-04T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1925-10-04T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1925-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-18T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1926-04-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1926-04-18T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1926-04-18T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1926-10-03T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1926-10-03T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1926-10-03T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1926-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1926-04-18T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1926-04-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1926-04-18T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1926-04-18T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1926-10-03T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1926-10-03T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1926-10-03T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1926-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-10T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1927-04-10T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1927-04-10T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1927-04-10T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1927-10-02T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1927-10-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1927-10-02T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1927-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1927-04-10T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1927-04-10T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1927-04-10T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1927-04-10T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1927-10-02T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1927-10-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1927-10-02T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1927-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-22T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1928-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1928-04-22T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1928-04-22T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1928-10-07T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1928-10-07T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1928-10-07T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1928-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1928-04-22T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1928-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1928-04-22T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1928-04-22T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1928-10-07T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1928-10-07T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1928-10-07T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1928-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-21T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1929-04-21T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1929-04-21T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1929-04-21T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1929-10-06T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1929-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1929-04-21T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1929-04-21T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1929-04-21T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1929-04-21T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1929-10-06T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1929-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1930-04-13T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1930-04-13T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1930-10-05T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1930-10-05T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1930-04-13T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1930-04-13T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1930-10-05T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1930-10-05T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1931-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1931-04-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1931-10-04T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1931-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1931-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1931-04-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1931-10-04T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1931-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-17T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1932-04-17T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1932-04-17T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1932-04-17T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1932-10-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1932-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1932-04-17T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1932-04-17T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1932-04-17T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1932-04-17T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1932-10-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1932-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-09T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1933-04-09T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1933-04-09T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1933-04-09T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1933-10-08T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1933-10-08T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1933-04-09T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1933-04-09T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1933-04-09T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1933-04-09T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1933-10-08T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1933-10-08T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-22T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1934-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1934-04-22T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1934-04-22T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1934-10-07T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1934-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1934-04-22T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1934-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1934-04-22T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1934-04-22T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1934-10-07T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1934-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-14T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1935-04-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1935-04-14T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1935-04-14T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1935-10-06T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1935-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1935-04-14T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1935-04-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1935-04-14T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1935-04-14T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1935-10-06T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1935-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1936-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1936-04-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1936-10-04T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1936-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1936-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1936-04-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1936-10-04T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1936-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-18T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1937-04-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1937-04-18T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1937-04-18T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1937-10-03T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1937-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1937-04-18T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1937-04-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1937-04-18T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1937-04-18T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1937-10-03T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1937-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-10T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1938-04-10T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1938-04-10T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1938-04-10T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1938-10-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1938-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1938-04-10T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1938-04-10T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1938-04-10T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1938-04-10T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1938-10-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1938-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1939-04-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1939-04-16T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1939-11-19T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1939-11-19T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1939-04-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1939-04-16T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1939-11-19T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1939-11-19T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1940-02-25T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1940-02-25T02:00:00+00:00 should be 03:00:00 BST"); - - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1940-02-25T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1940-02-25T02:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-05-04T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1941-05-04T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1941-05-04T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1941-05-04T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1941-08-10T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1941-08-10T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1941-08-10T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1941-08-10T01:00:00+00:00 should be 02:00:00 BST"); - - t.equal(moment("1941-05-04T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1941-05-04T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1941-05-04T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1941-05-04T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1941-08-10T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1941-08-10T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1941-08-10T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1941-08-10T01:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-05T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1942-04-05T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1942-04-05T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1942-04-05T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1942-08-09T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1942-08-09T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1942-08-09T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1942-08-09T01:00:00+00:00 should be 02:00:00 BST"); - - t.equal(moment("1942-04-05T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1942-04-05T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1942-04-05T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1942-04-05T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1942-08-09T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1942-08-09T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1942-08-09T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1942-08-09T01:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-04-04T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1943-04-04T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1943-04-04T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1943-04-04T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1943-08-15T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1943-08-15T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1943-08-15T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1943-08-15T01:00:00+00:00 should be 02:00:00 BST"); - - t.equal(moment("1943-04-04T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1943-04-04T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1943-04-04T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1943-04-04T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1943-08-15T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1943-08-15T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1943-08-15T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1943-08-15T01:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-02T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1944-04-02T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1944-04-02T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1944-04-02T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1944-09-17T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1944-09-17T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1944-09-17T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1944-09-17T01:00:00+00:00 should be 02:00:00 BST"); - - t.equal(moment("1944-04-02T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1944-04-02T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1944-04-02T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1944-04-02T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1944-09-17T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1944-09-17T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1944-09-17T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1944-09-17T01:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1945-07-15T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1945-07-15T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1945-07-15T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1945-07-15T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1945-10-07T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1945-10-07T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1945-10-07T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1945-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1945-07-15T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1945-07-15T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1945-07-15T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1945-07-15T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1945-10-07T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1945-10-07T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1945-10-07T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1945-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-14T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1946-04-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1946-04-14T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1946-04-14T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1946-10-06T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1946-10-06T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1946-10-06T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1946-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1946-04-14T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1946-04-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1946-04-14T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1946-04-14T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1946-10-06T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1946-10-06T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1946-10-06T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1946-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-03-16T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1947-03-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1947-03-16T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1947-03-16T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1947-04-13T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1947-04-13T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1947-04-13T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1947-04-13T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1947-08-10T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1947-08-10T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1947-08-10T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1947-08-10T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1947-11-02T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1947-11-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1947-11-02T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1947-11-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1947-03-16T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1947-03-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1947-03-16T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1947-03-16T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1947-04-13T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1947-04-13T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1947-04-13T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1947-04-13T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1947-08-10T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1947-08-10T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1947-08-10T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1947-08-10T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1947-11-02T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1947-11-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1947-11-02T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1947-11-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-03-14T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1948-03-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1948-03-14T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1948-03-14T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1948-10-31T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1948-10-31T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1948-10-31T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1948-10-31T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1948-03-14T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1948-03-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1948-03-14T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1948-03-14T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1948-10-31T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1948-10-31T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1948-10-31T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1948-10-31T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1949-04-03T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1949-04-03T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1949-10-30T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1949-10-30T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1949-10-30T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1949-10-30T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1949-04-03T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1949-04-03T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1949-10-30T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1949-10-30T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1949-10-30T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1949-10-30T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1950-04-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1950-04-16T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1950-04-16T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1950-10-22T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1950-10-22T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1950-10-22T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1950-10-22T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1950-04-16T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1950-04-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1950-04-16T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1950-04-16T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1950-10-22T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1950-10-22T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1950-10-22T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1950-10-22T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-15T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1951-04-15T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1951-04-15T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1951-04-15T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1951-10-21T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1951-10-21T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1951-10-21T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1951-10-21T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1951-04-15T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1951-04-15T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1951-04-15T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1951-04-15T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1951-10-21T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1951-10-21T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1951-10-21T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1951-10-21T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-20T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1952-04-20T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1952-04-20T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1952-04-20T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1952-10-26T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1952-10-26T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1952-10-26T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1952-10-26T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1952-04-20T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1952-04-20T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1952-04-20T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1952-04-20T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1952-10-26T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1952-10-26T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1952-10-26T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1952-10-26T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-19T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1953-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1953-04-19T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1953-04-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1953-10-04T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1953-10-04T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1953-10-04T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1953-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1953-04-19T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1953-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1953-04-19T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1953-04-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1953-10-04T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1953-10-04T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1953-10-04T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1953-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-11T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1954-04-11T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1954-04-11T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1954-04-11T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1954-10-03T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1954-10-03T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1954-10-03T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1954-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1954-04-11T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1954-04-11T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1954-04-11T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1954-04-11T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1954-10-03T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1954-10-03T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1954-10-03T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1954-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-17T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1955-04-17T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1955-04-17T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1955-04-17T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1955-10-02T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1955-10-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1955-10-02T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1955-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1955-04-17T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1955-04-17T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1955-04-17T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1955-04-17T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1955-10-02T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1955-10-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1955-10-02T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1955-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-22T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1956-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1956-04-22T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1956-04-22T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1956-10-07T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1956-10-07T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1956-10-07T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1956-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1956-04-22T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1956-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1956-04-22T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1956-04-22T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1956-10-07T01:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1956-10-07T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1956-10-07T02:00:00+00:00").tz("Europe/Gibraltar").zone(), 0, "1956-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-14T01:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1957-04-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1957-04-14T02:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1957-04-14T02:00:00+00:00 should be 03:00:00 CET"); - - t.equal(moment("1957-04-14T01:59:59+00:00").tz("Europe/Gibraltar").zone(), 0, "1957-04-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1957-04-14T02:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1957-04-14T02:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Gibraltar").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Gibraltar").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Gibraltar").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/helsinki.js b/tests/europe/helsinki.js deleted file mode 100644 index a3c25461..00000000 --- a/tests/europe/helsinki.js +++ /dev/null @@ -1,826 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Helsinki"] = { - - "1921" : function (t) { - t.equal(moment("1921-04-30T22:20:07+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "23:59:59", "1921-04-30T22:20:07+00:00 should be 23:59:59 HMT"); - t.equal(moment("1921-04-30T22:20:08+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "00:20:08", "1921-04-30T22:20:08+00:00 should be 00:20:08 EET"); - - t.equal(moment("1921-04-30T22:20:07+00:00").tz("Europe/Helsinki").zone(), -5992 / 60, "1921-04-30T22:20:07+00:00 should be -5992 / 60 minutes offset in HMT"); - t.equal(moment("1921-04-30T22:20:08+00:00").tz("Europe/Helsinki").zone(), -120, "1921-04-30T22:20:08+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-02T21:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "23:59:59", "1942-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1942-04-02T22:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "01:00:00", "1942-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1942-10-02T20:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "23:59:59", "1942-10-02T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1942-10-02T21:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "23:00:00", "1942-10-02T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1942-04-02T21:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1942-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1942-04-02T22:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1942-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1942-10-02T20:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1942-10-02T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1942-10-02T21:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1942-10-02T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-28T23:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "01:59:59", "1981-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1981-03-29T00:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1981-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1981-09-26T23:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1981-09-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1981-09-27T00:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:00:00", "1981-09-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1981-03-28T23:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1981-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1981-03-29T00:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1981-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-26T23:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1981-09-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-27T00:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1981-09-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-27T23:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "01:59:59", "1982-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1982-03-28T00:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1982-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1982-09-25T23:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1982-09-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1982-09-26T00:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:00:00", "1982-09-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1982-03-27T23:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1982-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1982-03-28T00:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1982-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-25T23:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1982-09-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-26T00:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1982-09-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1983-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1983-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1983-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1983-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1983-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1983-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1983-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1983-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1984-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1984-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1984-09-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1984-09-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1984-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1984-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1984-09-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1984-09-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1985-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1985-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1985-09-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1985-09-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1985-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1985-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1985-09-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1985-09-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1986-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1986-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1986-09-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1986-09-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1986-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1986-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1986-09-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1986-09-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1987-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1987-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1987-09-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1987-09-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1987-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1987-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1987-09-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1987-09-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1988-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1988-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1988-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1988-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1988-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1988-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1988-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1988-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1989-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1989-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1989-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1989-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1989-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1989-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1989-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1989-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1990-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1990-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1990-09-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1990-09-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1990-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1990-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1990-09-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1990-09-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1991-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1991-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1991-09-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1991-09-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1991-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1991-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1991-09-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1991-09-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1992-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1992-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1992-09-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1992-09-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1992-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1992-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1992-09-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1992-09-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1993-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1993-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1993-09-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1993-09-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1993-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1993-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1993-09-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1993-09-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1994-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1994-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1994-09-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1994-09-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1994-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1994-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1994-09-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1994-09-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1995-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1995-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1995-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1995-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1995-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1995-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1995-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1995-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1996-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1996-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1996-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1996-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1996-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1996-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1996-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1996-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Helsinki").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Helsinki").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Helsinki").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Helsinki").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Helsinki").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/istanbul.js b/tests/europe/istanbul.js deleted file mode 100644 index 3a8902ed..00000000 --- a/tests/europe/istanbul.js +++ /dev/null @@ -1,1200 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Istanbul"] = { - - "1910" : function (t) { - t.equal(moment("1910-09-30T22:03:03+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1910-09-30T22:03:03+00:00 should be 23:59:59 IMT"); - t.equal(moment("1910-09-30T22:03:04+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:03:04", "1910-09-30T22:03:04+00:00 should be 00:03:04 EET"); - - t.equal(moment("1910-09-30T22:03:03+00:00").tz("Europe/Istanbul").zone(), -7016 / 60, "1910-09-30T22:03:03+00:00 should be -7016 / 60 minutes offset in IMT"); - t.equal(moment("1910-09-30T22:03:04+00:00").tz("Europe/Istanbul").zone(), -120, "1910-09-30T22:03:04+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1916-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1916-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1916-09-30T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1916-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1916-09-30T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1916-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1916-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1916-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1916-09-30T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1916-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1916-09-30T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1916-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-03-27T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1920-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1920-03-27T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1920-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1920-10-24T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1920-10-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1920-10-24T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1920-10-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1920-03-27T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1920-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1920-03-27T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1920-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1920-10-24T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1920-10-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1920-10-24T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1920-10-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-02T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1921-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1921-04-02T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1921-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1921-10-02T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1921-10-02T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1921-10-02T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1921-10-02T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1921-04-02T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1921-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1921-04-02T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1921-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1921-10-02T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1921-10-02T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1921-10-02T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1921-10-02T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-25T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1922-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1922-03-25T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1922-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1922-10-07T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1922-10-07T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1922-10-07T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1922-10-07T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1922-03-25T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1922-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1922-03-25T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1922-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1922-10-07T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1922-10-07T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1922-10-07T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1922-10-07T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-05-12T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1924-05-12T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1924-05-12T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1924-05-12T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1924-09-30T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1924-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1924-09-30T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1924-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1924-05-12T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1924-05-12T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1924-05-12T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1924-05-12T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1924-09-30T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1924-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1924-09-30T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1924-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-30T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1925-04-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1925-04-30T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1925-04-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1925-09-30T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1925-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1925-09-30T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1925-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1925-04-30T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1925-04-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1925-04-30T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1925-04-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1925-09-30T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1925-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1925-09-30T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1925-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-06-29T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1940-06-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1940-06-29T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1940-06-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1940-10-04T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1940-10-04T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1940-10-04T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1940-10-04T21:00:00+00:00 should be 23:00:00 EET"); - t.equal(moment("1940-11-30T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1940-11-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1940-11-30T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1940-11-30T22:00:00+00:00 should be 01:00:00 EEST"); - - t.equal(moment("1940-06-29T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1940-06-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1940-06-29T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1940-06-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1940-10-04T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1940-10-04T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1940-10-04T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1940-10-04T21:00:00+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1940-11-30T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1940-11-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1940-11-30T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1940-11-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-09-20T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1941-09-20T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1941-09-20T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1941-09-20T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1941-09-20T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1941-09-20T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1941-09-20T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1941-09-20T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-31T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1942-03-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1942-03-31T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1942-03-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1942-10-31T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1942-10-31T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1942-10-31T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1942-10-31T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1942-03-31T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1942-03-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1942-03-31T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1942-03-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1942-10-31T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1942-10-31T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1942-10-31T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1942-10-31T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-01T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1945-04-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1945-04-01T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1945-04-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1945-10-07T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1945-10-07T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1945-10-07T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1945-10-07T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1945-04-01T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1945-04-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1945-04-01T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1945-04-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1945-10-07T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1945-10-07T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1945-10-07T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1945-10-07T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-05-31T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1946-05-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1946-05-31T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1946-05-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1946-09-30T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1946-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1946-09-30T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1946-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1946-05-31T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1946-05-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1946-05-31T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1946-05-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1946-09-30T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1946-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1946-09-30T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1946-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-19T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1947-04-19T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1947-04-19T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1947-04-19T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1947-10-04T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1947-10-04T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1947-10-04T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1947-10-04T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1947-04-19T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1947-04-19T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1947-04-19T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1947-04-19T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1947-10-04T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1947-10-04T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1947-10-04T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1947-10-04T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-17T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1948-04-17T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1948-04-17T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1948-04-17T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1948-10-02T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1948-10-02T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1948-10-02T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1948-10-02T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1948-04-17T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1948-04-17T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1948-04-17T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1948-04-17T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1948-10-02T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1948-10-02T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1948-10-02T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1948-10-02T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-09T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1949-04-09T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1949-04-09T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1949-04-09T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1949-10-01T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1949-10-01T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1949-10-01T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1949-10-01T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1949-04-09T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1949-04-09T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1949-04-09T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1949-04-09T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1949-10-01T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1949-10-01T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1949-10-01T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1949-10-01T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-18T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1950-04-18T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1950-04-18T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1950-04-18T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1950-10-07T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1950-10-07T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1950-10-07T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1950-10-07T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1950-04-18T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1950-04-18T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1950-04-18T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1950-04-18T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1950-10-07T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1950-10-07T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1950-10-07T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1950-10-07T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-21T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1951-04-21T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1951-04-21T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1951-04-21T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1951-10-07T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1951-10-07T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1951-10-07T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1951-10-07T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1951-04-21T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1951-04-21T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1951-04-21T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1951-04-21T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1951-10-07T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1951-10-07T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1951-10-07T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1951-10-07T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-07-14T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1962-07-14T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1962-07-14T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1962-07-14T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1962-10-07T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1962-10-07T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1962-10-07T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1962-10-07T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1962-07-14T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1962-07-14T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1962-07-14T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1962-07-14T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-10-07T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1962-10-07T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1962-10-07T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1962-10-07T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-05-14T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1964-05-14T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1964-05-14T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1964-05-14T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1964-09-30T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1964-09-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1964-09-30T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1964-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1964-05-14T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1964-05-14T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1964-05-14T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1964-05-14T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-30T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1964-09-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1964-09-30T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1964-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-05-02T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1970-05-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1970-05-02T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1970-05-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1970-10-03T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1970-10-03T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1970-10-03T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1970-10-03T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1970-05-02T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1970-05-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1970-05-02T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1970-05-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1970-10-03T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1970-10-03T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1970-10-03T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1970-10-03T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-05-01T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1971-05-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1971-05-01T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1971-05-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1971-10-02T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1971-10-02T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1971-10-02T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1971-10-02T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1971-05-01T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1971-05-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1971-05-01T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1971-05-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1971-10-02T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1971-10-02T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1971-10-02T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1971-10-02T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-05-06T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1972-05-06T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1972-05-06T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1972-05-06T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1972-10-07T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1972-10-07T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1972-10-07T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1972-10-07T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1972-05-06T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1972-05-06T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1972-05-06T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1972-05-06T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1972-10-07T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1972-10-07T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1972-10-07T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1972-10-07T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-06-02T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1973-06-02T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1973-06-02T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1973-06-02T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1973-11-03T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "1973-11-03T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1973-11-04T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1973-11-04T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1973-06-02T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1973-06-02T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1973-06-02T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1973-06-02T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-11-03T23:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1973-11-03T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1973-11-04T00:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1973-11-04T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-30T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1974-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1974-03-31T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "1974-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1974-11-03T01:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:59:59", "1974-11-03T01:59:59+00:00 should be 04:59:59 EEST"); - t.equal(moment("1974-11-03T02:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "1974-11-03T02:00:00+00:00 should be 04:00:00 EET"); - - t.equal(moment("1974-03-30T23:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1974-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1974-03-31T00:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1974-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-11-03T01:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1974-11-03T01:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1974-11-03T02:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1974-11-03T02:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-29T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1975-03-29T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1975-03-29T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1975-03-29T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1975-10-25T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1975-10-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1975-10-25T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1975-10-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1975-03-29T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1975-03-29T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1975-03-29T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1975-03-29T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-10-25T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1975-10-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1975-10-25T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1975-10-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-05-31T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1976-05-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1976-05-31T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1976-05-31T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1976-10-30T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1976-10-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1976-10-30T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1976-10-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1976-05-31T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1976-05-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1976-05-31T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1976-05-31T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-10-30T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1976-10-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1976-10-30T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1976-10-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-02T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1977-04-02T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1977-04-02T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1977-04-02T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1977-10-15T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1977-10-15T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1977-10-15T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1977-10-15T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1977-04-02T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1977-04-02T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1977-04-02T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1977-04-02T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-10-15T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1977-10-15T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1977-10-15T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1977-10-15T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-01T21:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1978-04-01T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1978-04-01T22:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1978-04-01T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1978-10-14T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1978-10-14T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1978-10-14T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1978-10-14T21:00:00+00:00 should be 01:00:00 TRST"); - - t.equal(moment("1978-04-01T21:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1978-04-01T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1978-04-01T22:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1978-04-01T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-10-14T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1978-10-14T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1978-10-14T21:00:00+00:00").tz("Europe/Istanbul").zone(), -240, "1978-10-14T21:00:00+00:00 should be -240 minutes offset in TRST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-10-14T19:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1979-10-14T19:59:59+00:00 should be 23:59:59 TRST"); - t.equal(moment("1979-10-14T20:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1979-10-14T20:00:00+00:00 should be 23:00:00 TRT"); - - t.equal(moment("1979-10-14T19:59:59+00:00").tz("Europe/Istanbul").zone(), -240, "1979-10-14T19:59:59+00:00 should be -240 minutes offset in TRST"); - t.equal(moment("1979-10-14T20:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1979-10-14T20:00:00+00:00 should be -180 minutes offset in TRT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-05T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "1980-04-05T23:59:59+00:00 should be 02:59:59 TRT"); - t.equal(moment("1980-04-06T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "1980-04-06T00:00:00+00:00 should be 04:00:00 TRST"); - t.equal(moment("1980-10-12T19:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1980-10-12T19:59:59+00:00 should be 23:59:59 TRST"); - t.equal(moment("1980-10-12T20:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1980-10-12T20:00:00+00:00 should be 23:00:00 TRT"); - - t.equal(moment("1980-04-05T23:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1980-04-05T23:59:59+00:00 should be -180 minutes offset in TRT"); - t.equal(moment("1980-04-06T00:00:00+00:00").tz("Europe/Istanbul").zone(), -240, "1980-04-06T00:00:00+00:00 should be -240 minutes offset in TRST"); - t.equal(moment("1980-10-12T19:59:59+00:00").tz("Europe/Istanbul").zone(), -240, "1980-10-12T19:59:59+00:00 should be -240 minutes offset in TRST"); - t.equal(moment("1980-10-12T20:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1980-10-12T20:00:00+00:00 should be -180 minutes offset in TRT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-28T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "1981-03-28T23:59:59+00:00 should be 02:59:59 TRT"); - t.equal(moment("1981-03-29T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "1981-03-29T00:00:00+00:00 should be 04:00:00 TRST"); - t.equal(moment("1981-10-11T19:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1981-10-11T19:59:59+00:00 should be 23:59:59 TRST"); - t.equal(moment("1981-10-11T20:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1981-10-11T20:00:00+00:00 should be 23:00:00 TRT"); - - t.equal(moment("1981-03-28T23:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1981-03-28T23:59:59+00:00 should be -180 minutes offset in TRT"); - t.equal(moment("1981-03-29T00:00:00+00:00").tz("Europe/Istanbul").zone(), -240, "1981-03-29T00:00:00+00:00 should be -240 minutes offset in TRST"); - t.equal(moment("1981-10-11T19:59:59+00:00").tz("Europe/Istanbul").zone(), -240, "1981-10-11T19:59:59+00:00 should be -240 minutes offset in TRST"); - t.equal(moment("1981-10-11T20:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1981-10-11T20:00:00+00:00 should be -180 minutes offset in TRT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-27T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "1982-03-27T23:59:59+00:00 should be 02:59:59 TRT"); - t.equal(moment("1982-03-28T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "1982-03-28T00:00:00+00:00 should be 04:00:00 TRST"); - t.equal(moment("1982-10-10T19:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1982-10-10T19:59:59+00:00 should be 23:59:59 TRST"); - t.equal(moment("1982-10-10T20:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1982-10-10T20:00:00+00:00 should be 23:00:00 TRT"); - - t.equal(moment("1982-03-27T23:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1982-03-27T23:59:59+00:00 should be -180 minutes offset in TRT"); - t.equal(moment("1982-03-28T00:00:00+00:00").tz("Europe/Istanbul").zone(), -240, "1982-03-28T00:00:00+00:00 should be -240 minutes offset in TRST"); - t.equal(moment("1982-10-10T19:59:59+00:00").tz("Europe/Istanbul").zone(), -240, "1982-10-10T19:59:59+00:00 should be -240 minutes offset in TRST"); - t.equal(moment("1982-10-10T20:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1982-10-10T20:00:00+00:00 should be -180 minutes offset in TRT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-07-30T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1983-07-30T20:59:59+00:00 should be 23:59:59 TRT"); - t.equal(moment("1983-07-30T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1983-07-30T21:00:00+00:00 should be 01:00:00 TRST"); - t.equal(moment("1983-10-01T19:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1983-10-01T19:59:59+00:00 should be 23:59:59 TRST"); - t.equal(moment("1983-10-01T20:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1983-10-01T20:00:00+00:00 should be 23:00:00 TRT"); - - t.equal(moment("1983-07-30T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1983-07-30T20:59:59+00:00 should be -180 minutes offset in TRT"); - t.equal(moment("1983-07-30T21:00:00+00:00").tz("Europe/Istanbul").zone(), -240, "1983-07-30T21:00:00+00:00 should be -240 minutes offset in TRST"); - t.equal(moment("1983-10-01T19:59:59+00:00").tz("Europe/Istanbul").zone(), -240, "1983-10-01T19:59:59+00:00 should be -240 minutes offset in TRST"); - t.equal(moment("1983-10-01T20:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1983-10-01T20:00:00+00:00 should be -180 minutes offset in TRT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-19T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1985-04-19T20:59:59+00:00 should be 23:59:59 TRT"); - t.equal(moment("1985-04-19T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:00:00", "1985-04-19T21:00:00+00:00 should be 00:00:00 EEST"); - t.equal(moment("1985-09-27T20:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:59:59", "1985-09-27T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1985-09-27T21:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "23:00:00", "1985-09-27T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1985-04-19T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1985-04-19T20:59:59+00:00 should be -180 minutes offset in TRT"); - t.equal(moment("1985-04-19T21:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1985-04-19T21:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-27T20:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1985-09-27T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-27T21:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1985-09-27T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1986-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1986-03-30T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "1986-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1986-09-27T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "1986-09-27T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1986-09-28T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1986-09-28T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1986-03-29T23:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1986-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-03-30T00:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1986-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-27T23:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1986-09-27T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-28T00:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1986-09-28T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1987-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1987-03-29T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "1987-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1987-09-26T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "1987-09-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1987-09-27T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1987-09-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1987-03-28T23:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1987-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-03-29T00:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1987-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-26T23:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1987-09-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-27T00:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1987-09-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1988-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1988-03-27T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "1988-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1988-09-24T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "1988-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1988-09-25T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1988-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1988-03-26T23:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1988-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-03-27T00:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1988-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-24T23:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1988-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-25T00:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1988-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1989-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1989-03-26T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "1989-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "1989-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1989-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1989-03-25T23:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1989-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-03-26T00:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1989-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1989-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1989-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1990-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "1990-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "1990-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1990-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1990-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1990-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1990-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1990-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1991-03-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1991-03-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1991-09-28T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1991-09-28T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1991-09-28T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1991-09-28T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1991-03-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1991-03-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1991-09-28T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1991-09-28T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1992-03-28T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1992-03-28T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1992-03-28T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1992-09-26T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1992-09-26T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1992-09-26T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1992-09-26T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1992-03-28T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1992-03-28T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1992-03-28T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1992-09-26T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1992-09-26T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1993-03-27T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1993-03-27T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1993-03-27T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1993-09-25T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1993-09-25T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1993-09-25T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1993-09-25T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1993-03-27T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1993-03-27T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1993-03-27T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1993-09-25T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1993-09-25T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1994-03-26T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1994-03-26T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1994-03-26T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1994-09-24T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1994-09-24T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1994-09-24T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1994-09-24T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1994-03-26T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1994-03-26T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1994-03-26T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1994-09-24T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1994-09-24T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1995-03-25T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1995-03-25T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1995-03-25T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1995-09-23T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1995-09-23T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1995-09-23T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1995-09-23T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1995-03-25T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1995-03-25T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-25T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1995-03-25T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1995-09-23T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1995-09-23T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1996-03-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1996-03-30T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1996-03-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1996-10-26T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1996-10-26T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1996-10-26T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1996-10-26T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1996-03-30T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1996-03-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-30T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1996-03-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1996-10-26T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1996-10-26T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1997-03-29T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1997-03-29T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1997-03-29T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1997-10-25T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1997-10-25T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1997-10-25T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1997-10-25T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1997-03-29T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1997-03-29T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-29T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1997-03-29T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-25T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1997-10-25T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-25T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1997-10-25T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1998-03-28T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1998-03-28T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1998-03-28T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1998-10-24T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1998-10-24T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1998-10-24T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1998-10-24T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1998-03-28T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1998-03-28T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-28T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1998-03-28T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-24T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1998-10-24T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-24T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1998-10-24T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "1999-03-27T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("1999-03-27T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "1999-03-27T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1999-10-30T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "1999-10-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1999-10-30T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "1999-10-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1999-03-27T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "1999-03-27T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-27T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "1999-03-27T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-30T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "1999-10-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-30T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "1999-10-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "2000-03-25T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("2000-03-25T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "2000-03-25T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("2000-10-28T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "2000-10-28T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2000-10-28T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "2000-10-28T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2000-03-25T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2000-03-25T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-25T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2000-03-25T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-28T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2000-10-28T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-28T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2000-10-28T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "2001-03-24T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("2001-03-24T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "2001-03-24T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("2001-10-27T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "2001-10-27T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2001-10-27T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "2001-10-27T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2001-03-24T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2001-03-24T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-24T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2001-03-24T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-27T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2001-10-27T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-27T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2001-10-27T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "2002-03-30T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("2002-03-30T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "2002-03-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("2002-10-26T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "2002-10-26T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2002-10-26T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "2002-10-26T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2002-03-30T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2002-03-30T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-30T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2002-03-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-26T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2002-10-26T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-26T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2002-10-26T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "2003-03-29T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("2003-03-29T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "2003-03-29T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("2003-10-25T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "2003-10-25T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2003-10-25T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "2003-10-25T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2003-03-29T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2003-03-29T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-29T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2003-03-29T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-25T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2003-10-25T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-25T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2003-10-25T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "2004-03-27T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("2004-03-27T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "2004-03-27T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("2004-10-30T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "2004-10-30T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2004-10-30T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "2004-10-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2004-03-27T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2004-03-27T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-27T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2004-03-27T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-30T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2004-10-30T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-30T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2004-10-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "2005-03-26T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("2005-03-26T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "2005-03-26T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("2005-10-29T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "2005-10-29T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2005-10-29T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "2005-10-29T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2005-03-26T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2005-03-26T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-26T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2005-03-26T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-29T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2005-10-29T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-29T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2005-10-29T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "00:59:59", "2006-03-25T22:59:59+00:00 should be 00:59:59 EET"); - t.equal(moment("2006-03-25T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:00:00", "2006-03-25T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("2006-10-28T22:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:59:59", "2006-10-28T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("2006-10-28T23:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "01:00:00", "2006-10-28T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("2006-03-25T22:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2006-03-25T22:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-25T23:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2006-03-25T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-28T22:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2006-10-28T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-28T23:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2006-10-28T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2011-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2011-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2011-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2011-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Istanbul").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Istanbul").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Istanbul").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Istanbul").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Istanbul").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/kaliningrad.js b/tests/europe/kaliningrad.js deleted file mode 100644 index 0fc73fac..00000000 --- a/tests/europe/kaliningrad.js +++ /dev/null @@ -1,546 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Kaliningrad"] = { - - "1916" : function (t) { - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "22:59:59", "1916-04-30T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "00:00:00", "1916-04-30T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Kaliningrad").zone(), -60, "1916-04-30T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1916-04-30T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1918-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -60, "1918-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1940-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1940-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -60, "1940-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1940-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - t.equal(moment("1944-12-31T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1944-12-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1944-12-31T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:00:00", "1944-12-31T23:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Kaliningrad").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-12-31T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -60, "1944-12-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-12-31T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1944-12-31T23:00:00+00:00 should be -120 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-28T21:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1945-04-28T21:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1945-04-28T22:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:00:00", "1945-04-28T22:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1945-10-31T20:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1945-10-31T20:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1945-10-31T21:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:00:00", "1945-10-31T21:00:00+00:00 should be 23:00:00 CET"); - t.equal(moment("1945-12-31T21:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1945-12-31T21:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1945-12-31T22:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:00:00", "1945-12-31T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1945-04-28T21:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1945-04-28T21:59:59+00:00 should be -120 minutes offset in CET"); - t.equal(moment("1945-04-28T22:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1945-04-28T22:00:00+00:00 should be -180 minutes offset in CEST"); - t.equal(moment("1945-10-31T20:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1945-10-31T20:59:59+00:00 should be -180 minutes offset in CEST"); - t.equal(moment("1945-10-31T21:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1945-10-31T21:00:00+00:00 should be -120 minutes offset in CET"); - t.equal(moment("1945-12-31T21:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1945-12-31T21:59:59+00:00 should be -120 minutes offset in CET"); - t.equal(moment("1945-12-31T22:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1945-12-31T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1990-03-24T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1990-03-24T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1990-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1990-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1990-03-24T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -240, "1990-03-24T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -240, "1990-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1990-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1991-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1991-03-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1991-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1991-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1991-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1991-03-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1991-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1991-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T20:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "22:59:59", "1992-03-28T20:59:59+00:00 should be 22:59:59 EET"); - t.equal(moment("1992-03-28T21:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "00:00:00", "1992-03-28T21:00:00+00:00 should be 00:00:00 EEST"); - t.equal(moment("1992-09-26T19:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "22:59:59", "1992-09-26T19:59:59+00:00 should be 22:59:59 EEST"); - t.equal(moment("1992-09-26T20:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "22:00:00", "1992-09-26T20:00:00+00:00 should be 22:00:00 EET"); - - t.equal(moment("1992-03-28T20:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1992-03-28T20:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T21:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1992-03-28T21:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T19:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1992-09-26T19:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T20:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1992-09-26T20:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1993-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1993-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1993-09-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1993-09-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1993-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1993-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1993-09-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1993-09-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1994-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1994-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1994-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1994-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1994-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1994-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1994-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1994-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1995-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1995-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1995-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1995-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1995-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1995-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1995-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1995-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1996-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1996-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1996-10-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1996-10-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1996-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1996-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1996-10-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1996-10-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1997-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1997-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1997-10-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1997-10-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1997-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1997-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1997-10-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1997-10-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1998-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1998-03-29T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1998-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1998-10-24T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1998-10-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1998-10-25T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1998-10-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1998-03-28T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1998-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1998-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-24T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1998-10-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1998-10-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "1999-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1999-03-28T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "1999-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1999-10-30T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "1999-10-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1999-10-31T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "1999-10-31T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1999-03-27T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "1999-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "1999-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-30T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "1999-10-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "1999-10-31T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2000-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2000-03-26T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2000-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2000-10-28T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2000-10-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2000-10-29T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2000-10-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2000-03-25T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2000-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2000-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-28T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2000-10-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2000-10-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2001-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2001-03-25T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2001-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2001-10-27T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2001-10-27T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2001-10-28T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2001-10-28T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2001-03-24T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2001-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2001-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-27T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2001-10-27T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2001-10-28T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2002-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2002-03-31T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2002-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2002-10-26T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2002-10-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2002-10-27T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2002-10-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2002-03-30T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2002-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2002-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-26T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2002-10-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2002-10-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2003-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2003-03-30T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2003-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2003-10-25T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2003-10-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2003-10-26T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2003-10-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2003-03-29T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2003-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2003-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-25T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2003-10-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2003-10-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2004-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2004-03-28T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2004-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2004-10-30T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2004-10-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2004-10-31T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2004-10-31T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2004-03-27T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2004-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2004-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-30T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2004-10-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2004-10-31T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2005-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2005-03-27T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2005-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2005-10-29T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2005-10-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2005-10-30T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2005-10-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2005-03-26T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2005-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2005-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-29T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2005-10-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2005-10-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2006-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2006-03-26T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2006-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2006-10-28T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2006-10-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2006-10-29T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2006-10-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2006-03-25T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2006-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2006-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-28T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2006-10-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2006-10-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2007-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2007-03-25T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2007-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2007-10-27T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2007-10-27T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2007-10-28T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2007-10-28T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2007-03-24T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2007-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2007-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-27T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2007-10-27T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2007-10-28T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2008-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2008-03-30T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2008-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2008-10-25T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2008-10-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2008-10-26T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2008-10-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2008-03-29T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2008-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2008-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-25T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2008-10-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2008-10-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2009-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2009-03-29T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2009-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2009-10-24T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2009-10-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2009-10-25T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2009-10-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2009-03-28T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2009-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2009-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-24T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2009-10-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2009-10-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2010-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2010-03-28T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2010-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2010-10-30T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:59:59", "2010-10-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2010-10-31T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "02:00:00", "2010-10-31T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2010-03-27T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2010-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2010-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-30T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -180, "2010-10-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -120, "2010-10-31T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T23:59:59+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "01:59:59", "2011-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2011-03-27T00:00:00+00:00").tz("Europe/Kaliningrad").format("HH:mm:ss"), "03:00:00", "2011-03-27T00:00:00+00:00 should be 03:00:00 FET"); - - t.equal(moment("2011-03-26T23:59:59+00:00").tz("Europe/Kaliningrad").zone(), -120, "2011-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T00:00:00+00:00").tz("Europe/Kaliningrad").zone(), -180, "2011-03-27T00:00:00+00:00 should be -180 minutes offset in FET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/kiev.js b/tests/europe/kiev.js deleted file mode 100644 index 46bee2f0..00000000 --- a/tests/europe/kiev.js +++ /dev/null @@ -1,842 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Kiev"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T21:57:55+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1924-05-01T21:57:55+00:00 should be 23:59:59 KMT"); - t.equal(moment("1924-05-01T21:57:56+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:57:56", "1924-05-01T21:57:56+00:00 should be 23:57:56 EET"); - - t.equal(moment("1924-05-01T21:57:55+00:00").tz("Europe/Kiev").zone(), -7324 / 60, "1924-05-01T21:57:55+00:00 should be -7324 / 60 minutes offset in KMT"); - t.equal(moment("1924-05-01T21:57:56+00:00").tz("Europe/Kiev").zone(), -120, "1924-05-01T21:57:56+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1930-06-20T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:00:00", "1930-06-20T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1930-06-20T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1930-06-20T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-09-19T20:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1941-09-19T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1941-09-19T21:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:00:00", "1941-09-19T21:00:00+00:00 should be 23:00:00 CEST"); - - t.equal(moment("1941-09-19T20:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1941-09-19T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1941-09-19T21:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1941-09-19T21:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Kiev").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - t.equal(moment("1943-11-05T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1943-11-05T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1943-11-05T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:00:00", "1943-11-05T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Kiev").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-11-05T22:59:59+00:00").tz("Europe/Kiev").zone(), -60, "1943-11-05T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-11-05T23:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1943-11-05T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Kiev").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Kiev").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Kiev").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Kiev").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Kiev").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Kiev").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Kiev").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Kiev").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Kiev").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Kiev").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Kiev").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Kiev").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Kiev").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Kiev").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Kiev").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Kiev").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Kiev").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Kiev").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-06-30T22:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:59:59", "1990-06-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1990-06-30T23:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:00:00", "1990-06-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1990-06-30T22:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1990-06-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1990-06-30T23:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1990-06-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1992-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:00:00", "1992-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1992-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1992-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1993-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:00:00", "1993-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1993-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:00:00", "1993-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1993-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1993-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1993-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1993-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1994-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "01:00:00", "1994-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:59:59", "1994-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "23:00:00", "1994-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1994-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1994-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1994-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1994-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1995-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "1995-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "1995-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1995-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1995-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1995-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1995-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1995-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1996-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "1996-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "1996-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1996-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1996-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1996-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1996-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1996-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Kiev").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Kiev").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Kiev").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Kiev").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Kiev").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/lisbon.js b/tests/europe/lisbon.js deleted file mode 100644 index 06aee9ee..00000000 --- a/tests/europe/lisbon.js +++ /dev/null @@ -1,1536 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Lisbon"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-01T00:36:31+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1912-01-01T00:36:31+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-01T00:36:32+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:36:32", "1912-01-01T00:36:32+00:00 should be 00:36:32 WET"); - - t.equal(moment("1912-01-01T00:36:31+00:00").tz("Europe/Lisbon").zone(), 2192 / 60, "1912-01-01T00:36:31+00:00 should be 2192 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-01T00:36:32+00:00").tz("Europe/Lisbon").zone(), 0, "1912-01-01T00:36:32+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-06-17T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1916-06-17T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1916-06-17T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1916-06-17T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1916-10-31T23:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1916-10-31T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1916-11-01T00:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1916-11-01T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1916-06-17T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1916-06-17T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1916-06-17T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1916-06-17T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1916-10-31T23:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1916-10-31T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1916-11-01T00:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1916-11-01T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-02-28T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1917-02-28T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1917-02-28T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1917-02-28T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1917-10-14T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1917-10-14T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1917-10-14T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1917-10-14T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1917-02-28T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1917-02-28T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1917-02-28T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1917-02-28T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-14T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1917-10-14T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-14T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1917-10-14T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-01T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1918-03-01T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1918-03-01T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1918-03-01T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1918-10-14T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1918-10-14T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1918-10-14T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1918-10-14T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1918-03-01T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1918-03-01T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1918-03-01T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1918-03-01T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-14T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1918-10-14T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-14T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1918-10-14T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-02-28T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1919-02-28T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1919-02-28T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1919-02-28T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1919-10-14T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1919-10-14T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1919-10-14T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1919-10-14T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1919-02-28T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1919-02-28T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1919-02-28T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1919-02-28T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-14T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1919-10-14T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-14T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1919-10-14T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-02-29T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1920-02-29T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1920-02-29T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1920-02-29T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1920-10-14T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1920-10-14T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1920-10-14T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1920-10-14T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1920-02-29T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1920-02-29T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1920-02-29T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1920-02-29T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-14T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1920-10-14T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-14T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1920-10-14T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-02-28T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1921-02-28T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1921-02-28T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1921-02-28T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1921-10-14T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1921-10-14T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1921-10-14T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1921-10-14T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1921-02-28T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1921-02-28T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1921-02-28T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1921-02-28T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-14T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1921-10-14T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-14T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1921-10-14T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-16T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1924-04-16T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1924-04-16T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1924-04-16T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1924-10-14T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1924-10-14T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1924-10-14T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1924-10-14T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1924-04-16T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1924-04-16T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1924-04-16T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1924-04-16T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-14T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1924-10-14T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-14T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1924-10-14T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1926-04-17T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1926-04-17T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1926-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1926-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1926-04-17T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1926-04-17T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1926-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1926-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1927-04-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1927-04-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1927-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1927-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1927-04-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1927-04-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1927-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1927-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1928-04-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1928-04-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1928-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1928-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1928-04-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1928-04-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1928-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1928-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1929-04-20T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1929-04-20T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1929-10-05T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1929-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1929-10-05T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1929-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1929-04-20T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1929-04-20T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-05T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1929-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-05T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1929-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-18T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1931-04-18T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1931-04-18T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1931-04-18T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1931-10-03T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1931-10-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1931-10-03T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1931-10-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1931-04-18T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1931-04-18T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1931-04-18T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1931-04-18T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-03T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1931-10-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-03T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1931-10-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-02T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1932-04-02T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1932-04-02T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1932-04-02T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1932-10-01T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1932-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1932-10-01T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1932-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1932-04-02T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1932-04-02T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1932-04-02T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1932-04-02T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-01T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1932-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-01T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1932-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-07T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1934-04-07T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1934-04-07T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1934-04-07T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1934-10-06T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1934-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1934-10-06T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1934-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1934-04-07T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1934-04-07T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1934-04-07T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1934-04-07T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-06T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1934-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-06T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1934-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-30T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1935-03-30T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1935-03-30T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1935-03-30T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1935-10-05T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1935-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1935-10-05T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1935-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1935-03-30T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1935-03-30T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1935-03-30T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1935-03-30T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-05T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1935-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-05T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1935-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-18T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1936-04-18T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1936-04-18T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1936-04-18T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1936-10-03T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1936-10-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1936-10-03T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1936-10-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1936-04-18T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1936-04-18T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1936-04-18T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1936-04-18T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-03T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1936-10-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-03T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1936-10-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-03T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1937-04-03T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1937-04-03T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1937-04-03T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1937-10-02T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1937-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1937-10-02T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1937-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1937-04-03T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1937-04-03T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1937-04-03T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1937-04-03T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-02T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1937-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-02T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1937-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-26T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1938-03-26T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1938-03-26T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1938-03-26T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1938-10-01T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1938-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1938-10-01T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1938-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1938-03-26T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1938-03-26T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1938-03-26T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1938-03-26T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-01T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1938-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-01T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1938-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-15T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1939-04-15T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1939-04-15T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1939-04-15T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1939-11-18T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1939-11-18T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1939-11-18T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1939-11-18T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1939-04-15T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1939-04-15T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1939-04-15T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1939-04-15T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-18T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1939-11-18T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-18T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1939-11-18T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-24T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1940-02-24T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1940-02-24T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1940-02-24T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1940-10-05T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1940-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1940-10-05T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1940-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1940-02-24T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1940-02-24T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1940-02-24T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1940-02-24T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1940-10-05T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1940-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1940-10-05T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1940-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-04-05T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1941-04-05T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1941-04-05T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1941-04-05T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1941-10-05T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1941-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1941-10-05T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1941-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1941-04-05T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1941-04-05T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1941-04-05T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1941-04-05T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1941-10-05T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1941-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1941-10-05T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1941-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-14T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1942-03-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1942-03-14T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1942-03-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1942-04-25T21:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1942-04-25T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1942-04-25T22:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1942-04-25T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1942-08-15T21:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1942-08-15T21:59:59+00:00 should be 23:59:59 WEMT"); - t.equal(moment("1942-08-15T22:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1942-08-15T22:00:00+00:00 should be 23:00:00 WEST"); - t.equal(moment("1942-10-24T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1942-10-24T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1942-10-24T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1942-10-24T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1942-03-14T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1942-03-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1942-03-14T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1942-03-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1942-04-25T21:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1942-04-25T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1942-04-25T22:00:00+00:00").tz("Europe/Lisbon").zone(), -120, "1942-04-25T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1942-08-15T21:59:59+00:00").tz("Europe/Lisbon").zone(), -120, "1942-08-15T21:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1942-08-15T22:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1942-08-15T22:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1942-10-24T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1942-10-24T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1942-10-24T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1942-10-24T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-13T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1943-03-13T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1943-03-13T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1943-03-13T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1943-04-17T21:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1943-04-17T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1943-04-17T22:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1943-04-17T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1943-08-28T21:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1943-08-28T21:59:59+00:00 should be 23:59:59 WEMT"); - t.equal(moment("1943-08-28T22:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1943-08-28T22:00:00+00:00 should be 23:00:00 WEST"); - t.equal(moment("1943-10-30T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1943-10-30T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1943-10-30T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1943-10-30T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1943-03-13T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1943-03-13T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1943-03-13T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1943-03-13T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1943-04-17T21:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1943-04-17T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1943-04-17T22:00:00+00:00").tz("Europe/Lisbon").zone(), -120, "1943-04-17T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1943-08-28T21:59:59+00:00").tz("Europe/Lisbon").zone(), -120, "1943-08-28T21:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1943-08-28T22:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1943-08-28T22:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1943-10-30T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1943-10-30T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1943-10-30T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1943-10-30T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-03-11T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1944-03-11T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1944-03-11T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1944-03-11T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1944-04-22T21:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1944-04-22T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1944-04-22T22:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1944-04-22T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1944-08-26T21:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1944-08-26T21:59:59+00:00 should be 23:59:59 WEMT"); - t.equal(moment("1944-08-26T22:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1944-08-26T22:00:00+00:00 should be 23:00:00 WEST"); - t.equal(moment("1944-10-28T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1944-10-28T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1944-10-28T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1944-10-28T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1944-03-11T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1944-03-11T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1944-03-11T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1944-03-11T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1944-04-22T21:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1944-04-22T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1944-04-22T22:00:00+00:00").tz("Europe/Lisbon").zone(), -120, "1944-04-22T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1944-08-26T21:59:59+00:00").tz("Europe/Lisbon").zone(), -120, "1944-08-26T21:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1944-08-26T22:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1944-08-26T22:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1944-10-28T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1944-10-28T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1944-10-28T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1944-10-28T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-03-10T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1945-03-10T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1945-03-10T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1945-03-10T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1945-04-21T21:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1945-04-21T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1945-04-21T22:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1945-04-21T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1945-08-25T21:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1945-08-25T21:59:59+00:00 should be 23:59:59 WEMT"); - t.equal(moment("1945-08-25T22:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1945-08-25T22:00:00+00:00 should be 23:00:00 WEST"); - t.equal(moment("1945-10-27T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1945-10-27T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1945-10-27T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1945-10-27T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1945-03-10T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1945-03-10T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1945-03-10T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1945-03-10T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1945-04-21T21:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1945-04-21T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1945-04-21T22:00:00+00:00").tz("Europe/Lisbon").zone(), -120, "1945-04-21T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1945-08-25T21:59:59+00:00").tz("Europe/Lisbon").zone(), -120, "1945-08-25T21:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1945-08-25T22:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1945-08-25T22:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1945-10-27T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1945-10-27T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1945-10-27T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1945-10-27T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-06T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "22:59:59", "1946-04-06T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1946-04-06T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1946-04-06T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1946-10-05T22:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1946-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1946-10-05T23:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:00:00", "1946-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1946-04-06T22:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1946-04-06T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1946-04-06T23:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1946-04-06T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1946-10-05T22:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1946-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1946-10-05T23:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1946-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-06T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1947-04-06T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1947-04-06T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1947-04-06T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1947-10-05T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1947-10-05T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1947-10-05T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1947-10-05T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1947-04-06T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1947-04-06T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1947-04-06T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1947-04-06T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1947-10-05T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1947-10-05T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1947-10-05T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1947-10-05T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-04T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1948-04-04T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1948-04-04T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1948-04-04T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1948-10-03T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1948-10-03T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1948-10-03T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1948-10-03T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1948-04-04T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1948-04-04T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1948-04-04T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1948-04-04T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1948-10-03T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1948-10-03T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1948-10-03T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1948-10-03T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1949-04-03T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1949-04-03T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1949-10-02T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1949-10-02T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1949-10-02T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1949-10-02T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1949-04-03T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1949-04-03T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1949-10-02T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1949-10-02T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1949-10-02T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1949-10-02T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-01T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1951-04-01T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1951-04-01T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1951-10-07T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1951-10-07T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1951-10-07T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1951-10-07T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1951-04-01T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1951-04-01T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1951-04-01T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1951-04-01T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1951-10-07T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1951-10-07T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1951-10-07T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1951-10-07T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-06T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1952-04-06T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1952-04-06T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1952-04-06T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1952-10-05T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1952-10-05T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1952-10-05T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1952-10-05T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1952-04-06T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1952-04-06T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1952-04-06T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1952-04-06T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1952-10-05T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1952-10-05T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1952-10-05T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1952-10-05T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-05T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1953-04-05T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1953-04-05T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1953-04-05T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1953-10-04T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1953-10-04T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1953-10-04T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1953-10-04T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1953-04-05T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1953-04-05T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1953-04-05T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1953-04-05T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1953-10-04T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1953-10-04T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1953-10-04T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1953-10-04T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-04T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1954-04-04T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1954-04-04T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1954-04-04T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1954-10-03T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1954-10-03T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1954-10-03T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1954-10-03T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1954-04-04T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1954-04-04T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1954-04-04T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1954-04-04T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1954-10-03T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1954-10-03T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1954-10-03T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1954-10-03T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-03T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1955-04-03T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1955-04-03T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1955-04-03T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1955-10-02T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1955-10-02T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1955-10-02T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1955-10-02T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1955-04-03T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1955-04-03T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1955-04-03T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1955-04-03T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1955-10-02T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1955-10-02T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1955-10-02T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1955-10-02T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-01T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1956-04-01T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1956-04-01T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1956-04-01T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1956-10-07T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1956-10-07T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1956-10-07T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1956-10-07T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1956-04-01T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1956-04-01T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1956-04-01T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1956-04-01T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1956-10-07T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1956-10-07T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1956-10-07T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1956-10-07T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-07T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1957-04-07T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1957-04-07T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1957-04-07T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1957-10-06T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1957-10-06T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1957-10-06T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1957-10-06T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1957-04-07T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1957-04-07T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1957-04-07T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1957-04-07T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1957-10-06T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1957-10-06T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1957-10-06T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1957-10-06T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-06T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1958-04-06T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1958-04-06T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1958-04-06T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1958-10-05T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1958-10-05T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1958-10-05T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1958-10-05T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1958-04-06T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1958-04-06T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1958-04-06T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1958-04-06T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1958-10-05T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1958-10-05T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1958-10-05T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1958-10-05T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-05T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1959-04-05T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1959-04-05T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1959-04-05T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1959-10-04T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1959-10-04T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1959-10-04T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1959-10-04T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1959-04-05T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1959-04-05T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1959-04-05T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1959-04-05T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1959-10-04T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1959-10-04T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1959-10-04T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1959-10-04T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-03T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1960-04-03T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1960-04-03T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1960-04-03T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1960-10-02T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1960-10-02T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1960-10-02T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1960-10-02T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1960-04-03T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1960-04-03T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1960-04-03T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1960-04-03T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1960-10-02T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1960-10-02T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1960-10-02T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1960-10-02T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-04-02T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1961-04-02T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1961-04-02T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1961-04-02T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1961-10-01T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1961-10-01T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1961-10-01T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1961-10-01T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1961-04-02T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1961-04-02T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1961-04-02T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1961-04-02T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1961-10-01T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1961-10-01T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1961-10-01T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1961-10-01T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-04-01T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1962-04-01T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1962-04-01T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1962-04-01T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1962-10-07T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1962-10-07T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1962-10-07T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1962-10-07T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1962-04-01T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1962-04-01T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1962-04-01T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1962-04-01T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1962-10-07T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1962-10-07T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1962-10-07T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1962-10-07T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-04-07T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1963-04-07T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1963-04-07T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1963-04-07T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1963-10-06T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1963-10-06T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1963-10-06T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1963-10-06T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1963-04-07T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1963-04-07T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1963-04-07T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1963-04-07T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1963-10-06T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1963-10-06T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1963-10-06T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1963-10-06T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-04-05T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1964-04-05T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1964-04-05T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1964-04-05T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1964-10-04T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1964-10-04T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1964-10-04T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1964-10-04T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1964-04-05T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1964-04-05T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1964-04-05T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1964-04-05T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1964-10-04T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1964-10-04T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1964-10-04T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1964-10-04T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-04T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1965-04-04T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1965-04-04T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1965-04-04T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1965-10-03T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1965-10-03T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1965-10-03T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1965-10-03T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1965-04-04T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1965-04-04T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1965-04-04T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1965-04-04T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1965-10-03T01:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1965-10-03T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1965-10-03T02:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1965-10-03T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-04-03T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1966-04-03T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1966-04-03T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1966-04-03T02:00:00+00:00 should be 03:00:00 CET"); - - t.equal(moment("1966-04-03T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1966-04-03T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1966-04-03T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1966-04-03T02:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-09-25T23:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1976-09-25T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1976-09-26T00:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1976-09-26T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1976-09-25T23:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1976-09-25T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1976-09-26T00:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1976-09-26T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-26T23:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1977-03-26T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1977-03-27T00:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1977-03-27T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1977-09-24T23:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1977-09-24T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1977-09-25T00:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1977-09-25T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1977-03-26T23:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1977-03-26T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1977-03-27T00:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1977-03-27T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-24T23:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1977-09-24T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-25T00:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1977-09-25T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-01T23:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1978-04-01T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1978-04-02T00:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1978-04-02T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1978-09-30T23:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1978-09-30T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1978-10-01T00:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:00:00", "1978-10-01T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1978-04-01T23:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1978-04-01T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1978-04-02T00:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1978-04-02T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-09-30T23:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1978-09-30T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-10-01T00:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1978-10-01T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-31T23:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1979-03-31T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1979-04-01T00:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1979-04-01T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1979-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1979-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1979-03-31T23:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1979-03-31T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1979-04-01T00:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1979-04-01T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1979-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1979-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-29T23:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "23:59:59", "1980-03-29T23:59:59+00:00 should be 23:59:59 WET"); - t.equal(moment("1980-03-30T00:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1980-03-30T00:00:00+00:00 should be 01:00:00 WEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1980-09-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1980-09-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1980-03-29T23:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1980-03-29T23:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1980-03-30T00:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1980-03-30T00:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1980-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1980-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1981-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1981-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1981-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1981-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1981-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1981-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1981-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1981-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1982-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1982-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1982-09-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1982-09-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1982-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1982-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1982-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1982-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T01:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1983-03-27T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1983-03-27T02:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1983-03-27T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1983-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1983-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1983-03-27T01:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1983-03-27T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1983-03-27T02:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1983-03-27T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1983-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1983-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1984-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1984-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1984-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1984-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1984-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1984-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1984-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1984-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1985-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1985-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1985-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1985-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1985-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1985-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1985-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1985-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1986-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1986-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1986-09-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1986-09-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1986-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1986-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1986-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1986-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1987-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1987-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1987-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1987-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1987-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1987-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1987-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1987-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1988-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1988-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1988-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1988-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1988-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1988-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1988-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1988-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1989-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1989-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1989-09-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1989-09-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1989-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1989-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1989-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1989-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1990-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1990-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1990-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1990-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1990-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1990-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1990-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1990-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1991-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1991-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1991-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1991-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1991-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1991-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1991-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1991-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1992-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1992-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1992-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1992-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1992-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1992-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Lisbon").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1996-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1996-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1996-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1996-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1996-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1996-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1997-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1997-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1997-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1997-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1997-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1997-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1997-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1997-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1998-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1998-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1998-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1998-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1998-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1998-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1998-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1998-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "1999-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "1999-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "1999-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "1999-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "1999-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "1999-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "1999-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "1999-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2000-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2000-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2000-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2000-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2000-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2000-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2000-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2000-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2001-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2001-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2001-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2001-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2001-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2001-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2001-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2001-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2002-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2002-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2002-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2002-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2002-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2002-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2002-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2002-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2003-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2003-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2003-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2003-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2003-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2003-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2003-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2003-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2004-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2004-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2004-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2004-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2004-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2004-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2004-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2004-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2005-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2005-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2005-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2005-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2005-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2005-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2005-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2005-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2006-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2006-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2006-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2006-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2006-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2006-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2006-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2006-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2007-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2007-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2007-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2007-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2007-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2007-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2007-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2007-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2008-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2008-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2008-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2008-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2008-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2008-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2008-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2008-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2009-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2009-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2009-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2009-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2009-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2009-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2009-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2009-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2010-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2010-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2010-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2010-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2010-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2010-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2010-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2010-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2011-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2011-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2011-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2011-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2011-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2011-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2011-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2011-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2012-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2012-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2012-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2012-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2012-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2012-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2012-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2012-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2013-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2013-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2013-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2013-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2013-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2013-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2013-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2013-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2014-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2014-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2014-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2014-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2014-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2014-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2014-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2014-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2015-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2015-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2015-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2015-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2015-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2015-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2015-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2015-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2016-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2016-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2016-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2016-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2016-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2016-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2016-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2016-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2017-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2017-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2017-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2017-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2017-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2017-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2017-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2017-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2018-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2018-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2018-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2018-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2018-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2018-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2018-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2018-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2019-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2019-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2019-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2019-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2019-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2019-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2019-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2019-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2020-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2020-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2020-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2020-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2020-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2020-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2020-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2020-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2021-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2021-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2021-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2021-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2021-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2021-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2021-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2021-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2022-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2022-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2022-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2022-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2022-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2022-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2022-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2022-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2023-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2023-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2023-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2023-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2023-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2023-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2023-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2023-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2024-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2024-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2024-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2024-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2024-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2024-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2024-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2024-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2025-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2025-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2025-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2025-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2025-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2025-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2025-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2025-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2026-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2026-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2026-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2026-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2026-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2026-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2026-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2026-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2027-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2027-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2027-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2027-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2027-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2027-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2027-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2027-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2028-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2028-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2028-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2028-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2028-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2028-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2028-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2028-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2029-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2029-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2029-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2029-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2029-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2029-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2029-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2029-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2030-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2030-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2030-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2030-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2030-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2030-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2030-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2030-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2031-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2031-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2031-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2031-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2031-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2031-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2031-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2031-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2032-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2032-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2032-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2032-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2032-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2032-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2032-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2032-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2033-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2033-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2033-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2033-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2033-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2033-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2033-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2033-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2034-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2034-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2034-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2034-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2034-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2034-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2034-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2034-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2035-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2035-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2035-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2035-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2035-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2035-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2035-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2035-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2036-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2036-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2036-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2036-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2036-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2036-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2036-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2036-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "00:59:59", "2037-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "02:00:00", "2037-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:59:59", "2037-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Lisbon").format("HH:mm:ss"), "01:00:00", "2037-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Lisbon").zone(), 0, "2037-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Lisbon").zone(), -60, "2037-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Lisbon").zone(), -60, "2037-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Lisbon").zone(), 0, "2037-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/london.js b/tests/europe/london.js deleted file mode 100644 index b644cd82..00000000 --- a/tests/europe/london.js +++ /dev/null @@ -1,1688 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/London"] = { - - "1916" : function (t) { - t.equal(moment("1916-05-21T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1916-05-21T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1916-05-21T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1916-05-21T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1916-10-01T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1916-10-01T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1916-10-01T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1916-10-01T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1916-05-21T01:59:59+00:00").tz("Europe/London").zone(), 0, "1916-05-21T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1916-05-21T02:00:00+00:00").tz("Europe/London").zone(), -60, "1916-05-21T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1916-10-01T01:59:59+00:00").tz("Europe/London").zone(), -60, "1916-10-01T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1916-10-01T02:00:00+00:00").tz("Europe/London").zone(), 0, "1916-10-01T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-08T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1917-04-08T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1917-04-08T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1917-04-08T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1917-09-17T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1917-09-17T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1917-09-17T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1917-09-17T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1917-04-08T01:59:59+00:00").tz("Europe/London").zone(), 0, "1917-04-08T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1917-04-08T02:00:00+00:00").tz("Europe/London").zone(), -60, "1917-04-08T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1917-09-17T01:59:59+00:00").tz("Europe/London").zone(), -60, "1917-09-17T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1917-09-17T02:00:00+00:00").tz("Europe/London").zone(), 0, "1917-09-17T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-24T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1918-03-24T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1918-03-24T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1918-03-24T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1918-09-30T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1918-09-30T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1918-09-30T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1918-09-30T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1918-03-24T01:59:59+00:00").tz("Europe/London").zone(), 0, "1918-03-24T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1918-03-24T02:00:00+00:00").tz("Europe/London").zone(), -60, "1918-03-24T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1918-09-30T01:59:59+00:00").tz("Europe/London").zone(), -60, "1918-09-30T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1918-09-30T02:00:00+00:00").tz("Europe/London").zone(), 0, "1918-09-30T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1919-03-30T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1919-03-30T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1919-03-30T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1919-09-29T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1919-09-29T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1919-09-29T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1919-09-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1919-03-30T01:59:59+00:00").tz("Europe/London").zone(), 0, "1919-03-30T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1919-03-30T02:00:00+00:00").tz("Europe/London").zone(), -60, "1919-03-30T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1919-09-29T01:59:59+00:00").tz("Europe/London").zone(), -60, "1919-09-29T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1919-09-29T02:00:00+00:00").tz("Europe/London").zone(), 0, "1919-09-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-03-28T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1920-03-28T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1920-03-28T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1920-03-28T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1920-10-25T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1920-10-25T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1920-10-25T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1920-10-25T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1920-03-28T01:59:59+00:00").tz("Europe/London").zone(), 0, "1920-03-28T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1920-03-28T02:00:00+00:00").tz("Europe/London").zone(), -60, "1920-03-28T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1920-10-25T01:59:59+00:00").tz("Europe/London").zone(), -60, "1920-10-25T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1920-10-25T02:00:00+00:00").tz("Europe/London").zone(), 0, "1920-10-25T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-03T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1921-04-03T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1921-04-03T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1921-04-03T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1921-10-03T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1921-10-03T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1921-10-03T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1921-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1921-04-03T01:59:59+00:00").tz("Europe/London").zone(), 0, "1921-04-03T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1921-04-03T02:00:00+00:00").tz("Europe/London").zone(), -60, "1921-04-03T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1921-10-03T01:59:59+00:00").tz("Europe/London").zone(), -60, "1921-10-03T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1921-10-03T02:00:00+00:00").tz("Europe/London").zone(), 0, "1921-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-26T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1922-03-26T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1922-03-26T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1922-03-26T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1922-10-08T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1922-10-08T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1922-10-08T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1922-10-08T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1922-03-26T01:59:59+00:00").tz("Europe/London").zone(), 0, "1922-03-26T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1922-03-26T02:00:00+00:00").tz("Europe/London").zone(), -60, "1922-03-26T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1922-10-08T01:59:59+00:00").tz("Europe/London").zone(), -60, "1922-10-08T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1922-10-08T02:00:00+00:00").tz("Europe/London").zone(), 0, "1922-10-08T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-22T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1923-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1923-04-22T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1923-04-22T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1923-09-16T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1923-09-16T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1923-09-16T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1923-09-16T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1923-04-22T01:59:59+00:00").tz("Europe/London").zone(), 0, "1923-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1923-04-22T02:00:00+00:00").tz("Europe/London").zone(), -60, "1923-04-22T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1923-09-16T01:59:59+00:00").tz("Europe/London").zone(), -60, "1923-09-16T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1923-09-16T02:00:00+00:00").tz("Europe/London").zone(), 0, "1923-09-16T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-13T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1924-04-13T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1924-04-13T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1924-04-13T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1924-09-21T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1924-09-21T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1924-09-21T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1924-09-21T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1924-04-13T01:59:59+00:00").tz("Europe/London").zone(), 0, "1924-04-13T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1924-04-13T02:00:00+00:00").tz("Europe/London").zone(), -60, "1924-04-13T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1924-09-21T01:59:59+00:00").tz("Europe/London").zone(), -60, "1924-09-21T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1924-09-21T02:00:00+00:00").tz("Europe/London").zone(), 0, "1924-09-21T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-19T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1925-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1925-04-19T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1925-04-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1925-10-04T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1925-10-04T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1925-10-04T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1925-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1925-04-19T01:59:59+00:00").tz("Europe/London").zone(), 0, "1925-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1925-04-19T02:00:00+00:00").tz("Europe/London").zone(), -60, "1925-04-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1925-10-04T01:59:59+00:00").tz("Europe/London").zone(), -60, "1925-10-04T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1925-10-04T02:00:00+00:00").tz("Europe/London").zone(), 0, "1925-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-18T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1926-04-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1926-04-18T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1926-04-18T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1926-10-03T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1926-10-03T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1926-10-03T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1926-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1926-04-18T01:59:59+00:00").tz("Europe/London").zone(), 0, "1926-04-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1926-04-18T02:00:00+00:00").tz("Europe/London").zone(), -60, "1926-04-18T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1926-10-03T01:59:59+00:00").tz("Europe/London").zone(), -60, "1926-10-03T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1926-10-03T02:00:00+00:00").tz("Europe/London").zone(), 0, "1926-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-10T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1927-04-10T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1927-04-10T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1927-04-10T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1927-10-02T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1927-10-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1927-10-02T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1927-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1927-04-10T01:59:59+00:00").tz("Europe/London").zone(), 0, "1927-04-10T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1927-04-10T02:00:00+00:00").tz("Europe/London").zone(), -60, "1927-04-10T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1927-10-02T01:59:59+00:00").tz("Europe/London").zone(), -60, "1927-10-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1927-10-02T02:00:00+00:00").tz("Europe/London").zone(), 0, "1927-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-22T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1928-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1928-04-22T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1928-04-22T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1928-10-07T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1928-10-07T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1928-10-07T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1928-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1928-04-22T01:59:59+00:00").tz("Europe/London").zone(), 0, "1928-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1928-04-22T02:00:00+00:00").tz("Europe/London").zone(), -60, "1928-04-22T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1928-10-07T01:59:59+00:00").tz("Europe/London").zone(), -60, "1928-10-07T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1928-10-07T02:00:00+00:00").tz("Europe/London").zone(), 0, "1928-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-21T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1929-04-21T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1929-04-21T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1929-04-21T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1929-10-06T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1929-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1929-04-21T01:59:59+00:00").tz("Europe/London").zone(), 0, "1929-04-21T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1929-04-21T02:00:00+00:00").tz("Europe/London").zone(), -60, "1929-04-21T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/London").zone(), -60, "1929-10-06T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/London").zone(), 0, "1929-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1930-04-13T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1930-04-13T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1930-10-05T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1930-10-05T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/London").zone(), 0, "1930-04-13T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/London").zone(), -60, "1930-04-13T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/London").zone(), -60, "1930-10-05T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/London").zone(), 0, "1930-10-05T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1931-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1931-04-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1931-10-04T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1931-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/London").zone(), 0, "1931-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/London").zone(), -60, "1931-04-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/London").zone(), -60, "1931-10-04T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/London").zone(), 0, "1931-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-17T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1932-04-17T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1932-04-17T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1932-04-17T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1932-10-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1932-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1932-04-17T01:59:59+00:00").tz("Europe/London").zone(), 0, "1932-04-17T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1932-04-17T02:00:00+00:00").tz("Europe/London").zone(), -60, "1932-04-17T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/London").zone(), -60, "1932-10-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/London").zone(), 0, "1932-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-04-09T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1933-04-09T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1933-04-09T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1933-04-09T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1933-10-08T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1933-10-08T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1933-04-09T01:59:59+00:00").tz("Europe/London").zone(), 0, "1933-04-09T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1933-04-09T02:00:00+00:00").tz("Europe/London").zone(), -60, "1933-04-09T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/London").zone(), -60, "1933-10-08T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/London").zone(), 0, "1933-10-08T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-22T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1934-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1934-04-22T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1934-04-22T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1934-10-07T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1934-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1934-04-22T01:59:59+00:00").tz("Europe/London").zone(), 0, "1934-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1934-04-22T02:00:00+00:00").tz("Europe/London").zone(), -60, "1934-04-22T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/London").zone(), -60, "1934-10-07T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/London").zone(), 0, "1934-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-14T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1935-04-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1935-04-14T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1935-04-14T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1935-10-06T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1935-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1935-04-14T01:59:59+00:00").tz("Europe/London").zone(), 0, "1935-04-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1935-04-14T02:00:00+00:00").tz("Europe/London").zone(), -60, "1935-04-14T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/London").zone(), -60, "1935-10-06T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/London").zone(), 0, "1935-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1936-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1936-04-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1936-10-04T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1936-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/London").zone(), 0, "1936-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/London").zone(), -60, "1936-04-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/London").zone(), -60, "1936-10-04T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/London").zone(), 0, "1936-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-18T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1937-04-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1937-04-18T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1937-04-18T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1937-10-03T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1937-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1937-04-18T01:59:59+00:00").tz("Europe/London").zone(), 0, "1937-04-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1937-04-18T02:00:00+00:00").tz("Europe/London").zone(), -60, "1937-04-18T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/London").zone(), -60, "1937-10-03T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/London").zone(), 0, "1937-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-10T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1938-04-10T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1938-04-10T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1938-04-10T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1938-10-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1938-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1938-04-10T01:59:59+00:00").tz("Europe/London").zone(), 0, "1938-04-10T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1938-04-10T02:00:00+00:00").tz("Europe/London").zone(), -60, "1938-04-10T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/London").zone(), -60, "1938-10-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/London").zone(), 0, "1938-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1939-04-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1939-04-16T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1939-11-19T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1939-11-19T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/London").zone(), 0, "1939-04-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/London").zone(), -60, "1939-04-16T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/London").zone(), -60, "1939-11-19T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/London").zone(), 0, "1939-11-19T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1940-02-25T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1940-02-25T02:00:00+00:00 should be 03:00:00 BST"); - - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/London").zone(), 0, "1940-02-25T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/London").zone(), -60, "1940-02-25T02:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-05-04T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1941-05-04T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1941-05-04T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1941-05-04T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1941-08-10T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1941-08-10T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1941-08-10T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1941-08-10T01:00:00+00:00 should be 02:00:00 BST"); - - t.equal(moment("1941-05-04T00:59:59+00:00").tz("Europe/London").zone(), -60, "1941-05-04T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1941-05-04T01:00:00+00:00").tz("Europe/London").zone(), -120, "1941-05-04T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1941-08-10T00:59:59+00:00").tz("Europe/London").zone(), -120, "1941-08-10T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1941-08-10T01:00:00+00:00").tz("Europe/London").zone(), -60, "1941-08-10T01:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-04-05T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1942-04-05T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1942-04-05T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1942-04-05T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1942-08-09T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1942-08-09T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1942-08-09T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1942-08-09T01:00:00+00:00 should be 02:00:00 BST"); - - t.equal(moment("1942-04-05T00:59:59+00:00").tz("Europe/London").zone(), -60, "1942-04-05T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1942-04-05T01:00:00+00:00").tz("Europe/London").zone(), -120, "1942-04-05T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1942-08-09T00:59:59+00:00").tz("Europe/London").zone(), -120, "1942-08-09T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1942-08-09T01:00:00+00:00").tz("Europe/London").zone(), -60, "1942-08-09T01:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-04-04T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1943-04-04T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1943-04-04T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1943-04-04T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1943-08-15T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1943-08-15T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1943-08-15T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1943-08-15T01:00:00+00:00 should be 02:00:00 BST"); - - t.equal(moment("1943-04-04T00:59:59+00:00").tz("Europe/London").zone(), -60, "1943-04-04T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1943-04-04T01:00:00+00:00").tz("Europe/London").zone(), -120, "1943-04-04T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1943-08-15T00:59:59+00:00").tz("Europe/London").zone(), -120, "1943-08-15T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1943-08-15T01:00:00+00:00").tz("Europe/London").zone(), -60, "1943-08-15T01:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-02T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1944-04-02T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1944-04-02T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1944-04-02T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1944-09-17T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1944-09-17T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1944-09-17T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1944-09-17T01:00:00+00:00 should be 02:00:00 BST"); - - t.equal(moment("1944-04-02T00:59:59+00:00").tz("Europe/London").zone(), -60, "1944-04-02T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1944-04-02T01:00:00+00:00").tz("Europe/London").zone(), -120, "1944-04-02T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1944-09-17T00:59:59+00:00").tz("Europe/London").zone(), -120, "1944-09-17T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1944-09-17T01:00:00+00:00").tz("Europe/London").zone(), -60, "1944-09-17T01:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1945-07-15T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1945-07-15T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1945-07-15T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1945-07-15T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1945-10-07T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1945-10-07T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1945-10-07T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1945-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/London").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/London").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1945-07-15T00:59:59+00:00").tz("Europe/London").zone(), -120, "1945-07-15T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1945-07-15T01:00:00+00:00").tz("Europe/London").zone(), -60, "1945-07-15T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1945-10-07T01:59:59+00:00").tz("Europe/London").zone(), -60, "1945-10-07T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1945-10-07T02:00:00+00:00").tz("Europe/London").zone(), 0, "1945-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-14T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1946-04-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1946-04-14T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1946-04-14T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1946-10-06T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1946-10-06T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1946-10-06T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1946-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1946-04-14T01:59:59+00:00").tz("Europe/London").zone(), 0, "1946-04-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1946-04-14T02:00:00+00:00").tz("Europe/London").zone(), -60, "1946-04-14T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1946-10-06T01:59:59+00:00").tz("Europe/London").zone(), -60, "1946-10-06T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1946-10-06T02:00:00+00:00").tz("Europe/London").zone(), 0, "1946-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-03-16T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1947-03-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1947-03-16T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1947-03-16T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1947-04-13T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1947-04-13T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1947-04-13T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1947-04-13T01:00:00+00:00 should be 03:00:00 BDST"); - t.equal(moment("1947-08-10T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1947-08-10T00:59:59+00:00 should be 02:59:59 BDST"); - t.equal(moment("1947-08-10T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1947-08-10T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1947-11-02T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1947-11-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1947-11-02T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1947-11-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1947-03-16T01:59:59+00:00").tz("Europe/London").zone(), 0, "1947-03-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1947-03-16T02:00:00+00:00").tz("Europe/London").zone(), -60, "1947-03-16T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1947-04-13T00:59:59+00:00").tz("Europe/London").zone(), -60, "1947-04-13T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1947-04-13T01:00:00+00:00").tz("Europe/London").zone(), -120, "1947-04-13T01:00:00+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1947-08-10T00:59:59+00:00").tz("Europe/London").zone(), -120, "1947-08-10T00:59:59+00:00 should be -120 minutes offset in BDST"); - t.equal(moment("1947-08-10T01:00:00+00:00").tz("Europe/London").zone(), -60, "1947-08-10T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1947-11-02T01:59:59+00:00").tz("Europe/London").zone(), -60, "1947-11-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1947-11-02T02:00:00+00:00").tz("Europe/London").zone(), 0, "1947-11-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-03-14T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1948-03-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1948-03-14T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1948-03-14T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1948-10-31T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1948-10-31T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1948-10-31T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1948-10-31T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1948-03-14T01:59:59+00:00").tz("Europe/London").zone(), 0, "1948-03-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1948-03-14T02:00:00+00:00").tz("Europe/London").zone(), -60, "1948-03-14T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1948-10-31T01:59:59+00:00").tz("Europe/London").zone(), -60, "1948-10-31T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1948-10-31T02:00:00+00:00").tz("Europe/London").zone(), 0, "1948-10-31T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1949-04-03T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1949-04-03T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1949-10-30T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1949-10-30T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1949-10-30T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1949-10-30T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1949-04-03T01:59:59+00:00").tz("Europe/London").zone(), 0, "1949-04-03T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1949-04-03T02:00:00+00:00").tz("Europe/London").zone(), -60, "1949-04-03T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1949-10-30T01:59:59+00:00").tz("Europe/London").zone(), -60, "1949-10-30T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1949-10-30T02:00:00+00:00").tz("Europe/London").zone(), 0, "1949-10-30T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-04-16T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1950-04-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1950-04-16T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1950-04-16T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1950-10-22T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1950-10-22T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1950-10-22T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1950-10-22T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1950-04-16T01:59:59+00:00").tz("Europe/London").zone(), 0, "1950-04-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1950-04-16T02:00:00+00:00").tz("Europe/London").zone(), -60, "1950-04-16T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1950-10-22T01:59:59+00:00").tz("Europe/London").zone(), -60, "1950-10-22T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1950-10-22T02:00:00+00:00").tz("Europe/London").zone(), 0, "1950-10-22T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1951" : function (t) { - t.equal(moment("1951-04-15T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1951-04-15T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1951-04-15T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1951-04-15T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1951-10-21T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1951-10-21T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1951-10-21T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1951-10-21T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1951-04-15T01:59:59+00:00").tz("Europe/London").zone(), 0, "1951-04-15T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1951-04-15T02:00:00+00:00").tz("Europe/London").zone(), -60, "1951-04-15T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1951-10-21T01:59:59+00:00").tz("Europe/London").zone(), -60, "1951-10-21T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1951-10-21T02:00:00+00:00").tz("Europe/London").zone(), 0, "1951-10-21T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1952" : function (t) { - t.equal(moment("1952-04-20T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1952-04-20T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1952-04-20T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1952-04-20T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1952-10-26T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1952-10-26T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1952-10-26T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1952-10-26T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1952-04-20T01:59:59+00:00").tz("Europe/London").zone(), 0, "1952-04-20T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1952-04-20T02:00:00+00:00").tz("Europe/London").zone(), -60, "1952-04-20T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1952-10-26T01:59:59+00:00").tz("Europe/London").zone(), -60, "1952-10-26T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1952-10-26T02:00:00+00:00").tz("Europe/London").zone(), 0, "1952-10-26T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1953" : function (t) { - t.equal(moment("1953-04-19T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1953-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1953-04-19T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1953-04-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1953-10-04T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1953-10-04T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1953-10-04T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1953-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1953-04-19T01:59:59+00:00").tz("Europe/London").zone(), 0, "1953-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1953-04-19T02:00:00+00:00").tz("Europe/London").zone(), -60, "1953-04-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1953-10-04T01:59:59+00:00").tz("Europe/London").zone(), -60, "1953-10-04T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1953-10-04T02:00:00+00:00").tz("Europe/London").zone(), 0, "1953-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-04-11T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1954-04-11T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1954-04-11T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1954-04-11T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1954-10-03T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1954-10-03T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1954-10-03T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1954-10-03T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1954-04-11T01:59:59+00:00").tz("Europe/London").zone(), 0, "1954-04-11T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1954-04-11T02:00:00+00:00").tz("Europe/London").zone(), -60, "1954-04-11T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1954-10-03T01:59:59+00:00").tz("Europe/London").zone(), -60, "1954-10-03T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1954-10-03T02:00:00+00:00").tz("Europe/London").zone(), 0, "1954-10-03T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1955" : function (t) { - t.equal(moment("1955-04-17T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1955-04-17T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1955-04-17T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1955-04-17T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1955-10-02T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1955-10-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1955-10-02T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1955-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1955-04-17T01:59:59+00:00").tz("Europe/London").zone(), 0, "1955-04-17T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1955-04-17T02:00:00+00:00").tz("Europe/London").zone(), -60, "1955-04-17T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1955-10-02T01:59:59+00:00").tz("Europe/London").zone(), -60, "1955-10-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1955-10-02T02:00:00+00:00").tz("Europe/London").zone(), 0, "1955-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1956" : function (t) { - t.equal(moment("1956-04-22T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1956-04-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1956-04-22T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1956-04-22T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1956-10-07T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1956-10-07T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1956-10-07T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1956-10-07T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1956-04-22T01:59:59+00:00").tz("Europe/London").zone(), 0, "1956-04-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1956-04-22T02:00:00+00:00").tz("Europe/London").zone(), -60, "1956-04-22T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1956-10-07T01:59:59+00:00").tz("Europe/London").zone(), -60, "1956-10-07T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1956-10-07T02:00:00+00:00").tz("Europe/London").zone(), 0, "1956-10-07T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-04-14T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1957-04-14T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1957-04-14T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1957-04-14T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1957-10-06T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1957-10-06T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1957-10-06T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1957-10-06T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1957-04-14T01:59:59+00:00").tz("Europe/London").zone(), 0, "1957-04-14T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1957-04-14T02:00:00+00:00").tz("Europe/London").zone(), -60, "1957-04-14T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1957-10-06T01:59:59+00:00").tz("Europe/London").zone(), -60, "1957-10-06T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1957-10-06T02:00:00+00:00").tz("Europe/London").zone(), 0, "1957-10-06T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-04-20T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1958-04-20T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1958-04-20T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1958-04-20T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1958-10-05T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1958-10-05T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1958-10-05T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1958-10-05T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1958-04-20T01:59:59+00:00").tz("Europe/London").zone(), 0, "1958-04-20T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1958-04-20T02:00:00+00:00").tz("Europe/London").zone(), -60, "1958-04-20T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1958-10-05T01:59:59+00:00").tz("Europe/London").zone(), -60, "1958-10-05T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1958-10-05T02:00:00+00:00").tz("Europe/London").zone(), 0, "1958-10-05T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-04-19T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1959-04-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1959-04-19T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1959-04-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1959-10-04T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1959-10-04T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1959-10-04T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1959-10-04T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1959-04-19T01:59:59+00:00").tz("Europe/London").zone(), 0, "1959-04-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1959-04-19T02:00:00+00:00").tz("Europe/London").zone(), -60, "1959-04-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1959-10-04T01:59:59+00:00").tz("Europe/London").zone(), -60, "1959-10-04T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1959-10-04T02:00:00+00:00").tz("Europe/London").zone(), 0, "1959-10-04T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-10T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1960-04-10T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1960-04-10T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1960-04-10T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1960-10-02T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1960-10-02T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1960-10-02T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1960-10-02T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1960-04-10T01:59:59+00:00").tz("Europe/London").zone(), 0, "1960-04-10T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1960-04-10T02:00:00+00:00").tz("Europe/London").zone(), -60, "1960-04-10T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1960-10-02T01:59:59+00:00").tz("Europe/London").zone(), -60, "1960-10-02T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1960-10-02T02:00:00+00:00").tz("Europe/London").zone(), 0, "1960-10-02T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-03-26T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1961-03-26T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1961-03-26T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1961-03-26T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1961-10-29T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1961-10-29T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1961-10-29T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1961-10-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1961-03-26T01:59:59+00:00").tz("Europe/London").zone(), 0, "1961-03-26T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1961-03-26T02:00:00+00:00").tz("Europe/London").zone(), -60, "1961-03-26T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1961-10-29T01:59:59+00:00").tz("Europe/London").zone(), -60, "1961-10-29T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1961-10-29T02:00:00+00:00").tz("Europe/London").zone(), 0, "1961-10-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-03-25T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1962-03-25T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1962-03-25T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1962-03-25T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1962-10-28T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1962-10-28T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1962-10-28T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1962-10-28T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1962-03-25T01:59:59+00:00").tz("Europe/London").zone(), 0, "1962-03-25T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1962-03-25T02:00:00+00:00").tz("Europe/London").zone(), -60, "1962-03-25T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1962-10-28T01:59:59+00:00").tz("Europe/London").zone(), -60, "1962-10-28T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1962-10-28T02:00:00+00:00").tz("Europe/London").zone(), 0, "1962-10-28T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-03-31T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1963-03-31T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1963-03-31T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1963-03-31T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1963-10-27T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1963-10-27T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1963-10-27T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1963-10-27T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1963-03-31T01:59:59+00:00").tz("Europe/London").zone(), 0, "1963-03-31T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1963-03-31T02:00:00+00:00").tz("Europe/London").zone(), -60, "1963-03-31T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1963-10-27T01:59:59+00:00").tz("Europe/London").zone(), -60, "1963-10-27T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1963-10-27T02:00:00+00:00").tz("Europe/London").zone(), 0, "1963-10-27T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-22T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1964-03-22T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1964-03-22T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1964-03-22T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1964-10-25T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1964-10-25T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1964-10-25T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1964-10-25T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1964-03-22T01:59:59+00:00").tz("Europe/London").zone(), 0, "1964-03-22T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1964-03-22T02:00:00+00:00").tz("Europe/London").zone(), -60, "1964-03-22T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1964-10-25T01:59:59+00:00").tz("Europe/London").zone(), -60, "1964-10-25T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1964-10-25T02:00:00+00:00").tz("Europe/London").zone(), 0, "1964-10-25T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-03-21T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1965-03-21T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1965-03-21T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1965-03-21T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1965-10-24T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1965-10-24T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1965-10-24T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1965-10-24T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1965-03-21T01:59:59+00:00").tz("Europe/London").zone(), 0, "1965-03-21T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1965-03-21T02:00:00+00:00").tz("Europe/London").zone(), -60, "1965-03-21T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1965-10-24T01:59:59+00:00").tz("Europe/London").zone(), -60, "1965-10-24T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1965-10-24T02:00:00+00:00").tz("Europe/London").zone(), 0, "1965-10-24T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-03-20T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1966-03-20T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1966-03-20T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1966-03-20T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1966-10-23T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1966-10-23T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1966-10-23T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1966-10-23T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1966-03-20T01:59:59+00:00").tz("Europe/London").zone(), 0, "1966-03-20T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1966-03-20T02:00:00+00:00").tz("Europe/London").zone(), -60, "1966-03-20T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1966-10-23T01:59:59+00:00").tz("Europe/London").zone(), -60, "1966-10-23T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1966-10-23T02:00:00+00:00").tz("Europe/London").zone(), 0, "1966-10-23T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-03-19T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1967-03-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1967-03-19T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1967-03-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1967-10-29T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1967-10-29T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1967-10-29T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1967-10-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1967-03-19T01:59:59+00:00").tz("Europe/London").zone(), 0, "1967-03-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1967-03-19T02:00:00+00:00").tz("Europe/London").zone(), -60, "1967-03-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1967-10-29T01:59:59+00:00").tz("Europe/London").zone(), -60, "1967-10-29T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1967-10-29T02:00:00+00:00").tz("Europe/London").zone(), 0, "1967-10-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-02-18T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1968-02-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1968-02-18T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1968-02-18T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1968-10-26T22:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "23:59:59", "1968-10-26T22:59:59+00:00 should be 23:59:59 BST"); - t.equal(moment("1968-10-26T23:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "00:00:00", "1968-10-26T23:00:00+00:00 should be 00:00:00 BST"); - - t.equal(moment("1968-02-18T01:59:59+00:00").tz("Europe/London").zone(), 0, "1968-02-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1968-02-18T02:00:00+00:00").tz("Europe/London").zone(), -60, "1968-02-18T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1968-10-26T22:59:59+00:00").tz("Europe/London").zone(), -60, "1968-10-26T22:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1968-10-26T23:00:00+00:00").tz("Europe/London").zone(), -60, "1968-10-26T23:00:00+00:00 should be -60 minutes offset in BST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-10-31T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1971-10-31T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1971-10-31T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1971-10-31T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1971-10-31T01:59:59+00:00").tz("Europe/London").zone(), -60, "1971-10-31T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1971-10-31T02:00:00+00:00").tz("Europe/London").zone(), 0, "1971-10-31T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-03-19T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1972-03-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1972-03-19T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1972-03-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1972-10-29T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1972-10-29T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1972-10-29T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1972-10-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1972-03-19T01:59:59+00:00").tz("Europe/London").zone(), 0, "1972-03-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1972-03-19T02:00:00+00:00").tz("Europe/London").zone(), -60, "1972-03-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1972-10-29T01:59:59+00:00").tz("Europe/London").zone(), -60, "1972-10-29T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1972-10-29T02:00:00+00:00").tz("Europe/London").zone(), 0, "1972-10-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-18T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1973-03-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1973-03-18T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1973-03-18T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1973-10-28T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1973-10-28T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1973-10-28T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1973-10-28T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1973-03-18T01:59:59+00:00").tz("Europe/London").zone(), 0, "1973-03-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1973-03-18T02:00:00+00:00").tz("Europe/London").zone(), -60, "1973-03-18T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1973-10-28T01:59:59+00:00").tz("Europe/London").zone(), -60, "1973-10-28T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1973-10-28T02:00:00+00:00").tz("Europe/London").zone(), 0, "1973-10-28T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-17T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1974-03-17T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1974-03-17T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1974-03-17T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1974-10-27T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1974-10-27T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1974-10-27T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1974-10-27T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1974-03-17T01:59:59+00:00").tz("Europe/London").zone(), 0, "1974-03-17T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1974-03-17T02:00:00+00:00").tz("Europe/London").zone(), -60, "1974-03-17T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1974-10-27T01:59:59+00:00").tz("Europe/London").zone(), -60, "1974-10-27T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1974-10-27T02:00:00+00:00").tz("Europe/London").zone(), 0, "1974-10-27T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-16T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1975-03-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1975-03-16T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1975-03-16T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1975-10-26T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1975-10-26T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1975-10-26T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1975-10-26T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1975-03-16T01:59:59+00:00").tz("Europe/London").zone(), 0, "1975-03-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1975-03-16T02:00:00+00:00").tz("Europe/London").zone(), -60, "1975-03-16T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1975-10-26T01:59:59+00:00").tz("Europe/London").zone(), -60, "1975-10-26T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1975-10-26T02:00:00+00:00").tz("Europe/London").zone(), 0, "1975-10-26T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-21T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1976-03-21T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1976-03-21T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1976-03-21T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1976-10-24T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1976-10-24T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1976-10-24T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1976-10-24T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1976-03-21T01:59:59+00:00").tz("Europe/London").zone(), 0, "1976-03-21T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1976-03-21T02:00:00+00:00").tz("Europe/London").zone(), -60, "1976-03-21T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1976-10-24T01:59:59+00:00").tz("Europe/London").zone(), -60, "1976-10-24T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1976-10-24T02:00:00+00:00").tz("Europe/London").zone(), 0, "1976-10-24T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-20T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1977-03-20T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1977-03-20T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1977-03-20T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1977-10-23T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1977-10-23T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1977-10-23T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1977-10-23T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1977-03-20T01:59:59+00:00").tz("Europe/London").zone(), 0, "1977-03-20T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1977-03-20T02:00:00+00:00").tz("Europe/London").zone(), -60, "1977-03-20T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1977-10-23T01:59:59+00:00").tz("Europe/London").zone(), -60, "1977-10-23T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1977-10-23T02:00:00+00:00").tz("Europe/London").zone(), 0, "1977-10-23T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-19T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1978-03-19T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1978-03-19T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1978-03-19T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1978-10-29T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1978-10-29T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1978-10-29T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1978-10-29T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1978-03-19T01:59:59+00:00").tz("Europe/London").zone(), 0, "1978-03-19T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1978-03-19T02:00:00+00:00").tz("Europe/London").zone(), -60, "1978-03-19T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1978-10-29T01:59:59+00:00").tz("Europe/London").zone(), -60, "1978-10-29T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1978-10-29T02:00:00+00:00").tz("Europe/London").zone(), 0, "1978-10-29T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-18T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1979-03-18T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1979-03-18T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1979-03-18T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1979-10-28T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1979-10-28T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1979-10-28T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1979-10-28T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1979-03-18T01:59:59+00:00").tz("Europe/London").zone(), 0, "1979-03-18T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1979-03-18T02:00:00+00:00").tz("Europe/London").zone(), -60, "1979-03-18T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1979-10-28T01:59:59+00:00").tz("Europe/London").zone(), -60, "1979-10-28T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1979-10-28T02:00:00+00:00").tz("Europe/London").zone(), 0, "1979-10-28T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-16T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1980-03-16T01:59:59+00:00 should be 01:59:59 GMT"); - t.equal(moment("1980-03-16T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "03:00:00", "1980-03-16T02:00:00+00:00 should be 03:00:00 BST"); - t.equal(moment("1980-10-26T01:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "02:59:59", "1980-10-26T01:59:59+00:00 should be 02:59:59 BST"); - t.equal(moment("1980-10-26T02:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1980-10-26T02:00:00+00:00 should be 02:00:00 GMT"); - - t.equal(moment("1980-03-16T01:59:59+00:00").tz("Europe/London").zone(), 0, "1980-03-16T01:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1980-03-16T02:00:00+00:00").tz("Europe/London").zone(), -60, "1980-03-16T02:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1980-10-26T01:59:59+00:00").tz("Europe/London").zone(), -60, "1980-10-26T01:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1980-10-26T02:00:00+00:00").tz("Europe/London").zone(), 0, "1980-10-26T02:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1981-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1981-03-29T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1981-10-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1981-10-25T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1981-10-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1981-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/London").zone(), 0, "1981-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/London").zone(), -60, "1981-03-29T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1981-10-25T00:59:59+00:00").tz("Europe/London").zone(), -60, "1981-10-25T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1981-10-25T01:00:00+00:00").tz("Europe/London").zone(), 0, "1981-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1982-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1982-03-28T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1982-10-24T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1982-10-24T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1982-10-24T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1982-10-24T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/London").zone(), 0, "1982-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/London").zone(), -60, "1982-03-28T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1982-10-24T00:59:59+00:00").tz("Europe/London").zone(), -60, "1982-10-24T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1982-10-24T01:00:00+00:00").tz("Europe/London").zone(), 0, "1982-10-24T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1983-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1983-03-27T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1983-10-23T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1983-10-23T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1983-10-23T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1983-10-23T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/London").zone(), 0, "1983-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/London").zone(), -60, "1983-03-27T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1983-10-23T00:59:59+00:00").tz("Europe/London").zone(), -60, "1983-10-23T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1983-10-23T01:00:00+00:00").tz("Europe/London").zone(), 0, "1983-10-23T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1984-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1984-03-25T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1984-10-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1984-10-28T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1984-10-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1984-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/London").zone(), 0, "1984-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/London").zone(), -60, "1984-03-25T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1984-10-28T00:59:59+00:00").tz("Europe/London").zone(), -60, "1984-10-28T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1984-10-28T01:00:00+00:00").tz("Europe/London").zone(), 0, "1984-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1985-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1985-03-31T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1985-10-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1985-10-27T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1985-10-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1985-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/London").zone(), 0, "1985-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/London").zone(), -60, "1985-03-31T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1985-10-27T00:59:59+00:00").tz("Europe/London").zone(), -60, "1985-10-27T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1985-10-27T01:00:00+00:00").tz("Europe/London").zone(), 0, "1985-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1986-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1986-03-30T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1986-10-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1986-10-26T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1986-10-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1986-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/London").zone(), 0, "1986-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/London").zone(), -60, "1986-03-30T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1986-10-26T00:59:59+00:00").tz("Europe/London").zone(), -60, "1986-10-26T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1986-10-26T01:00:00+00:00").tz("Europe/London").zone(), 0, "1986-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1987-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1987-03-29T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1987-10-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1987-10-25T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1987-10-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1987-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/London").zone(), 0, "1987-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/London").zone(), -60, "1987-03-29T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1987-10-25T00:59:59+00:00").tz("Europe/London").zone(), -60, "1987-10-25T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1987-10-25T01:00:00+00:00").tz("Europe/London").zone(), 0, "1987-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1988-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1988-03-27T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1988-10-23T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1988-10-23T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1988-10-23T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1988-10-23T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/London").zone(), 0, "1988-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/London").zone(), -60, "1988-03-27T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1988-10-23T00:59:59+00:00").tz("Europe/London").zone(), -60, "1988-10-23T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1988-10-23T01:00:00+00:00").tz("Europe/London").zone(), 0, "1988-10-23T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1989-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1989-03-26T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1989-10-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1989-10-29T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1989-10-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1989-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/London").zone(), 0, "1989-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/London").zone(), -60, "1989-03-26T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1989-10-29T00:59:59+00:00").tz("Europe/London").zone(), -60, "1989-10-29T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1989-10-29T01:00:00+00:00").tz("Europe/London").zone(), 0, "1989-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1990-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1990-03-25T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1990-10-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1990-10-28T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1990-10-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1990-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/London").zone(), 0, "1990-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/London").zone(), -60, "1990-03-25T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1990-10-28T00:59:59+00:00").tz("Europe/London").zone(), -60, "1990-10-28T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1990-10-28T01:00:00+00:00").tz("Europe/London").zone(), 0, "1990-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1991-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1991-03-31T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1991-10-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1991-10-27T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1991-10-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1991-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/London").zone(), 0, "1991-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/London").zone(), -60, "1991-03-31T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1991-10-27T00:59:59+00:00").tz("Europe/London").zone(), -60, "1991-10-27T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1991-10-27T01:00:00+00:00").tz("Europe/London").zone(), 0, "1991-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1992-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1992-03-29T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1992-10-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1992-10-25T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1992-10-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1992-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/London").zone(), 0, "1992-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/London").zone(), -60, "1992-03-29T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1992-10-25T00:59:59+00:00").tz("Europe/London").zone(), -60, "1992-10-25T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1992-10-25T01:00:00+00:00").tz("Europe/London").zone(), 0, "1992-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1993-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1993-03-28T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1993-10-24T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1993-10-24T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1993-10-24T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1993-10-24T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/London").zone(), 0, "1993-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/London").zone(), -60, "1993-03-28T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1993-10-24T00:59:59+00:00").tz("Europe/London").zone(), -60, "1993-10-24T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1993-10-24T01:00:00+00:00").tz("Europe/London").zone(), 0, "1993-10-24T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1994-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1994-03-27T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1994-10-23T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1994-10-23T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1994-10-23T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1994-10-23T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/London").zone(), 0, "1994-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/London").zone(), -60, "1994-03-27T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1994-10-23T00:59:59+00:00").tz("Europe/London").zone(), -60, "1994-10-23T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1994-10-23T01:00:00+00:00").tz("Europe/London").zone(), 0, "1994-10-23T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1995-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1995-03-26T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1995-10-22T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1995-10-22T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1995-10-22T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1995-10-22T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/London").zone(), 0, "1995-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/London").zone(), -60, "1995-03-26T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1995-10-22T00:59:59+00:00").tz("Europe/London").zone(), -60, "1995-10-22T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1995-10-22T01:00:00+00:00").tz("Europe/London").zone(), 0, "1995-10-22T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1996-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1996-03-31T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1996-10-27T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1996-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/London").zone(), 0, "1996-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/London").zone(), -60, "1996-03-31T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/London").zone(), -60, "1996-10-27T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/London").zone(), 0, "1996-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1997-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1997-03-30T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1997-10-26T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1997-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/London").zone(), 0, "1997-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/London").zone(), -60, "1997-03-30T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/London").zone(), -60, "1997-10-26T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/London").zone(), 0, "1997-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1998-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1998-03-29T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1998-10-25T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1998-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/London").zone(), 0, "1998-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/London").zone(), -60, "1998-03-29T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/London").zone(), -60, "1998-10-25T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/London").zone(), 0, "1998-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "1999-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "1999-03-28T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "1999-10-31T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "1999-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/London").zone(), 0, "1999-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/London").zone(), -60, "1999-03-28T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/London").zone(), -60, "1999-10-31T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/London").zone(), 0, "1999-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2000-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2000-03-26T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2000-10-29T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2000-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/London").zone(), 0, "2000-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/London").zone(), -60, "2000-03-26T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/London").zone(), -60, "2000-10-29T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/London").zone(), 0, "2000-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2001-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2001-03-25T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2001-10-28T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2001-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/London").zone(), 0, "2001-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/London").zone(), -60, "2001-03-25T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/London").zone(), -60, "2001-10-28T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/London").zone(), 0, "2001-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2002-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2002-03-31T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2002-10-27T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2002-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/London").zone(), 0, "2002-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/London").zone(), -60, "2002-03-31T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/London").zone(), -60, "2002-10-27T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/London").zone(), 0, "2002-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2003-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2003-03-30T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2003-10-26T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2003-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/London").zone(), 0, "2003-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/London").zone(), -60, "2003-03-30T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/London").zone(), -60, "2003-10-26T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/London").zone(), 0, "2003-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2004-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2004-03-28T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2004-10-31T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2004-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/London").zone(), 0, "2004-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/London").zone(), -60, "2004-03-28T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/London").zone(), -60, "2004-10-31T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/London").zone(), 0, "2004-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2005-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2005-03-27T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2005-10-30T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2005-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/London").zone(), 0, "2005-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/London").zone(), -60, "2005-03-27T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/London").zone(), -60, "2005-10-30T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/London").zone(), 0, "2005-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2006-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2006-03-26T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2006-10-29T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2006-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/London").zone(), 0, "2006-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/London").zone(), -60, "2006-03-26T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/London").zone(), -60, "2006-10-29T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/London").zone(), 0, "2006-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2007-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2007-03-25T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2007-10-28T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2007-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/London").zone(), 0, "2007-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/London").zone(), -60, "2007-03-25T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/London").zone(), -60, "2007-10-28T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/London").zone(), 0, "2007-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2008-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2008-03-30T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2008-10-26T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2008-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/London").zone(), 0, "2008-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/London").zone(), -60, "2008-03-30T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/London").zone(), -60, "2008-10-26T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/London").zone(), 0, "2008-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2009-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2009-03-29T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2009-10-25T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2009-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/London").zone(), 0, "2009-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/London").zone(), -60, "2009-03-29T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/London").zone(), -60, "2009-10-25T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/London").zone(), 0, "2009-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2010-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2010-03-28T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2010-10-31T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2010-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/London").zone(), 0, "2010-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/London").zone(), -60, "2010-03-28T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/London").zone(), -60, "2010-10-31T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/London").zone(), 0, "2010-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2011-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2011-03-27T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2011-10-30T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2011-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/London").zone(), 0, "2011-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/London").zone(), -60, "2011-03-27T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/London").zone(), -60, "2011-10-30T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/London").zone(), 0, "2011-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2012-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2012-03-25T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2012-10-28T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2012-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/London").zone(), 0, "2012-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/London").zone(), -60, "2012-03-25T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/London").zone(), -60, "2012-10-28T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/London").zone(), 0, "2012-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2013-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2013-03-31T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2013-10-27T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2013-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/London").zone(), 0, "2013-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/London").zone(), -60, "2013-03-31T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/London").zone(), -60, "2013-10-27T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/London").zone(), 0, "2013-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2014-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2014-03-30T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2014-10-26T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2014-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/London").zone(), 0, "2014-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/London").zone(), -60, "2014-03-30T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/London").zone(), -60, "2014-10-26T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/London").zone(), 0, "2014-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2015-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2015-03-29T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2015-10-25T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2015-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/London").zone(), 0, "2015-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/London").zone(), -60, "2015-03-29T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/London").zone(), -60, "2015-10-25T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/London").zone(), 0, "2015-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2016-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2016-03-27T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2016-10-30T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2016-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/London").zone(), 0, "2016-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/London").zone(), -60, "2016-03-27T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/London").zone(), -60, "2016-10-30T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/London").zone(), 0, "2016-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2017-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2017-03-26T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2017-10-29T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2017-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/London").zone(), 0, "2017-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/London").zone(), -60, "2017-03-26T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/London").zone(), -60, "2017-10-29T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/London").zone(), 0, "2017-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2018-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2018-03-25T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2018-10-28T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2018-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/London").zone(), 0, "2018-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/London").zone(), -60, "2018-03-25T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/London").zone(), -60, "2018-10-28T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/London").zone(), 0, "2018-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2019-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2019-03-31T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2019-10-27T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2019-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/London").zone(), 0, "2019-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/London").zone(), -60, "2019-03-31T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/London").zone(), -60, "2019-10-27T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/London").zone(), 0, "2019-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2020-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2020-03-29T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2020-10-25T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2020-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/London").zone(), 0, "2020-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/London").zone(), -60, "2020-03-29T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/London").zone(), -60, "2020-10-25T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/London").zone(), 0, "2020-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2021-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2021-03-28T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2021-10-31T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2021-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/London").zone(), 0, "2021-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/London").zone(), -60, "2021-03-28T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/London").zone(), -60, "2021-10-31T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/London").zone(), 0, "2021-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2022-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2022-03-27T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2022-10-30T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2022-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/London").zone(), 0, "2022-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/London").zone(), -60, "2022-03-27T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/London").zone(), -60, "2022-10-30T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/London").zone(), 0, "2022-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2023-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2023-03-26T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2023-10-29T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2023-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/London").zone(), 0, "2023-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/London").zone(), -60, "2023-03-26T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/London").zone(), -60, "2023-10-29T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/London").zone(), 0, "2023-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2024-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2024-03-31T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2024-10-27T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2024-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/London").zone(), 0, "2024-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/London").zone(), -60, "2024-03-31T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/London").zone(), -60, "2024-10-27T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/London").zone(), 0, "2024-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2025-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2025-03-30T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2025-10-26T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2025-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/London").zone(), 0, "2025-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/London").zone(), -60, "2025-03-30T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/London").zone(), -60, "2025-10-26T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/London").zone(), 0, "2025-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2026-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2026-03-29T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2026-10-25T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2026-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/London").zone(), 0, "2026-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/London").zone(), -60, "2026-03-29T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/London").zone(), -60, "2026-10-25T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/London").zone(), 0, "2026-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2027-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2027-03-28T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2027-10-31T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2027-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/London").zone(), 0, "2027-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/London").zone(), -60, "2027-03-28T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/London").zone(), -60, "2027-10-31T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/London").zone(), 0, "2027-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2028-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2028-03-26T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2028-10-29T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2028-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/London").zone(), 0, "2028-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/London").zone(), -60, "2028-03-26T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/London").zone(), -60, "2028-10-29T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/London").zone(), 0, "2028-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2029-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2029-03-25T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2029-10-28T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2029-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/London").zone(), 0, "2029-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/London").zone(), -60, "2029-03-25T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/London").zone(), -60, "2029-10-28T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/London").zone(), 0, "2029-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2030-03-31T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2030-03-31T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2030-10-27T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2030-10-27T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/London").zone(), 0, "2030-03-31T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/London").zone(), -60, "2030-03-31T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/London").zone(), -60, "2030-10-27T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/London").zone(), 0, "2030-10-27T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2031-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2031-03-30T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2031-10-26T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2031-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/London").zone(), 0, "2031-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/London").zone(), -60, "2031-03-30T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/London").zone(), -60, "2031-10-26T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/London").zone(), 0, "2031-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2032-03-28T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2032-03-28T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2032-10-31T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2032-10-31T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/London").zone(), 0, "2032-03-28T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/London").zone(), -60, "2032-03-28T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/London").zone(), -60, "2032-10-31T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/London").zone(), 0, "2032-10-31T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2033-03-27T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2033-03-27T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2033-10-30T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2033-10-30T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/London").zone(), 0, "2033-03-27T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/London").zone(), -60, "2033-03-27T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/London").zone(), -60, "2033-10-30T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/London").zone(), 0, "2033-10-30T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2034-03-26T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2034-03-26T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2034-10-29T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2034-10-29T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/London").zone(), 0, "2034-03-26T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/London").zone(), -60, "2034-03-26T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/London").zone(), -60, "2034-10-29T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/London").zone(), 0, "2034-10-29T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2035-03-25T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2035-03-25T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2035-10-28T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2035-10-28T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/London").zone(), 0, "2035-03-25T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/London").zone(), -60, "2035-03-25T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/London").zone(), -60, "2035-10-28T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/London").zone(), 0, "2035-10-28T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2036-03-30T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2036-03-30T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2036-10-26T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2036-10-26T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/London").zone(), 0, "2036-03-30T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/London").zone(), -60, "2036-03-30T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/London").zone(), -60, "2036-10-26T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/London").zone(), 0, "2036-10-26T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "00:59:59", "2037-03-29T00:59:59+00:00 should be 00:59:59 GMT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "02:00:00", "2037-03-29T01:00:00+00:00 should be 02:00:00 BST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/London").format("HH:mm:ss"), "01:59:59", "2037-10-25T00:59:59+00:00 should be 01:59:59 BST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/London").format("HH:mm:ss"), "01:00:00", "2037-10-25T01:00:00+00:00 should be 01:00:00 GMT"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/London").zone(), 0, "2037-03-29T00:59:59+00:00 should be 0 minutes offset in GMT"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/London").zone(), -60, "2037-03-29T01:00:00+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/London").zone(), -60, "2037-10-25T00:59:59+00:00 should be -60 minutes offset in BST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/London").zone(), 0, "2037-10-25T01:00:00+00:00 should be 0 minutes offset in GMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/luxembourg.js b/tests/europe/luxembourg.js deleted file mode 100644 index cdeff833..00000000 --- a/tests/europe/luxembourg.js +++ /dev/null @@ -1,1288 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Luxembourg"] = { - - "1904" : function (t) { - t.equal(moment("1904-05-31T23:35:23+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "23:59:59", "1904-05-31T23:35:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1904-05-31T23:35:24+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:35:24", "1904-05-31T23:35:24+00:00 should be 00:35:24 CET"); - - t.equal(moment("1904-05-31T23:35:23+00:00").tz("Europe/Luxembourg").zone(), -1476 / 60, "1904-05-31T23:35:23+00:00 should be -1476 / 60 minutes offset in LMT"); - t.equal(moment("1904-05-31T23:35:24+00:00").tz("Europe/Luxembourg").zone(), -60, "1904-05-31T23:35:24+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-05-14T21:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1916-05-14T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-05-14T22:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1916-05-14T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-05-14T21:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1916-05-14T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-05-14T22:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1916-05-14T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-28T21:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1917-04-28T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1917-04-28T22:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1917-04-28T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1917-09-16T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:59:59", "1917-09-16T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1917-09-16T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1917-09-16T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1917-04-28T21:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1917-04-28T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-04-28T22:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1917-04-28T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-16T22:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1917-09-16T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-16T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1917-09-16T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1918-09-16T01:00:00+00:00 should be 02:00:00 CET"); - t.equal(moment("1918-11-24T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "23:59:59", "1918-11-24T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1918-11-24T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "23:00:00", "1918-11-24T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1918-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-11-24T22:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1918-11-24T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-11-24T23:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1918-11-24T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1919-03-01T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1919-03-01T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1919-10-05T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1919-10-05T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1919-10-05T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1919-10-05T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1919-03-01T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1919-03-01T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-05T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1919-10-05T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-05T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1919-10-05T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1920-02-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1920-02-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1920-10-24T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1920-10-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1920-10-24T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:00:00", "1920-10-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1920-02-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1920-02-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-24T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1920-10-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-24T01:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1920-10-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1921-03-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1921-03-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1921-10-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1921-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1921-10-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:00:00", "1921-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1921-03-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1921-03-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1921-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1921-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-25T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1922-03-25T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1922-03-25T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1922-03-25T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1922-10-07T23:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:59:59", "1922-10-07T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1922-10-08T00:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1922-10-08T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1922-03-25T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1922-03-25T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1922-03-25T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1922-03-25T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1922-10-07T23:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1922-10-07T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1922-10-08T00:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1922-10-08T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-04-21T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1923-04-21T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1923-04-21T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1923-04-21T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1923-10-07T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1923-10-07T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1923-10-07T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:00:00", "1923-10-07T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1923-04-21T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1923-04-21T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1923-04-21T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1923-04-21T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1923-10-07T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1923-10-07T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1923-10-07T01:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1923-10-07T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-03-29T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1924-03-29T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1924-03-29T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1924-03-29T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1924-10-04T23:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:59:59", "1924-10-04T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1924-10-05T00:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1924-10-05T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1924-03-29T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1924-03-29T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1924-03-29T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1924-03-29T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T23:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1924-10-04T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-05T00:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1924-10-05T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-05T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1925-04-05T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1925-04-05T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1925-04-05T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1925-10-03T23:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:59:59", "1925-10-03T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1925-10-04T00:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1925-10-04T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1925-04-05T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1925-04-05T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1925-04-05T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1925-04-05T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1925-10-03T23:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1925-10-03T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1925-10-04T00:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1925-10-04T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1926-04-17T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1926-04-17T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1926-10-02T23:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:59:59", "1926-10-02T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1926-10-03T00:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1926-10-03T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1926-04-17T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1926-04-17T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T23:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1926-10-02T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-03T00:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1926-10-03T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1927-04-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1927-04-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1927-10-01T23:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:59:59", "1927-10-01T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1927-10-02T00:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1927-10-02T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1927-04-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1927-04-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T23:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1927-10-01T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-02T00:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1927-10-02T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1928-04-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1928-04-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1928-10-06T23:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:59:59", "1928-10-06T23:59:59+00:00 should be 00:59:59 WEST"); - t.equal(moment("1928-10-07T00:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1928-10-07T00:00:00+00:00 should be 00:00:00 WET"); - - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1928-04-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1928-04-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T23:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1928-10-06T23:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-07T00:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1928-10-07T00:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "22:59:59", "1929-04-20T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "00:00:00", "1929-04-20T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1929-10-06T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1929-10-06T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1929-04-20T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1929-04-20T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-06T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1929-10-06T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-06T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1929-10-06T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1930-04-13T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1930-04-13T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1930-10-05T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1930-10-05T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1930-04-13T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1930-04-13T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1930-04-13T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1930-04-13T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1930-10-05T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1930-10-05T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1930-10-05T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1930-10-05T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1931-04-19T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1931-04-19T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1931-10-04T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1931-10-04T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1931-04-19T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1931-04-19T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1931-04-19T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1931-04-19T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-04T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1931-10-04T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-04T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1931-10-04T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-03T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1932-04-03T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1932-04-03T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1932-04-03T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1932-10-02T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1932-10-02T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1932-04-03T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1932-04-03T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1932-04-03T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1932-04-03T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-02T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1932-10-02T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-02T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1932-10-02T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-26T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1933-03-26T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1933-03-26T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1933-03-26T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1933-10-08T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1933-10-08T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1933-03-26T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1933-03-26T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1933-03-26T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1933-03-26T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1933-10-08T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1933-10-08T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1933-10-08T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1933-10-08T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-08T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1934-04-08T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1934-04-08T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1934-04-08T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1934-10-07T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1934-10-07T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1934-04-08T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1934-04-08T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1934-04-08T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1934-04-08T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-07T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1934-10-07T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-07T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1934-10-07T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-31T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1935-03-31T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1935-03-31T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1935-03-31T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1935-10-06T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1935-10-06T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1935-03-31T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1935-03-31T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1935-03-31T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1935-03-31T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-06T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1935-10-06T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-06T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1935-10-06T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1936-04-19T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1936-04-19T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1936-10-04T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1936-10-04T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1936-04-19T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1936-04-19T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1936-04-19T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1936-04-19T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-04T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1936-10-04T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-04T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1936-10-04T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-04T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1937-04-04T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1937-04-04T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1937-04-04T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1937-10-03T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1937-10-03T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1937-04-04T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1937-04-04T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1937-04-04T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1937-04-04T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-03T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1937-10-03T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-03T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1937-10-03T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-27T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1938-03-27T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1938-03-27T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1938-03-27T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1938-10-02T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1938-10-02T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1938-03-27T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1938-03-27T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1938-03-27T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1938-03-27T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-02T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1938-10-02T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-02T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1938-10-02T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1939-04-16T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1939-04-16T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1939-11-19T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1939-11-19T02:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1939-04-16T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1939-04-16T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1939-04-16T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1939-04-16T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-19T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1939-11-19T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-19T02:00:00+00:00").tz("Europe/Luxembourg").zone(), 0, "1939-11-19T02:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1940-02-25T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1940-02-25T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1940-05-14T01:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1940-05-14T01:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1940-05-14T02:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "04:00:00", "1940-05-14T02:00:00+00:00 should be 04:00:00 WEST"); - - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Luxembourg").zone(), 0, "1940-02-25T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1940-02-25T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1940-05-14T01:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1940-05-14T01:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1940-05-14T02:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1940-05-14T02:00:00+00:00 should be -120 minutes offset in WEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in WEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in WET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 WET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in WET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in WEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in WEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in WET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1944-09-18T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1944-09-18T00:59:59+00:00 should be 02:59:59 WEST"); - t.equal(moment("1944-09-18T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1944-09-18T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in WET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in WEST"); - t.equal(moment("1944-09-18T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1944-09-18T00:59:59+00:00 should be -120 minutes offset in WEST"); - t.equal(moment("1944-09-18T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1944-09-18T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1945-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1945-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1945-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1945-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-05-19T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1946-05-19T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1946-05-19T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1946-05-19T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1946-10-07T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1946-10-07T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-10-07T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1946-10-07T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-05-19T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1946-05-19T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-05-19T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1946-05-19T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-07T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1946-10-07T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-07T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1946-10-07T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1977-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1977-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1977-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1977-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1977-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1977-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1977-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1977-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1978-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1978-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1978-10-01T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1978-10-01T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1978-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1978-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1978-10-01T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1978-10-01T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1979-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1979-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1979-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1979-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1979-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1979-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1979-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1979-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Luxembourg").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Luxembourg").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Luxembourg").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/madrid.js b/tests/europe/madrid.js deleted file mode 100644 index 04edaec9..00000000 --- a/tests/europe/madrid.js +++ /dev/null @@ -1,1148 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Madrid"] = { - - "1917" : function (t) { - t.equal(moment("1917-05-05T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1917-05-05T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1917-05-05T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1917-05-05T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1917-10-06T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1917-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1917-10-06T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1917-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1917-05-05T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1917-05-05T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1917-05-05T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1917-05-05T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-06T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1917-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-06T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1917-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1918-04-15T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1918-04-15T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1918-04-15T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1918-10-06T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1918-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1918-10-06T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1918-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1918-04-15T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1918-04-15T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1918-04-15T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1918-04-15T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-06T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1918-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-06T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1918-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-04-05T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1919-04-05T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1919-04-05T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1919-04-05T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1919-10-06T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1919-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1919-10-06T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1919-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1919-04-05T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1919-04-05T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1919-04-05T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1919-04-05T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-06T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1919-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-06T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1919-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-04-16T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1924-04-16T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1924-04-16T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1924-04-16T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1924-10-04T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1924-10-04T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1924-04-16T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1924-04-16T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1924-04-16T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1924-04-16T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1924-10-04T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1924-10-04T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1926-04-17T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1926-04-17T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1926-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1926-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1926-04-17T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1926-04-17T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1926-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1926-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1927-04-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1927-04-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1927-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1927-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1927-04-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1927-04-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1927-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1927-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1928-04-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1928-04-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1928-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1928-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1928-04-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1928-04-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1928-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1928-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1929-04-20T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1929-04-20T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1929-10-05T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1929-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1929-10-05T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1929-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1929-04-20T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1929-04-20T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-05T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1929-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-05T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1929-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-05-22T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1937-05-22T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1937-05-22T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1937-05-22T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1937-10-02T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1937-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1937-10-02T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1937-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1937-05-22T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1937-05-22T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1937-05-22T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1937-05-22T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-02T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1937-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-02T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1937-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-22T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1938-03-22T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1938-03-22T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1938-03-22T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1938-10-01T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1938-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1938-10-01T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1938-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1938-03-22T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1938-03-22T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1938-03-22T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1938-03-22T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-01T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1938-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-01T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1938-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-15T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1939-04-15T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1939-04-15T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1939-04-15T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1939-10-07T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1939-10-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1939-10-07T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1939-10-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1939-04-15T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1939-04-15T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1939-04-15T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1939-04-15T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-10-07T22:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1939-10-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-10-07T23:00:00+00:00").tz("Europe/Madrid").zone(), 0, "1939-10-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-03-16T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1940-03-16T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1940-03-16T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1940-03-16T23:00:00+00:00 should be 00:00:00 WEST"); - - t.equal(moment("1940-03-16T22:59:59+00:00").tz("Europe/Madrid").zone(), 0, "1940-03-16T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1940-03-16T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1940-03-16T23:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-05-02T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1942-05-02T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1942-05-02T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1942-05-02T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1942-09-01T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1942-09-01T21:59:59+00:00 should be 23:59:59 WEMT"); - t.equal(moment("1942-09-01T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1942-09-01T22:00:00+00:00 should be 23:00:00 WEST"); - - t.equal(moment("1942-05-02T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1942-05-02T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1942-05-02T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1942-05-02T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1942-09-01T21:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1942-09-01T21:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1942-09-01T22:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1942-09-01T22:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-04-17T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1943-04-17T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1943-04-17T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1943-04-17T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1943-10-03T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1943-10-03T21:59:59+00:00 should be 23:59:59 WEMT"); - t.equal(moment("1943-10-03T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1943-10-03T22:00:00+00:00 should be 23:00:00 WEST"); - - t.equal(moment("1943-04-17T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1943-04-17T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1943-04-17T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1943-04-17T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1943-10-03T21:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1943-10-03T21:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1943-10-03T22:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1943-10-03T22:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-15T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1944-04-15T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1944-04-15T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1944-04-15T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1944-10-10T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1944-10-10T21:59:59+00:00 should be 23:59:59 WEMT"); - t.equal(moment("1944-10-10T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1944-10-10T22:00:00+00:00 should be 23:00:00 WEST"); - - t.equal(moment("1944-04-15T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1944-04-15T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1944-04-15T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1944-04-15T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1944-10-10T21:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1944-10-10T21:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1944-10-10T22:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1944-10-10T22:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-14T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1945-04-14T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1945-04-14T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1945-04-14T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1945-09-29T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:59:59", "1945-09-29T22:59:59+00:00 should be 00:59:59 WEMT"); - t.equal(moment("1945-09-29T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1945-09-29T23:00:00+00:00 should be 00:00:00 WEST"); - - t.equal(moment("1945-04-14T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1945-04-14T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1945-04-14T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1945-04-14T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1945-09-29T22:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1945-09-29T22:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1945-09-29T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1945-09-29T23:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-13T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1946-04-13T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1946-04-13T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1946-04-13T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1946-09-29T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:59:59", "1946-09-29T21:59:59+00:00 should be 23:59:59 WEMT"); - t.equal(moment("1946-09-29T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "23:00:00", "1946-09-29T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1946-04-13T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1946-04-13T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1946-04-13T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1946-04-13T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1946-09-29T21:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1946-09-29T21:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1946-09-29T22:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1946-09-29T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-30T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1949-04-30T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1949-04-30T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1949-04-30T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1949-09-29T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:59:59", "1949-09-29T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1949-09-29T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1949-09-29T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1949-04-30T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1949-04-30T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1949-04-30T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1949-04-30T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-09-29T22:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1949-09-29T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-09-29T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1949-09-29T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-13T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1974-04-13T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1974-04-13T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1974-04-13T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1974-10-05T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:59:59", "1974-10-05T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1974-10-05T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1974-10-05T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1974-04-13T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1974-04-13T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1974-04-13T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1974-04-13T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1974-10-05T22:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1974-10-05T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1974-10-05T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1974-10-05T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-19T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1975-04-19T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1975-04-19T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1975-04-19T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1975-10-04T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:59:59", "1975-10-04T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1975-10-04T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1975-10-04T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1975-04-19T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1975-04-19T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1975-04-19T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1975-04-19T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1975-10-04T22:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1975-10-04T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1975-10-04T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1975-10-04T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-27T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1976-03-27T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1976-03-27T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1976-03-27T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1976-09-25T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:59:59", "1976-09-25T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1976-09-25T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1976-09-25T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1976-03-27T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1976-03-27T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1976-03-27T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1976-03-27T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-25T22:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1976-09-25T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-25T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1976-09-25T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-02T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1977-04-02T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1977-04-02T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1977-04-02T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1977-09-24T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:59:59", "1977-09-24T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1977-09-24T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1977-09-24T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1977-04-02T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1977-04-02T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-02T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1977-04-02T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-24T22:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1977-09-24T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-24T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1977-09-24T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T21:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "22:59:59", "1978-04-02T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1978-04-02T22:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1978-04-02T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1978-09-30T22:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:59:59", "1978-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1978-09-30T23:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "00:00:00", "1978-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1978-04-02T21:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1978-04-02T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-02T22:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1978-04-02T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-30T22:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1978-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-30T23:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1978-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1979-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1979-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1979-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1979-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1979-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1979-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1979-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1979-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Madrid").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Madrid").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Madrid").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Madrid").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Madrid").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/malta.js b/tests/europe/malta.js deleted file mode 100644 index 180126b6..00000000 --- a/tests/europe/malta.js +++ /dev/null @@ -1,1186 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Malta"] = { - - "1916" : function (t) { - t.equal(moment("1916-06-02T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1916-06-02T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1916-06-02T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1916-06-02T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-06-02T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1916-06-02T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-06-02T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1916-06-02T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-31T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1917-03-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1917-03-31T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1917-03-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1917-09-29T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1917-09-29T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1917-09-29T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1917-09-29T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1917-03-31T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1917-03-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-03-31T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1917-03-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-29T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1917-09-29T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-29T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1917-09-29T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1918-03-09T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1918-03-09T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1918-10-05T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1918-10-05T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1918-10-05T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1918-10-05T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1918-03-09T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1918-03-09T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-10-05T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1918-10-05T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-10-05T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1918-10-05T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1919-03-01T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1919-03-01T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1919-10-04T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1919-10-04T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1919-10-04T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1919-10-04T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1919-03-01T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1919-03-01T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1919-10-04T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1919-10-04T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1919-10-04T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1919-10-04T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-03-20T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1920-03-20T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1920-03-20T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1920-03-20T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1920-09-18T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1920-09-18T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1920-09-18T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1920-09-18T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1920-03-20T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1920-03-20T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1920-03-20T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1920-03-20T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1920-09-18T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1920-09-18T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1920-09-18T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1920-09-18T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-06-14T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1940-06-14T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1940-06-14T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1940-06-14T23:00:00+00:00 should be 01:00:00 CEST"); - - t.equal(moment("1940-06-14T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1940-06-14T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-06-14T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1940-06-14T23:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-09-14T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1945-09-14T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1945-09-14T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1945-09-14T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-14T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1945-09-14T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-14T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1945-09-14T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-17T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1946-03-17T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1946-03-17T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1946-03-17T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1946-10-06T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1946-10-06T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-03-17T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1946-03-17T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-03-17T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1946-03-17T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1946-10-06T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1946-10-06T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-03-15T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1947-03-15T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1947-03-15T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1947-03-15T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1947-10-04T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1947-10-04T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1947-10-04T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1947-10-04T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1947-03-15T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1947-03-15T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1947-03-15T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1947-03-15T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-04T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1947-10-04T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-04T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1947-10-04T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-02-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1948-02-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1948-02-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1948-02-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1948-10-03T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1948-10-03T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1948-02-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1948-02-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1948-02-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1948-02-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1948-10-03T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1948-10-03T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-05-21T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1966-05-21T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1966-05-21T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1966-05-21T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1966-09-24T21:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1966-09-24T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1966-09-24T22:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:00:00", "1966-09-24T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1966-05-21T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1966-05-21T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1966-05-21T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1966-05-21T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1966-09-24T21:59:59+00:00").tz("Europe/Malta").zone(), -120, "1966-09-24T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1966-09-24T22:00:00+00:00").tz("Europe/Malta").zone(), -60, "1966-09-24T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-05-27T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1967-05-27T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1967-05-27T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1967-05-27T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1967-09-23T21:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1967-09-23T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1967-09-23T22:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:00:00", "1967-09-23T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1967-05-27T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1967-05-27T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1967-05-27T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1967-05-27T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1967-09-23T21:59:59+00:00").tz("Europe/Malta").zone(), -120, "1967-09-23T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1967-09-23T22:00:00+00:00").tz("Europe/Malta").zone(), -60, "1967-09-23T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-05-25T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1968-05-25T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1968-05-25T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1968-05-25T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1968-09-21T21:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1968-09-21T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1968-09-21T22:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:00:00", "1968-09-21T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1968-05-25T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1968-05-25T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1968-05-25T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1968-05-25T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1968-09-21T21:59:59+00:00").tz("Europe/Malta").zone(), -120, "1968-09-21T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1968-09-21T22:00:00+00:00").tz("Europe/Malta").zone(), -60, "1968-09-21T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-05-31T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1969-05-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1969-05-31T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1969-05-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1969-09-27T21:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1969-09-27T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1969-09-27T22:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:00:00", "1969-09-27T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1969-05-31T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1969-05-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1969-05-31T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1969-05-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1969-09-27T21:59:59+00:00").tz("Europe/Malta").zone(), -120, "1969-09-27T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1969-09-27T22:00:00+00:00").tz("Europe/Malta").zone(), -60, "1969-09-27T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-05-30T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1970-05-30T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1970-05-30T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1970-05-30T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1970-09-26T21:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1970-09-26T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1970-09-26T22:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:00:00", "1970-09-26T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1970-05-30T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1970-05-30T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1970-05-30T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1970-05-30T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1970-09-26T21:59:59+00:00").tz("Europe/Malta").zone(), -120, "1970-09-26T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1970-09-26T22:00:00+00:00").tz("Europe/Malta").zone(), -60, "1970-09-26T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-05-22T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1971-05-22T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1971-05-22T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1971-05-22T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1971-09-25T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1971-09-25T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1971-09-25T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1971-09-25T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1971-05-22T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1971-05-22T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1971-05-22T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1971-05-22T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1971-09-25T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1971-09-25T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1971-09-25T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1971-09-25T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-05-27T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1972-05-27T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1972-05-27T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1972-05-27T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1972-09-30T21:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1972-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1972-09-30T22:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:00:00", "1972-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1972-05-27T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1972-05-27T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1972-05-27T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1972-05-27T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1972-09-30T21:59:59+00:00").tz("Europe/Malta").zone(), -120, "1972-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1972-09-30T22:00:00+00:00").tz("Europe/Malta").zone(), -60, "1972-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-30T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1973-03-30T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1973-03-30T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1973-03-30T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1973-09-28T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1973-09-28T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1973-09-28T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1973-09-28T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1973-03-30T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1973-03-30T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1973-03-30T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1973-03-30T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1973-09-28T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1973-09-28T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1973-09-28T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1973-09-28T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-04-20T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "23:59:59", "1974-04-20T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1974-04-20T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1974-04-20T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1974-09-15T22:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:59:59", "1974-09-15T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1974-09-15T23:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "00:00:00", "1974-09-15T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1974-04-20T22:59:59+00:00").tz("Europe/Malta").zone(), -60, "1974-04-20T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1974-04-20T23:00:00+00:00").tz("Europe/Malta").zone(), -120, "1974-04-20T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1974-09-15T22:59:59+00:00").tz("Europe/Malta").zone(), -120, "1974-09-15T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1974-09-15T23:00:00+00:00").tz("Europe/Malta").zone(), -60, "1974-09-15T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-20T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1975-04-20T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1975-04-20T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1975-04-20T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1975-09-20T23:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1975-09-20T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1975-09-21T00:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1975-09-21T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1975-04-20T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1975-04-20T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1975-04-20T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1975-04-20T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1975-09-20T23:59:59+00:00").tz("Europe/Malta").zone(), -120, "1975-09-20T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1975-09-21T00:00:00+00:00").tz("Europe/Malta").zone(), -60, "1975-09-21T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-18T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1976-04-18T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1976-04-18T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1976-04-18T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1976-09-18T23:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1976-09-18T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1976-09-19T00:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1976-09-19T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1976-04-18T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1976-04-18T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1976-04-18T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1976-04-18T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-18T23:59:59+00:00").tz("Europe/Malta").zone(), -120, "1976-09-18T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-19T00:00:00+00:00").tz("Europe/Malta").zone(), -60, "1976-09-19T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-17T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1977-04-17T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1977-04-17T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1977-04-17T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1977-09-17T23:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1977-09-17T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1977-09-18T00:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1977-09-18T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1977-04-17T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1977-04-17T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-17T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1977-04-17T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-17T23:59:59+00:00").tz("Europe/Malta").zone(), -120, "1977-09-17T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-18T00:00:00+00:00").tz("Europe/Malta").zone(), -60, "1977-09-18T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-16T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1978-04-16T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1978-04-16T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1978-04-16T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1978-09-16T23:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1978-09-16T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1978-09-17T00:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1978-09-17T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1978-04-16T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1978-04-16T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-16T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1978-04-16T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-16T23:59:59+00:00").tz("Europe/Malta").zone(), -120, "1978-09-16T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-17T00:00:00+00:00").tz("Europe/Malta").zone(), -60, "1978-09-17T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-15T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1979-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1979-04-15T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1979-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1979-09-15T23:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1979-09-15T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1979-09-16T00:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1979-09-16T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1979-04-15T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1979-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-15T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1979-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-15T23:59:59+00:00").tz("Europe/Malta").zone(), -120, "1979-09-15T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-16T00:00:00+00:00").tz("Europe/Malta").zone(), -60, "1979-09-16T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1980-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-03-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1980-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-20T23:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1980-09-20T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1980-09-21T00:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:00:00", "1980-09-21T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1980-03-31T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1980-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-03-31T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1980-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-20T23:59:59+00:00").tz("Europe/Malta").zone(), -120, "1980-09-20T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-21T00:00:00+00:00").tz("Europe/Malta").zone(), -60, "1980-09-21T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Malta").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Malta").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Malta").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Malta").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Malta").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/minsk.js b/tests/europe/minsk.js deleted file mode 100644 index f5a23883..00000000 --- a/tests/europe/minsk.js +++ /dev/null @@ -1,488 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Minsk"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T22:09:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1924-05-01T22:09:59+00:00 should be 23:59:59 MMT"); - t.equal(moment("1924-05-01T22:10:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "00:10:00", "1924-05-01T22:10:00+00:00 should be 00:10:00 EET"); - - t.equal(moment("1924-05-01T22:09:59+00:00").tz("Europe/Minsk").zone(), -110, "1924-05-01T22:09:59+00:00 should be -110 minutes offset in MMT"); - t.equal(moment("1924-05-01T22:10:00+00:00").tz("Europe/Minsk").zone(), -120, "1924-05-01T22:10:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1930-06-20T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:00:00", "1930-06-20T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1930-06-20T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1930-06-20T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-27T20:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1941-06-27T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1941-06-27T21:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:00:00", "1941-06-27T21:00:00+00:00 should be 23:00:00 CEST"); - - t.equal(moment("1941-06-27T20:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1941-06-27T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1941-06-27T21:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1941-06-27T21:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Minsk").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Minsk").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Minsk").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-07-02T21:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1944-07-02T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1944-07-02T22:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:00:00", "1944-07-02T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Minsk").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-07-02T21:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1944-07-02T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-07-02T22:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1944-07-02T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Minsk").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Minsk").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Minsk").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Minsk").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Minsk").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Minsk").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Minsk").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Minsk").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Minsk").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Minsk").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Minsk").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Minsk").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Minsk").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Minsk").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Minsk").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Minsk").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Minsk").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Minsk").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1991-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1991-03-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1991-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1991-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1991-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1991-03-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1991-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1991-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-26T21:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "00:59:59", "1992-09-26T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1992-09-26T22:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "00:00:00", "1992-09-26T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T21:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1992-09-26T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T22:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1992-09-26T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1993-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1993-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1993-09-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1993-09-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1993-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1993-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1993-09-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1993-09-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1994-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1994-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1994-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1994-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1994-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1994-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1994-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1994-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1995-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1995-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1995-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1995-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1995-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1995-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1995-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1995-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1996-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1996-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1996-10-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1996-10-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1996-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1996-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1996-10-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1996-10-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1997-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1997-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1997-10-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1997-10-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1997-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1997-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1997-10-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1997-10-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1998-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1998-03-29T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1998-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1998-10-24T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1998-10-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1998-10-25T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1998-10-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1998-03-28T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1998-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1998-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-24T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1998-10-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1998-10-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "1999-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1999-03-28T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "1999-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1999-10-30T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "1999-10-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1999-10-31T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "1999-10-31T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1999-03-27T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "1999-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "1999-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-30T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "1999-10-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "1999-10-31T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2000-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2000-03-26T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2000-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2000-10-28T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2000-10-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2000-10-29T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2000-10-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2000-03-25T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2000-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2000-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-28T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2000-10-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2000-10-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2001-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2001-03-25T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2001-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2001-10-27T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2001-10-27T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2001-10-28T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2001-10-28T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2001-03-24T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2001-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2001-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-27T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2001-10-27T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2001-10-28T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2002-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2002-03-31T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2002-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2002-10-26T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2002-10-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2002-10-27T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2002-10-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2002-03-30T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2002-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2002-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-26T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2002-10-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2002-10-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2003-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2003-03-30T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2003-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2003-10-25T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2003-10-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2003-10-26T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2003-10-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2003-03-29T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2003-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2003-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-25T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2003-10-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2003-10-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2004-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2004-03-28T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2004-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2004-10-30T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2004-10-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2004-10-31T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2004-10-31T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2004-03-27T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2004-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2004-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-30T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2004-10-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2004-10-31T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2005-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2005-03-27T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2005-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2005-10-29T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2005-10-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2005-10-30T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2005-10-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2005-03-26T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2005-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2005-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-29T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2005-10-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2005-10-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2006-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2006-03-26T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2006-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2006-10-28T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2006-10-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2006-10-29T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2006-10-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2006-03-25T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2006-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2006-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-28T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2006-10-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2006-10-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2007-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2007-03-25T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2007-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2007-10-27T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2007-10-27T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2007-10-28T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2007-10-28T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2007-03-24T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2007-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2007-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-27T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2007-10-27T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2007-10-28T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2008-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2008-03-30T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2008-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2008-10-25T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2008-10-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2008-10-26T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2008-10-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2008-03-29T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2008-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2008-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-25T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2008-10-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2008-10-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2009-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2009-03-29T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2009-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2009-10-24T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2009-10-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2009-10-25T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2009-10-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2009-03-28T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2009-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2009-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-24T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2009-10-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2009-10-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2010-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2010-03-28T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2010-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("2010-10-30T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:59:59", "2010-10-30T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("2010-10-31T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "02:00:00", "2010-10-31T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("2010-03-27T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2010-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2010-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-30T23:59:59+00:00").tz("Europe/Minsk").zone(), -180, "2010-10-30T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:00:00+00:00").tz("Europe/Minsk").zone(), -120, "2010-10-31T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T23:59:59+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "01:59:59", "2011-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("2011-03-27T00:00:00+00:00").tz("Europe/Minsk").format("HH:mm:ss"), "03:00:00", "2011-03-27T00:00:00+00:00 should be 03:00:00 FET"); - - t.equal(moment("2011-03-26T23:59:59+00:00").tz("Europe/Minsk").zone(), -120, "2011-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T00:00:00+00:00").tz("Europe/Minsk").zone(), -180, "2011-03-27T00:00:00+00:00 should be -180 minutes offset in FET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/monaco.js b/tests/europe/monaco.js deleted file mode 100644 index 45a99811..00000000 --- a/tests/europe/monaco.js +++ /dev/null @@ -1,1298 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Monaco"] = { - - "1911" : function (t) { - t.equal(moment("1911-03-10T23:50:38+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1911-03-10T23:50:38+00:00 should be 23:59:59 PMT"); - t.equal(moment("1911-03-10T23:50:39+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:50:39", "1911-03-10T23:50:39+00:00 should be 23:50:39 WET"); - - t.equal(moment("1911-03-10T23:50:38+00:00").tz("Europe/Monaco").zone(), -561 / 60, "1911-03-10T23:50:38+00:00 should be -561 / 60 minutes offset in PMT"); - t.equal(moment("1911-03-10T23:50:39+00:00").tz("Europe/Monaco").zone(), 0, "1911-03-10T23:50:39+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-06-14T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1916-06-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1916-06-14T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1916-06-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1916-10-01T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1916-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1916-10-01T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1916-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1916-06-14T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1916-06-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1916-06-14T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1916-06-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1916-10-01T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1916-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1916-10-01T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1916-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1917-03-24T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1917-03-24T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1917-03-24T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1917-10-07T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1917-10-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1917-10-07T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1917-10-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1917-03-24T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1917-03-24T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1917-03-24T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1917-03-24T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-07T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1917-10-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-07T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1917-10-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1918-03-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1918-03-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1918-10-06T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1918-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1918-10-06T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1918-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1918-03-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1918-03-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-06T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1918-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-06T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1918-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1919-03-01T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1919-03-01T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1919-10-05T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1919-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1919-10-05T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1919-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1919-03-01T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1919-03-01T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-05T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1919-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-05T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1919-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1920-02-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1920-02-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1920-10-23T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1920-10-23T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1920-10-23T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1920-10-23T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1920-02-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1920-02-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-23T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1920-10-23T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-23T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1920-10-23T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1921-03-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1921-03-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1921-10-25T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1921-10-25T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1921-10-25T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1921-10-25T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1921-03-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1921-03-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-25T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1921-10-25T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-25T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1921-10-25T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-25T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1922-03-25T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1922-03-25T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1922-03-25T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1922-10-07T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1922-10-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1922-10-07T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1922-10-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1922-03-25T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1922-03-25T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1922-03-25T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1922-03-25T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1922-10-07T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1922-10-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1922-10-07T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1922-10-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-05-26T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1923-05-26T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1923-05-26T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1923-05-26T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1923-10-06T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1923-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1923-10-06T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1923-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1923-05-26T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1923-05-26T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1923-05-26T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1923-05-26T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1923-10-06T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1923-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1923-10-06T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1923-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-03-29T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1924-03-29T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1924-03-29T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1924-03-29T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1924-10-04T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1924-10-04T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1924-03-29T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1924-03-29T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1924-03-29T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1924-03-29T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1924-10-04T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1924-10-04T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-04T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1925-04-04T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1925-04-04T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1925-04-04T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1925-10-03T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1925-10-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1925-10-03T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1925-10-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1925-04-04T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1925-04-04T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1925-04-04T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1925-04-04T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1925-10-03T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1925-10-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1925-10-03T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1925-10-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1926-04-17T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1926-04-17T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1926-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1926-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1926-04-17T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1926-04-17T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1926-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1926-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1927-04-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1927-04-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1927-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1927-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1927-04-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1927-04-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1927-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1927-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1928-04-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1928-04-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1928-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1928-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1928-04-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1928-04-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1928-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1928-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1929-04-20T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1929-04-20T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1929-10-05T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1929-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1929-10-05T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1929-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1929-04-20T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1929-04-20T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-05T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1929-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-05T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1929-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-12T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1930-04-12T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1930-04-12T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1930-04-12T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1930-10-04T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1930-10-04T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1930-10-04T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1930-10-04T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1930-04-12T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1930-04-12T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1930-04-12T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1930-04-12T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1930-10-04T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1930-10-04T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1930-10-04T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1930-10-04T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-18T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1931-04-18T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1931-04-18T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1931-04-18T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1931-10-03T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1931-10-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1931-10-03T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1931-10-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1931-04-18T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1931-04-18T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1931-04-18T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1931-04-18T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-03T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1931-10-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-03T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1931-10-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-02T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1932-04-02T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1932-04-02T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1932-04-02T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1932-10-01T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1932-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1932-10-01T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1932-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1932-04-02T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1932-04-02T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1932-04-02T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1932-04-02T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-01T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1932-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-01T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1932-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-25T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1933-03-25T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1933-03-25T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1933-03-25T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1933-10-07T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1933-10-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1933-10-07T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1933-10-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1933-03-25T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1933-03-25T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1933-03-25T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1933-03-25T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1933-10-07T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1933-10-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1933-10-07T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1933-10-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-07T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1934-04-07T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1934-04-07T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1934-04-07T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1934-10-06T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1934-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1934-10-06T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1934-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1934-04-07T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1934-04-07T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1934-04-07T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1934-04-07T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-06T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1934-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-06T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1934-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-30T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1935-03-30T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1935-03-30T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1935-03-30T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1935-10-05T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1935-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1935-10-05T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1935-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1935-03-30T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1935-03-30T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1935-03-30T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1935-03-30T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-05T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1935-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-05T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1935-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-18T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1936-04-18T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1936-04-18T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1936-04-18T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1936-10-03T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1936-10-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1936-10-03T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1936-10-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1936-04-18T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1936-04-18T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1936-04-18T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1936-04-18T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-03T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1936-10-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-03T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1936-10-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-03T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1937-04-03T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1937-04-03T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1937-04-03T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1937-10-02T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1937-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1937-10-02T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1937-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1937-04-03T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1937-04-03T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1937-04-03T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1937-04-03T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-02T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1937-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-02T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1937-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-26T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1938-03-26T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1938-03-26T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1938-03-26T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1938-10-01T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1938-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1938-10-01T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1938-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1938-03-26T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1938-03-26T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1938-03-26T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1938-03-26T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-01T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1938-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-01T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1938-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-15T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "22:59:59", "1939-04-15T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1939-04-15T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1939-04-15T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1939-11-18T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1939-11-18T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1939-11-18T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1939-11-18T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1939-04-15T22:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1939-04-15T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1939-04-15T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1939-04-15T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-18T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1939-11-18T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-18T23:00:00+00:00").tz("Europe/Monaco").zone(), 0, "1939-11-18T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1940-02-25T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1940-02-25T02:00:00+00:00 should be 03:00:00 WEST"); - - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Monaco").zone(), 0, "1940-02-25T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1940-02-25T02:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-05-04T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1941-05-04T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1941-05-04T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:00:00", "1941-05-04T23:00:00+00:00 should be 01:00:00 WEMT"); - t.equal(moment("1941-10-05T21:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1941-10-05T21:59:59+00:00 should be 23:59:59 WEMT"); - t.equal(moment("1941-10-05T22:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:00:00", "1941-10-05T22:00:00+00:00 should be 23:00:00 WEST"); - - t.equal(moment("1941-05-04T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1941-05-04T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1941-05-04T23:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1941-05-04T23:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1941-10-05T21:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1941-10-05T21:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1941-10-05T22:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1941-10-05T22:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-08T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "23:59:59", "1942-03-08T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1942-03-08T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:00:00", "1942-03-08T23:00:00+00:00 should be 01:00:00 WEMT"); - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 WEMT"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 WEST"); - - t.equal(moment("1942-03-08T22:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1942-03-08T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1942-03-08T23:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1942-03-08T23:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 WEMT"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 WEMT"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 WEST"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 WEMT"); - t.equal(moment("1944-10-07T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:59:59", "1944-10-07T22:59:59+00:00 should be 00:59:59 WEMT"); - t.equal(moment("1944-10-07T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1944-10-07T23:00:00+00:00 should be 00:00:00 WEST"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1944-10-07T22:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1944-10-07T22:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1944-10-07T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1944-10-07T23:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 WEMT"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1945-09-16T00:59:59+00:00 should be 02:59:59 WEMT"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1945-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1945-09-16T00:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1945-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-27T23:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:59:59", "1976-03-27T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1976-03-28T00:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1976-03-28T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1976-09-25T22:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:59:59", "1976-09-25T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1976-09-25T23:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "00:00:00", "1976-09-25T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1976-03-27T23:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1976-03-27T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1976-03-28T00:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1976-03-28T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-25T22:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1976-09-25T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-25T23:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1976-09-25T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1977-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1977-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1977-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1977-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1977-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1977-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1977-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1977-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1978-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1978-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1978-10-01T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1978-10-01T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1978-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1978-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1978-10-01T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1978-10-01T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1979-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1979-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1979-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1979-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1979-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1979-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1979-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1979-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Monaco").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Monaco").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Monaco").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Monaco").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Monaco").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/moscow.js b/tests/europe/moscow.js deleted file mode 100644 index b3a565ee..00000000 --- a/tests/europe/moscow.js +++ /dev/null @@ -1,536 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Moscow"] = { - - "1916" : function (t) { - t.equal(moment("1916-07-02T21:29:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1916-07-02T21:29:59+00:00 should be 23:59:59 MMT"); - t.equal(moment("1916-07-02T21:30:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "00:00:48", "1916-07-02T21:30:00+00:00 should be 00:00:48 MMT"); - - t.equal(moment("1916-07-02T21:29:59+00:00").tz("Europe/Moscow").zone(), -150, "1916-07-02T21:29:59+00:00 should be -150 minutes offset in MMT"); - t.equal(moment("1916-07-02T21:30:00+00:00").tz("Europe/Moscow").zone(), -9048 / 60, "1916-07-02T21:30:00+00:00 should be -9048 / 60 minutes offset in MMT"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-07-01T20:29:11+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "22:59:59", "1917-07-01T20:29:11+00:00 should be 22:59:59 MMT"); - t.equal(moment("1917-07-01T20:29:12+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "00:00:00", "1917-07-01T20:29:12+00:00 should be 00:00:00 MST"); - t.equal(moment("1917-12-27T20:29:11+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1917-12-27T20:29:11+00:00 should be 23:59:59 MST"); - t.equal(moment("1917-12-27T20:29:12+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:00:00", "1917-12-27T20:29:12+00:00 should be 23:00:00 MMT"); - - t.equal(moment("1917-07-01T20:29:11+00:00").tz("Europe/Moscow").zone(), -9048 / 60, "1917-07-01T20:29:11+00:00 should be -9048 / 60 minutes offset in MMT"); - t.equal(moment("1917-07-01T20:29:12+00:00").tz("Europe/Moscow").zone(), -12648 / 60, "1917-07-01T20:29:12+00:00 should be -12648 / 60 minutes offset in MST"); - t.equal(moment("1917-12-27T20:29:11+00:00").tz("Europe/Moscow").zone(), -12648 / 60, "1917-12-27T20:29:11+00:00 should be -12648 / 60 minutes offset in MST"); - t.equal(moment("1917-12-27T20:29:12+00:00").tz("Europe/Moscow").zone(), -9048 / 60, "1917-12-27T20:29:12+00:00 should be -9048 / 60 minutes offset in MMT"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-05-31T19:29:11+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "21:59:59", "1918-05-31T19:29:11+00:00 should be 21:59:59 MMT"); - t.equal(moment("1918-05-31T19:29:12+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "00:00:00", "1918-05-31T19:29:12+00:00 should be 00:00:00 MDST"); - t.equal(moment("1918-09-15T20:29:11+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "00:59:59", "1918-09-15T20:29:11+00:00 should be 00:59:59 MDST"); - t.equal(moment("1918-09-15T20:29:12+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "00:00:00", "1918-09-15T20:29:12+00:00 should be 00:00:00 MST"); - - t.equal(moment("1918-05-31T19:29:11+00:00").tz("Europe/Moscow").zone(), -9048 / 60, "1918-05-31T19:29:11+00:00 should be -9048 / 60 minutes offset in MMT"); - t.equal(moment("1918-05-31T19:29:12+00:00").tz("Europe/Moscow").zone(), -16248 / 60, "1918-05-31T19:29:12+00:00 should be -16248 / 60 minutes offset in MDST"); - t.equal(moment("1918-09-15T20:29:11+00:00").tz("Europe/Moscow").zone(), -16248 / 60, "1918-09-15T20:29:11+00:00 should be -16248 / 60 minutes offset in MDST"); - t.equal(moment("1918-09-15T20:29:12+00:00").tz("Europe/Moscow").zone(), -12648 / 60, "1918-09-15T20:29:12+00:00 should be -12648 / 60 minutes offset in MST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-05-31T19:29:11+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "22:59:59", "1919-05-31T19:29:11+00:00 should be 22:59:59 MST"); - t.equal(moment("1919-05-31T19:29:12+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "00:00:00", "1919-05-31T19:29:12+00:00 should be 00:00:00 MDST"); - t.equal(moment("1919-06-30T21:29:11+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1919-06-30T21:29:11+00:00 should be 01:59:59 MDST"); - t.equal(moment("1919-06-30T21:29:12+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:29:12", "1919-06-30T21:29:12+00:00 should be 01:29:12 MSD"); - t.equal(moment("1919-08-15T19:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1919-08-15T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1919-08-15T20:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:00:00", "1919-08-15T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1919-05-31T19:29:11+00:00").tz("Europe/Moscow").zone(), -12648 / 60, "1919-05-31T19:29:11+00:00 should be -12648 / 60 minutes offset in MST"); - t.equal(moment("1919-05-31T19:29:12+00:00").tz("Europe/Moscow").zone(), -16248 / 60, "1919-05-31T19:29:12+00:00 should be -16248 / 60 minutes offset in MDST"); - t.equal(moment("1919-06-30T21:29:11+00:00").tz("Europe/Moscow").zone(), -16248 / 60, "1919-06-30T21:29:11+00:00 should be -16248 / 60 minutes offset in MDST"); - t.equal(moment("1919-06-30T21:29:12+00:00").tz("Europe/Moscow").zone(), -240, "1919-06-30T21:29:12+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1919-08-15T19:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1919-08-15T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1919-08-15T20:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1919-08-15T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-02-14T19:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "22:59:59", "1921-02-14T19:59:59+00:00 should be 22:59:59 MSK"); - t.equal(moment("1921-02-14T20:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "00:00:00", "1921-02-14T20:00:00+00:00 should be 00:00:00 MSD"); - t.equal(moment("1921-03-20T18:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "22:59:59", "1921-03-20T18:59:59+00:00 should be 22:59:59 MSD"); - t.equal(moment("1921-03-20T19:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "00:00:00", "1921-03-20T19:00:00+00:00 should be 00:00:00 MSD"); - t.equal(moment("1921-08-31T18:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1921-08-31T18:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1921-08-31T19:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:00:00", "1921-08-31T19:00:00+00:00 should be 23:00:00 MSD"); - t.equal(moment("1921-09-30T19:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1921-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1921-09-30T20:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:00:00", "1921-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1921-02-14T19:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1921-02-14T19:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1921-02-14T20:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1921-02-14T20:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1921-03-20T18:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1921-03-20T18:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1921-03-20T19:00:00+00:00").tz("Europe/Moscow").zone(), -300, "1921-03-20T19:00:00+00:00 should be -300 minutes offset in MSD"); - t.equal(moment("1921-08-31T18:59:59+00:00").tz("Europe/Moscow").zone(), -300, "1921-08-31T18:59:59+00:00 should be -300 minutes offset in MSD"); - t.equal(moment("1921-08-31T19:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1921-08-31T19:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1921-09-30T19:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1921-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1921-09-30T20:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1921-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-09-30T20:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1922-09-30T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1922-09-30T21:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:00:00", "1922-09-30T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1922-09-30T20:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1922-09-30T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1922-09-30T21:00:00+00:00").tz("Europe/Moscow").zone(), -120, "1922-09-30T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1930-06-20T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:00:00", "1930-06-20T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Moscow").zone(), -120, "1930-06-20T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1930-06-20T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1990-03-24T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1990-03-24T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1990-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1990-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1990-03-24T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1990-03-24T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1990-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1990-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1991-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1991-03-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1991-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1991-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1991-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1991-03-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1991-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Moscow").zone(), -120, "1991-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-18T23:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1992-01-18T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1992-01-19T00:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1992-01-19T00:00:00+00:00 should be 03:00:00 MSK"); - t.equal(moment("1992-03-28T19:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "22:59:59", "1992-03-28T19:59:59+00:00 should be 22:59:59 MSK"); - t.equal(moment("1992-03-28T20:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "00:00:00", "1992-03-28T20:00:00+00:00 should be 00:00:00 MSD"); - t.equal(moment("1992-09-26T18:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "22:59:59", "1992-09-26T18:59:59+00:00 should be 22:59:59 MSD"); - t.equal(moment("1992-09-26T19:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "22:00:00", "1992-09-26T19:00:00+00:00 should be 22:00:00 MSK"); - - t.equal(moment("1992-01-18T23:59:59+00:00").tz("Europe/Moscow").zone(), -120, "1992-01-18T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-01-19T00:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1992-01-19T00:00:00+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1992-03-28T19:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1992-03-28T19:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1992-03-28T20:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1992-03-28T20:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1992-09-26T18:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1992-09-26T18:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1992-09-26T19:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1992-09-26T19:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1993-03-27T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1993-03-27T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1993-03-27T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1993-09-25T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1993-09-25T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1993-09-25T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1993-09-25T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1993-03-27T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1993-03-27T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1993-03-27T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1993-03-27T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1993-09-25T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1993-09-25T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1993-09-25T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1993-09-25T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1994-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1994-03-26T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1994-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1994-09-24T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1994-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1994-09-24T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1994-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1994-03-26T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1994-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1994-03-26T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1994-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1994-09-24T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1994-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1994-09-24T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1994-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1995-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1995-03-25T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1995-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1995-09-23T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1995-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1995-09-23T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1995-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1995-03-25T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1995-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1995-03-25T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1995-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1995-09-23T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1995-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1995-09-23T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1995-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1996-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1996-03-30T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1996-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1996-10-26T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1996-10-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1996-10-26T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1996-10-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1996-03-30T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1996-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1996-03-30T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1996-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1996-10-26T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1996-10-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1996-10-26T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1996-10-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1997-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1997-03-29T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1997-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1997-10-25T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1997-10-25T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1997-10-25T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1997-10-25T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1997-03-29T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1997-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1997-03-29T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1997-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1997-10-25T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1997-10-25T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1997-10-25T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1997-10-25T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1998-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1998-03-28T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1998-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1998-10-24T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1998-10-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1998-10-24T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1998-10-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1998-03-28T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1998-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1998-03-28T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1998-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1998-10-24T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1998-10-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1998-10-24T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1998-10-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "1999-03-27T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1999-03-27T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "1999-03-27T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1999-10-30T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "1999-10-30T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1999-10-30T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "1999-10-30T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1999-03-27T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "1999-03-27T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1999-03-27T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "1999-03-27T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1999-10-30T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "1999-10-30T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1999-10-30T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "1999-10-30T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2000-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2000-03-25T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2000-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2000-10-28T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2000-10-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2000-10-28T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2000-10-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2000-03-25T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2000-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2000-03-25T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2000-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2000-10-28T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2000-10-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2000-10-28T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2000-10-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2001-03-24T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2001-03-24T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2001-03-24T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2001-10-27T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2001-10-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2001-10-27T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2001-10-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2001-03-24T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2001-03-24T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2001-03-24T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2001-03-24T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2001-10-27T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2001-10-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2001-10-27T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2001-10-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2002-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2002-03-30T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2002-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2002-10-26T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2002-10-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2002-10-26T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2002-10-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2002-03-30T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2002-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2002-03-30T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2002-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2002-10-26T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2002-10-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2002-10-26T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2002-10-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2003-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2003-03-29T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2003-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2003-10-25T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2003-10-25T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2003-10-25T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2003-10-25T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2003-03-29T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2003-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2003-03-29T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2003-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2003-10-25T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2003-10-25T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2003-10-25T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2003-10-25T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2004-03-27T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2004-03-27T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2004-03-27T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2004-10-30T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2004-10-30T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2004-10-30T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2004-10-30T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2004-03-27T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2004-03-27T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2004-03-27T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2004-03-27T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2004-10-30T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2004-10-30T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2004-10-30T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2004-10-30T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2005-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2005-03-26T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2005-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2005-10-29T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2005-10-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2005-10-29T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2005-10-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2005-03-26T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2005-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2005-03-26T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2005-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2005-10-29T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2005-10-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2005-10-29T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2005-10-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2006-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2006-03-25T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2006-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2006-10-28T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2006-10-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2006-10-28T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2006-10-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2006-03-25T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2006-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2006-03-25T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2006-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2006-10-28T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2006-10-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2006-10-28T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2006-10-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2007-03-24T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2007-03-24T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2007-03-24T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2007-10-27T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2007-10-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2007-10-27T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2007-10-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2007-03-24T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2007-03-24T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2007-03-24T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2007-03-24T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2007-10-27T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2007-10-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2007-10-27T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2007-10-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2008-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2008-03-29T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2008-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2008-10-25T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2008-10-25T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2008-10-25T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2008-10-25T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2008-03-29T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2008-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2008-03-29T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2008-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2008-10-25T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2008-10-25T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2008-10-25T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2008-10-25T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2009-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2009-03-28T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2009-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2009-10-24T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2009-10-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2009-10-24T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2009-10-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2009-03-28T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2009-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2009-03-28T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2009-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2009-10-24T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2009-10-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2009-10-24T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2009-10-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2010-03-27T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2010-03-27T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2010-03-27T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("2010-10-30T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:59:59", "2010-10-30T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("2010-10-30T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "02:00:00", "2010-10-30T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("2010-03-27T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2010-03-27T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2010-03-27T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2010-03-27T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2010-10-30T22:59:59+00:00").tz("Europe/Moscow").zone(), -240, "2010-10-30T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("2010-10-30T23:00:00+00:00").tz("Europe/Moscow").zone(), -180, "2010-10-30T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T22:59:59+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "01:59:59", "2011-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("2011-03-26T23:00:00+00:00").tz("Europe/Moscow").format("HH:mm:ss"), "03:00:00", "2011-03-26T23:00:00+00:00 should be 03:00:00 MSK"); - - t.equal(moment("2011-03-26T22:59:59+00:00").tz("Europe/Moscow").zone(), -180, "2011-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("2011-03-26T23:00:00+00:00").tz("Europe/Moscow").zone(), -240, "2011-03-26T23:00:00+00:00 should be -240 minutes offset in MSK"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/oslo.js b/tests/europe/oslo.js deleted file mode 100644 index 69ecf86e..00000000 --- a/tests/europe/oslo.js +++ /dev/null @@ -1,990 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Oslo"] = { - - "1916" : function (t) { - t.equal(moment("1916-05-21T23:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "00:59:59", "1916-05-21T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1916-05-22T00:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1916-05-22T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1916-09-29T21:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "23:59:59", "1916-09-29T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1916-09-29T22:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "23:00:00", "1916-09-29T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1916-05-21T23:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1916-05-21T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-05-22T00:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1916-05-22T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-29T21:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1916-09-29T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-29T22:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1916-09-29T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-08-10T21:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "22:59:59", "1940-08-10T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1940-08-10T22:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "00:00:00", "1940-08-10T22:00:00+00:00 should be 00:00:00 CEST"); - - t.equal(moment("1940-08-10T21:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1940-08-10T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-08-10T22:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1940-08-10T22:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-10-01T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1945-10-01T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-10-01T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1945-10-01T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-10-01T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1945-10-01T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-10-01T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1945-10-01T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-03-15T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1959-03-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1959-03-15T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1959-03-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1959-09-20T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1959-09-20T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1959-09-20T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1959-09-20T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1959-03-15T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1959-03-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1959-03-15T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1959-03-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1959-09-20T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1959-09-20T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1959-09-20T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1959-09-20T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-03-20T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1960-03-20T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1960-03-20T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1960-03-20T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1960-09-18T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1960-09-18T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1960-09-18T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1960-09-18T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1960-03-20T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1960-03-20T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1960-03-20T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1960-03-20T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1960-09-18T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1960-09-18T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1960-09-18T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1960-09-18T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-03-19T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1961-03-19T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1961-03-19T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1961-03-19T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1961-09-17T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1961-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1961-09-17T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1961-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1961-03-19T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1961-03-19T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1961-03-19T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1961-03-19T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1961-09-17T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1961-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1961-09-17T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1961-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-03-18T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1962-03-18T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1962-03-18T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1962-03-18T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1962-09-16T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1962-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1962-09-16T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1962-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1962-03-18T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1962-03-18T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1962-03-18T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1962-03-18T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1962-09-16T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1962-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1962-09-16T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1962-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-03-17T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1963-03-17T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1963-03-17T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1963-03-17T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1963-09-15T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1963-09-15T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1963-09-15T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1963-09-15T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1963-03-17T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1963-03-17T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1963-03-17T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1963-03-17T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1963-09-15T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1963-09-15T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1963-09-15T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1963-09-15T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-03-15T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1964-03-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1964-03-15T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1964-03-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1964-09-20T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1964-09-20T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1964-09-20T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1964-09-20T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1964-03-15T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1964-03-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1964-03-15T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1964-03-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1964-09-20T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1964-09-20T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1964-09-20T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1964-09-20T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1965" : function (t) { - t.equal(moment("1965-04-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1965-04-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1965-04-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1965-04-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1965-09-19T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1965-09-19T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1965-09-19T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1965-09-19T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1965-04-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1965-04-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1965-04-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1965-04-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1965-09-19T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1965-09-19T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1965-09-19T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1965-09-19T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Oslo").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Oslo").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Oslo").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Oslo").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Oslo").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/paris.js b/tests/europe/paris.js deleted file mode 100644 index 93f8516d..00000000 --- a/tests/europe/paris.js +++ /dev/null @@ -1,1288 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Paris"] = { - - "1911" : function (t) { - t.equal(moment("1911-03-10T23:51:38+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:59", "1911-03-10T23:51:38+00:00 should be 00:00:59 PMT"); - t.equal(moment("1911-03-10T23:51:39+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:51:39", "1911-03-10T23:51:39+00:00 should be 23:51:39 WET"); - - t.equal(moment("1911-03-10T23:51:38+00:00").tz("Europe/Paris").zone(), -561 / 60, "1911-03-10T23:51:38+00:00 should be -561 / 60 minutes offset in PMT"); - t.equal(moment("1911-03-10T23:51:39+00:00").tz("Europe/Paris").zone(), 0, "1911-03-10T23:51:39+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-06-14T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1916-06-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1916-06-14T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1916-06-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1916-10-01T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1916-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1916-10-01T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1916-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1916-06-14T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1916-06-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1916-06-14T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1916-06-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1916-10-01T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1916-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1916-10-01T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1916-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-24T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1917-03-24T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1917-03-24T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1917-03-24T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1917-10-07T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1917-10-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1917-10-07T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1917-10-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1917-03-24T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1917-03-24T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1917-03-24T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1917-03-24T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-07T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1917-10-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1917-10-07T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1917-10-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1918-03-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1918-03-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1918-10-06T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1918-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1918-10-06T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1918-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1918-03-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1918-03-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-06T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1918-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1918-10-06T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1918-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1919-03-01T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1919-03-01T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1919-10-05T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1919-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1919-10-05T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1919-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1919-03-01T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1919-03-01T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-05T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1919-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1919-10-05T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1919-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1920-02-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1920-02-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1920-10-23T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1920-10-23T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1920-10-23T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1920-10-23T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1920-02-14T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1920-02-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1920-02-14T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1920-02-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-23T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1920-10-23T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1920-10-23T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1920-10-23T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1921-03-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1921-03-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1921-10-25T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1921-10-25T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1921-10-25T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1921-10-25T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1921-03-14T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1921-03-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1921-03-14T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1921-03-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-25T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1921-10-25T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1921-10-25T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1921-10-25T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-03-25T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1922-03-25T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1922-03-25T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1922-03-25T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1922-10-07T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1922-10-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1922-10-07T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1922-10-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1922-03-25T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1922-03-25T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1922-03-25T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1922-03-25T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1922-10-07T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1922-10-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1922-10-07T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1922-10-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1923" : function (t) { - t.equal(moment("1923-05-26T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1923-05-26T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1923-05-26T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1923-05-26T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1923-10-06T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1923-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1923-10-06T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1923-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1923-05-26T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1923-05-26T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1923-05-26T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1923-05-26T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1923-10-06T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1923-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1923-10-06T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1923-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1924" : function (t) { - t.equal(moment("1924-03-29T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1924-03-29T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1924-03-29T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1924-03-29T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1924-10-04T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1924-10-04T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1924-03-29T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1924-03-29T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1924-03-29T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1924-03-29T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1924-10-04T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1924-10-04T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1924-10-04T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-04T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1925-04-04T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1925-04-04T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1925-04-04T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1925-10-03T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1925-10-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1925-10-03T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1925-10-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1925-04-04T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1925-04-04T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1925-04-04T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1925-04-04T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1925-10-03T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1925-10-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1925-10-03T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1925-10-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1926-04-17T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1926-04-17T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1926-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1926-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1926-04-17T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1926-04-17T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1926-04-17T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1926-04-17T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1926-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1926-10-02T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1926-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1927" : function (t) { - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1927-04-09T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1927-04-09T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1927-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1927-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1927-04-09T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1927-04-09T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1927-04-09T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1927-04-09T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1927-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1927-10-01T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1927-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1928-04-14T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1928-04-14T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1928-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1928-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1928-04-14T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1928-04-14T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1928-04-14T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1928-04-14T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1928-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1928-10-06T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1928-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1929-04-20T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1929-04-20T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1929-10-05T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1929-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1929-10-05T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1929-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1929-04-20T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1929-04-20T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1929-04-20T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1929-04-20T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-05T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1929-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1929-10-05T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1929-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-04-12T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1930-04-12T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1930-04-12T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1930-04-12T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1930-10-04T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1930-10-04T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1930-10-04T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1930-10-04T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1930-04-12T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1930-04-12T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1930-04-12T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1930-04-12T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1930-10-04T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1930-10-04T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1930-10-04T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1930-10-04T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-04-18T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1931-04-18T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1931-04-18T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1931-04-18T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1931-10-03T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1931-10-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1931-10-03T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1931-10-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1931-04-18T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1931-04-18T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1931-04-18T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1931-04-18T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-03T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1931-10-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1931-10-03T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1931-10-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-04-02T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1932-04-02T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1932-04-02T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1932-04-02T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1932-10-01T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1932-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1932-10-01T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1932-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1932-04-02T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1932-04-02T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1932-04-02T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1932-04-02T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-01T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1932-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1932-10-01T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1932-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-25T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1933-03-25T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1933-03-25T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1933-03-25T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1933-10-07T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1933-10-07T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1933-10-07T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1933-10-07T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1933-03-25T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1933-03-25T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1933-03-25T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1933-03-25T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1933-10-07T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1933-10-07T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1933-10-07T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1933-10-07T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-07T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1934-04-07T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1934-04-07T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1934-04-07T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1934-10-06T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1934-10-06T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1934-10-06T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1934-10-06T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1934-04-07T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1934-04-07T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1934-04-07T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1934-04-07T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-06T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1934-10-06T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1934-10-06T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1934-10-06T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-03-30T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1935-03-30T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1935-03-30T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1935-03-30T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1935-10-05T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1935-10-05T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1935-10-05T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1935-10-05T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1935-03-30T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1935-03-30T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1935-03-30T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1935-03-30T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-05T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1935-10-05T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1935-10-05T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1935-10-05T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-18T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1936-04-18T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1936-04-18T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1936-04-18T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1936-10-03T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1936-10-03T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1936-10-03T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1936-10-03T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1936-04-18T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1936-04-18T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1936-04-18T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1936-04-18T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-03T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1936-10-03T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1936-10-03T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1936-10-03T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-03T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1937-04-03T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1937-04-03T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1937-04-03T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1937-10-02T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1937-10-02T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1937-10-02T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1937-10-02T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1937-04-03T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1937-04-03T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1937-04-03T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1937-04-03T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-02T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1937-10-02T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1937-10-02T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1937-10-02T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-03-26T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1938-03-26T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1938-03-26T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1938-03-26T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1938-10-01T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1938-10-01T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1938-10-01T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1938-10-01T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1938-03-26T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1938-03-26T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1938-03-26T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1938-03-26T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-01T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1938-10-01T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1938-10-01T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1938-10-01T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-15T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1939-04-15T22:59:59+00:00 should be 22:59:59 WET"); - t.equal(moment("1939-04-15T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1939-04-15T23:00:00+00:00 should be 00:00:00 WEST"); - t.equal(moment("1939-11-18T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1939-11-18T22:59:59+00:00 should be 23:59:59 WEST"); - t.equal(moment("1939-11-18T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:00:00", "1939-11-18T23:00:00+00:00 should be 23:00:00 WET"); - - t.equal(moment("1939-04-15T22:59:59+00:00").tz("Europe/Paris").zone(), 0, "1939-04-15T22:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1939-04-15T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1939-04-15T23:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-18T22:59:59+00:00").tz("Europe/Paris").zone(), -60, "1939-11-18T22:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1939-11-18T23:00:00+00:00").tz("Europe/Paris").zone(), 0, "1939-11-18T23:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1940-02-25T01:59:59+00:00 should be 01:59:59 WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1940-02-25T02:00:00+00:00 should be 03:00:00 WEST"); - t.equal(moment("1940-06-14T21:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "22:59:59", "1940-06-14T21:59:59+00:00 should be 22:59:59 WEST"); - t.equal(moment("1940-06-14T22:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1940-06-14T22:00:00+00:00 should be 00:00:00 CEST"); - - t.equal(moment("1940-02-25T01:59:59+00:00").tz("Europe/Paris").zone(), 0, "1940-02-25T01:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1940-02-25T02:00:00+00:00").tz("Europe/Paris").zone(), -60, "1940-02-25T02:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1940-06-14T21:59:59+00:00").tz("Europe/Paris").zone(), -60, "1940-06-14T21:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1940-06-14T22:00:00+00:00").tz("Europe/Paris").zone(), -120, "1940-06-14T22:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-08-24T21:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "23:59:59", "1944-08-24T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1944-08-24T22:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1944-08-24T22:00:00+00:00 should be 00:00:00 WEMT"); - t.equal(moment("1944-10-07T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:59:59", "1944-10-07T22:59:59+00:00 should be 00:59:59 WEMT"); - t.equal(moment("1944-10-07T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1944-10-07T23:00:00+00:00 should be 00:00:00 WEST"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-08-24T21:59:59+00:00").tz("Europe/Paris").zone(), -120, "1944-08-24T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-08-24T22:00:00+00:00").tz("Europe/Paris").zone(), -120, "1944-08-24T22:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1944-10-07T22:59:59+00:00").tz("Europe/Paris").zone(), -120, "1944-10-07T22:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1944-10-07T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1944-10-07T23:00:00+00:00 should be -60 minutes offset in WEST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 WEMT"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1945-09-16T00:59:59+00:00 should be 02:59:59 WEMT"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1945-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1945-09-16T00:59:59+00:00 should be -120 minutes offset in WEMT"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1945-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-27T23:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:59:59", "1976-03-27T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1976-03-28T00:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1976-03-28T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1976-09-25T22:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:59:59", "1976-09-25T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1976-09-25T23:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "00:00:00", "1976-09-25T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1976-03-27T23:59:59+00:00").tz("Europe/Paris").zone(), -60, "1976-03-27T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1976-03-28T00:00:00+00:00").tz("Europe/Paris").zone(), -120, "1976-03-28T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-25T22:59:59+00:00").tz("Europe/Paris").zone(), -120, "1976-09-25T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-25T23:00:00+00:00").tz("Europe/Paris").zone(), -60, "1976-09-25T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1977-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1977-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1977-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1977-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1977-04-03T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1977-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1977-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1977-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1977-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1978-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1978-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1978-10-01T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1978-10-01T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1978-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1978-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1978-10-01T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1978-10-01T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1979-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1979-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1979-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1979-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1979-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1979-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1979-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1979-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Paris").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Paris").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Paris").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Paris").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Paris").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/prague.js b/tests/europe/prague.js deleted file mode 100644 index 2ade76ef..00000000 --- a/tests/europe/prague.js +++ /dev/null @@ -1,990 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Prague"] = { - - "1916" : function (t) { - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "22:59:59", "1916-04-30T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "00:00:00", "1916-04-30T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Prague").zone(), -60, "1916-04-30T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Prague").zone(), -120, "1916-04-30T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Prague").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Prague").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1918-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1918-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1940-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1940-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1940-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1940-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-09-17T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1944-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-09-17T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1944-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-09-17T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1944-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-09-17T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1944-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-08T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1945-04-08T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-08T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1945-04-08T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-11-18T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1945-11-18T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-11-18T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1945-11-18T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-08T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1945-04-08T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-08T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1945-04-08T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-11-18T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1945-11-18T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-11-18T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1945-11-18T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-05-06T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1946-05-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1946-05-06T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1946-05-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1946-10-06T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1946-10-06T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-05-06T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1946-05-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-05-06T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1946-05-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1946-10-06T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1946-10-06T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-20T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1947-04-20T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1947-04-20T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1947-04-20T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1947-10-05T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1947-10-05T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1947-04-20T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1947-04-20T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1947-04-20T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1947-04-20T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1947-10-05T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1947-10-05T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-18T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1948-04-18T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1948-04-18T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1948-04-18T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1948-10-03T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1948-10-03T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1948-04-18T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1948-04-18T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1948-04-18T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1948-04-18T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1948-10-03T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1948-10-03T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-09T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1949-04-09T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1949-04-09T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1949-04-09T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1949-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1949-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1949-04-09T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1949-04-09T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1949-04-09T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1949-04-09T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1949-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1949-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1979-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1979-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1979-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1979-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1979-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1979-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1979-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1979-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Prague").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Prague").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Prague").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Prague").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Prague").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/riga.js b/tests/europe/riga.js deleted file mode 100644 index e467c03f..00000000 --- a/tests/europe/riga.js +++ /dev/null @@ -1,888 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Riga"] = { - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:23:35+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:23:35+00:00 should be 01:59:59 RMT"); - t.equal(moment("1918-04-15T00:23:36+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1918-04-15T00:23:36+00:00 should be 03:00:00 LST"); - t.equal(moment("1918-09-16T00:23:35+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:23:35+00:00 should be 02:59:59 LST"); - t.equal(moment("1918-09-16T00:23:36+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1918-09-16T00:23:36+00:00 should be 02:00:00 RMT"); - - t.equal(moment("1918-04-15T00:23:35+00:00").tz("Europe/Riga").zone(), -5784 / 60, "1918-04-15T00:23:35+00:00 should be -5784 / 60 minutes offset in RMT"); - t.equal(moment("1918-04-15T00:23:36+00:00").tz("Europe/Riga").zone(), -9384 / 60, "1918-04-15T00:23:36+00:00 should be -9384 / 60 minutes offset in LST"); - t.equal(moment("1918-09-16T00:23:35+00:00").tz("Europe/Riga").zone(), -9384 / 60, "1918-09-16T00:23:35+00:00 should be -9384 / 60 minutes offset in LST"); - t.equal(moment("1918-09-16T00:23:36+00:00").tz("Europe/Riga").zone(), -5784 / 60, "1918-09-16T00:23:36+00:00 should be -5784 / 60 minutes offset in RMT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-04-01T00:23:35+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1919-04-01T00:23:35+00:00 should be 01:59:59 RMT"); - t.equal(moment("1919-04-01T00:23:36+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1919-04-01T00:23:36+00:00 should be 03:00:00 LST"); - t.equal(moment("1919-05-22T00:23:35+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1919-05-22T00:23:35+00:00 should be 02:59:59 LST"); - t.equal(moment("1919-05-22T00:23:36+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1919-05-22T00:23:36+00:00 should be 02:00:00 RMT"); - - t.equal(moment("1919-04-01T00:23:35+00:00").tz("Europe/Riga").zone(), -5784 / 60, "1919-04-01T00:23:35+00:00 should be -5784 / 60 minutes offset in RMT"); - t.equal(moment("1919-04-01T00:23:36+00:00").tz("Europe/Riga").zone(), -9384 / 60, "1919-04-01T00:23:36+00:00 should be -9384 / 60 minutes offset in LST"); - t.equal(moment("1919-05-22T00:23:35+00:00").tz("Europe/Riga").zone(), -9384 / 60, "1919-05-22T00:23:35+00:00 should be -9384 / 60 minutes offset in LST"); - t.equal(moment("1919-05-22T00:23:36+00:00").tz("Europe/Riga").zone(), -5784 / 60, "1919-05-22T00:23:36+00:00 should be -5784 / 60 minutes offset in RMT"); - - t.done(); - }, - - "1926" : function (t) { - t.equal(moment("1926-05-10T22:23:35+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1926-05-10T22:23:35+00:00 should be 23:59:59 RMT"); - t.equal(moment("1926-05-10T22:23:36+00:00").tz("Europe/Riga").format("HH:mm:ss"), "00:23:36", "1926-05-10T22:23:36+00:00 should be 00:23:36 EET"); - - t.equal(moment("1926-05-10T22:23:35+00:00").tz("Europe/Riga").zone(), -5784 / 60, "1926-05-10T22:23:35+00:00 should be -5784 / 60 minutes offset in RMT"); - t.equal(moment("1926-05-10T22:23:36+00:00").tz("Europe/Riga").zone(), -120, "1926-05-10T22:23:36+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-08-04T21:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1940-08-04T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1940-08-04T22:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:00:00", "1940-08-04T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1940-08-04T21:59:59+00:00").tz("Europe/Riga").zone(), -120, "1940-08-04T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1940-08-04T22:00:00+00:00").tz("Europe/Riga").zone(), -180, "1940-08-04T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-30T20:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1941-06-30T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1941-06-30T21:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:00:00", "1941-06-30T21:00:00+00:00 should be 23:00:00 CEST"); - - t.equal(moment("1941-06-30T20:59:59+00:00").tz("Europe/Riga").zone(), -180, "1941-06-30T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1941-06-30T21:00:00+00:00").tz("Europe/Riga").zone(), -120, "1941-06-30T21:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Riga").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Riga").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Riga").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - t.equal(moment("1944-10-12T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1944-10-12T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1944-10-12T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1944-10-12T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Riga").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Riga").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-10-12T22:59:59+00:00").tz("Europe/Riga").zone(), -60, "1944-10-12T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-10-12T23:00:00+00:00").tz("Europe/Riga").zone(), -180, "1944-10-12T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Riga").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Riga").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Riga").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Riga").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Riga").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Riga").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Riga").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Riga").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Riga").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Riga").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Riga").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Riga").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Riga").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Riga").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Riga").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Riga").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Riga").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Riga").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Riga").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Riga").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Riga").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Riga").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Riga").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Riga").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Riga").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Riga").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Riga").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Riga").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Riga").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Riga").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Riga").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Riga").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1989-03-25T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1989-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1989-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Riga").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Riga").zone(), -180, "1989-03-25T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Riga").zone(), -180, "1989-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Riga").zone(), -120, "1989-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1990-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1990-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1990-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1990-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Riga").zone(), -120, "1990-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Riga").zone(), -180, "1990-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Riga").zone(), -180, "1990-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Riga").zone(), -120, "1990-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1991-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1991-03-31T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1991-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1991-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1991-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1991-03-30T23:59:59+00:00").tz("Europe/Riga").zone(), -120, "1991-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-31T00:00:00+00:00").tz("Europe/Riga").zone(), -180, "1991-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Riga").zone(), -180, "1991-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Riga").zone(), -120, "1991-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1992-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1992-03-29T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1992-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1992-09-26T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1992-09-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1992-09-27T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1992-09-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1992-03-28T23:59:59+00:00").tz("Europe/Riga").zone(), -120, "1992-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-29T00:00:00+00:00").tz("Europe/Riga").zone(), -180, "1992-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T23:59:59+00:00").tz("Europe/Riga").zone(), -180, "1992-09-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-27T00:00:00+00:00").tz("Europe/Riga").zone(), -120, "1992-09-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1993-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1993-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1993-09-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1993-09-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Riga").zone(), -120, "1993-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Riga").zone(), -180, "1993-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Riga").zone(), -180, "1993-09-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Riga").zone(), -120, "1993-09-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1994-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1994-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1994-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1994-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Riga").zone(), -120, "1994-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Riga").zone(), -180, "1994-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Riga").zone(), -180, "1994-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Riga").zone(), -120, "1994-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1995-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1995-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1995-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1995-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Riga").zone(), -120, "1995-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Riga").zone(), -180, "1995-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Riga").zone(), -180, "1995-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Riga").zone(), -120, "1995-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "01:59:59", "1996-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1996-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1996-09-28T23:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1996-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1996-09-29T00:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:00:00", "1996-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Riga").zone(), -120, "1996-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Riga").zone(), -180, "1996-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-28T23:59:59+00:00").tz("Europe/Riga").zone(), -180, "1996-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-09-29T00:00:00+00:00").tz("Europe/Riga").zone(), -120, "1996-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Riga").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Riga").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Riga").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Riga").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Riga").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/rome.js b/tests/europe/rome.js deleted file mode 100644 index 52ce33db..00000000 --- a/tests/europe/rome.js +++ /dev/null @@ -1,1186 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Rome"] = { - - "1916" : function (t) { - t.equal(moment("1916-06-02T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1916-06-02T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1916-06-02T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1916-06-02T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-06-02T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1916-06-02T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-06-02T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1916-06-02T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-03-31T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1917-03-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1917-03-31T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1917-03-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1917-09-29T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1917-09-29T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1917-09-29T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1917-09-29T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1917-03-31T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1917-03-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-03-31T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1917-03-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-29T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1917-09-29T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-29T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1917-09-29T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1918-03-09T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1918-03-09T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1918-10-05T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1918-10-05T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1918-10-05T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1918-10-05T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1918-03-09T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1918-03-09T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-03-09T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1918-03-09T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-10-05T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1918-10-05T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-10-05T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1918-10-05T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1919-03-01T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1919-03-01T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1919-10-04T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1919-10-04T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1919-10-04T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1919-10-04T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1919-03-01T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1919-03-01T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1919-03-01T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1919-03-01T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1919-10-04T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1919-10-04T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1919-10-04T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1919-10-04T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-03-20T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1920-03-20T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1920-03-20T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1920-03-20T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1920-09-18T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1920-09-18T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1920-09-18T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1920-09-18T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1920-03-20T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1920-03-20T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1920-03-20T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1920-03-20T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1920-09-18T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1920-09-18T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1920-09-18T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1920-09-18T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-06-14T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1940-06-14T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1940-06-14T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1940-06-14T23:00:00+00:00 should be 01:00:00 CEST"); - - t.equal(moment("1940-06-14T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1940-06-14T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-06-14T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1940-06-14T23:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-09-16T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1944-09-16T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1944-09-16T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1944-09-16T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-09-16T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1944-09-16T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-09-16T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1944-09-16T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-09-14T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1945-09-14T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1945-09-14T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1945-09-14T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-14T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1945-09-14T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-09-14T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1945-09-14T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-03-17T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1946-03-17T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1946-03-17T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1946-03-17T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1946-10-06T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1946-10-06T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-03-17T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1946-03-17T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-03-17T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1946-03-17T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1946-10-06T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1946-10-06T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-03-15T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1947-03-15T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1947-03-15T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1947-03-15T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1947-10-04T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1947-10-04T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1947-10-04T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1947-10-04T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1947-03-15T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1947-03-15T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1947-03-15T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1947-03-15T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-04T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1947-10-04T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-04T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1947-10-04T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-02-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1948-02-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1948-02-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1948-02-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1948-10-03T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1948-10-03T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1948-02-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1948-02-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1948-02-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1948-02-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1948-10-03T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1948-10-03T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1966" : function (t) { - t.equal(moment("1966-05-21T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1966-05-21T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1966-05-21T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1966-05-21T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1966-09-24T21:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1966-09-24T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1966-09-24T22:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:00:00", "1966-09-24T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1966-05-21T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1966-05-21T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1966-05-21T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1966-05-21T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1966-09-24T21:59:59+00:00").tz("Europe/Rome").zone(), -120, "1966-09-24T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1966-09-24T22:00:00+00:00").tz("Europe/Rome").zone(), -60, "1966-09-24T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-05-27T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1967-05-27T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1967-05-27T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1967-05-27T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1967-09-23T21:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1967-09-23T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1967-09-23T22:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:00:00", "1967-09-23T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1967-05-27T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1967-05-27T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1967-05-27T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1967-05-27T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1967-09-23T21:59:59+00:00").tz("Europe/Rome").zone(), -120, "1967-09-23T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1967-09-23T22:00:00+00:00").tz("Europe/Rome").zone(), -60, "1967-09-23T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-05-25T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1968-05-25T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1968-05-25T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1968-05-25T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1968-09-21T21:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1968-09-21T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1968-09-21T22:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:00:00", "1968-09-21T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1968-05-25T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1968-05-25T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1968-05-25T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1968-05-25T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1968-09-21T21:59:59+00:00").tz("Europe/Rome").zone(), -120, "1968-09-21T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1968-09-21T22:00:00+00:00").tz("Europe/Rome").zone(), -60, "1968-09-21T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-05-31T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1969-05-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1969-05-31T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1969-05-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1969-09-27T21:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1969-09-27T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1969-09-27T22:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:00:00", "1969-09-27T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1969-05-31T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1969-05-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1969-05-31T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1969-05-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1969-09-27T21:59:59+00:00").tz("Europe/Rome").zone(), -120, "1969-09-27T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1969-09-27T22:00:00+00:00").tz("Europe/Rome").zone(), -60, "1969-09-27T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-05-30T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1970-05-30T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1970-05-30T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1970-05-30T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1970-09-26T21:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1970-09-26T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1970-09-26T22:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:00:00", "1970-09-26T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1970-05-30T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1970-05-30T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1970-05-30T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1970-05-30T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1970-09-26T21:59:59+00:00").tz("Europe/Rome").zone(), -120, "1970-09-26T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1970-09-26T22:00:00+00:00").tz("Europe/Rome").zone(), -60, "1970-09-26T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-05-22T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1971-05-22T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1971-05-22T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1971-05-22T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1971-09-25T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1971-09-25T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1971-09-25T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1971-09-25T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1971-05-22T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1971-05-22T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1971-05-22T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1971-05-22T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1971-09-25T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1971-09-25T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1971-09-25T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1971-09-25T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-05-27T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1972-05-27T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1972-05-27T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1972-05-27T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1972-09-30T21:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1972-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1972-09-30T22:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:00:00", "1972-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1972-05-27T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1972-05-27T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1972-05-27T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1972-05-27T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1972-09-30T21:59:59+00:00").tz("Europe/Rome").zone(), -120, "1972-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1972-09-30T22:00:00+00:00").tz("Europe/Rome").zone(), -60, "1972-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-06-02T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1973-06-02T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1973-06-02T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1973-06-02T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1973-09-29T21:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1973-09-29T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1973-09-29T22:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:00:00", "1973-09-29T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1973-06-02T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1973-06-02T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1973-06-02T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1973-06-02T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1973-09-29T21:59:59+00:00").tz("Europe/Rome").zone(), -120, "1973-09-29T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1973-09-29T22:00:00+00:00").tz("Europe/Rome").zone(), -60, "1973-09-29T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-05-25T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1974-05-25T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1974-05-25T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1974-05-25T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1974-09-28T21:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1974-09-28T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1974-09-28T22:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:00:00", "1974-09-28T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1974-05-25T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1974-05-25T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1974-05-25T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1974-05-25T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1974-09-28T21:59:59+00:00").tz("Europe/Rome").zone(), -120, "1974-09-28T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1974-09-28T22:00:00+00:00").tz("Europe/Rome").zone(), -60, "1974-09-28T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-05-31T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1975-05-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1975-05-31T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1975-05-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1975-09-27T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1975-09-27T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1975-09-27T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1975-09-27T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1975-05-31T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1975-05-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1975-05-31T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1975-05-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1975-09-27T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1975-09-27T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1975-09-27T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1975-09-27T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-05-29T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1976-05-29T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1976-05-29T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1976-05-29T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1976-09-25T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1976-09-25T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1976-09-25T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1976-09-25T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1976-05-29T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1976-05-29T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1976-05-29T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1976-05-29T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-25T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1976-09-25T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-09-25T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1976-09-25T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-05-21T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1977-05-21T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1977-05-21T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1977-05-21T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1977-09-24T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1977-09-24T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1977-09-24T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1977-09-24T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1977-05-21T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1977-05-21T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-05-21T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1977-05-21T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-24T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1977-09-24T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-24T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1977-09-24T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-05-27T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1978-05-27T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1978-05-27T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1978-05-27T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1978-09-30T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1978-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1978-09-30T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1978-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1978-05-27T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1978-05-27T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-05-27T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1978-05-27T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-30T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1978-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-30T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1978-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-05-26T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "23:59:59", "1979-05-26T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1979-05-26T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:00:00", "1979-05-26T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1979-09-29T22:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:59:59", "1979-09-29T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1979-09-29T23:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "00:00:00", "1979-09-29T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1979-05-26T22:59:59+00:00").tz("Europe/Rome").zone(), -60, "1979-05-26T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-05-26T23:00:00+00:00").tz("Europe/Rome").zone(), -120, "1979-05-26T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-29T22:59:59+00:00").tz("Europe/Rome").zone(), -120, "1979-09-29T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-29T23:00:00+00:00").tz("Europe/Rome").zone(), -60, "1979-09-29T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Rome").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Rome").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Rome").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Rome").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Rome").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/samara.js b/tests/europe/samara.js deleted file mode 100644 index 3992d790..00000000 --- a/tests/europe/samara.js +++ /dev/null @@ -1,468 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Samara"] = { - - "1919" : function (t) { - t.equal(moment("1919-06-30T22:39:23+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1919-06-30T22:39:23+00:00 should be 01:59:59 LMT"); - t.equal(moment("1919-06-30T22:39:24+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:39:24", "1919-06-30T22:39:24+00:00 should be 01:39:24 SAMT"); - - t.equal(moment("1919-06-30T22:39:23+00:00").tz("Europe/Samara").zone(), -12036 / 60, "1919-06-30T22:39:23+00:00 should be -12036 / 60 minutes offset in LMT"); - t.equal(moment("1919-06-30T22:39:24+00:00").tz("Europe/Samara").zone(), -180, "1919-06-30T22:39:24+00:00 should be -180 minutes offset in SAMT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T20:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:59:59", "1930-06-20T20:59:59+00:00 should be 23:59:59 SAMT"); - t.equal(moment("1930-06-20T21:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:00:00", "1930-06-20T21:00:00+00:00 should be 01:00:00 SAMT"); - - t.equal(moment("1930-06-20T20:59:59+00:00").tz("Europe/Samara").zone(), -180, "1930-06-20T20:59:59+00:00 should be -180 minutes offset in SAMT"); - t.equal(moment("1930-06-20T21:00:00+00:00").tz("Europe/Samara").zone(), -240, "1930-06-20T21:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-01-26T19:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:59:59", "1935-01-26T19:59:59+00:00 should be 23:59:59 SAMT"); - t.equal(moment("1935-01-26T20:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "00:00:00", "1935-01-26T20:00:00+00:00 should be 00:00:00 KUYT"); - - t.equal(moment("1935-01-26T19:59:59+00:00").tz("Europe/Samara").zone(), -240, "1935-01-26T19:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1935-01-26T20:00:00+00:00").tz("Europe/Samara").zone(), -240, "1935-01-26T20:00:00+00:00 should be -240 minutes offset in KUYT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:59:59", "1981-03-31T19:59:59+00:00 should be 23:59:59 KUYT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:00:00", "1981-03-31T20:00:00+00:00 should be 01:00:00 KUYST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:59:59", "1981-09-30T18:59:59+00:00 should be 23:59:59 KUYST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:00:00", "1981-09-30T19:00:00+00:00 should be 23:00:00 KUYT"); - - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Europe/Samara").zone(), -240, "1981-03-31T19:59:59+00:00 should be -240 minutes offset in KUYT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Europe/Samara").zone(), -300, "1981-03-31T20:00:00+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Europe/Samara").zone(), -300, "1981-09-30T18:59:59+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Europe/Samara").zone(), -240, "1981-09-30T19:00:00+00:00 should be -240 minutes offset in KUYT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:59:59", "1982-03-31T19:59:59+00:00 should be 23:59:59 KUYT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:00:00", "1982-03-31T20:00:00+00:00 should be 01:00:00 KUYST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:59:59", "1982-09-30T18:59:59+00:00 should be 23:59:59 KUYST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:00:00", "1982-09-30T19:00:00+00:00 should be 23:00:00 KUYT"); - - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Europe/Samara").zone(), -240, "1982-03-31T19:59:59+00:00 should be -240 minutes offset in KUYT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Europe/Samara").zone(), -300, "1982-03-31T20:00:00+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Europe/Samara").zone(), -300, "1982-09-30T18:59:59+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Europe/Samara").zone(), -240, "1982-09-30T19:00:00+00:00 should be -240 minutes offset in KUYT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:59:59", "1983-03-31T19:59:59+00:00 should be 23:59:59 KUYT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:00:00", "1983-03-31T20:00:00+00:00 should be 01:00:00 KUYST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:59:59", "1983-09-30T18:59:59+00:00 should be 23:59:59 KUYST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:00:00", "1983-09-30T19:00:00+00:00 should be 23:00:00 KUYT"); - - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Europe/Samara").zone(), -240, "1983-03-31T19:59:59+00:00 should be -240 minutes offset in KUYT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Europe/Samara").zone(), -300, "1983-03-31T20:00:00+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Europe/Samara").zone(), -300, "1983-09-30T18:59:59+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Europe/Samara").zone(), -240, "1983-09-30T19:00:00+00:00 should be -240 minutes offset in KUYT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "23:59:59", "1984-03-31T19:59:59+00:00 should be 23:59:59 KUYT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:00:00", "1984-03-31T20:00:00+00:00 should be 01:00:00 KUYST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1984-09-29T21:59:59+00:00 should be 02:59:59 KUYST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1984-09-29T22:00:00+00:00 should be 02:00:00 KUYT"); - - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Europe/Samara").zone(), -240, "1984-03-31T19:59:59+00:00 should be -240 minutes offset in KUYT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Europe/Samara").zone(), -300, "1984-03-31T20:00:00+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1984-09-29T21:59:59+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1984-09-29T22:00:00+00:00 should be -240 minutes offset in KUYT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1985-03-30T21:59:59+00:00 should be 01:59:59 KUYT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1985-03-30T22:00:00+00:00 should be 03:00:00 KUYST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1985-09-28T21:59:59+00:00 should be 02:59:59 KUYST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1985-09-28T22:00:00+00:00 should be 02:00:00 KUYT"); - - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1985-03-30T21:59:59+00:00 should be -240 minutes offset in KUYT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1985-03-30T22:00:00+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1985-09-28T21:59:59+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1985-09-28T22:00:00+00:00 should be -240 minutes offset in KUYT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1986-03-29T21:59:59+00:00 should be 01:59:59 KUYT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1986-03-29T22:00:00+00:00 should be 03:00:00 KUYST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1986-09-27T21:59:59+00:00 should be 02:59:59 KUYST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1986-09-27T22:00:00+00:00 should be 02:00:00 KUYT"); - - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1986-03-29T21:59:59+00:00 should be -240 minutes offset in KUYT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1986-03-29T22:00:00+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1986-09-27T21:59:59+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1986-09-27T22:00:00+00:00 should be -240 minutes offset in KUYT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1987-03-28T21:59:59+00:00 should be 01:59:59 KUYT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1987-03-28T22:00:00+00:00 should be 03:00:00 KUYST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1987-09-26T21:59:59+00:00 should be 02:59:59 KUYST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1987-09-26T22:00:00+00:00 should be 02:00:00 KUYT"); - - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1987-03-28T21:59:59+00:00 should be -240 minutes offset in KUYT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1987-03-28T22:00:00+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1987-09-26T21:59:59+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1987-09-26T22:00:00+00:00 should be -240 minutes offset in KUYT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1988-03-26T21:59:59+00:00 should be 01:59:59 KUYT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1988-03-26T22:00:00+00:00 should be 03:00:00 KUYST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1988-09-24T21:59:59+00:00 should be 02:59:59 KUYST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1988-09-24T22:00:00+00:00 should be 02:00:00 KUYT"); - - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1988-03-26T21:59:59+00:00 should be -240 minutes offset in KUYT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1988-03-26T22:00:00+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1988-09-24T21:59:59+00:00 should be -300 minutes offset in KUYST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1988-09-24T22:00:00+00:00 should be -240 minutes offset in KUYT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1989-03-25T21:59:59+00:00 should be 01:59:59 KUYT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1989-03-25T22:00:00+00:00 should be 02:00:00 KUYST"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 KUYST"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 KUYT"); - - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1989-03-25T21:59:59+00:00 should be -240 minutes offset in KUYT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1989-03-25T22:00:00+00:00 should be -240 minutes offset in KUYST"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Samara").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in KUYST"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Samara").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in KUYT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1990-03-24T22:59:59+00:00 should be 01:59:59 KUYT"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1990-03-24T23:00:00+00:00 should be 03:00:00 KUYST"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1990-09-29T22:59:59+00:00 should be 02:59:59 KUYST"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1990-09-29T23:00:00+00:00 should be 02:00:00 KUYT"); - - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Samara").zone(), -180, "1990-03-24T22:59:59+00:00 should be -180 minutes offset in KUYT"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Samara").zone(), -240, "1990-03-24T23:00:00+00:00 should be -240 minutes offset in KUYST"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Samara").zone(), -240, "1990-09-29T22:59:59+00:00 should be -240 minutes offset in KUYST"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Samara").zone(), -180, "1990-09-29T23:00:00+00:00 should be -180 minutes offset in KUYT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1991-03-30T22:59:59+00:00 should be 01:59:59 KUYT"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1991-03-30T23:00:00+00:00 should be 02:00:00 KUYST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1991-09-28T23:59:59+00:00 should be 02:59:59 KUYST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1991-09-29T00:00:00+00:00 should be 03:00:00 KUYT"); - t.equal(moment("1991-10-19T23:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1991-10-19T23:59:59+00:00 should be 02:59:59 KUYT"); - t.equal(moment("1991-10-20T00:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "04:00:00", "1991-10-20T00:00:00+00:00 should be 04:00:00 SAMT"); - - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Samara").zone(), -180, "1991-03-30T22:59:59+00:00 should be -180 minutes offset in KUYT"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Samara").zone(), -180, "1991-03-30T23:00:00+00:00 should be -180 minutes offset in KUYST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Samara").zone(), -180, "1991-09-28T23:59:59+00:00 should be -180 minutes offset in KUYST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Samara").zone(), -180, "1991-09-29T00:00:00+00:00 should be -180 minutes offset in KUYT"); - t.equal(moment("1991-10-19T23:59:59+00:00").tz("Europe/Samara").zone(), -180, "1991-10-19T23:59:59+00:00 should be -180 minutes offset in KUYT"); - t.equal(moment("1991-10-20T00:00:00+00:00").tz("Europe/Samara").zone(), -240, "1991-10-20T00:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T18:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "22:59:59", "1992-03-28T18:59:59+00:00 should be 22:59:59 SAMT"); - t.equal(moment("1992-03-28T19:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "00:00:00", "1992-03-28T19:00:00+00:00 should be 00:00:00 SAMST"); - t.equal(moment("1992-09-26T17:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "22:59:59", "1992-09-26T17:59:59+00:00 should be 22:59:59 SAMST"); - t.equal(moment("1992-09-26T18:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "22:00:00", "1992-09-26T18:00:00+00:00 should be 22:00:00 SAMT"); - - t.equal(moment("1992-03-28T18:59:59+00:00").tz("Europe/Samara").zone(), -240, "1992-03-28T18:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1992-03-28T19:00:00+00:00").tz("Europe/Samara").zone(), -300, "1992-03-28T19:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1992-09-26T17:59:59+00:00").tz("Europe/Samara").zone(), -300, "1992-09-26T17:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1992-09-26T18:00:00+00:00").tz("Europe/Samara").zone(), -240, "1992-09-26T18:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1993-03-27T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1993-03-27T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1993-09-25T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1993-09-25T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1993-09-25T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1993-09-25T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1993-03-27T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1993-03-27T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1993-09-25T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1993-09-25T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1993-09-25T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1993-09-25T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1994-03-26T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1994-03-26T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1994-09-24T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1994-09-24T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1994-09-24T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1994-09-24T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1994-03-26T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1994-03-26T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1994-09-24T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1994-09-24T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1994-09-24T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1994-09-24T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1995-03-25T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1995-03-25T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1995-09-23T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1995-09-23T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1995-09-23T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1995-09-23T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1995-03-25T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1995-03-25T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1995-09-23T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1995-09-23T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1995-09-23T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1995-09-23T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1996-03-30T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1996-03-30T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1996-10-26T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1996-10-26T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1996-10-26T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1996-10-26T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1996-03-30T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1996-03-30T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1996-10-26T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1996-10-26T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1996-10-26T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1996-10-26T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1997-03-29T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1997-03-29T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1997-10-25T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1997-10-25T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1997-10-25T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1997-10-25T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1997-03-29T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1997-03-29T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1997-03-29T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1997-03-29T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1997-10-25T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1997-10-25T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1997-10-25T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1997-10-25T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1998-03-28T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1998-03-28T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1998-10-24T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1998-10-24T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1998-10-24T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1998-10-24T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1998-03-28T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1998-03-28T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1998-03-28T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1998-03-28T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1998-10-24T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1998-10-24T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1998-10-24T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1998-10-24T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "1999-03-27T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "1999-03-27T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("1999-10-30T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "1999-10-30T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("1999-10-30T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "1999-10-30T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("1999-03-27T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "1999-03-27T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("1999-03-27T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "1999-03-27T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1999-10-30T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "1999-10-30T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("1999-10-30T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "1999-10-30T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2000-03-25T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2000-03-25T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2000-10-28T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2000-10-28T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2000-10-28T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2000-10-28T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2000-03-25T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2000-03-25T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2000-03-25T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2000-03-25T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2000-10-28T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2000-10-28T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2000-10-28T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2000-10-28T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2001-03-24T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2001-03-24T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2001-10-27T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2001-10-27T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2001-10-27T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2001-10-27T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2001-03-24T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2001-03-24T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2001-03-24T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2001-03-24T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2001-10-27T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2001-10-27T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2001-10-27T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2001-10-27T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2002-03-30T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2002-03-30T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2002-10-26T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2002-10-26T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2002-10-26T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2002-10-26T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2002-03-30T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2002-03-30T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2002-03-30T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2002-03-30T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2002-10-26T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2002-10-26T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2002-10-26T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2002-10-26T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2003-03-29T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2003-03-29T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2003-10-25T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2003-10-25T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2003-10-25T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2003-10-25T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2003-03-29T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2003-03-29T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2003-03-29T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2003-03-29T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2003-10-25T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2003-10-25T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2003-10-25T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2003-10-25T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2004-03-27T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2004-03-27T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2004-10-30T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2004-10-30T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2004-10-30T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2004-10-30T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2004-03-27T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2004-03-27T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2004-03-27T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2004-03-27T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2004-10-30T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2004-10-30T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2004-10-30T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2004-10-30T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2005-03-26T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2005-03-26T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2005-03-26T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2005-10-29T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2005-10-29T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2005-10-29T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2005-10-29T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2005-03-26T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2005-03-26T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2005-03-26T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2005-03-26T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2005-10-29T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2005-10-29T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2005-10-29T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2005-10-29T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2006-03-25T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2006-03-25T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2006-03-25T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2006-10-28T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2006-10-28T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2006-10-28T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2006-10-28T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2006-03-25T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2006-03-25T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2006-03-25T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2006-03-25T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2006-10-28T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2006-10-28T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2006-10-28T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2006-10-28T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2007-03-24T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2007-03-24T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2007-03-24T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2007-10-27T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2007-10-27T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2007-10-27T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2007-10-27T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2007-03-24T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2007-03-24T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2007-03-24T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2007-03-24T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2007-10-27T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2007-10-27T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2007-10-27T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2007-10-27T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2008-03-29T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2008-03-29T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2008-03-29T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2008-10-25T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2008-10-25T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2008-10-25T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2008-10-25T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2008-03-29T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2008-03-29T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2008-03-29T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2008-03-29T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2008-10-25T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2008-10-25T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2008-10-25T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2008-10-25T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2009-03-28T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2009-03-28T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2009-03-28T22:00:00+00:00 should be 03:00:00 SAMST"); - t.equal(moment("2009-10-24T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2009-10-24T21:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2009-10-24T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2009-10-24T22:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2009-03-28T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2009-03-28T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2009-03-28T22:00:00+00:00").tz("Europe/Samara").zone(), -300, "2009-03-28T22:00:00+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2009-10-24T21:59:59+00:00").tz("Europe/Samara").zone(), -300, "2009-10-24T21:59:59+00:00 should be -300 minutes offset in SAMST"); - t.equal(moment("2009-10-24T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2009-10-24T22:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T21:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2010-03-27T21:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2010-03-27T22:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2010-03-27T22:00:00+00:00 should be 02:00:00 SAMST"); - t.equal(moment("2010-10-30T22:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:59:59", "2010-10-30T22:59:59+00:00 should be 02:59:59 SAMST"); - t.equal(moment("2010-10-30T23:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "02:00:00", "2010-10-30T23:00:00+00:00 should be 02:00:00 SAMT"); - - t.equal(moment("2010-03-27T21:59:59+00:00").tz("Europe/Samara").zone(), -240, "2010-03-27T21:59:59+00:00 should be -240 minutes offset in SAMT"); - t.equal(moment("2010-03-27T22:00:00+00:00").tz("Europe/Samara").zone(), -240, "2010-03-27T22:00:00+00:00 should be -240 minutes offset in SAMST"); - t.equal(moment("2010-10-30T22:59:59+00:00").tz("Europe/Samara").zone(), -240, "2010-10-30T22:59:59+00:00 should be -240 minutes offset in SAMST"); - t.equal(moment("2010-10-30T23:00:00+00:00").tz("Europe/Samara").zone(), -180, "2010-10-30T23:00:00+00:00 should be -180 minutes offset in SAMT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T22:59:59+00:00").tz("Europe/Samara").format("HH:mm:ss"), "01:59:59", "2011-03-26T22:59:59+00:00 should be 01:59:59 SAMT"); - t.equal(moment("2011-03-26T23:00:00+00:00").tz("Europe/Samara").format("HH:mm:ss"), "03:00:00", "2011-03-26T23:00:00+00:00 should be 03:00:00 SAMT"); - - t.equal(moment("2011-03-26T22:59:59+00:00").tz("Europe/Samara").zone(), -180, "2011-03-26T22:59:59+00:00 should be -180 minutes offset in SAMT"); - t.equal(moment("2011-03-26T23:00:00+00:00").tz("Europe/Samara").zone(), -240, "2011-03-26T23:00:00+00:00 should be -240 minutes offset in SAMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/simferopol.js b/tests/europe/simferopol.js deleted file mode 100644 index bdb19ed4..00000000 --- a/tests/europe/simferopol.js +++ /dev/null @@ -1,856 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Simferopol"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T21:43:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1924-05-01T21:43:59+00:00 should be 23:59:59 SMT"); - t.equal(moment("1924-05-01T21:44:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:44:00", "1924-05-01T21:44:00+00:00 should be 23:44:00 EET"); - - t.equal(moment("1924-05-01T21:43:59+00:00").tz("Europe/Simferopol").zone(), -136, "1924-05-01T21:43:59+00:00 should be -136 minutes offset in SMT"); - t.equal(moment("1924-05-01T21:44:00+00:00").tz("Europe/Simferopol").zone(), -120, "1924-05-01T21:44:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1930-06-20T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1930-06-20T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "1930-06-20T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1930-06-20T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-10-31T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1941-10-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1941-10-31T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:00:00", "1941-10-31T21:00:00+00:00 should be 23:00:00 CEST"); - - t.equal(moment("1941-10-31T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1941-10-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1941-10-31T21:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "1941-10-31T21:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Simferopol").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Simferopol").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-04-12T21:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1944-04-12T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1944-04-12T22:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1944-04-12T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Simferopol").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-04-12T21:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "1944-04-12T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-04-12T22:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1944-04-12T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-06-30T22:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:59:59", "1990-06-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1990-06-30T23:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1990-06-30T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1990-06-30T22:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1990-06-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1990-06-30T23:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "1990-06-30T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1992-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:00:00", "1992-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1992-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "1992-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1993-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1993-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1993-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:00:00", "1993-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "1993-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1993-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1993-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "1993-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1994-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1994-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-04-30T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1994-04-30T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-04-30T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1994-04-30T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1994-09-24T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:00:00", "1994-09-24T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "1994-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1994-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-04-30T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1994-04-30T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-04-30T21:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1994-04-30T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1994-09-24T19:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1994-09-24T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1994-09-24T20:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1994-09-24T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1995-03-25T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1995-03-25T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1995-03-25T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1995-09-23T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:00:00", "1995-09-23T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1995-03-25T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1995-03-25T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1995-03-25T21:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1995-03-25T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1995-09-23T19:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1995-09-23T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1995-09-23T20:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1995-09-23T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T20:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "23:59:59", "1996-03-30T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1996-03-30T21:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "01:00:00", "1996-03-30T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "1996-10-26T23:59:59+00:00 should be 03:59:59 MSD"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1996-10-27T00:00:00+00:00 should be 03:00:00 MSK"); - - t.equal(moment("1996-03-30T20:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1996-03-30T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1996-03-30T21:00:00+00:00").tz("Europe/Simferopol").zone(), -240, "1996-03-30T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Simferopol").zone(), -240, "1996-10-26T23:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1996-10-27T00:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "1997-03-30T00:59:59+00:00 should be 03:59:59 MSK"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1997-03-30T00:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Simferopol").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Simferopol").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Simferopol").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Simferopol").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Simferopol").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/sofia.js b/tests/europe/sofia.js deleted file mode 100644 index 565f6789..00000000 --- a/tests/europe/sofia.js +++ /dev/null @@ -1,878 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Sofia"] = { - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Sofia").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Sofia").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Sofia").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Sofia").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T01:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1945-04-02T01:59:59+00:00 should be 02:59:59 CET"); - t.equal(moment("1945-04-02T02:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "1945-04-02T02:00:00+00:00 should be 04:00:00 EET"); - - t.equal(moment("1945-04-02T01:59:59+00:00").tz("Europe/Sofia").zone(), -60, "1945-04-02T01:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T02:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1945-04-02T02:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-31T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "22:59:59", "1979-03-31T20:59:59+00:00 should be 22:59:59 EET"); - t.equal(moment("1979-03-31T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "00:00:00", "1979-03-31T21:00:00+00:00 should be 00:00:00 EEST"); - t.equal(moment("1979-09-30T21:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "00:59:59", "1979-09-30T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1979-09-30T22:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "00:00:00", "1979-09-30T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1979-03-31T20:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1979-03-31T20:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1979-03-31T21:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1979-03-31T21:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-30T21:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1979-09-30T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1979-09-30T22:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1979-09-30T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-05T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "22:59:59", "1980-04-05T20:59:59+00:00 should be 22:59:59 EET"); - t.equal(moment("1980-04-05T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "00:00:00", "1980-04-05T21:00:00+00:00 should be 00:00:00 EEST"); - t.equal(moment("1980-09-28T21:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "00:59:59", "1980-09-28T21:59:59+00:00 should be 00:59:59 EEST"); - t.equal(moment("1980-09-28T22:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "00:00:00", "1980-09-28T22:00:00+00:00 should be 00:00:00 EET"); - - t.equal(moment("1980-04-05T20:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1980-04-05T20:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1980-04-05T21:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1980-04-05T21:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-28T21:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1980-09-28T21:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1980-09-28T22:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1980-09-28T22:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-04T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "22:59:59", "1981-04-04T20:59:59+00:00 should be 22:59:59 EET"); - t.equal(moment("1981-04-04T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "00:00:00", "1981-04-04T21:00:00+00:00 should be 00:00:00 EEST"); - t.equal(moment("1981-09-26T22:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1981-09-26T22:59:59+00:00 should be 01:59:59 EEST"); - t.equal(moment("1981-09-26T23:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:00:00", "1981-09-26T23:00:00+00:00 should be 01:00:00 EET"); - - t.equal(moment("1981-04-04T20:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1981-04-04T20:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1981-04-04T21:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1981-04-04T21:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-26T22:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1981-09-26T22:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1981-09-26T23:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1981-09-26T23:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-03T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "22:59:59", "1982-04-03T20:59:59+00:00 should be 22:59:59 EET"); - t.equal(moment("1982-04-03T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "00:00:00", "1982-04-03T21:00:00+00:00 should be 00:00:00 EEST"); - t.equal(moment("1982-09-25T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1982-09-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1982-09-26T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1982-09-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1982-04-03T20:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1982-04-03T20:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1982-04-03T21:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1982-04-03T21:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-25T23:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1982-09-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1982-09-26T00:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1982-09-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-26T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1983-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1983-03-27T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1983-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1983-09-24T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1983-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1983-09-25T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1983-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1983-03-26T23:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1983-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1983-03-27T00:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1983-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-24T23:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1983-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1983-09-25T00:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1983-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-24T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1984-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1984-03-25T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1984-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1984-09-29T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1984-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1984-09-30T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1984-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1984-03-24T23:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1984-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1984-03-25T00:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1984-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-29T23:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1984-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1984-09-30T00:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1984-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1985-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1985-03-31T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1985-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1985-09-28T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1985-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1985-09-29T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1985-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1985-03-30T23:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1985-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1985-03-31T00:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1985-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-28T23:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1985-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1985-09-29T00:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1985-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1986-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1986-03-30T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1986-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1986-09-27T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1986-09-27T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1986-09-28T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1986-09-28T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1986-03-29T23:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1986-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1986-03-30T00:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1986-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-27T23:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1986-09-27T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1986-09-28T00:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1986-09-28T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1987-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1987-03-29T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1987-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1987-09-26T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1987-09-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1987-09-27T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1987-09-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1987-03-28T23:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1987-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1987-03-29T00:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1987-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-26T23:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1987-09-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1987-09-27T00:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1987-09-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1988-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1988-03-27T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1988-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1988-09-24T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1988-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1988-09-25T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1988-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1988-03-26T23:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1988-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1988-03-27T00:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1988-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-24T23:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1988-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1988-09-25T00:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1988-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1989-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1989-03-26T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1989-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1989-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1989-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1989-03-25T23:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1989-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1989-03-26T00:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1989-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1989-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1989-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:59:59", "1990-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1990-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1990-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:00:00", "1990-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1990-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1990-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1990-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1990-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1991-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:00:00", "1991-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1991-09-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:00:00", "1991-09-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1991-03-30T21:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1991-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-30T22:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1991-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1991-09-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1991-09-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1992-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:00:00", "1992-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1992-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1992-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1993-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:00:00", "1993-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1993-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:00:00", "1993-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1993-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1993-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1993-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1993-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1994-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:00:00", "1994-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1994-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:00:00", "1994-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1994-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1994-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1994-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1994-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1995-03-25T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:00:00", "1995-03-25T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1995-09-23T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:00:00", "1995-09-23T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1995-03-25T21:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1995-03-25T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-25T22:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1995-03-25T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T20:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1995-09-23T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T21:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1995-09-23T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1996-03-30T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "01:00:00", "1996-03-30T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:59:59", "1996-10-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "23:00:00", "1996-10-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1996-03-30T21:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1996-03-30T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-30T22:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1996-03-30T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T20:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1996-10-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T21:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1996-10-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Sofia").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Sofia").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Sofia").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Sofia").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Sofia").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/stockholm.js b/tests/europe/stockholm.js deleted file mode 100644 index 4fcd3784..00000000 --- a/tests/europe/stockholm.js +++ /dev/null @@ -1,830 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Stockholm"] = { - - "1916" : function (t) { - t.equal(moment("1916-05-14T21:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "22:59:59", "1916-05-14T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-05-14T22:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "00:00:00", "1916-05-14T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-05-14T21:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1916-05-14T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-05-14T22:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1916-05-14T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Stockholm").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Stockholm").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Stockholm").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Stockholm").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Stockholm").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/tallinn.js b/tests/europe/tallinn.js deleted file mode 100644 index 03ddbbc1..00000000 --- a/tests/europe/tallinn.js +++ /dev/null @@ -1,870 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Tallinn"] = { - - "1918" : function (t) { - t.equal(moment("1918-01-31T22:20:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1918-01-31T22:20:59+00:00 should be 23:59:59 TMT"); - t.equal(moment("1918-01-31T22:21:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:21:00", "1918-01-31T22:21:00+00:00 should be 23:21:00 CET"); - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1918-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1918-01-31T22:20:59+00:00").tz("Europe/Tallinn").zone(), -99, "1918-01-31T22:20:59+00:00 should be -99 minutes offset in TMT"); - t.equal(moment("1918-01-31T22:21:00+00:00").tz("Europe/Tallinn").zone(), -60, "1918-01-31T22:21:00+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Tallinn").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Tallinn").zone(), -60, "1918-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-06-30T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1919-06-30T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1919-06-30T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "00:39:00", "1919-06-30T23:00:00+00:00 should be 00:39:00 TMT"); - - t.equal(moment("1919-06-30T22:59:59+00:00").tz("Europe/Tallinn").zone(), -60, "1919-06-30T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1919-06-30T23:00:00+00:00").tz("Europe/Tallinn").zone(), -99, "1919-06-30T23:00:00+00:00 should be -99 minutes offset in TMT"); - - t.done(); - }, - - "1921" : function (t) { - t.equal(moment("1921-04-30T22:20:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1921-04-30T22:20:59+00:00 should be 23:59:59 TMT"); - t.equal(moment("1921-04-30T22:21:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "00:21:00", "1921-04-30T22:21:00+00:00 should be 00:21:00 EET"); - - t.equal(moment("1921-04-30T22:20:59+00:00").tz("Europe/Tallinn").zone(), -99, "1921-04-30T22:20:59+00:00 should be -99 minutes offset in TMT"); - t.equal(moment("1921-04-30T22:21:00+00:00").tz("Europe/Tallinn").zone(), -120, "1921-04-30T22:21:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-08-05T21:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1940-08-05T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1940-08-05T22:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:00:00", "1940-08-05T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1940-08-05T21:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1940-08-05T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1940-08-05T22:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1940-08-05T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-09-14T20:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1941-09-14T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1941-09-14T21:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:00:00", "1941-09-14T21:00:00+00:00 should be 23:00:00 CEST"); - - t.equal(moment("1941-09-14T20:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1941-09-14T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1941-09-14T21:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1941-09-14T21:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Tallinn").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Tallinn").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-09-21T21:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1944-09-21T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1944-09-21T22:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:00:00", "1944-09-21T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Tallinn").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-09-21T21:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1944-09-21T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-09-21T22:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1944-09-21T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Tallinn").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Tallinn").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Tallinn").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Tallinn").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Tallinn").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Tallinn").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Tallinn").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Tallinn").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Tallinn").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Tallinn").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Tallinn").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Tallinn").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Tallinn").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Tallinn").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Tallinn").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Tallinn").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1989-03-25T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1989-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1989-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1989-03-25T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-23T23:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1989-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1989-09-24T00:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1989-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1990-03-24T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1990-03-25T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1990-09-29T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1990-09-30T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1990-03-24T23:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1990-03-24T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1990-03-25T00:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1990-03-25T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-29T23:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1990-09-29T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1990-09-30T00:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1990-09-30T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1991-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1991-03-31T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1991-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1991-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1991-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1991-03-30T23:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1991-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1991-03-31T00:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1991-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1991-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1991-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1992-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1992-03-29T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1992-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1992-09-26T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1992-09-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1992-09-27T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1992-09-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1992-03-28T23:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1992-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-29T00:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1992-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T23:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1992-09-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-27T00:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1992-09-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1993-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1993-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1993-09-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1993-09-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1993-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1993-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1993-09-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1993-09-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1994-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1994-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1994-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1994-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1994-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1994-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1994-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1994-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1995-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1995-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1995-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1995-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1995-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1995-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1995-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1995-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1996-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1996-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1996-10-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1996-10-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1996-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1996-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1996-10-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1996-10-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1997-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1997-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1997-10-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:00:00", "1997-10-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1997-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1997-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1997-10-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1997-10-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T23:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "01:59:59", "1998-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1998-03-29T00:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1998-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-28T23:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1998-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T00:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1998-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Tallinn").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Tallinn").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Tallinn").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Tallinn").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Tallinn").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/tirane.js b/tests/europe/tirane.js deleted file mode 100644 index 74a657c4..00000000 --- a/tests/europe/tirane.js +++ /dev/null @@ -1,944 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Tirane"] = { - - "1913" : function (t) { - t.equal(moment("1913-12-31T22:40:39+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1913-12-31T22:40:39+00:00 should be 23:59:59 LMT"); - t.equal(moment("1913-12-31T22:40:40+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:40:40", "1913-12-31T22:40:40+00:00 should be 23:40:40 CET"); - - t.equal(moment("1913-12-31T22:40:39+00:00").tz("Europe/Tirane").zone(), -4760 / 60, "1913-12-31T22:40:39+00:00 should be -4760 / 60 minutes offset in LMT"); - t.equal(moment("1913-12-31T22:40:40+00:00").tz("Europe/Tirane").zone(), -60, "1913-12-31T22:40:40+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-06-15T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1940-06-15T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1940-06-15T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1940-06-15T23:00:00+00:00 should be 01:00:00 CEST"); - - t.equal(moment("1940-06-15T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1940-06-15T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-06-15T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1940-06-15T23:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-04-10T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1943-04-10T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-04-10T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1943-04-10T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-04-10T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1943-04-10T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-04-10T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1943-04-10T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-05-03T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1974-05-03T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1974-05-03T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1974-05-03T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1974-10-01T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1974-10-01T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1974-10-01T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1974-10-01T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1974-05-03T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1974-05-03T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1974-05-03T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1974-05-03T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1974-10-01T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1974-10-01T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1974-10-01T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1974-10-01T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-04-30T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1975-04-30T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1975-04-30T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1975-04-30T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1975-10-01T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1975-10-01T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1975-10-01T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1975-10-01T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1975-04-30T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1975-04-30T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1975-04-30T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1975-04-30T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1975-10-01T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1975-10-01T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1975-10-01T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1975-10-01T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-05-01T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1976-05-01T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1976-05-01T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1976-05-01T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1976-10-02T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1976-10-02T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1976-10-02T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1976-10-02T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1976-05-01T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1976-05-01T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1976-05-01T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1976-05-01T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-10-02T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1976-10-02T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1976-10-02T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1976-10-02T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-05-07T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1977-05-07T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1977-05-07T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1977-05-07T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1977-10-01T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1977-10-01T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1977-10-01T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1977-10-01T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1977-05-07T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1977-05-07T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-05-07T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1977-05-07T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-10-01T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1977-10-01T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-10-01T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1977-10-01T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-05-05T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1978-05-05T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1978-05-05T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1978-05-05T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1978-09-30T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1978-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1978-09-30T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1978-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1978-05-05T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1978-05-05T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-05-05T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1978-05-05T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-30T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1978-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-30T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1978-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-05-04T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1979-05-04T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1979-05-04T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1979-05-04T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1979-09-29T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1979-09-29T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1979-09-29T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1979-09-29T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1979-05-04T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1979-05-04T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-05-04T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1979-05-04T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-29T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1979-09-29T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-29T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1979-09-29T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-05-02T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1980-05-02T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1980-05-02T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1980-05-02T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1980-10-03T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1980-10-03T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1980-10-03T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1980-10-03T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1980-05-02T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1980-05-02T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-05-02T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1980-05-02T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-10-03T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1980-10-03T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-10-03T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1980-10-03T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-25T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1981-04-25T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1981-04-25T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1981-04-25T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1981-09-26T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1981-09-26T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1981-09-26T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1981-09-26T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1981-04-25T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1981-04-25T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-04-25T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1981-04-25T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-26T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1981-09-26T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-26T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1981-09-26T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-05-01T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1982-05-01T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1982-05-01T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1982-05-01T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1982-10-02T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1982-10-02T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1982-10-02T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1982-10-02T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1982-05-01T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1982-05-01T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-05-01T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1982-05-01T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-10-02T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1982-10-02T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-10-02T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1982-10-02T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-17T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1983-04-17T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1983-04-17T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1983-04-17T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1983-09-30T21:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1983-09-30T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1983-09-30T22:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:00:00", "1983-09-30T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1983-04-17T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1983-04-17T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-04-17T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1983-04-17T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-30T21:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1983-09-30T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-30T22:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1983-09-30T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T22:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "23:59:59", "1984-03-31T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1984-03-31T23:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:00:00", "1984-03-31T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-31T22:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1984-03-31T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-31T23:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1984-03-31T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Tirane").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Tirane").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Tirane").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Tirane").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Tirane").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/uzhgorod.js b/tests/europe/uzhgorod.js deleted file mode 100644 index 09a07ade..00000000 --- a/tests/europe/uzhgorod.js +++ /dev/null @@ -1,852 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Uzhgorod"] = { - - "1940" : function (t) { - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:59:59", "1940-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1940-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -60, "1940-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1940-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-25T21:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1944-10-25T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1944-10-25T22:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:00:00", "1944-10-25T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-25T21:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1944-10-25T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-25T22:00:00+00:00").tz("Europe/Uzhgorod").zone(), -60, "1944-10-25T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-06-28T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1945-06-28T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1945-06-28T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:00:00", "1945-06-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1945-06-28T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -60, "1945-06-28T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-06-28T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1945-06-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Uzhgorod").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Uzhgorod").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Uzhgorod").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Uzhgorod").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Uzhgorod").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Uzhgorod").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Uzhgorod").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-06-30T22:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:59:59", "1990-06-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1990-06-30T23:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "00:00:00", "1990-06-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1990-06-30T22:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1990-06-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1990-06-30T23:00:00+00:00").tz("Europe/Uzhgorod").zone(), -60, "1990-06-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T01:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1991-03-31T01:59:59+00:00 should be 02:59:59 CET"); - t.equal(moment("1991-03-31T02:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "1991-03-31T02:00:00+00:00 should be 04:00:00 EET"); - - t.equal(moment("1991-03-31T01:59:59+00:00").tz("Europe/Uzhgorod").zone(), -60, "1991-03-31T01:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T02:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1991-03-31T02:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1992-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:00:00", "1992-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1992-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1992-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1993-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:00:00", "1993-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1993-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:00:00", "1993-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1993-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1993-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1993-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1993-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1994-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "01:00:00", "1994-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:59:59", "1994-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "23:00:00", "1994-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1994-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1994-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1994-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1994-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1995-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "1995-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "1995-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1995-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1995-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1995-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1995-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1995-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1996-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "1996-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "1996-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1996-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1996-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1996-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1996-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1996-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Uzhgorod").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Uzhgorod").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/vaduz.js b/tests/europe/vaduz.js deleted file mode 100644 index 8150db41..00000000 --- a/tests/europe/vaduz.js +++ /dev/null @@ -1,802 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Vaduz"] = { - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Vaduz").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Vaduz").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Vaduz").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Vaduz").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Vaduz").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/vienna.js b/tests/europe/vienna.js deleted file mode 100644 index d4766d66..00000000 --- a/tests/europe/vienna.js +++ /dev/null @@ -1,976 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Vienna"] = { - - "1916" : function (t) { - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "22:59:59", "1916-04-30T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "00:00:00", "1916-04-30T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1916-04-30T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1916-04-30T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1918-09-16T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1918-09-16T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-04-05T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1920-04-05T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1920-04-05T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1920-04-05T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1920-09-13T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1920-09-13T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1920-09-13T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1920-09-13T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1920-04-05T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1920-04-05T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1920-04-05T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1920-04-05T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1920-09-13T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1920-09-13T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1920-09-13T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1920-09-13T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1940-04-01T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1940-04-01T01:00:00+00:00 should be 03:00:00 CEST"); - - t.equal(moment("1940-04-01T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1940-04-01T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1940-04-01T01:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1945-04-12T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1945-04-12T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1945-04-12T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1945-04-12T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-04-12T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1945-04-12T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-04-12T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1945-04-12T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-14T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1946-04-14T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1946-04-14T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1946-04-14T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1946-10-06T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1946-10-06T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-04-14T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1946-04-14T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-04-14T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1946-04-14T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1946-10-06T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1946-10-06T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-04-06T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1947-04-06T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1947-04-06T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1947-04-06T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1947-10-05T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1947-10-05T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1947-04-06T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1947-04-06T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1947-04-06T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1947-04-06T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1947-10-05T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1947-10-05T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-18T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1948-04-18T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1948-04-18T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1948-04-18T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1948-10-03T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1948-10-03T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1948-04-18T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1948-04-18T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1948-04-18T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1948-04-18T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1948-10-03T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1948-10-03T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-05T22:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "23:59:59", "1980-04-05T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1980-04-05T23:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:00:00", "1980-04-05T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1980-09-27T21:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "23:59:59", "1980-09-27T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1980-09-27T22:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "23:00:00", "1980-09-27T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1980-04-05T22:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1980-04-05T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-05T23:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1980-04-05T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-27T21:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1980-09-27T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-27T22:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1980-09-27T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Vienna").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Vienna").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Vienna").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Vienna").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Vienna").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/vilnius.js b/tests/europe/vilnius.js deleted file mode 100644 index f84ba59b..00000000 --- a/tests/europe/vilnius.js +++ /dev/null @@ -1,852 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Vilnius"] = { - - "1916" : function (t) { - t.equal(moment("1916-12-31T22:35:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1916-12-31T22:35:59+00:00 should be 23:59:59 WMT"); - t.equal(moment("1916-12-31T22:36:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "00:11:36", "1916-12-31T22:36:00+00:00 should be 00:11:36 KMT"); - - t.equal(moment("1916-12-31T22:35:59+00:00").tz("Europe/Vilnius").zone(), -84, "1916-12-31T22:35:59+00:00 should be -84 minutes offset in WMT"); - t.equal(moment("1916-12-31T22:36:00+00:00").tz("Europe/Vilnius").zone(), -5736 / 60, "1916-12-31T22:36:00+00:00 should be -5736 / 60 minutes offset in KMT"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-10-09T22:24:23+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1919-10-09T22:24:23+00:00 should be 23:59:59 KMT"); - t.equal(moment("1919-10-09T22:24:24+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:24:24", "1919-10-09T22:24:24+00:00 should be 23:24:24 CET"); - - t.equal(moment("1919-10-09T22:24:23+00:00").tz("Europe/Vilnius").zone(), -5736 / 60, "1919-10-09T22:24:23+00:00 should be -5736 / 60 minutes offset in KMT"); - t.equal(moment("1919-10-09T22:24:24+00:00").tz("Europe/Vilnius").zone(), -60, "1919-10-09T22:24:24+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1920" : function (t) { - t.equal(moment("1920-07-11T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1920-07-11T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1920-07-11T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1920-07-11T23:00:00+00:00 should be 01:00:00 EET"); - t.equal(moment("1920-10-08T21:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1920-10-08T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1920-10-08T22:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1920-10-08T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1920-07-11T22:59:59+00:00").tz("Europe/Vilnius").zone(), -60, "1920-07-11T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1920-07-11T23:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1920-07-11T23:00:00+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1920-10-08T21:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1920-10-08T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1920-10-08T22:00:00+00:00").tz("Europe/Vilnius").zone(), -60, "1920-10-08T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-08-02T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1940-08-02T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1940-08-02T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1940-08-02T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1940-08-02T22:59:59+00:00").tz("Europe/Vilnius").zone(), -60, "1940-08-02T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-08-02T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1940-08-02T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-06-23T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1941-06-23T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1941-06-23T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1941-06-23T21:00:00+00:00 should be 23:00:00 CEST"); - - t.equal(moment("1941-06-23T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1941-06-23T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1941-06-23T21:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1941-06-23T21:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Vilnius").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Vilnius").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-07-31T21:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1944-07-31T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1944-07-31T22:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1944-07-31T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Vilnius").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-07-31T21:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1944-07-31T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-07-31T22:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1944-07-31T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1990-03-24T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1990-03-24T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1990-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1990-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1990-03-24T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1990-03-24T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1990-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1990-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1991-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1991-03-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1991-09-28T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1991-09-29T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1991-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1991-03-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1991-09-28T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1991-09-29T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1992-03-28T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1992-03-29T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1992-03-29T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1992-09-26T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1992-09-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1992-09-27T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1992-09-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1992-03-28T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1992-03-28T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-29T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1992-03-29T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1992-09-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-27T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1992-09-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1993-03-27T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1993-03-28T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1993-09-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1993-09-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1993-03-27T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1993-03-28T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1993-09-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1993-09-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1994-03-26T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1994-03-27T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1994-09-24T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1994-09-25T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1994-03-26T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1994-03-27T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1994-09-24T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1994-09-25T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1995-03-25T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1995-03-26T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1995-09-23T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1995-09-24T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1995-03-25T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1995-03-26T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1995-09-23T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1995-09-24T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1996-03-30T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1996-03-31T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1996-10-26T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1996-10-27T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1996-03-30T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1996-03-31T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1996-10-26T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1996-10-27T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1997-03-29T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1997-03-30T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1997-10-25T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1997-10-26T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1997-03-29T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1997-03-30T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1997-10-25T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1997-10-26T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/volgograd.js b/tests/europe/volgograd.js deleted file mode 100644 index f939cd32..00000000 --- a/tests/europe/volgograd.js +++ /dev/null @@ -1,470 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Volgograd"] = { - - "1920" : function (t) { - t.equal(moment("1920-01-02T21:02:19+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1920-01-02T21:02:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1920-01-02T21:02:20+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "00:02:20", "1920-01-02T21:02:20+00:00 should be 00:02:20 TSAT"); - - t.equal(moment("1920-01-02T21:02:19+00:00").tz("Europe/Volgograd").zone(), -10660 / 60, "1920-01-02T21:02:19+00:00 should be -10660 / 60 minutes offset in LMT"); - t.equal(moment("1920-01-02T21:02:20+00:00").tz("Europe/Volgograd").zone(), -180, "1920-01-02T21:02:20+00:00 should be -180 minutes offset in TSAT"); - - t.done(); - }, - - "1925" : function (t) { - t.equal(moment("1925-04-05T20:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1925-04-05T20:59:59+00:00 should be 23:59:59 TSAT"); - t.equal(moment("1925-04-05T21:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "00:00:00", "1925-04-05T21:00:00+00:00 should be 00:00:00 STAT"); - - t.equal(moment("1925-04-05T20:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1925-04-05T20:59:59+00:00 should be -180 minutes offset in TSAT"); - t.equal(moment("1925-04-05T21:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1925-04-05T21:00:00+00:00 should be -180 minutes offset in STAT"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T20:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1930-06-20T20:59:59+00:00 should be 23:59:59 STAT"); - t.equal(moment("1930-06-20T21:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1930-06-20T21:00:00+00:00 should be 01:00:00 STAT"); - - t.equal(moment("1930-06-20T20:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1930-06-20T20:59:59+00:00 should be -180 minutes offset in STAT"); - t.equal(moment("1930-06-20T21:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1930-06-20T21:00:00+00:00 should be -240 minutes offset in STAT"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-11-10T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1961-11-10T19:59:59+00:00 should be 23:59:59 STAT"); - t.equal(moment("1961-11-10T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "00:00:00", "1961-11-10T20:00:00+00:00 should be 00:00:00 VOLT"); - - t.equal(moment("1961-11-10T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1961-11-10T19:59:59+00:00 should be -240 minutes offset in STAT"); - t.equal(moment("1961-11-10T20:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1961-11-10T20:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1981-03-31T19:59:59+00:00 should be 23:59:59 VOLT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1981-03-31T20:00:00+00:00 should be 01:00:00 VOLST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1981-09-30T18:59:59+00:00 should be 23:59:59 VOLST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:00:00", "1981-09-30T19:00:00+00:00 should be 23:00:00 VOLT"); - - t.equal(moment("1981-03-31T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1981-03-31T19:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1981-03-31T20:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1981-03-31T20:00:00+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1981-09-30T18:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1981-09-30T18:59:59+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1981-09-30T19:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1981-09-30T19:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1982-03-31T19:59:59+00:00 should be 23:59:59 VOLT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1982-03-31T20:00:00+00:00 should be 01:00:00 VOLST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1982-09-30T18:59:59+00:00 should be 23:59:59 VOLST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:00:00", "1982-09-30T19:00:00+00:00 should be 23:00:00 VOLT"); - - t.equal(moment("1982-03-31T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1982-03-31T19:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1982-03-31T20:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1982-03-31T20:00:00+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1982-09-30T18:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1982-09-30T18:59:59+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1982-09-30T19:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1982-09-30T19:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1983-03-31T19:59:59+00:00 should be 23:59:59 VOLT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1983-03-31T20:00:00+00:00 should be 01:00:00 VOLST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1983-09-30T18:59:59+00:00 should be 23:59:59 VOLST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:00:00", "1983-09-30T19:00:00+00:00 should be 23:00:00 VOLT"); - - t.equal(moment("1983-03-31T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1983-03-31T19:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1983-03-31T20:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1983-03-31T20:00:00+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1983-09-30T18:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1983-09-30T18:59:59+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1983-09-30T19:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1983-09-30T19:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1984-03-31T19:59:59+00:00 should be 23:59:59 VOLT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1984-03-31T20:00:00+00:00 should be 01:00:00 VOLST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1984-09-29T21:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1984-09-29T22:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1984-03-31T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1984-03-31T19:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1984-03-31T20:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1984-03-31T20:00:00+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1984-09-29T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1984-09-29T21:59:59+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1984-09-29T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1984-09-29T22:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1985-03-30T21:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1985-03-30T22:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1985-09-28T21:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1985-09-28T22:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1985-03-30T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1985-03-30T21:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1985-03-30T22:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1985-03-30T22:00:00+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1985-09-28T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1985-09-28T21:59:59+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1985-09-28T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1985-09-28T22:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1986-03-29T21:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1986-03-29T22:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1986-09-27T21:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1986-09-27T22:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1986-03-29T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1986-03-29T21:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1986-03-29T22:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1986-03-29T22:00:00+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1986-09-27T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1986-09-27T21:59:59+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1986-09-27T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1986-09-27T22:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1987-03-28T21:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1987-03-28T22:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1987-09-26T21:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1987-09-26T22:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1987-03-28T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1987-03-28T21:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1987-03-28T22:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1987-03-28T22:00:00+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1987-09-26T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1987-09-26T21:59:59+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1987-09-26T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1987-09-26T22:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1988-03-26T21:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1988-03-26T22:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1988-09-24T21:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1988-09-24T22:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1988-03-26T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1988-03-26T21:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1988-03-26T22:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1988-03-26T22:00:00+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1988-09-24T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1988-09-24T21:59:59+00:00 should be -300 minutes offset in VOLST"); - t.equal(moment("1988-09-24T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1988-09-24T22:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1989-03-25T21:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1989-03-25T22:00:00+00:00 should be 02:00:00 VOLST"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1989-03-25T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1989-03-25T21:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1989-03-25T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1989-03-25T22:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1990-03-24T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1990-03-24T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1990-09-29T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1990-09-29T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1990-03-24T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1990-03-24T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1990-09-29T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1990-09-29T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1991-03-30T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1991-03-30T23:00:00+00:00 should be 03:00:00 VOLT"); - - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1991-03-30T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1991-03-30T23:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1992-03-28T21:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1992-03-28T22:00:00+00:00 should be 02:00:00 VOLST"); - t.equal(moment("1992-09-26T18:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "22:59:59", "1992-09-26T18:59:59+00:00 should be 22:59:59 VOLST"); - t.equal(moment("1992-09-26T19:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "22:00:00", "1992-09-26T19:00:00+00:00 should be 22:00:00 VOLT"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1992-03-28T21:59:59+00:00 should be -240 minutes offset in VOLT"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1992-03-28T22:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1992-09-26T18:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1992-09-26T18:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1992-09-26T19:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1992-09-26T19:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1993-03-27T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1993-03-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1993-03-27T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1993-09-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1993-09-25T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1993-09-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1993-09-25T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1993-03-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1993-03-27T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("1993-03-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1993-03-27T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1993-09-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1993-09-25T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1993-09-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1993-09-25T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1994-03-26T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1994-03-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1994-03-26T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1994-09-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1994-09-24T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1994-09-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1994-09-24T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1994-03-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1994-03-26T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("1994-03-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1994-03-26T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1994-09-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1994-09-24T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1994-09-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1994-09-24T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1995-03-25T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1995-03-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1995-03-25T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1995-09-23T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1995-09-23T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1995-09-23T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1995-09-23T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1995-03-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1995-03-25T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("1995-03-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1995-03-25T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1995-09-23T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1995-09-23T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1995-09-23T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1995-09-23T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1996-03-30T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1996-03-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1996-03-30T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1996-10-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1996-10-26T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1996-10-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1996-10-26T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1996-03-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1996-03-30T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("1996-03-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1996-03-30T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1996-10-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1996-10-26T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1996-10-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1996-10-26T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1997-03-29T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1997-03-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1997-03-29T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1997-10-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1997-10-25T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1997-10-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1997-10-25T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1997-03-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1997-03-29T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("1997-03-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1997-03-29T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1997-10-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1997-10-25T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1997-10-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1997-10-25T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-28T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1998-03-28T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1998-03-28T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1998-03-28T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1998-10-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1998-10-24T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1998-10-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1998-10-24T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1998-03-28T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1998-03-28T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("1998-03-28T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1998-03-28T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1998-10-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1998-10-24T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1998-10-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1998-10-24T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1999-03-27T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("1999-03-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1999-03-27T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("1999-10-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1999-10-30T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("1999-10-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1999-10-30T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("1999-03-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1999-03-27T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("1999-03-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1999-03-27T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1999-10-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1999-10-30T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("1999-10-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1999-10-30T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2000-03-25T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2000-03-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2000-03-25T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2000-10-28T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2000-10-28T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2000-10-28T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2000-10-28T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2000-03-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2000-03-25T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2000-03-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2000-03-25T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2000-10-28T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2000-10-28T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2000-10-28T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2000-10-28T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2001-03-24T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2001-03-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2001-03-24T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2001-10-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2001-10-27T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2001-10-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2001-10-27T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2001-03-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2001-03-24T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2001-03-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2001-03-24T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2001-10-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2001-10-27T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2001-10-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2001-10-27T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2002-03-30T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2002-03-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2002-03-30T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2002-10-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2002-10-26T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2002-10-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2002-10-26T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2002-03-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2002-03-30T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2002-03-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2002-03-30T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2002-10-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2002-10-26T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2002-10-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2002-10-26T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2003-03-29T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2003-03-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2003-03-29T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2003-10-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2003-10-25T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2003-10-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2003-10-25T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2003-03-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2003-03-29T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2003-03-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2003-03-29T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2003-10-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2003-10-25T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2003-10-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2003-10-25T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2004-03-27T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2004-03-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2004-03-27T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2004-10-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2004-10-30T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2004-10-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2004-10-30T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2004-03-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2004-03-27T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2004-03-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2004-03-27T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2004-10-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2004-10-30T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2004-10-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2004-10-30T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2005-03-26T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2005-03-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2005-03-26T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2005-10-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2005-10-29T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2005-10-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2005-10-29T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2005-03-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2005-03-26T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2005-03-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2005-03-26T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2005-10-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2005-10-29T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2005-10-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2005-10-29T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2006-03-25T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2006-03-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2006-03-25T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2006-10-28T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2006-10-28T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2006-10-28T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2006-10-28T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2006-03-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2006-03-25T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2006-03-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2006-03-25T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2006-10-28T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2006-10-28T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2006-10-28T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2006-10-28T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2007-03-24T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2007-03-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2007-03-24T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2007-10-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2007-10-27T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2007-10-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2007-10-27T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2007-03-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2007-03-24T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2007-03-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2007-03-24T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2007-10-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2007-10-27T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2007-10-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2007-10-27T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2008-03-29T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2008-03-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2008-03-29T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2008-10-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2008-10-25T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2008-10-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2008-10-25T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2008-03-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2008-03-29T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2008-03-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2008-03-29T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2008-10-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2008-10-25T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2008-10-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2008-10-25T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2009-03-28T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2009-03-28T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2009-03-28T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2009-10-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2009-10-24T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2009-10-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2009-10-24T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2009-03-28T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2009-03-28T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2009-03-28T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2009-03-28T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2009-10-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2009-10-24T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2009-10-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2009-10-24T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2010-03-27T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2010-03-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2010-03-27T23:00:00+00:00 should be 03:00:00 VOLST"); - t.equal(moment("2010-10-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2010-10-30T22:59:59+00:00 should be 02:59:59 VOLST"); - t.equal(moment("2010-10-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2010-10-30T23:00:00+00:00 should be 02:00:00 VOLT"); - - t.equal(moment("2010-03-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2010-03-27T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2010-03-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2010-03-27T23:00:00+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2010-10-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2010-10-30T22:59:59+00:00 should be -240 minutes offset in VOLST"); - t.equal(moment("2010-10-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2010-10-30T23:00:00+00:00 should be -180 minutes offset in VOLT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2011-03-26T22:59:59+00:00 should be 01:59:59 VOLT"); - t.equal(moment("2011-03-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2011-03-26T23:00:00+00:00 should be 03:00:00 VOLT"); - - t.equal(moment("2011-03-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2011-03-26T22:59:59+00:00 should be -180 minutes offset in VOLT"); - t.equal(moment("2011-03-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2011-03-26T23:00:00+00:00 should be -240 minutes offset in VOLT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/warsaw.js b/tests/europe/warsaw.js deleted file mode 100644 index c3cd4638..00000000 --- a/tests/europe/warsaw.js +++ /dev/null @@ -1,1164 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Warsaw"] = { - - "1915" : function (t) { - t.equal(moment("1915-08-04T22:35:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "23:59:59", "1915-08-04T22:35:59+00:00 should be 23:59:59 WMT"); - t.equal(moment("1915-08-04T22:36:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "23:36:00", "1915-08-04T22:36:00+00:00 should be 23:36:00 CET"); - - t.equal(moment("1915-08-04T22:35:59+00:00").tz("Europe/Warsaw").zone(), -84, "1915-08-04T22:35:59+00:00 should be -84 minutes offset in WMT"); - t.equal(moment("1915-08-04T22:36:00+00:00").tz("Europe/Warsaw").zone(), -60, "1915-08-04T22:36:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1916" : function (t) { - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "22:59:59", "1916-04-30T21:59:59+00:00 should be 22:59:59 CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:00:00", "1916-04-30T22:00:00+00:00 should be 00:00:00 CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET"); - - t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1916-04-30T21:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1916-04-30T22:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1918-09-16T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1918-04-15T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1918-09-16T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-04-14T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1919-04-14T23:59:59+00:00 should be 01:59:59 EET"); - t.equal(moment("1919-04-15T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1919-04-15T00:00:00+00:00 should be 03:00:00 EEST"); - t.equal(moment("1919-09-15T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1919-09-15T23:59:59+00:00 should be 02:59:59 EEST"); - t.equal(moment("1919-09-16T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1919-09-16T00:00:00+00:00 should be 02:00:00 EET"); - - t.equal(moment("1919-04-14T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1919-04-14T23:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1919-04-15T00:00:00+00:00").tz("Europe/Warsaw").zone(), -180, "1919-04-15T00:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1919-09-15T23:59:59+00:00").tz("Europe/Warsaw").zone(), -180, "1919-09-15T23:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1919-09-16T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1919-09-16T00:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1922" : function (t) { - t.equal(moment("1922-05-31T21:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "23:59:59", "1922-05-31T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1922-05-31T22:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "23:00:00", "1922-05-31T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1922-05-31T21:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1922-05-31T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1922-05-31T22:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1922-05-31T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-06-23T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1940-06-23T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1940-06-23T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1940-06-23T01:00:00+00:00 should be 03:00:00 CEST"); - - t.equal(moment("1940-06-23T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1940-06-23T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1940-06-23T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1940-06-23T01:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1944-10-03T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1944-10-03T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1944-10-04T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1944-10-04T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-03T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1944-10-03T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1944-10-04T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1944-10-04T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-28T22:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "23:59:59", "1945-04-28T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1945-04-28T23:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1945-04-28T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1945-10-31T21:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "23:59:59", "1945-10-31T21:59:59+00:00 should be 23:59:59 CEST"); - t.equal(moment("1945-10-31T22:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "23:00:00", "1945-10-31T22:00:00+00:00 should be 23:00:00 CET"); - - t.equal(moment("1945-04-28T22:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1945-04-28T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1945-04-28T23:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1945-04-28T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-10-31T21:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1945-10-31T21:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1945-10-31T22:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1945-10-31T22:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-04-13T22:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "23:59:59", "1946-04-13T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1946-04-13T23:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1946-04-13T23:00:00+00:00 should be 01:00:00 CEST"); - t.equal(moment("1946-10-07T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1946-10-07T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1946-10-07T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1946-10-07T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1946-04-13T22:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1946-04-13T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1946-04-13T23:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1946-04-13T23:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-07T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1946-10-07T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1946-10-07T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1946-10-07T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-05-04T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1947-05-04T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1947-05-04T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1947-05-04T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1947-10-05T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1947-10-05T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1947-05-04T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1947-05-04T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1947-05-04T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1947-05-04T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1947-10-05T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1947-10-05T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1948" : function (t) { - t.equal(moment("1948-04-18T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1948-04-18T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1948-04-18T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1948-04-18T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1948-10-03T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1948-10-03T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1948-04-18T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1948-04-18T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1948-04-18T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1948-04-18T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1948-10-03T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1948-10-03T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1949" : function (t) { - t.equal(moment("1949-04-10T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1949-04-10T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1949-04-10T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1949-04-10T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1949-10-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1949-10-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1949-04-10T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1949-04-10T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1949-04-10T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1949-04-10T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1949-10-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1949-10-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1957" : function (t) { - t.equal(moment("1957-06-01T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1957-06-01T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1957-06-02T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1957-06-02T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1957-09-28T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1957-09-28T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1957-09-29T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1957-09-29T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1957-06-01T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1957-06-01T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1957-06-02T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1957-06-02T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1957-09-28T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1957-09-28T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1957-09-29T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1957-09-29T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1958" : function (t) { - t.equal(moment("1958-03-29T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1958-03-29T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1958-03-30T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1958-03-30T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1958-09-27T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1958-09-27T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1958-09-28T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1958-09-28T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1958-03-29T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1958-03-29T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1958-03-30T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1958-03-30T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1958-09-27T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1958-09-27T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1958-09-28T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1958-09-28T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1959" : function (t) { - t.equal(moment("1959-05-30T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1959-05-30T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1959-05-31T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1959-05-31T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1959-10-03T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1959-10-03T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1959-10-04T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1959-10-04T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1959-05-30T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1959-05-30T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1959-05-31T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1959-05-31T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1959-10-03T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1959-10-03T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1959-10-04T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1959-10-04T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1960" : function (t) { - t.equal(moment("1960-04-02T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1960-04-02T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1960-04-03T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1960-04-03T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1960-10-01T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1960-10-01T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1960-10-02T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1960-10-02T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1960-04-02T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1960-04-02T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1960-04-03T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1960-04-03T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1960-10-01T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1960-10-01T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1960-10-02T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1960-10-02T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1961" : function (t) { - t.equal(moment("1961-05-27T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1961-05-27T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1961-05-28T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1961-05-28T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1961-09-30T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1961-09-30T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1961-10-01T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1961-10-01T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1961-05-27T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1961-05-27T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1961-05-28T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1961-05-28T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1961-09-30T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1961-09-30T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1961-10-01T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1961-10-01T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1962" : function (t) { - t.equal(moment("1962-05-26T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1962-05-26T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1962-05-27T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1962-05-27T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1962-09-29T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1962-09-29T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1962-09-30T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1962-09-30T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1962-05-26T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1962-05-26T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1962-05-27T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1962-05-27T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1962-09-29T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1962-09-29T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1962-09-30T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1962-09-30T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1963" : function (t) { - t.equal(moment("1963-05-25T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1963-05-25T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1963-05-26T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1963-05-26T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1963-09-28T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1963-09-28T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1963-09-29T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1963-09-29T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1963-05-25T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1963-05-25T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1963-05-26T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1963-05-26T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1963-09-28T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1963-09-28T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1963-09-29T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1963-09-29T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1964" : function (t) { - t.equal(moment("1964-05-30T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1964-05-30T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1964-05-31T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1964-05-31T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1964-09-26T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1964-09-26T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1964-09-27T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1964-09-27T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1964-05-30T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1964-05-30T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1964-05-31T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1964-05-31T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1964-09-26T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1964-09-26T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1964-09-27T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1964-09-27T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-02T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1977-04-02T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1977-04-03T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1977-04-03T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1977-09-24T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1977-09-24T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1977-09-25T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1977-09-25T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1977-04-02T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1977-04-02T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1977-04-03T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1977-04-03T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-24T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1977-09-24T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1977-09-25T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1977-09-25T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-01T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1978-04-01T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1978-04-02T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1978-04-02T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1978-09-30T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1978-09-30T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1978-10-01T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1978-10-01T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1978-04-01T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1978-04-01T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1978-04-02T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1978-04-02T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-09-30T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1978-09-30T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1978-10-01T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1978-10-01T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-31T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1979-03-31T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1979-04-01T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1979-04-01T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1979-09-29T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1979-09-29T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1979-09-30T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1979-09-30T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1979-03-31T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1979-03-31T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1979-04-01T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1979-04-01T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-29T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1979-09-29T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1979-09-30T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1979-09-30T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-05T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1980-04-05T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1980-04-06T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1980-04-06T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1980-09-27T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1980-09-27T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1980-09-28T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1980-09-28T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1980-04-05T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1980-04-05T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1980-04-06T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1980-04-06T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-27T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1980-09-27T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1980-09-28T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1980-09-28T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-28T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1981-03-28T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1981-03-29T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1981-03-29T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1981-09-26T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1981-09-26T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1981-09-27T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1981-09-27T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1981-03-28T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1981-03-28T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1981-03-29T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-26T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1981-09-26T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1981-09-27T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-27T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1982-03-27T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1982-03-28T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1982-03-28T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1982-09-25T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1982-09-25T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1982-09-26T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1982-09-26T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1982-03-27T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1982-03-27T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1982-03-28T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-25T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1982-09-25T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1982-09-26T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-26T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1983-03-26T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1983-03-27T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1983-03-27T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1983-09-24T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1983-09-24T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1983-09-25T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1983-09-25T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1983-03-26T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1983-03-26T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1983-03-27T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-24T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1983-09-24T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1983-09-25T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-24T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1984-03-24T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1984-03-25T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1984-03-25T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1984-09-29T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1984-09-29T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1984-09-30T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1984-09-30T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1984-03-24T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1984-03-24T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1984-03-25T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-29T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1984-09-29T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1984-09-30T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1985-03-30T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1985-03-31T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1985-03-31T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1985-09-28T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1985-09-28T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1985-09-29T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1985-09-29T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1985-03-30T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1985-03-30T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1985-03-31T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-28T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1985-09-28T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1985-09-29T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1986-03-29T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1986-03-30T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1986-03-30T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1986-09-27T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1986-09-27T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1986-09-28T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1986-09-28T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1986-03-29T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1986-03-29T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1986-03-30T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-27T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1986-09-27T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1986-09-28T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "00:59:59", "1987-03-28T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1987-03-29T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1987-03-29T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1987-09-26T23:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1987-09-26T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1987-09-27T00:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:00:00", "1987-09-27T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1987-03-28T23:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1987-03-28T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T00:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1987-03-29T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-26T23:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1987-09-26T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1987-09-27T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Warsaw").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Warsaw").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Warsaw").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Warsaw").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Warsaw").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/zaporozhye.js b/tests/europe/zaporozhye.js deleted file mode 100644 index 9a6357d7..00000000 --- a/tests/europe/zaporozhye.js +++ /dev/null @@ -1,860 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Zaporozhye"] = { - - "1924" : function (t) { - t.equal(moment("1924-05-01T21:39:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1924-05-01T21:39:59+00:00 should be 23:59:59 CUT"); - t.equal(moment("1924-05-01T21:40:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:40:00", "1924-05-01T21:40:00+00:00 should be 23:40:00 EET"); - - t.equal(moment("1924-05-01T21:39:59+00:00").tz("Europe/Zaporozhye").zone(), -140, "1924-05-01T21:39:59+00:00 should be -140 minutes offset in CUT"); - t.equal(moment("1924-05-01T21:40:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1924-05-01T21:40:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1930-06-20T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:00:00", "1930-06-20T22:00:00+00:00 should be 01:00:00 MSK"); - - t.equal(moment("1930-06-20T21:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1930-06-20T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1930-06-20T22:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1930-06-20T22:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1941" : function (t) { - t.equal(moment("1941-08-24T20:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1941-08-24T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1941-08-24T21:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:00:00", "1941-08-24T21:00:00+00:00 should be 23:00:00 CEST"); - - t.equal(moment("1941-08-24T20:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1941-08-24T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1941-08-24T21:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1941-08-24T21:00:00+00:00 should be -120 minutes offset in CEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET"); - t.equal(moment("1943-10-24T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1943-10-24T22:59:59+00:00 should be 23:59:59 CET"); - t.equal(moment("1943-10-24T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1943-10-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-10-24T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -60, "1943-10-24T22:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1943-10-24T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1943-10-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK"); - - t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:59:59", "1990-03-24T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1990-03-24T23:00:00+00:00 should be 03:00:00 MSD"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1990-09-29T22:59:59+00:00 should be 02:59:59 MSD"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1990-09-29T23:00:00+00:00 should be 02:00:00 MSK"); - - t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1990-03-24T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -240, "1990-03-24T23:00:00+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -240, "1990-09-29T22:59:59+00:00 should be -240 minutes offset in MSD"); - t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1990-09-29T23:00:00+00:00 should be -180 minutes offset in MSK"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:59:59", "1991-03-30T22:59:59+00:00 should be 01:59:59 MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:00:00", "1991-03-30T23:00:00+00:00 should be 02:00:00 EEST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1991-09-28T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:00:00", "1991-09-28T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1991-03-30T22:59:59+00:00 should be -180 minutes offset in MSK"); - t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1991-03-30T23:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T20:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1991-09-28T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1991-09-28T21:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1991-09-28T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1992-03-28T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:00:00", "1992-03-28T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1992-09-26T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:00:00", "1992-09-26T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1992-03-28T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1992-03-28T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T20:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1992-09-26T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1992-09-26T21:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1992-09-26T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1993-03-27T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:00:00", "1993-03-27T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1993-09-25T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:00:00", "1993-09-25T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1993-03-27T21:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1993-03-27T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1993-03-27T22:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1993-03-27T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T20:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1993-09-25T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1993-09-25T21:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1993-09-25T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1994-03-26T21:59:59+00:00 should be 23:59:59 EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "01:00:00", "1994-03-26T22:00:00+00:00 should be 01:00:00 EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:59:59", "1994-09-24T20:59:59+00:00 should be 23:59:59 EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "23:00:00", "1994-09-24T21:00:00+00:00 should be 23:00:00 EET"); - - t.equal(moment("1994-03-26T21:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1994-03-26T21:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1994-03-26T22:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1994-03-26T22:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T20:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1994-09-24T20:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1994-09-24T21:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1994-09-24T21:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1995-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "1995-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "1995-09-24T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1995-09-24T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1995-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1995-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1995-09-24T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1995-09-24T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1996-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "1996-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "1996-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1996-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1996-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1996-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1996-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1996-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1997-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "1997-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "1997-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1997-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1997-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1997-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1997-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1997-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "1998-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "1998-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1998-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1998-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1998-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1998-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "1999-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "1999-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "1999-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "1999-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "1999-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "1999-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2000-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2000-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2000-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2000-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2000-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2000-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2000-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2000-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2001-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2001-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2001-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2001-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2001-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2001-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2001-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2001-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2002-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2002-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2002-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2002-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2002-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2002-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2002-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2002-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2018-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2018-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2018-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2018-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2018-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2019-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2019-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2019-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2019-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2019-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2019-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2019-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2019-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2020-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2020-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2020-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2020-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2020-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2020-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2020-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2020-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2021-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2021-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2021-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2021-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2021-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2021-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2021-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2021-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2022-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2022-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2022-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2022-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2022-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2022-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2022-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2022-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2023-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2023-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2023-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2023-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2023-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2023-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2023-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2023-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2024-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2024-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2024-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2024-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2024-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2024-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2024-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2024-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2025-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2025-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2025-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2025-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2025-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2025-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2025-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2025-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2026-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2026-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2026-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2026-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2026-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2026-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2026-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2026-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2027-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2027-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2027-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2027-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2027-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2027-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2027-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2027-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2028-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2028-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2028-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2028-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2028-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2028-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2028-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2028-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2029-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2029-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2029-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2029-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2029-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2029-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2029-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2029-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2030-03-31T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2030-03-31T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2030-10-27T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2030-10-27T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2030-03-31T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2030-03-31T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2030-10-27T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2030-10-27T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2031-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2031-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2031-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2031-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2031-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2031-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2031-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2031-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2032-03-28T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2032-03-28T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2032-10-31T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2032-10-31T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2032-03-28T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2032-03-28T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2032-10-31T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2032-10-31T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2033-03-27T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2033-03-27T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2033-10-30T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2033-10-30T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2033-03-27T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2033-03-27T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2033-10-30T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2033-10-30T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2034-03-26T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2034-03-26T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2034-10-29T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2034-10-29T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2034-03-26T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2034-03-26T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2034-10-29T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2034-10-29T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2035-03-25T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2035-03-25T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2035-10-28T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2035-10-28T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2035-03-25T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2035-03-25T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2035-10-28T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2035-10-28T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2036-03-30T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2036-03-30T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2036-10-26T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2036-10-26T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2036-03-30T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2036-03-30T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2036-10-26T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2036-10-26T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "02:59:59", "2037-03-29T00:59:59+00:00 should be 02:59:59 EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "04:00:00", "2037-03-29T01:00:00+00:00 should be 04:00:00 EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:59:59", "2037-10-25T00:59:59+00:00 should be 03:59:59 EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").format("HH:mm:ss"), "03:00:00", "2037-10-25T01:00:00+00:00 should be 03:00:00 EET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -120, "2037-03-29T00:59:59+00:00 should be -120 minutes offset in EET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -180, "2037-03-29T01:00:00+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Zaporozhye").zone(), -180, "2037-10-25T00:59:59+00:00 should be -180 minutes offset in EEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Zaporozhye").zone(), -120, "2037-10-25T01:00:00+00:00 should be -120 minutes offset in EET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/europe/zurich.js b/tests/europe/zurich.js deleted file mode 100644 index 05d2f1b4..00000000 --- a/tests/europe/zurich.js +++ /dev/null @@ -1,830 +0,0 @@ -var moment = require("../../index"); - -exports["Europe/Zurich"] = { - - "1941" : function (t) { - t.equal(moment("1941-05-04T23:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "00:59:59", "1941-05-04T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1941-05-05T00:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1941-05-05T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1941-10-05T23:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1941-10-05T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1941-10-06T00:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:00:00", "1941-10-06T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1941-05-04T23:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1941-05-04T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1941-05-05T00:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1941-05-05T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1941-10-05T23:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1941-10-05T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1941-10-06T00:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1941-10-06T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-05-03T23:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "00:59:59", "1942-05-03T23:59:59+00:00 should be 00:59:59 CET"); - t.equal(moment("1942-05-04T00:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1942-05-04T00:00:00+00:00 should be 02:00:00 CEST"); - t.equal(moment("1942-10-04T23:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1942-10-04T23:59:59+00:00 should be 01:59:59 CEST"); - t.equal(moment("1942-10-05T00:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:00:00", "1942-10-05T00:00:00+00:00 should be 01:00:00 CET"); - - t.equal(moment("1942-05-03T23:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1942-05-03T23:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1942-05-04T00:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1942-05-04T00:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-10-04T23:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1942-10-04T23:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1942-10-05T00:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1942-10-05T00:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Zurich").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 CET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("Europe/Zurich").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in CET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("Europe/Zurich").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("Europe/Zurich").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in CEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("Europe/Zurich").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in CET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/helpers/helpers.js b/tests/helpers/helpers.js new file mode 100644 index 00000000..f1690c9f --- /dev/null +++ b/tests/helpers/helpers.js @@ -0,0 +1,32 @@ +"use strict"; + +var moment = require('../../index'); + +function testYear(test, name, expected) { + var len = expected.length, + i, + date, time, abbr, offset, m; + + test.expect(len * 3); + + for (i = 0; i < len; i++) { + date = expected[i][0]; + time = expected[i][1]; + abbr = expected[i][2]; + offset = expected[i][3]; + m = moment(date).tz(name); + test.equal(m.format("HH:mm:ss"), time, date + ' should be ' + time + ' ' + abbr); + test.equal(m.zone(), offset, date + ' should be ' + offset + ' minutes offset in ' + abbr); + test.equal(m.zoneAbbr(), abbr, date + ' should be ' + abbr); + } + + test.done(); +} + +module.exports = { + makeTestYear : function (name, expected) { + return function (test) { + testYear(test, name, expected); + }; + } +}; \ No newline at end of file diff --git a/tests/hst.js b/tests/hst.js deleted file mode 100644 index d658d681..00000000 --- a/tests/hst.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../index"); - -exports["HST"] = { - - -}; \ No newline at end of file diff --git a/tests/indian/antananarivo.js b/tests/indian/antananarivo.js deleted file mode 100644 index dd4fb05b..00000000 --- a/tests/indian/antananarivo.js +++ /dev/null @@ -1,28 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Antananarivo"] = { - - "1911" : function (t) { - t.equal(moment("1911-06-30T20:49:55+00:00").tz("Indian/Antananarivo").format("HH:mm:ss"), "23:59:59", "1911-06-30T20:49:55+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-06-30T20:49:56+00:00").tz("Indian/Antananarivo").format("HH:mm:ss"), "23:49:56", "1911-06-30T20:49:56+00:00 should be 23:49:56 EAT"); - - t.equal(moment("1911-06-30T20:49:55+00:00").tz("Indian/Antananarivo").zone(), -11404 / 60, "1911-06-30T20:49:55+00:00 should be -11404 / 60 minutes offset in LMT"); - t.equal(moment("1911-06-30T20:49:56+00:00").tz("Indian/Antananarivo").zone(), -180, "1911-06-30T20:49:56+00:00 should be -180 minutes offset in EAT"); - - t.done(); - }, - - "1954" : function (t) { - t.equal(moment("1954-02-27T19:59:59+00:00").tz("Indian/Antananarivo").format("HH:mm:ss"), "22:59:59", "1954-02-27T19:59:59+00:00 should be 22:59:59 EAT"); - t.equal(moment("1954-02-27T20:00:00+00:00").tz("Indian/Antananarivo").format("HH:mm:ss"), "00:00:00", "1954-02-27T20:00:00+00:00 should be 00:00:00 EAST"); - t.equal(moment("1954-05-29T19:59:59+00:00").tz("Indian/Antananarivo").format("HH:mm:ss"), "23:59:59", "1954-05-29T19:59:59+00:00 should be 23:59:59 EAST"); - t.equal(moment("1954-05-29T20:00:00+00:00").tz("Indian/Antananarivo").format("HH:mm:ss"), "23:00:00", "1954-05-29T20:00:00+00:00 should be 23:00:00 EAT"); - - t.equal(moment("1954-02-27T19:59:59+00:00").tz("Indian/Antananarivo").zone(), -180, "1954-02-27T19:59:59+00:00 should be -180 minutes offset in EAT"); - t.equal(moment("1954-02-27T20:00:00+00:00").tz("Indian/Antananarivo").zone(), -240, "1954-02-27T20:00:00+00:00 should be -240 minutes offset in EAST"); - t.equal(moment("1954-05-29T19:59:59+00:00").tz("Indian/Antananarivo").zone(), -240, "1954-05-29T19:59:59+00:00 should be -240 minutes offset in EAST"); - t.equal(moment("1954-05-29T20:00:00+00:00").tz("Indian/Antananarivo").zone(), -180, "1954-05-29T20:00:00+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/indian/chagos.js b/tests/indian/chagos.js deleted file mode 100644 index c1a41220..00000000 --- a/tests/indian/chagos.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Chagos"] = { - - "1906" : function (t) { - t.equal(moment("1906-12-31T19:10:19+00:00").tz("Indian/Chagos").format("HH:mm:ss"), "23:59:59", "1906-12-31T19:10:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1906-12-31T19:10:20+00:00").tz("Indian/Chagos").format("HH:mm:ss"), "00:10:20", "1906-12-31T19:10:20+00:00 should be 00:10:20 IOT"); - - t.equal(moment("1906-12-31T19:10:19+00:00").tz("Indian/Chagos").zone(), -17380 / 60, "1906-12-31T19:10:19+00:00 should be -17380 / 60 minutes offset in LMT"); - t.equal(moment("1906-12-31T19:10:20+00:00").tz("Indian/Chagos").zone(), -300, "1906-12-31T19:10:20+00:00 should be -300 minutes offset in IOT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-12-31T18:59:59+00:00").tz("Indian/Chagos").format("HH:mm:ss"), "23:59:59", "1995-12-31T18:59:59+00:00 should be 23:59:59 IOT"); - t.equal(moment("1995-12-31T19:00:00+00:00").tz("Indian/Chagos").format("HH:mm:ss"), "01:00:00", "1995-12-31T19:00:00+00:00 should be 01:00:00 IOT"); - - t.equal(moment("1995-12-31T18:59:59+00:00").tz("Indian/Chagos").zone(), -300, "1995-12-31T18:59:59+00:00 should be -300 minutes offset in IOT"); - t.equal(moment("1995-12-31T19:00:00+00:00").tz("Indian/Chagos").zone(), -360, "1995-12-31T19:00:00+00:00 should be -360 minutes offset in IOT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/indian/christmas.js b/tests/indian/christmas.js deleted file mode 100644 index a282def8..00000000 --- a/tests/indian/christmas.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Christmas"] = { - - -}; \ No newline at end of file diff --git a/tests/indian/cocos.js b/tests/indian/cocos.js deleted file mode 100644 index 4317450a..00000000 --- a/tests/indian/cocos.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Cocos"] = { - - -}; \ No newline at end of file diff --git a/tests/indian/comoro.js b/tests/indian/comoro.js deleted file mode 100644 index b73d293f..00000000 --- a/tests/indian/comoro.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Comoro"] = { - - "1911" : function (t) { - t.equal(moment("1911-06-30T21:06:55+00:00").tz("Indian/Comoro").format("HH:mm:ss"), "23:59:59", "1911-06-30T21:06:55+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-06-30T21:06:56+00:00").tz("Indian/Comoro").format("HH:mm:ss"), "00:06:56", "1911-06-30T21:06:56+00:00 should be 00:06:56 EAT"); - - t.equal(moment("1911-06-30T21:06:55+00:00").tz("Indian/Comoro").zone(), -10384 / 60, "1911-06-30T21:06:55+00:00 should be -10384 / 60 minutes offset in LMT"); - t.equal(moment("1911-06-30T21:06:56+00:00").tz("Indian/Comoro").zone(), -180, "1911-06-30T21:06:56+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/indian/kerguelen.js b/tests/indian/kerguelen.js deleted file mode 100644 index 78cb7636..00000000 --- a/tests/indian/kerguelen.js +++ /dev/null @@ -1,20 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Kerguelen"] = { - - "1949" : function (t) { - t.equal(moment("1949-12-31T23:59:59+00:00").tz("Indian/Kerguelen").format("HH:mm:ss"), "23:59:59", "1949-12-31T23:59:59+00:00 should be 23:59:59 zzz"); - - t.equal(moment("1949-12-31T23:59:59+00:00").tz("Indian/Kerguelen").zone(), 0, "1949-12-31T23:59:59+00:00 should be 0 minutes offset in zzz"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-01-01T00:00:00+00:00").tz("Indian/Kerguelen").format("HH:mm:ss"), "05:00:00", "1950-01-01T00:00:00+00:00 should be 05:00:00 TFT"); - - t.equal(moment("1950-01-01T00:00:00+00:00").tz("Indian/Kerguelen").zone(), -300, "1950-01-01T00:00:00+00:00 should be -300 minutes offset in TFT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/indian/mahe.js b/tests/indian/mahe.js deleted file mode 100644 index 12bc3f30..00000000 --- a/tests/indian/mahe.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Mahe"] = { - - "1906" : function (t) { - t.equal(moment("1906-05-31T20:18:11+00:00").tz("Indian/Mahe").format("HH:mm:ss"), "23:59:59", "1906-05-31T20:18:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1906-05-31T20:18:12+00:00").tz("Indian/Mahe").format("HH:mm:ss"), "00:18:12", "1906-05-31T20:18:12+00:00 should be 00:18:12 SCT"); - - t.equal(moment("1906-05-31T20:18:11+00:00").tz("Indian/Mahe").zone(), -13308 / 60, "1906-05-31T20:18:11+00:00 should be -13308 / 60 minutes offset in LMT"); - t.equal(moment("1906-05-31T20:18:12+00:00").tz("Indian/Mahe").zone(), -240, "1906-05-31T20:18:12+00:00 should be -240 minutes offset in SCT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/indian/maldives.js b/tests/indian/maldives.js deleted file mode 100644 index 4cd93b5e..00000000 --- a/tests/indian/maldives.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Maldives"] = { - - "1959" : function (t) { - t.equal(moment("1959-12-31T19:05:59+00:00").tz("Indian/Maldives").format("HH:mm:ss"), "23:59:59", "1959-12-31T19:05:59+00:00 should be 23:59:59 MMT"); - t.equal(moment("1959-12-31T19:06:00+00:00").tz("Indian/Maldives").format("HH:mm:ss"), "00:06:00", "1959-12-31T19:06:00+00:00 should be 00:06:00 MVT"); - - t.equal(moment("1959-12-31T19:05:59+00:00").tz("Indian/Maldives").zone(), -294, "1959-12-31T19:05:59+00:00 should be -294 minutes offset in MMT"); - t.equal(moment("1959-12-31T19:06:00+00:00").tz("Indian/Maldives").zone(), -300, "1959-12-31T19:06:00+00:00 should be -300 minutes offset in MVT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/indian/mauritius.js b/tests/indian/mauritius.js deleted file mode 100644 index 1aac1404..00000000 --- a/tests/indian/mauritius.js +++ /dev/null @@ -1,54 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Mauritius"] = { - - "1906" : function (t) { - t.equal(moment("1906-12-31T20:09:59+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "23:59:59", "1906-12-31T20:09:59+00:00 should be 23:59:59 LMT"); - t.equal(moment("1906-12-31T20:10:00+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "00:10:00", "1906-12-31T20:10:00+00:00 should be 00:10:00 MUT"); - - t.equal(moment("1906-12-31T20:09:59+00:00").tz("Indian/Mauritius").zone(), -230, "1906-12-31T20:09:59+00:00 should be -230 minutes offset in LMT"); - t.equal(moment("1906-12-31T20:10:00+00:00").tz("Indian/Mauritius").zone(), -240, "1906-12-31T20:10:00+00:00 should be -240 minutes offset in MUT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-10-09T19:59:59+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "23:59:59", "1982-10-09T19:59:59+00:00 should be 23:59:59 MUT"); - t.equal(moment("1982-10-09T20:00:00+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "01:00:00", "1982-10-09T20:00:00+00:00 should be 01:00:00 MUST"); - - t.equal(moment("1982-10-09T19:59:59+00:00").tz("Indian/Mauritius").zone(), -240, "1982-10-09T19:59:59+00:00 should be -240 minutes offset in MUT"); - t.equal(moment("1982-10-09T20:00:00+00:00").tz("Indian/Mauritius").zone(), -300, "1982-10-09T20:00:00+00:00 should be -300 minutes offset in MUST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-20T18:59:59+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "23:59:59", "1983-03-20T18:59:59+00:00 should be 23:59:59 MUST"); - t.equal(moment("1983-03-20T19:00:00+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "23:00:00", "1983-03-20T19:00:00+00:00 should be 23:00:00 MUT"); - - t.equal(moment("1983-03-20T18:59:59+00:00").tz("Indian/Mauritius").zone(), -300, "1983-03-20T18:59:59+00:00 should be -300 minutes offset in MUST"); - t.equal(moment("1983-03-20T19:00:00+00:00").tz("Indian/Mauritius").zone(), -240, "1983-03-20T19:00:00+00:00 should be -240 minutes offset in MUT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-10-25T21:59:59+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "01:59:59", "2008-10-25T21:59:59+00:00 should be 01:59:59 MUT"); - t.equal(moment("2008-10-25T22:00:00+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "03:00:00", "2008-10-25T22:00:00+00:00 should be 03:00:00 MUST"); - - t.equal(moment("2008-10-25T21:59:59+00:00").tz("Indian/Mauritius").zone(), -240, "2008-10-25T21:59:59+00:00 should be -240 minutes offset in MUT"); - t.equal(moment("2008-10-25T22:00:00+00:00").tz("Indian/Mauritius").zone(), -300, "2008-10-25T22:00:00+00:00 should be -300 minutes offset in MUST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-28T20:59:59+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "01:59:59", "2009-03-28T20:59:59+00:00 should be 01:59:59 MUST"); - t.equal(moment("2009-03-28T21:00:00+00:00").tz("Indian/Mauritius").format("HH:mm:ss"), "01:00:00", "2009-03-28T21:00:00+00:00 should be 01:00:00 MUT"); - - t.equal(moment("2009-03-28T20:59:59+00:00").tz("Indian/Mauritius").zone(), -300, "2009-03-28T20:59:59+00:00 should be -300 minutes offset in MUST"); - t.equal(moment("2009-03-28T21:00:00+00:00").tz("Indian/Mauritius").zone(), -240, "2009-03-28T21:00:00+00:00 should be -240 minutes offset in MUT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/indian/mayotte.js b/tests/indian/mayotte.js deleted file mode 100644 index 82f6181c..00000000 --- a/tests/indian/mayotte.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Mayotte"] = { - - "1911" : function (t) { - t.equal(moment("1911-06-30T20:59:03+00:00").tz("Indian/Mayotte").format("HH:mm:ss"), "23:59:59", "1911-06-30T20:59:03+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-06-30T20:59:04+00:00").tz("Indian/Mayotte").format("HH:mm:ss"), "23:59:04", "1911-06-30T20:59:04+00:00 should be 23:59:04 EAT"); - - t.equal(moment("1911-06-30T20:59:03+00:00").tz("Indian/Mayotte").zone(), -10856 / 60, "1911-06-30T20:59:03+00:00 should be -10856 / 60 minutes offset in LMT"); - t.equal(moment("1911-06-30T20:59:04+00:00").tz("Indian/Mayotte").zone(), -180, "1911-06-30T20:59:04+00:00 should be -180 minutes offset in EAT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/indian/reunion.js b/tests/indian/reunion.js deleted file mode 100644 index a5c490cb..00000000 --- a/tests/indian/reunion.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Indian/Reunion"] = { - - "1911" : function (t) { - t.equal(moment("1911-05-31T20:18:07+00:00").tz("Indian/Reunion").format("HH:mm:ss"), "23:59:59", "1911-05-31T20:18:07+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-05-31T20:18:08+00:00").tz("Indian/Reunion").format("HH:mm:ss"), "00:18:08", "1911-05-31T20:18:08+00:00 should be 00:18:08 RET"); - - t.equal(moment("1911-05-31T20:18:07+00:00").tz("Indian/Reunion").zone(), -13312 / 60, "1911-05-31T20:18:07+00:00 should be -13312 / 60 minutes offset in LMT"); - t.equal(moment("1911-05-31T20:18:08+00:00").tz("Indian/Reunion").zone(), -240, "1911-05-31T20:18:08+00:00 should be -240 minutes offset in RET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/links/links.js b/tests/links/links.js index 97570680..821d998a 100644 --- a/tests/links/links.js +++ b/tests/links/links.js @@ -1,18 +1,16 @@ +"use strict"; + var moment = require("../../index"); exports["links"] = { - "links" : function (t) { - moment.tz.add({ - zones : { - "Test/A" : [ - "7 - TST" - ] - }, - links : { - "Test/B" : "Test/A" - } - }); + moment.tz.add([ + "Test/A|TST|0|-1S8|0|" + ]); + + moment.tz.link([ + "Test/B|Test/A" + ]); t.equal(moment().tz("Test/A").tz(), "Test/A", "Should be able to get the zone name"); t.equal(moment().tz("TEST/A").tz(), "Test/A", "Should be case insensitive"); diff --git a/tests/met.js b/tests/met.js deleted file mode 100644 index 6cb56984..00000000 --- a/tests/met.js +++ /dev/null @@ -1,962 +0,0 @@ -var moment = require("../index"); - -exports["MET"] = { - - "1916" : function (t) { - t.equal(moment("1916-04-30T21:59:59+00:00").tz("MET").format("HH:mm:ss"), "22:59:59", "1916-04-30T21:59:59+00:00 should be 22:59:59 MET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("MET").format("HH:mm:ss"), "00:00:00", "1916-04-30T22:00:00+00:00 should be 00:00:00 MEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("MET").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 MEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("MET").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 MET"); - - t.equal(moment("1916-04-30T21:59:59+00:00").tz("MET").zone(), -60, "1916-04-30T21:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1916-04-30T22:00:00+00:00").tz("MET").zone(), -120, "1916-04-30T22:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1916-09-30T22:59:59+00:00").tz("MET").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1916-09-30T23:00:00+00:00").tz("MET").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1917" : function (t) { - t.equal(moment("1917-04-16T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1917-04-16T00:59:59+00:00").tz("MET").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1917-04-16T01:00:00+00:00").tz("MET").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1917-09-17T00:59:59+00:00").tz("MET").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1917-09-17T01:00:00+00:00").tz("MET").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1918" : function (t) { - t.equal(moment("1918-04-15T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1918-04-15T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1918-04-15T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1918-09-16T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1918-09-16T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1918-04-15T00:59:59+00:00").tz("MET").zone(), -60, "1918-04-15T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1918-04-15T01:00:00+00:00").tz("MET").zone(), -120, "1918-04-15T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1918-09-16T00:59:59+00:00").tz("MET").zone(), -120, "1918-09-16T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1918-09-16T01:00:00+00:00").tz("MET").zone(), -60, "1918-09-16T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-01T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1940-04-01T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1940-04-01T01:00:00+00:00 should be 03:00:00 MEST"); - - t.equal(moment("1940-04-01T00:59:59+00:00").tz("MET").zone(), -60, "1940-04-01T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1940-04-01T01:00:00+00:00").tz("MET").zone(), -120, "1940-04-01T01:00:00+00:00 should be -120 minutes offset in MEST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-11-02T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1942-11-02T00:59:59+00:00").tz("MET").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1942-11-02T01:00:00+00:00").tz("MET").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1943" : function (t) { - t.equal(moment("1943-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1943-03-29T00:59:59+00:00").tz("MET").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1943-03-29T01:00:00+00:00").tz("MET").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1943-10-04T00:59:59+00:00").tz("MET").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1943-10-04T01:00:00+00:00").tz("MET").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-04-03T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1944-04-03T00:59:59+00:00").tz("MET").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1944-04-03T01:00:00+00:00").tz("MET").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1944-10-02T00:59:59+00:00").tz("MET").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1944-10-02T01:00:00+00:00").tz("MET").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-04-02T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1945-04-02T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1945-04-02T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1945-09-16T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1945-09-16T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1945-04-02T00:59:59+00:00").tz("MET").zone(), -60, "1945-04-02T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1945-04-02T01:00:00+00:00").tz("MET").zone(), -120, "1945-04-02T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1945-09-16T00:59:59+00:00").tz("MET").zone(), -120, "1945-09-16T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1945-09-16T01:00:00+00:00").tz("MET").zone(), -60, "1945-09-16T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-03T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1977-04-03T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1977-04-03T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1977-09-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1977-09-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1977-04-03T00:59:59+00:00").tz("MET").zone(), -60, "1977-04-03T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("MET").zone(), -120, "1977-04-03T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("MET").zone(), -120, "1977-09-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("MET").zone(), -60, "1977-09-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1978-04-02T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1978-04-02T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1978-10-01T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1978-10-01T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("MET").zone(), -60, "1978-04-02T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("MET").zone(), -120, "1978-04-02T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("MET").zone(), -120, "1978-10-01T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("MET").zone(), -60, "1978-10-01T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1979-04-01T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1979-04-01T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1979-09-30T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1979-09-30T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("MET").zone(), -60, "1979-04-01T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("MET").zone(), -120, "1979-04-01T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("MET").zone(), -120, "1979-09-30T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("MET").zone(), -60, "1979-09-30T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1980-04-06T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1980-04-06T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("MET").zone(), -60, "1980-04-06T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("MET").zone(), -120, "1980-04-06T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("MET").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("MET").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("MET").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("MET").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("MET").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("MET").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("MET").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("MET").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("MET").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("MET").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("MET").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("MET").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("MET").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("MET").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("MET").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("MET").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("MET").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("MET").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("MET").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("MET").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("MET").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("MET").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("MET").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("MET").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("MET").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("MET").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("MET").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("MET").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("MET").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("MET").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("MET").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("MET").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("MET").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("MET").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("MET").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("MET").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("MET").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("MET").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("MET").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("MET").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("MET").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("MET").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("MET").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("MET").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("MET").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("MET").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("MET").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("MET").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("MET").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("MET").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("MET").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("MET").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("MET").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("MET").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("MET").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("MET").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("MET").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("MET").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("MET").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("MET").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("MET").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("MET").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("MET").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("MET").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("MET").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("MET").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("MET").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("MET").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("MET").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("MET").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("MET").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("MET").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("MET").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("MET").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("MET").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("MET").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("MET").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("MET").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("MET").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("MET").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("MET").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("MET").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("MET").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("MET").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("MET").zone(), -120, "2001-10-28T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("MET").zone(), -60, "2001-10-28T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2002-03-31T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2002-03-31T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2002-10-27T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2002-10-27T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("MET").zone(), -60, "2002-03-31T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("MET").zone(), -120, "2002-03-31T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("MET").zone(), -120, "2002-10-27T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("MET").zone(), -60, "2002-10-27T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2003-03-30T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2003-03-30T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2003-10-26T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2003-10-26T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("MET").zone(), -60, "2003-03-30T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("MET").zone(), -120, "2003-03-30T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("MET").zone(), -120, "2003-10-26T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("MET").zone(), -60, "2003-10-26T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2004-03-28T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2004-03-28T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2004-10-31T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2004-10-31T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("MET").zone(), -60, "2004-03-28T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("MET").zone(), -120, "2004-03-28T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("MET").zone(), -120, "2004-10-31T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("MET").zone(), -60, "2004-10-31T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2005-03-27T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2005-03-27T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2005-10-30T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2005-10-30T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("MET").zone(), -60, "2005-03-27T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("MET").zone(), -120, "2005-03-27T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("MET").zone(), -120, "2005-10-30T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("MET").zone(), -60, "2005-10-30T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2006-03-26T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2006-03-26T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2006-10-29T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2006-10-29T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("MET").zone(), -60, "2006-03-26T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("MET").zone(), -120, "2006-03-26T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("MET").zone(), -120, "2006-10-29T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("MET").zone(), -60, "2006-10-29T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2007-03-25T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2007-03-25T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2007-10-28T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2007-10-28T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("MET").zone(), -60, "2007-03-25T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("MET").zone(), -120, "2007-03-25T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("MET").zone(), -120, "2007-10-28T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("MET").zone(), -60, "2007-10-28T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2008-03-30T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2008-03-30T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2008-10-26T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2008-10-26T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("MET").zone(), -60, "2008-03-30T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("MET").zone(), -120, "2008-03-30T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("MET").zone(), -120, "2008-10-26T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("MET").zone(), -60, "2008-10-26T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2009-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2009-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2009-10-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2009-10-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("MET").zone(), -60, "2009-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("MET").zone(), -120, "2009-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("MET").zone(), -120, "2009-10-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("MET").zone(), -60, "2009-10-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2010-03-28T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2010-03-28T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2010-10-31T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2010-10-31T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("MET").zone(), -60, "2010-03-28T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("MET").zone(), -120, "2010-03-28T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("MET").zone(), -120, "2010-10-31T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("MET").zone(), -60, "2010-10-31T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2011-03-27T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2011-03-27T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2011-10-30T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2011-10-30T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("MET").zone(), -60, "2011-03-27T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("MET").zone(), -120, "2011-03-27T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("MET").zone(), -120, "2011-10-30T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("MET").zone(), -60, "2011-10-30T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2012-03-25T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2012-03-25T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2012-10-28T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2012-10-28T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("MET").zone(), -60, "2012-03-25T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("MET").zone(), -120, "2012-03-25T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("MET").zone(), -120, "2012-10-28T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("MET").zone(), -60, "2012-10-28T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2013-03-31T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2013-03-31T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2013-10-27T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2013-10-27T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("MET").zone(), -60, "2013-03-31T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("MET").zone(), -120, "2013-03-31T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("MET").zone(), -120, "2013-10-27T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("MET").zone(), -60, "2013-10-27T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2014-03-30T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2014-03-30T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2014-10-26T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2014-10-26T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("MET").zone(), -60, "2014-03-30T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("MET").zone(), -120, "2014-03-30T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("MET").zone(), -120, "2014-10-26T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("MET").zone(), -60, "2014-10-26T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2015-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2015-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2015-10-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2015-10-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("MET").zone(), -60, "2015-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("MET").zone(), -120, "2015-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("MET").zone(), -120, "2015-10-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("MET").zone(), -60, "2015-10-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2016-03-27T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2016-03-27T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2016-10-30T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2016-10-30T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("MET").zone(), -60, "2016-03-27T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("MET").zone(), -120, "2016-03-27T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("MET").zone(), -120, "2016-10-30T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("MET").zone(), -60, "2016-10-30T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2017-03-26T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2017-03-26T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2017-10-29T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2017-10-29T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("MET").zone(), -60, "2017-03-26T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("MET").zone(), -120, "2017-03-26T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("MET").zone(), -120, "2017-10-29T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("MET").zone(), -60, "2017-10-29T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2018-03-25T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2018-03-25T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2018-10-28T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2018-10-28T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("MET").zone(), -60, "2018-03-25T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("MET").zone(), -120, "2018-03-25T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("MET").zone(), -120, "2018-10-28T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("MET").zone(), -60, "2018-10-28T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2019-03-31T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2019-03-31T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2019-10-27T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2019-10-27T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("MET").zone(), -60, "2019-03-31T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("MET").zone(), -120, "2019-03-31T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("MET").zone(), -120, "2019-10-27T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("MET").zone(), -60, "2019-10-27T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2020-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2020-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2020-10-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2020-10-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("MET").zone(), -60, "2020-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("MET").zone(), -120, "2020-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("MET").zone(), -120, "2020-10-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("MET").zone(), -60, "2020-10-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2021-03-28T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2021-03-28T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2021-10-31T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2021-10-31T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("MET").zone(), -60, "2021-03-28T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("MET").zone(), -120, "2021-03-28T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("MET").zone(), -120, "2021-10-31T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("MET").zone(), -60, "2021-10-31T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2022-03-27T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2022-03-27T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2022-10-30T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2022-10-30T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("MET").zone(), -60, "2022-03-27T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("MET").zone(), -120, "2022-03-27T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("MET").zone(), -120, "2022-10-30T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("MET").zone(), -60, "2022-10-30T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2023-03-26T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2023-03-26T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2023-10-29T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2023-10-29T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("MET").zone(), -60, "2023-03-26T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("MET").zone(), -120, "2023-03-26T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("MET").zone(), -120, "2023-10-29T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("MET").zone(), -60, "2023-10-29T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2024-03-31T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2024-03-31T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2024-10-27T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2024-10-27T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("MET").zone(), -60, "2024-03-31T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("MET").zone(), -120, "2024-03-31T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("MET").zone(), -120, "2024-10-27T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("MET").zone(), -60, "2024-10-27T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2025-03-30T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2025-03-30T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2025-10-26T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2025-10-26T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("MET").zone(), -60, "2025-03-30T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("MET").zone(), -120, "2025-03-30T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("MET").zone(), -120, "2025-10-26T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("MET").zone(), -60, "2025-10-26T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2026-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2026-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2026-10-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2026-10-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("MET").zone(), -60, "2026-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("MET").zone(), -120, "2026-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("MET").zone(), -120, "2026-10-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("MET").zone(), -60, "2026-10-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2027-03-28T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2027-03-28T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2027-10-31T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2027-10-31T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("MET").zone(), -60, "2027-03-28T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("MET").zone(), -120, "2027-03-28T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("MET").zone(), -120, "2027-10-31T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("MET").zone(), -60, "2027-10-31T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2028-03-26T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2028-03-26T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2028-10-29T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2028-10-29T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("MET").zone(), -60, "2028-03-26T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("MET").zone(), -120, "2028-03-26T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("MET").zone(), -120, "2028-10-29T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("MET").zone(), -60, "2028-10-29T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2029-03-25T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2029-03-25T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2029-10-28T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2029-10-28T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("MET").zone(), -60, "2029-03-25T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("MET").zone(), -120, "2029-03-25T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("MET").zone(), -120, "2029-10-28T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("MET").zone(), -60, "2029-10-28T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2030-03-31T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2030-03-31T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2030-10-27T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2030-10-27T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("MET").zone(), -60, "2030-03-31T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("MET").zone(), -120, "2030-03-31T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("MET").zone(), -120, "2030-10-27T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("MET").zone(), -60, "2030-10-27T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2031-03-30T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2031-03-30T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2031-10-26T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2031-10-26T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("MET").zone(), -60, "2031-03-30T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("MET").zone(), -120, "2031-03-30T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("MET").zone(), -120, "2031-10-26T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("MET").zone(), -60, "2031-10-26T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2032-03-28T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2032-03-28T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2032-10-31T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2032-10-31T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("MET").zone(), -60, "2032-03-28T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("MET").zone(), -120, "2032-03-28T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("MET").zone(), -120, "2032-10-31T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("MET").zone(), -60, "2032-10-31T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2033-03-27T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2033-03-27T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2033-10-30T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2033-10-30T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("MET").zone(), -60, "2033-03-27T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("MET").zone(), -120, "2033-03-27T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("MET").zone(), -120, "2033-10-30T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("MET").zone(), -60, "2033-10-30T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2034-03-26T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2034-03-26T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2034-10-29T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2034-10-29T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("MET").zone(), -60, "2034-03-26T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("MET").zone(), -120, "2034-03-26T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("MET").zone(), -120, "2034-10-29T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("MET").zone(), -60, "2034-10-29T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2035-03-25T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2035-03-25T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2035-10-28T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2035-10-28T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("MET").zone(), -60, "2035-03-25T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("MET").zone(), -120, "2035-03-25T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("MET").zone(), -120, "2035-10-28T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("MET").zone(), -60, "2035-10-28T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2036-03-30T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2036-03-30T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2036-10-26T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2036-10-26T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("MET").zone(), -60, "2036-03-30T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("MET").zone(), -120, "2036-03-30T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("MET").zone(), -120, "2036-10-26T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("MET").zone(), -60, "2036-10-26T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "01:59:59", "2037-03-29T00:59:59+00:00 should be 01:59:59 MET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "03:00:00", "2037-03-29T01:00:00+00:00 should be 03:00:00 MEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("MET").format("HH:mm:ss"), "02:59:59", "2037-10-25T00:59:59+00:00 should be 02:59:59 MEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("MET").format("HH:mm:ss"), "02:00:00", "2037-10-25T01:00:00+00:00 should be 02:00:00 MET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("MET").zone(), -60, "2037-03-29T00:59:59+00:00 should be -60 minutes offset in MET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("MET").zone(), -120, "2037-03-29T01:00:00+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("MET").zone(), -120, "2037-10-25T00:59:59+00:00 should be -120 minutes offset in MEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("MET").zone(), -60, "2037-10-25T01:00:00+00:00 should be -60 minutes offset in MET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/mst.js b/tests/mst.js deleted file mode 100644 index 3800b4ef..00000000 --- a/tests/mst.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../index"); - -exports["MST"] = { - - -}; \ No newline at end of file diff --git a/tests/mst7mdt.js b/tests/mst7mdt.js deleted file mode 100644 index 9bdc3e98..00000000 --- a/tests/mst7mdt.js +++ /dev/null @@ -1,1050 +0,0 @@ -var moment = require("../index"); - -exports["MST7MDT"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1918-03-31T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1918-03-31T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1918-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1918-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1918-03-31T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1918-03-31T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1918-03-31T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1918-03-31T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1918-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1918-10-27T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1918-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1919-03-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1919-03-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1919-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1919-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1919-03-30T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1919-03-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1919-03-30T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1919-03-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1919-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1919-10-26T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1919-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1942-02-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1942-02-09T09:00:00+00:00 should be 03:00:00 MWT"); - - t.equal(moment("1942-02-09T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1942-02-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1942-02-09T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1942-02-09T09:00:00+00:00 should be 360 minutes offset in MWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "16:59:59", "1945-08-14T22:59:59+00:00 should be 16:59:59 MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "17:00:00", "1945-08-14T23:00:00+00:00 should be 17:00:00 MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1945-09-30T07:59:59+00:00 should be 01:59:59 MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1945-09-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("MST7MDT").zone(), 360, "1945-08-14T22:59:59+00:00 should be 360 minutes offset in MWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("MST7MDT").zone(), 360, "1945-08-14T23:00:00+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1945-09-30T07:59:59+00:00 should be 360 minutes offset in MPT"); - t.equal(moment("1945-09-30T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1945-09-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1967-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1967-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1967-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1967-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1967-04-30T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1967-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1967-04-30T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1967-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1967-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1967-10-29T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1967-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1968-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1968-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1968-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1968-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1968-04-28T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1968-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1968-04-28T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1968-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1968-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1968-10-27T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1968-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1969-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1969-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1969-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1969-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1969-04-27T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1969-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1969-04-27T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1969-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1969-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1969-10-26T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1969-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1970-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1970-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1970-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1970-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1970-04-26T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1970-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1970-04-26T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1970-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1970-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1970-10-25T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1970-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1971-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1971-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1971-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1971-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1971-04-25T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1971-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1971-04-25T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1971-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1971-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1971-10-31T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1971-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1972-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1972-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1972-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1972-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1972-04-30T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1972-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1972-04-30T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1972-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1972-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1972-10-29T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1972-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1973-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1973-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1973-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1973-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1973-04-29T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1973-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1973-04-29T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1973-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1973-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1973-10-28T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1973-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1974-01-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1974-01-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1974-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1974-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1974-01-06T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1974-01-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1974-01-06T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1974-01-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1974-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1974-10-27T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1974-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1975-02-23T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1975-02-23T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1975-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1975-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1975-02-23T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1975-02-23T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1975-02-23T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1975-02-23T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1975-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1975-10-26T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1975-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1976-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1976-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1976-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1976-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1976-04-25T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1976-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1976-04-25T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1976-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1976-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1976-10-31T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1976-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1977-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1977-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1977-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1977-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1977-04-24T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1977-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1977-04-24T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1977-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1977-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1977-10-30T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1977-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1978-04-30T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1978-04-30T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1978-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1978-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1978-04-30T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1978-04-30T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1978-04-30T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1978-04-30T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1978-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1978-10-29T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1978-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1979-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1979-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1979-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1979-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1979-04-29T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1979-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1979-04-29T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1979-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1979-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1979-10-28T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1979-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1980-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1980-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1980-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1980-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1980-04-27T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1980-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1980-04-27T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1980-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1980-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1980-10-26T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1980-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1981-04-26T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1981-04-26T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1981-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1981-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1981-04-26T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1981-04-26T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1981-04-26T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1981-04-26T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1981-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1981-10-25T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1981-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1982-04-25T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1982-04-25T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1982-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1982-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1982-04-25T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1982-04-25T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1982-04-25T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1982-04-25T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1982-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1982-10-31T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1982-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1983-04-24T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1983-04-24T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1983-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1983-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1983-04-24T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1983-04-24T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1983-04-24T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1983-04-24T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1983-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1983-10-30T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1983-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1984-04-29T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1984-04-29T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1984-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1984-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1984-04-29T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1984-04-29T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1984-04-29T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1984-04-29T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1984-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1984-10-28T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1984-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1985-04-28T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1985-04-28T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1985-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1985-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1985-04-28T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1985-04-28T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1985-04-28T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1985-04-28T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1985-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1985-10-27T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1985-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1986-04-27T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1986-04-27T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1986-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1986-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1986-04-27T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1986-04-27T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1986-04-27T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1986-04-27T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1986-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1986-10-26T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1986-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1987-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1987-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1987-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1987-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1987-04-05T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1987-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1987-04-05T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1987-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1987-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1987-10-25T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1987-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1988-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1988-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1988-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1988-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1988-04-03T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1988-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1988-04-03T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1988-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1988-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1988-10-30T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1988-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1989-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1989-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1989-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1989-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1989-04-02T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1989-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1989-04-02T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1989-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1989-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1989-10-29T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1989-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1990-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1990-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1990-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1990-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1990-04-01T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1990-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1990-04-01T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1990-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1990-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1990-10-28T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1990-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1991-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1991-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1991-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1991-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1991-04-07T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1991-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1991-04-07T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1991-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1991-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1991-10-27T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1991-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1992-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1992-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1992-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1992-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1992-04-05T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1992-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1992-04-05T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1992-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1992-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1992-10-25T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1992-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1993-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1993-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1993-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1993-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1993-04-04T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1993-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1993-04-04T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1993-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1993-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1993-10-31T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1993-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1994-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1994-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1994-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1994-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1994-04-03T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1994-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1994-04-03T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1994-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1994-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1994-10-30T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1994-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1995-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1995-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1995-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1995-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1995-04-02T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1995-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1995-04-02T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1995-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1995-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1995-10-29T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1995-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1996-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1996-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1996-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1996-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1996-04-07T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1996-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1996-04-07T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1996-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1996-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1996-10-27T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1996-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1997-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1997-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1997-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1997-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1997-04-06T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1997-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1997-04-06T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1997-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1997-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1997-10-26T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1997-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1998-04-05T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1998-04-05T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1998-10-25T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1998-10-25T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1998-04-05T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1998-04-05T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1998-04-05T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1998-04-05T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1998-10-25T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1998-10-25T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1998-10-25T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1999-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "1999-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "1999-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "1999-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("1999-04-04T08:59:59+00:00").tz("MST7MDT").zone(), 420, "1999-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("1999-04-04T09:00:00+00:00").tz("MST7MDT").zone(), 360, "1999-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T07:59:59+00:00").tz("MST7MDT").zone(), 360, "1999-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("1999-10-31T08:00:00+00:00").tz("MST7MDT").zone(), 420, "1999-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2000-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2000-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2000-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2000-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2000-04-02T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2000-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2000-04-02T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2000-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2000-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2000-10-29T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2000-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2001-04-01T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2001-04-01T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2001-10-28T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2001-10-28T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2001-04-01T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2001-04-01T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2001-04-01T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2001-04-01T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2001-10-28T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2001-10-28T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2001-10-28T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2002-04-07T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2002-04-07T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2002-10-27T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2002-10-27T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2002-04-07T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2002-04-07T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2002-04-07T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2002-04-07T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2002-10-27T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2002-10-27T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2002-10-27T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2003-04-06T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2003-04-06T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2003-10-26T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2003-10-26T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2003-04-06T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2003-04-06T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2003-04-06T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2003-04-06T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2003-10-26T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2003-10-26T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2003-10-26T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2004-04-04T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2004-04-04T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2004-10-31T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2004-10-31T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2004-04-04T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2004-04-04T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2004-04-04T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2004-04-04T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2004-10-31T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2004-10-31T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2004-10-31T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2005-04-03T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2005-04-03T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2005-10-30T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2005-10-30T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2005-04-03T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2005-04-03T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2005-04-03T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2005-04-03T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2005-10-30T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2005-10-30T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2005-10-30T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2006-04-02T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2006-04-02T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2006-10-29T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2006-10-29T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2006-04-02T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2006-04-02T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2006-04-02T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2006-04-02T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2006-10-29T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2006-10-29T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2006-10-29T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2007-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2007-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2007-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2007-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2007-03-11T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2007-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2007-03-11T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2007-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2007-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2007-11-04T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2007-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2008-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2008-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2008-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2008-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2008-03-09T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2008-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2008-03-09T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2008-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2008-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2008-11-02T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2008-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2009-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2009-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2009-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2009-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2009-03-08T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2009-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2009-03-08T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2009-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2009-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2009-11-01T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2009-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2010-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2010-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2010-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2010-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2010-03-14T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2010-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2010-03-14T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2010-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2010-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2010-11-07T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2010-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2011-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2011-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2011-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2011-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2011-03-13T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2011-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2011-03-13T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2011-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2011-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2011-11-06T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2011-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2012-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2012-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2012-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2012-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2012-03-11T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2012-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2012-03-11T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2012-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2012-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2012-11-04T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2012-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2013-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2013-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2013-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2013-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2013-03-10T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2013-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2013-03-10T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2013-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2013-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2013-11-03T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2013-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2014-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2014-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2014-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2014-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2014-03-09T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2014-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2014-03-09T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2014-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2014-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2014-11-02T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2014-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2015-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2015-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2015-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2015-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2015-03-08T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2015-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2015-03-08T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2015-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2015-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2015-11-01T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2015-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2016-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2016-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2016-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2016-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2016-03-13T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2016-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2016-03-13T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2016-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2016-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2016-11-06T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2016-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2017-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2017-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2017-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2017-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2017-03-12T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2017-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2017-03-12T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2017-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2017-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2017-11-05T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2017-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2018-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2018-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2018-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2018-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2018-03-11T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2018-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2018-03-11T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2018-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2018-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2018-11-04T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2018-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2019-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2019-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2019-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2019-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2019-03-10T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2019-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2019-03-10T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2019-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2019-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2019-11-03T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2019-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2020-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2020-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2020-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2020-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2020-03-08T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2020-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2020-03-08T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2020-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2020-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2020-11-01T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2020-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2021-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2021-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2021-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2021-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2021-03-14T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2021-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2021-03-14T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2021-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2021-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2021-11-07T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2021-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2022-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2022-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2022-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2022-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2022-03-13T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2022-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2022-03-13T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2022-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2022-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2022-11-06T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2022-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2023-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2023-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2023-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2023-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2023-03-12T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2023-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2023-03-12T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2023-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2023-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2023-11-05T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2023-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2024-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2024-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2024-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2024-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2024-03-10T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2024-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2024-03-10T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2024-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2024-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2024-11-03T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2024-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2025-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2025-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2025-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2025-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2025-03-09T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2025-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2025-03-09T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2025-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2025-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2025-11-02T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2025-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2026-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2026-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2026-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2026-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2026-03-08T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2026-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2026-03-08T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2026-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2026-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2026-11-01T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2026-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2027-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2027-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2027-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2027-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2027-03-14T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2027-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2027-03-14T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2027-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2027-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2027-11-07T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2027-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2028-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2028-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2028-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2028-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2028-03-12T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2028-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2028-03-12T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2028-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2028-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2028-11-05T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2028-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2029-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2029-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2029-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2029-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2029-03-11T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2029-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2029-03-11T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2029-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2029-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2029-11-04T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2029-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2030-03-10T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2030-03-10T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2030-11-03T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2030-11-03T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2030-03-10T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2030-03-10T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2030-03-10T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2030-03-10T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2030-11-03T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2030-11-03T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2030-11-03T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2031-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2031-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2031-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2031-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2031-03-09T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2031-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2031-03-09T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2031-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2031-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2031-11-02T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2031-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2032-03-14T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2032-03-14T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2032-11-07T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2032-11-07T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2032-03-14T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2032-03-14T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2032-03-14T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2032-03-14T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2032-11-07T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2032-11-07T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2032-11-07T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2033-03-13T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2033-03-13T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2033-11-06T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2033-11-06T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2033-03-13T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2033-03-13T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2033-03-13T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2033-03-13T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2033-11-06T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2033-11-06T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2033-11-06T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2034-03-12T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2034-03-12T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2034-11-05T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2034-11-05T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2034-03-12T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2034-03-12T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2034-03-12T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2034-03-12T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2034-11-05T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2034-11-05T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2034-11-05T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2035-03-11T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2035-03-11T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2035-11-04T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2035-11-04T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2035-03-11T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2035-03-11T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2035-03-11T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2035-03-11T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2035-11-04T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2035-11-04T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2035-11-04T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2036-03-09T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2036-03-09T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2036-11-02T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2036-11-02T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2036-03-09T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2036-03-09T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2036-03-09T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2036-03-09T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2036-11-02T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2036-11-02T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2036-11-02T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T08:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2037-03-08T08:59:59+00:00 should be 01:59:59 MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "03:00:00", "2037-03-08T09:00:00+00:00 should be 03:00:00 MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:59:59", "2037-11-01T07:59:59+00:00 should be 01:59:59 MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("MST7MDT").format("HH:mm:ss"), "01:00:00", "2037-11-01T08:00:00+00:00 should be 01:00:00 MST"); - - t.equal(moment("2037-03-08T08:59:59+00:00").tz("MST7MDT").zone(), 420, "2037-03-08T08:59:59+00:00 should be 420 minutes offset in MST"); - t.equal(moment("2037-03-08T09:00:00+00:00").tz("MST7MDT").zone(), 360, "2037-03-08T09:00:00+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T07:59:59+00:00").tz("MST7MDT").zone(), 360, "2037-11-01T07:59:59+00:00 should be 360 minutes offset in MDT"); - t.equal(moment("2037-11-01T08:00:00+00:00").tz("MST7MDT").zone(), 420, "2037-11-01T08:00:00+00:00 should be 420 minutes offset in MST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/apia.js b/tests/pacific/apia.js deleted file mode 100644 index 08e6ea16..00000000 --- a/tests/pacific/apia.js +++ /dev/null @@ -1,416 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Apia"] = { - - "1911" : function (t) { - t.equal(moment("1911-01-01T11:26:55+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "23:59:59", "1911-01-01T11:26:55+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-01-01T11:26:56+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "23:56:56", "1911-01-01T11:26:56+00:00 should be 23:56:56 SAMT"); - - t.equal(moment("1911-01-01T11:26:55+00:00").tz("Pacific/Apia").zone(), 41216 / 60, "1911-01-01T11:26:55+00:00 should be 41216 / 60 minutes offset in LMT"); - t.equal(moment("1911-01-01T11:26:56+00:00").tz("Pacific/Apia").zone(), 690, "1911-01-01T11:26:56+00:00 should be 690 minutes offset in SAMT"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-01-01T11:29:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "23:59:59", "1950-01-01T11:29:59+00:00 should be 23:59:59 SAMT"); - t.equal(moment("1950-01-01T11:30:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "00:30:00", "1950-01-01T11:30:00+00:00 should be 00:30:00 WST"); - - t.equal(moment("1950-01-01T11:29:59+00:00").tz("Pacific/Apia").zone(), 690, "1950-01-01T11:29:59+00:00 should be 690 minutes offset in SAMT"); - t.equal(moment("1950-01-01T11:30:00+00:00").tz("Pacific/Apia").zone(), 660, "1950-01-01T11:30:00+00:00 should be 660 minutes offset in WST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-09-26T10:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "23:59:59", "2010-09-26T10:59:59+00:00 should be 23:59:59 WST"); - t.equal(moment("2010-09-26T11:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "01:00:00", "2010-09-26T11:00:00+00:00 should be 01:00:00 WSDT"); - - t.equal(moment("2010-09-26T10:59:59+00:00").tz("Pacific/Apia").zone(), 660, "2010-09-26T10:59:59+00:00 should be 660 minutes offset in WST"); - t.equal(moment("2010-09-26T11:00:00+00:00").tz("Pacific/Apia").zone(), 600, "2010-09-26T11:00:00+00:00 should be 600 minutes offset in WSDT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2011-04-02T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2011-04-02T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2011-04-02T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2011-09-24T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2011-09-24T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2011-09-24T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2011-09-24T14:00:00+00:00 should be 04:00:00 WSDT"); - t.equal(moment("2011-12-30T09:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "23:59:59", "2011-12-30T09:59:59+00:00 should be 23:59:59 WSDT"); - t.equal(moment("2011-12-30T10:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "00:00:00", "2011-12-30T10:00:00+00:00 should be 00:00:00 WSDT"); - - t.equal(moment("2011-04-02T13:59:59+00:00").tz("Pacific/Apia").zone(), 600, "2011-04-02T13:59:59+00:00 should be 600 minutes offset in WSDT"); - t.equal(moment("2011-04-02T14:00:00+00:00").tz("Pacific/Apia").zone(), 660, "2011-04-02T14:00:00+00:00 should be 660 minutes offset in WST"); - t.equal(moment("2011-09-24T13:59:59+00:00").tz("Pacific/Apia").zone(), 660, "2011-09-24T13:59:59+00:00 should be 660 minutes offset in WST"); - t.equal(moment("2011-09-24T14:00:00+00:00").tz("Pacific/Apia").zone(), 600, "2011-09-24T14:00:00+00:00 should be 600 minutes offset in WSDT"); - t.equal(moment("2011-12-30T09:59:59+00:00").tz("Pacific/Apia").zone(), 600, "2011-12-30T09:59:59+00:00 should be 600 minutes offset in WSDT"); - t.equal(moment("2011-12-30T10:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2011-12-30T10:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2012-03-31T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2012-03-31T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2012-03-31T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2012-09-29T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2012-09-29T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2012-09-29T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2012-09-29T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2012-03-31T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2012-03-31T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2012-03-31T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2012-03-31T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2012-09-29T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2012-09-29T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2012-09-29T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2012-09-29T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2013-04-06T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2013-04-06T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2013-04-06T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2013-09-28T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2013-09-28T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2013-09-28T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2013-09-28T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2013-04-06T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2013-04-06T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2013-04-06T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2013-04-06T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2013-09-28T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2013-09-28T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2013-09-28T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2013-09-28T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2014-04-05T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2014-04-05T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2014-04-05T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2014-09-27T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2014-09-27T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2014-09-27T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2014-09-27T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2014-04-05T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2014-04-05T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2014-04-05T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2014-04-05T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2014-09-27T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2014-09-27T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2014-09-27T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2014-09-27T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2015-04-04T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2015-04-04T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2015-04-04T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2015-09-26T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2015-09-26T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2015-09-26T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2015-09-26T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2015-04-04T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2015-04-04T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2015-04-04T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2015-04-04T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2015-09-26T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2015-09-26T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2015-09-26T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2015-09-26T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2016-04-02T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2016-04-02T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2016-04-02T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2016-09-24T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2016-09-24T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2016-09-24T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2016-09-24T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2016-04-02T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2016-04-02T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2016-04-02T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2016-04-02T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2016-09-24T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2016-09-24T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2016-09-24T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2016-09-24T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2017-04-01T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2017-04-01T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2017-04-01T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2017-09-23T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2017-09-23T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2017-09-23T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2017-09-23T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2017-04-01T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2017-04-01T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2017-04-01T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2017-04-01T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2017-09-23T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2017-09-23T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2017-09-23T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2017-09-23T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2018-03-31T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2018-03-31T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2018-03-31T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2018-09-29T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2018-09-29T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2018-09-29T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2018-09-29T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2018-03-31T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2018-03-31T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2018-03-31T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2018-03-31T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2018-09-29T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2018-09-29T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2018-09-29T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2018-09-29T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2019-04-06T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2019-04-06T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2019-04-06T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2019-09-28T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2019-09-28T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2019-09-28T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2019-09-28T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2019-04-06T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2019-04-06T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2019-04-06T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2019-04-06T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2019-09-28T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2019-09-28T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2019-09-28T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2019-09-28T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2020-04-04T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2020-04-04T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2020-04-04T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2020-09-26T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2020-09-26T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2020-09-26T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2020-09-26T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2020-04-04T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2020-04-04T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2020-04-04T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2020-04-04T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2020-09-26T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2020-09-26T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2020-09-26T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2020-09-26T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2021-04-03T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2021-04-03T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2021-04-03T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2021-09-25T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2021-09-25T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2021-09-25T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2021-09-25T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2021-04-03T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2021-04-03T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2021-04-03T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2021-04-03T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2021-09-25T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2021-09-25T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2021-09-25T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2021-09-25T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2022-04-02T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2022-04-02T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2022-04-02T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2022-09-24T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2022-09-24T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2022-09-24T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2022-09-24T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2022-04-02T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2022-04-02T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2022-04-02T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2022-04-02T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2022-09-24T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2022-09-24T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2022-09-24T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2022-09-24T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2023-04-01T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2023-04-01T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2023-04-01T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2023-09-23T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2023-09-23T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2023-09-23T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2023-09-23T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2023-04-01T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2023-04-01T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2023-04-01T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2023-04-01T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2023-09-23T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2023-09-23T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2023-09-23T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2023-09-23T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2024-04-06T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2024-04-06T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2024-04-06T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2024-09-28T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2024-09-28T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2024-09-28T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2024-09-28T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2024-04-06T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2024-04-06T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2024-04-06T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2024-04-06T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2024-09-28T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2024-09-28T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2024-09-28T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2024-09-28T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2025-04-05T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2025-04-05T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2025-04-05T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2025-09-27T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2025-09-27T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2025-09-27T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2025-09-27T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2025-04-05T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2025-04-05T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2025-04-05T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2025-04-05T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2025-09-27T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2025-09-27T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2025-09-27T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2025-09-27T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2026-04-04T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2026-04-04T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2026-04-04T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2026-09-26T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2026-09-26T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2026-09-26T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2026-09-26T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2026-04-04T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2026-04-04T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2026-04-04T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2026-04-04T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2026-09-26T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2026-09-26T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2026-09-26T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2026-09-26T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2027-04-03T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2027-04-03T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2027-04-03T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2027-09-25T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2027-09-25T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2027-09-25T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2027-09-25T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2027-04-03T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2027-04-03T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2027-04-03T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2027-04-03T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2027-09-25T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2027-09-25T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2027-09-25T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2027-09-25T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2028-04-01T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2028-04-01T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2028-04-01T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2028-09-23T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2028-09-23T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2028-09-23T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2028-09-23T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2028-04-01T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2028-04-01T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2028-04-01T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2028-04-01T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2028-09-23T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2028-09-23T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2028-09-23T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2028-09-23T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2029-03-31T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2029-03-31T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2029-03-31T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2029-09-29T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2029-09-29T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2029-09-29T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2029-09-29T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2029-03-31T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2029-03-31T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2029-03-31T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2029-03-31T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2029-09-29T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2029-09-29T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2029-09-29T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2029-09-29T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2030-04-06T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2030-04-06T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2030-04-06T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2030-09-28T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2030-09-28T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2030-09-28T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2030-09-28T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2030-04-06T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2030-04-06T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2030-04-06T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2030-04-06T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2030-09-28T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2030-09-28T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2030-09-28T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2030-09-28T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2031-04-05T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2031-04-05T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2031-04-05T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2031-09-27T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2031-09-27T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2031-09-27T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2031-09-27T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2031-04-05T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2031-04-05T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2031-04-05T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2031-04-05T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2031-09-27T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2031-09-27T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2031-09-27T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2031-09-27T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2032-04-03T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2032-04-03T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2032-04-03T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2032-09-25T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2032-09-25T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2032-09-25T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2032-09-25T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2032-04-03T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2032-04-03T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2032-04-03T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2032-04-03T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2032-09-25T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2032-09-25T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2032-09-25T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2032-09-25T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2033-04-02T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2033-04-02T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2033-04-02T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2033-09-24T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2033-09-24T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2033-09-24T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2033-09-24T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2033-04-02T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2033-04-02T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2033-04-02T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2033-04-02T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2033-09-24T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2033-09-24T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2033-09-24T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2033-09-24T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2034-04-01T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2034-04-01T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2034-04-01T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2034-09-23T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2034-09-23T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2034-09-23T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2034-09-23T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2034-04-01T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2034-04-01T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2034-04-01T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2034-04-01T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2034-09-23T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2034-09-23T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2034-09-23T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2034-09-23T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2035-03-31T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2035-03-31T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2035-03-31T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2035-09-29T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2035-09-29T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2035-09-29T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2035-09-29T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2035-03-31T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2035-03-31T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2035-03-31T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2035-03-31T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2035-09-29T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2035-09-29T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2035-09-29T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2035-09-29T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2036-04-05T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2036-04-05T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2036-04-05T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2036-09-27T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2036-09-27T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2036-09-27T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2036-09-27T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2036-04-05T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2036-04-05T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2036-04-05T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2036-04-05T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2036-09-27T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2036-09-27T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2036-09-27T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2036-09-27T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:59:59", "2037-04-04T13:59:59+00:00 should be 03:59:59 WSDT"); - t.equal(moment("2037-04-04T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "03:00:00", "2037-04-04T14:00:00+00:00 should be 03:00:00 WST"); - t.equal(moment("2037-09-26T13:59:59+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "02:59:59", "2037-09-26T13:59:59+00:00 should be 02:59:59 WST"); - t.equal(moment("2037-09-26T14:00:00+00:00").tz("Pacific/Apia").format("HH:mm:ss"), "04:00:00", "2037-09-26T14:00:00+00:00 should be 04:00:00 WSDT"); - - t.equal(moment("2037-04-04T13:59:59+00:00").tz("Pacific/Apia").zone(), -840, "2037-04-04T13:59:59+00:00 should be -840 minutes offset in WSDT"); - t.equal(moment("2037-04-04T14:00:00+00:00").tz("Pacific/Apia").zone(), -780, "2037-04-04T14:00:00+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2037-09-26T13:59:59+00:00").tz("Pacific/Apia").zone(), -780, "2037-09-26T13:59:59+00:00 should be -780 minutes offset in WST"); - t.equal(moment("2037-09-26T14:00:00+00:00").tz("Pacific/Apia").zone(), -840, "2037-09-26T14:00:00+00:00 should be -840 minutes offset in WSDT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/auckland.js b/tests/pacific/auckland.js deleted file mode 100644 index af9c6618..00000000 --- a/tests/pacific/auckland.js +++ /dev/null @@ -1,1098 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Auckland"] = { - - "1927" : function (t) { - t.equal(moment("1927-11-05T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1927-11-05T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1927-11-05T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1927-11-05T14:30:00+00:00 should be 03:00:00 NZST"); - - t.equal(moment("1927-11-05T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1927-11-05T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1927-11-05T14:30:00+00:00").tz("Pacific/Auckland").zone(), -750, "1927-11-05T14:30:00+00:00 should be -750 minutes offset in NZST"); - - t.done(); - }, - - "1928" : function (t) { - t.equal(moment("1928-03-03T13:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1928-03-03T13:29:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1928-03-03T13:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:00:00", "1928-03-03T13:30:00+00:00 should be 01:00:00 NZMT"); - t.equal(moment("1928-10-13T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1928-10-13T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1928-10-13T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1928-10-13T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1928-03-03T13:29:59+00:00").tz("Pacific/Auckland").zone(), -750, "1928-03-03T13:29:59+00:00 should be -750 minutes offset in NZST"); - t.equal(moment("1928-03-03T13:30:00+00:00").tz("Pacific/Auckland").zone(), -690, "1928-03-03T13:30:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1928-10-13T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1928-10-13T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1928-10-13T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1928-10-13T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1929" : function (t) { - t.equal(moment("1929-03-16T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1929-03-16T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1929-03-16T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1929-03-16T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1929-10-12T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1929-10-12T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1929-10-12T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1929-10-12T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1929-03-16T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1929-03-16T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1929-03-16T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1929-03-16T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1929-10-12T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1929-10-12T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1929-10-12T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1929-10-12T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1930" : function (t) { - t.equal(moment("1930-03-15T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1930-03-15T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1930-03-15T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1930-03-15T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1930-10-11T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1930-10-11T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1930-10-11T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1930-10-11T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1930-03-15T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1930-03-15T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1930-03-15T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1930-03-15T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1930-10-11T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1930-10-11T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1930-10-11T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1930-10-11T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1931" : function (t) { - t.equal(moment("1931-03-14T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1931-03-14T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1931-03-14T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1931-03-14T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1931-10-10T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1931-10-10T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1931-10-10T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1931-10-10T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1931-03-14T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1931-03-14T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1931-03-14T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1931-03-14T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1931-10-10T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1931-10-10T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1931-10-10T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1931-10-10T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1932" : function (t) { - t.equal(moment("1932-03-19T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1932-03-19T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1932-03-19T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1932-03-19T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1932-10-08T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1932-10-08T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1932-10-08T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1932-10-08T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1932-03-19T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1932-03-19T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1932-03-19T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1932-03-19T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1932-10-08T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1932-10-08T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1932-10-08T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1932-10-08T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1933" : function (t) { - t.equal(moment("1933-03-18T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1933-03-18T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1933-03-18T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1933-03-18T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1933-10-07T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1933-10-07T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1933-10-07T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1933-10-07T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1933-03-18T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1933-03-18T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1933-03-18T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1933-03-18T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1933-10-07T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1933-10-07T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1933-10-07T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1933-10-07T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1934" : function (t) { - t.equal(moment("1934-04-28T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1934-04-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1934-04-28T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1934-04-28T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1934-09-29T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1934-09-29T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1934-09-29T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1934-09-29T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1934-04-28T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1934-04-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1934-04-28T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1934-04-28T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1934-09-29T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1934-09-29T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1934-09-29T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1934-09-29T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1935" : function (t) { - t.equal(moment("1935-04-27T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1935-04-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1935-04-27T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1935-04-27T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1935-09-28T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1935-09-28T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1935-09-28T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1935-09-28T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1935-04-27T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1935-04-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1935-04-27T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1935-04-27T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1935-09-28T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1935-09-28T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1935-09-28T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1935-09-28T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1936" : function (t) { - t.equal(moment("1936-04-25T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1936-04-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1936-04-25T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1936-04-25T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1936-09-26T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1936-09-26T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1936-09-26T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1936-09-26T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1936-04-25T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1936-04-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1936-04-25T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1936-04-25T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1936-09-26T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1936-09-26T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1936-09-26T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1936-09-26T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1937" : function (t) { - t.equal(moment("1937-04-24T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1937-04-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1937-04-24T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1937-04-24T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1937-09-25T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1937-09-25T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1937-09-25T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1937-09-25T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1937-04-24T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1937-04-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1937-04-24T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1937-04-24T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1937-09-25T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1937-09-25T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1937-09-25T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1937-09-25T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1938" : function (t) { - t.equal(moment("1938-04-23T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1938-04-23T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1938-04-23T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1938-04-23T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1938-09-24T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1938-09-24T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1938-09-24T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1938-09-24T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1938-04-23T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1938-04-23T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1938-04-23T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1938-04-23T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1938-09-24T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1938-09-24T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1938-09-24T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1938-09-24T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1939" : function (t) { - t.equal(moment("1939-04-29T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1939-04-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1939-04-29T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1939-04-29T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1939-09-23T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1939-09-23T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1939-09-23T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1939-09-23T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1939-04-29T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1939-04-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1939-04-29T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1939-04-29T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1939-09-23T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1939-09-23T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1939-09-23T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1939-09-23T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1940" : function (t) { - t.equal(moment("1940-04-27T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1940-04-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1940-04-27T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:30:00", "1940-04-27T14:00:00+00:00 should be 01:30:00 NZMT"); - t.equal(moment("1940-09-28T14:29:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1940-09-28T14:29:59+00:00 should be 01:59:59 NZMT"); - t.equal(moment("1940-09-28T14:30:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:30:00", "1940-09-28T14:30:00+00:00 should be 02:30:00 NZST"); - - t.equal(moment("1940-04-27T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1940-04-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1940-04-27T14:00:00+00:00").tz("Pacific/Auckland").zone(), -690, "1940-04-27T14:00:00+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1940-09-28T14:29:59+00:00").tz("Pacific/Auckland").zone(), -690, "1940-09-28T14:29:59+00:00 should be -690 minutes offset in NZMT"); - t.equal(moment("1940-09-28T14:30:00+00:00").tz("Pacific/Auckland").zone(), -720, "1940-09-28T14:30:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-12-31T11:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "23:59:59", "1945-12-31T11:59:59+00:00 should be 23:59:59 NZST"); - t.equal(moment("1945-12-31T12:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "00:00:00", "1945-12-31T12:00:00+00:00 should be 00:00:00 NZST"); - - t.equal(moment("1945-12-31T11:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1945-12-31T11:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1945-12-31T12:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1945-12-31T12:00:00+00:00 should be -720 minutes offset in NZST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-11-02T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1974-11-02T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1974-11-02T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1974-11-02T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1974-11-02T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1974-11-02T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1974-11-02T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1974-11-02T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-22T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1975-02-22T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1975-02-22T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1975-02-22T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1975-10-25T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1975-10-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1975-10-25T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1975-10-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1975-02-22T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1975-02-22T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1975-02-22T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1975-02-22T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1975-10-25T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1975-10-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1975-10-25T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1975-10-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1976-03-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1976-03-06T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1976-03-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1976-10-30T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1976-10-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1976-10-30T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1976-10-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1976-03-06T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1976-03-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1976-03-06T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1976-03-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1976-10-30T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1976-10-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1976-10-30T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1976-10-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1977-03-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1977-03-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1977-03-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1977-10-29T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1977-10-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1977-10-29T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1977-10-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1977-03-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1977-03-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1977-03-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1977-03-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1977-10-29T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1977-10-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1977-10-29T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1977-10-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1978-03-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1978-03-04T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1978-03-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1978-10-28T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1978-10-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1978-10-28T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1978-10-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1978-03-04T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1978-03-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1978-03-04T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1978-03-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1978-10-28T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1978-10-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1978-10-28T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1978-10-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1979-03-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1979-03-03T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1979-03-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1979-10-27T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1979-10-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1979-10-27T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1979-10-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1979-03-03T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1979-03-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1979-03-03T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1979-03-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1979-10-27T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1979-10-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1979-10-27T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1979-10-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1980-03-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1980-03-01T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1980-03-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1980-10-25T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1980-10-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1980-10-25T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1980-10-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1980-03-01T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1980-03-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1980-03-01T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1980-03-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1980-10-25T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1980-10-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1980-10-25T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1980-10-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1981-02-28T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1981-02-28T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1981-02-28T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1981-10-24T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1981-10-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1981-10-24T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1981-10-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1981-02-28T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1981-02-28T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1981-02-28T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1981-02-28T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1981-10-24T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1981-10-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1981-10-24T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1981-10-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-06T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1982-03-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1982-03-06T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1982-03-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1982-10-30T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1982-10-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1982-10-30T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1982-10-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1982-03-06T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1982-03-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1982-03-06T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1982-03-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1982-10-30T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1982-10-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1982-10-30T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1982-10-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1983-03-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1983-03-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1983-03-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1983-10-29T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1983-10-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1983-10-29T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1983-10-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1983-03-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1983-03-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1983-03-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1983-03-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1983-10-29T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1983-10-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1983-10-29T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1983-10-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1984-03-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1984-03-03T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1984-03-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1984-10-27T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1984-10-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1984-10-27T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1984-10-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1984-03-03T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1984-03-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1984-03-03T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1984-03-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1984-10-27T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1984-10-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1984-10-27T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1984-10-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1985-03-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1985-03-02T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1985-03-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1985-10-26T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1985-10-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1985-10-26T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1985-10-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1985-03-02T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1985-03-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1985-03-02T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1985-03-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1985-10-26T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1985-10-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1985-10-26T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1985-10-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-01T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1986-03-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1986-03-01T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1986-03-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1986-10-25T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1986-10-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1986-10-25T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1986-10-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1986-03-01T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1986-03-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1986-03-01T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1986-03-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1986-10-25T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1986-10-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1986-10-25T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1986-10-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-28T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1987-02-28T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1987-02-28T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1987-02-28T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1987-10-24T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1987-10-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1987-10-24T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1987-10-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1987-02-28T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1987-02-28T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1987-02-28T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1987-02-28T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1987-10-24T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1987-10-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1987-10-24T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1987-10-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1988-03-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1988-03-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1988-03-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1988-10-29T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1988-10-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1988-10-29T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1988-10-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1988-03-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1988-03-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1988-03-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1988-03-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1988-10-29T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1988-10-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1988-10-29T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1988-10-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-04T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1989-03-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1989-03-04T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1989-03-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1989-10-07T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1989-10-07T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1989-10-07T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1989-10-07T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1989-03-04T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1989-03-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1989-03-04T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1989-03-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1989-10-07T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1989-10-07T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1989-10-07T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1989-10-07T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-17T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1990-03-17T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1990-03-17T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1990-03-17T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1990-10-06T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1990-10-06T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1990-10-06T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1990-10-06T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1990-03-17T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1990-03-17T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1990-03-17T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1990-03-17T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1990-10-06T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1990-10-06T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1990-10-06T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1990-10-06T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-16T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1991-03-16T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1991-03-16T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1991-03-16T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1991-10-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1991-10-05T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1991-10-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1991-10-05T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1991-03-16T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1991-03-16T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1991-03-16T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1991-03-16T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1991-10-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1991-10-05T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1991-10-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1991-10-05T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-14T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1992-03-14T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1992-03-14T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1992-03-14T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1992-10-03T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1992-10-03T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1992-10-03T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1992-10-03T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1992-03-14T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1992-03-14T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1992-03-14T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1992-03-14T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1992-10-03T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1992-10-03T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1992-10-03T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1992-10-03T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-20T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1993-03-20T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1993-03-20T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1993-03-20T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1993-10-02T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1993-10-02T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1993-10-02T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1993-10-02T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1993-03-20T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1993-03-20T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1993-03-20T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1993-03-20T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1993-10-02T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1993-10-02T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1993-10-02T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1993-10-02T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-19T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1994-03-19T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1994-03-19T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1994-03-19T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1994-10-01T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1994-10-01T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1994-10-01T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1994-10-01T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1994-03-19T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1994-03-19T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1994-03-19T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1994-03-19T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1994-10-01T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1994-10-01T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1994-10-01T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1994-10-01T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-18T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1995-03-18T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1995-03-18T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1995-03-18T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1995-09-30T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1995-09-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1995-09-30T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1995-09-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1995-03-18T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1995-03-18T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1995-03-18T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1995-03-18T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1995-09-30T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1995-09-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1995-09-30T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1995-09-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-16T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1996-03-16T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1996-03-16T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1996-03-16T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1996-10-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1996-10-05T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1996-10-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1996-10-05T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1996-03-16T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1996-03-16T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1996-03-16T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1996-03-16T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1996-10-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1996-10-05T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1996-10-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1996-10-05T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-15T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1997-03-15T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1997-03-15T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1997-03-15T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1997-10-04T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1997-10-04T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1997-10-04T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1997-10-04T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1997-03-15T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1997-03-15T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1997-03-15T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1997-03-15T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1997-10-04T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1997-10-04T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1997-10-04T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1997-10-04T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-14T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1998-03-14T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1998-03-14T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1998-03-14T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1998-10-03T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1998-10-03T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1998-10-03T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1998-10-03T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1998-03-14T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1998-03-14T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1998-03-14T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1998-03-14T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1998-10-03T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1998-10-03T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1998-10-03T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1998-10-03T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-20T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "1999-03-20T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("1999-03-20T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "1999-03-20T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("1999-10-02T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "1999-10-02T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("1999-10-02T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "1999-10-02T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("1999-03-20T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "1999-03-20T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("1999-03-20T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "1999-03-20T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1999-10-02T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "1999-10-02T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("1999-10-02T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "1999-10-02T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-18T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2000-03-18T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2000-03-18T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2000-03-18T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2000-09-30T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2000-09-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2000-09-30T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2000-09-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2000-03-18T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2000-03-18T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2000-03-18T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2000-03-18T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2000-09-30T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2000-09-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2000-09-30T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2000-09-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-17T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2001-03-17T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2001-03-17T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2001-03-17T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2001-10-06T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2001-10-06T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2001-10-06T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2001-10-06T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2001-03-17T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2001-03-17T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2001-03-17T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2001-03-17T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2001-10-06T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2001-10-06T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2001-10-06T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2001-10-06T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-16T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2002-03-16T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2002-03-16T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2002-03-16T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2002-10-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2002-10-05T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2002-10-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2002-10-05T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2002-03-16T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2002-03-16T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2002-03-16T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2002-03-16T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2002-10-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2002-10-05T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2002-10-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2002-10-05T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-15T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2003-03-15T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2003-03-15T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2003-03-15T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2003-10-04T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2003-10-04T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2003-10-04T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2003-10-04T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2003-03-15T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2003-03-15T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2003-03-15T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2003-03-15T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2003-10-04T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2003-10-04T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2003-10-04T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2003-10-04T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-20T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2004-03-20T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2004-03-20T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2004-03-20T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2004-10-02T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2004-10-02T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2004-10-02T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2004-10-02T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2004-03-20T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2004-03-20T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2004-03-20T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2004-03-20T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2004-10-02T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2004-10-02T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2004-10-02T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2004-10-02T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-19T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2005-03-19T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2005-03-19T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2005-03-19T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2005-10-01T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2005-10-01T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2005-10-01T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2005-10-01T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2005-03-19T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2005-03-19T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2005-03-19T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2005-03-19T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2005-10-01T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2005-10-01T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2005-10-01T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2005-10-01T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-18T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2006-03-18T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2006-03-18T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2006-03-18T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2006-09-30T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2006-09-30T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2006-09-30T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2006-09-30T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2006-03-18T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2006-03-18T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2006-03-18T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2006-03-18T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2006-09-30T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2006-09-30T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2006-09-30T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2006-09-30T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-17T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2007-03-17T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2007-03-17T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2007-03-17T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2007-09-29T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2007-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2007-09-29T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2007-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2007-03-17T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2007-03-17T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2007-03-17T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2007-03-17T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2007-09-29T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2007-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2007-09-29T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2007-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2008-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2008-04-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2008-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2008-09-27T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2008-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2008-09-27T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2008-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2008-04-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2008-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2008-04-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2008-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2008-09-27T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2008-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2008-09-27T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2008-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2009-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2009-04-04T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2009-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2009-09-26T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2009-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2009-09-26T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2009-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2009-04-04T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2009-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2009-04-04T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2009-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2009-09-26T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2009-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2009-09-26T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2009-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2010-04-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2010-04-03T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2010-04-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2010-09-25T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2010-09-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2010-09-25T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2010-09-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2010-04-03T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2010-04-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2010-04-03T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2010-04-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2010-09-25T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2010-09-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2010-09-25T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2010-09-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2011-04-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2011-04-02T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2011-04-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2011-09-24T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2011-09-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2011-09-24T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2011-09-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2011-04-02T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2011-04-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2011-04-02T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2011-04-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2011-09-24T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2011-09-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2011-09-24T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2011-09-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2012-03-31T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2012-03-31T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2012-03-31T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2012-09-29T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2012-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2012-09-29T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2012-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2012-03-31T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2012-03-31T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2012-03-31T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2012-03-31T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2012-09-29T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2012-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2012-09-29T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2012-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2013-04-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2013-04-06T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2013-04-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2013-09-28T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2013-09-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2013-09-28T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2013-09-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2013-04-06T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2013-04-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2013-04-06T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2013-04-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2013-09-28T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2013-09-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2013-09-28T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2013-09-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2014-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2014-04-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2014-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2014-09-27T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2014-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2014-09-27T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2014-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2014-04-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2014-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2014-04-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2014-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2014-09-27T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2014-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2014-09-27T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2014-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2015-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2015-04-04T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2015-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2015-09-26T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2015-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2015-09-26T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2015-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2015-04-04T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2015-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2015-04-04T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2015-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2015-09-26T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2015-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2015-09-26T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2015-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2016-04-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2016-04-02T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2016-04-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2016-09-24T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2016-09-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2016-09-24T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2016-09-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2016-04-02T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2016-04-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2016-04-02T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2016-04-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2016-09-24T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2016-09-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2016-09-24T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2016-09-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2017-04-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2017-04-01T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2017-04-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2017-09-23T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2017-09-23T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2017-09-23T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2017-09-23T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2017-04-01T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2017-04-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2017-04-01T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2017-04-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2017-09-23T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2017-09-23T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2017-09-23T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2017-09-23T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2018-03-31T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2018-03-31T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2018-03-31T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2018-09-29T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2018-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2018-09-29T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2018-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2018-03-31T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2018-03-31T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2018-03-31T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2018-03-31T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2018-09-29T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2018-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2018-09-29T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2018-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2019-04-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2019-04-06T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2019-04-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2019-09-28T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2019-09-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2019-09-28T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2019-09-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2019-04-06T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2019-04-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2019-04-06T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2019-04-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2019-09-28T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2019-09-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2019-09-28T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2019-09-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2020-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2020-04-04T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2020-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2020-09-26T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2020-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2020-09-26T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2020-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2020-04-04T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2020-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2020-04-04T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2020-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2020-09-26T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2020-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2020-09-26T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2020-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2021-04-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2021-04-03T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2021-04-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2021-09-25T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2021-09-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2021-09-25T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2021-09-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2021-04-03T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2021-04-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2021-04-03T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2021-04-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2021-09-25T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2021-09-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2021-09-25T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2021-09-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2022-04-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2022-04-02T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2022-04-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2022-09-24T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2022-09-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2022-09-24T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2022-09-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2022-04-02T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2022-04-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2022-04-02T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2022-04-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2022-09-24T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2022-09-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2022-09-24T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2022-09-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2023-04-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2023-04-01T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2023-04-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2023-09-23T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2023-09-23T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2023-09-23T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2023-09-23T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2023-04-01T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2023-04-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2023-04-01T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2023-04-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2023-09-23T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2023-09-23T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2023-09-23T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2023-09-23T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2024-04-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2024-04-06T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2024-04-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2024-09-28T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2024-09-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2024-09-28T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2024-09-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2024-04-06T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2024-04-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2024-04-06T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2024-04-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2024-09-28T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2024-09-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2024-09-28T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2024-09-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2025-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2025-04-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2025-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2025-09-27T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2025-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2025-09-27T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2025-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2025-04-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2025-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2025-04-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2025-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2025-09-27T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2025-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2025-09-27T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2025-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2026-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2026-04-04T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2026-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2026-09-26T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2026-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2026-09-26T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2026-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2026-04-04T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2026-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2026-04-04T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2026-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2026-09-26T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2026-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2026-09-26T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2026-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2027-04-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2027-04-03T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2027-04-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2027-09-25T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2027-09-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2027-09-25T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2027-09-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2027-04-03T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2027-04-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2027-04-03T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2027-04-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2027-09-25T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2027-09-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2027-09-25T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2027-09-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2028-04-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2028-04-01T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2028-04-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2028-09-23T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2028-09-23T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2028-09-23T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2028-09-23T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2028-04-01T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2028-04-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2028-04-01T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2028-04-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2028-09-23T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2028-09-23T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2028-09-23T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2028-09-23T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2029-03-31T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2029-03-31T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2029-03-31T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2029-09-29T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2029-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2029-09-29T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2029-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2029-03-31T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2029-03-31T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2029-03-31T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2029-03-31T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2029-09-29T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2029-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2029-09-29T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2029-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2030-04-06T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2030-04-06T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2030-04-06T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2030-09-28T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2030-09-28T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2030-09-28T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2030-09-28T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2030-04-06T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2030-04-06T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2030-04-06T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2030-04-06T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2030-09-28T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2030-09-28T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2030-09-28T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2030-09-28T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2031-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2031-04-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2031-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2031-09-27T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2031-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2031-09-27T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2031-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2031-04-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2031-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2031-04-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2031-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2031-09-27T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2031-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2031-09-27T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2031-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2032-04-03T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2032-04-03T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2032-04-03T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2032-09-25T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2032-09-25T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2032-09-25T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2032-09-25T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2032-04-03T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2032-04-03T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2032-04-03T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2032-04-03T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2032-09-25T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2032-09-25T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2032-09-25T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2032-09-25T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2033-04-02T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2033-04-02T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2033-04-02T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2033-09-24T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2033-09-24T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2033-09-24T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2033-09-24T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2033-04-02T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2033-04-02T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2033-04-02T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2033-04-02T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2033-09-24T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2033-09-24T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2033-09-24T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2033-09-24T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2034-04-01T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2034-04-01T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2034-04-01T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2034-09-23T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2034-09-23T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2034-09-23T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2034-09-23T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2034-04-01T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2034-04-01T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2034-04-01T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2034-04-01T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2034-09-23T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2034-09-23T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2034-09-23T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2034-09-23T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2035-03-31T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2035-03-31T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2035-03-31T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2035-09-29T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2035-09-29T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2035-09-29T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2035-09-29T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2035-03-31T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2035-03-31T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2035-03-31T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2035-03-31T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2035-09-29T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2035-09-29T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2035-09-29T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2035-09-29T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2036-04-05T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2036-04-05T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2036-04-05T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2036-09-27T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2036-09-27T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2036-09-27T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2036-09-27T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2036-04-05T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2036-04-05T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2036-04-05T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2036-04-05T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2036-09-27T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2036-09-27T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2036-09-27T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2036-09-27T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:59:59", "2037-04-04T13:59:59+00:00 should be 02:59:59 NZDT"); - t.equal(moment("2037-04-04T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "02:00:00", "2037-04-04T14:00:00+00:00 should be 02:00:00 NZST"); - t.equal(moment("2037-09-26T13:59:59+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "01:59:59", "2037-09-26T13:59:59+00:00 should be 01:59:59 NZST"); - t.equal(moment("2037-09-26T14:00:00+00:00").tz("Pacific/Auckland").format("HH:mm:ss"), "03:00:00", "2037-09-26T14:00:00+00:00 should be 03:00:00 NZDT"); - - t.equal(moment("2037-04-04T13:59:59+00:00").tz("Pacific/Auckland").zone(), -780, "2037-04-04T13:59:59+00:00 should be -780 minutes offset in NZDT"); - t.equal(moment("2037-04-04T14:00:00+00:00").tz("Pacific/Auckland").zone(), -720, "2037-04-04T14:00:00+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2037-09-26T13:59:59+00:00").tz("Pacific/Auckland").zone(), -720, "2037-09-26T13:59:59+00:00 should be -720 minutes offset in NZST"); - t.equal(moment("2037-09-26T14:00:00+00:00").tz("Pacific/Auckland").zone(), -780, "2037-09-26T14:00:00+00:00 should be -780 minutes offset in NZDT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/chatham.js b/tests/pacific/chatham.js deleted file mode 100644 index 740fc0ce..00000000 --- a/tests/pacific/chatham.js +++ /dev/null @@ -1,906 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Chatham"] = { - - "1956" : function (t) { - t.equal(moment("1956-12-31T11:46:11+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "23:59:59", "1956-12-31T11:46:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1956-12-31T11:46:12+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "00:31:12", "1956-12-31T11:46:12+00:00 should be 00:31:12 CHAST"); - - t.equal(moment("1956-12-31T11:46:11+00:00").tz("Pacific/Chatham").zone(), -44028 / 60, "1956-12-31T11:46:11+00:00 should be -44028 / 60 minutes offset in LMT"); - t.equal(moment("1956-12-31T11:46:12+00:00").tz("Pacific/Chatham").zone(), -765, "1956-12-31T11:46:12+00:00 should be -765 minutes offset in CHAST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-11-02T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1974-11-02T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1974-11-02T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1974-11-02T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1974-11-02T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1974-11-02T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1974-11-02T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1974-11-02T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-22T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1975-02-22T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1975-02-22T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1975-02-22T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1975-10-25T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1975-10-25T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1975-10-25T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1975-10-25T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1975-02-22T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1975-02-22T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1975-02-22T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1975-02-22T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1975-10-25T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1975-10-25T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1975-10-25T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1975-10-25T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-06T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1976-03-06T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1976-03-06T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1976-03-06T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1976-10-30T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1976-10-30T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1976-10-30T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1976-10-30T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1976-03-06T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1976-03-06T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1976-03-06T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1976-03-06T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1976-10-30T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1976-10-30T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1976-10-30T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1976-10-30T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1977-03-05T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1977-03-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1977-03-05T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1977-10-29T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1977-10-29T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1977-10-29T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1977-10-29T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1977-03-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1977-03-05T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1977-03-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1977-03-05T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1977-10-29T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1977-10-29T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1977-10-29T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1977-10-29T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-04T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1978-03-04T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1978-03-04T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1978-03-04T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1978-10-28T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1978-10-28T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1978-10-28T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1978-10-28T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1978-03-04T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1978-03-04T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1978-03-04T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1978-03-04T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1978-10-28T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1978-10-28T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1978-10-28T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1978-10-28T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-03T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1979-03-03T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1979-03-03T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1979-03-03T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1979-10-27T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1979-10-27T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1979-10-27T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1979-10-27T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1979-03-03T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1979-03-03T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1979-03-03T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1979-03-03T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1979-10-27T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1979-10-27T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1979-10-27T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1979-10-27T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-01T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1980-03-01T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1980-03-01T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1980-03-01T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1980-10-25T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1980-10-25T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1980-10-25T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1980-10-25T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1980-03-01T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1980-03-01T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1980-03-01T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1980-03-01T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1980-10-25T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1980-10-25T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1980-10-25T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1980-10-25T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-02-28T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1981-02-28T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1981-02-28T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1981-02-28T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1981-10-24T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1981-10-24T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1981-10-24T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1981-10-24T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1981-02-28T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1981-02-28T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1981-02-28T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1981-02-28T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1981-10-24T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1981-10-24T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1981-10-24T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1981-10-24T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-06T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1982-03-06T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1982-03-06T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1982-03-06T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1982-10-30T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1982-10-30T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1982-10-30T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1982-10-30T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1982-03-06T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1982-03-06T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1982-03-06T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1982-03-06T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1982-10-30T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1982-10-30T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1982-10-30T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1982-10-30T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1983-03-05T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1983-03-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1983-03-05T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1983-10-29T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1983-10-29T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1983-10-29T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1983-10-29T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1983-03-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1983-03-05T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1983-03-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1983-03-05T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1983-10-29T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1983-10-29T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1983-10-29T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1983-10-29T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-03T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1984-03-03T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1984-03-03T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1984-03-03T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1984-10-27T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1984-10-27T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1984-10-27T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1984-10-27T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1984-03-03T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1984-03-03T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1984-03-03T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1984-03-03T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1984-10-27T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1984-10-27T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1984-10-27T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1984-10-27T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-02T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1985-03-02T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1985-03-02T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1985-03-02T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1985-10-26T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1985-10-26T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1985-10-26T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1985-10-26T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1985-03-02T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1985-03-02T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1985-03-02T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1985-03-02T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1985-10-26T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1985-10-26T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1985-10-26T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1985-10-26T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-01T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1986-03-01T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1986-03-01T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1986-03-01T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1986-10-25T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1986-10-25T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1986-10-25T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1986-10-25T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1986-03-01T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1986-03-01T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1986-03-01T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1986-03-01T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1986-10-25T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1986-10-25T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1986-10-25T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1986-10-25T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-02-28T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1987-02-28T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1987-02-28T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1987-02-28T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1987-10-24T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1987-10-24T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1987-10-24T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1987-10-24T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1987-02-28T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1987-02-28T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1987-02-28T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1987-02-28T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1987-10-24T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1987-10-24T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1987-10-24T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1987-10-24T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1988-03-05T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1988-03-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1988-03-05T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1988-10-29T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1988-10-29T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1988-10-29T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1988-10-29T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1988-03-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1988-03-05T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1988-03-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1988-03-05T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1988-10-29T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1988-10-29T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1988-10-29T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1988-10-29T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-04T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1989-03-04T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1989-03-04T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1989-03-04T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1989-10-07T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1989-10-07T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1989-10-07T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1989-10-07T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1989-03-04T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1989-03-04T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1989-03-04T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1989-03-04T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1989-10-07T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1989-10-07T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1989-10-07T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1989-10-07T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-17T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1990-03-17T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1990-03-17T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1990-03-17T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1990-10-06T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1990-10-06T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1990-10-06T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1990-10-06T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1990-03-17T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1990-03-17T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1990-03-17T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1990-03-17T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1990-10-06T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1990-10-06T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1990-10-06T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1990-10-06T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-16T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1991-03-16T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1991-03-16T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1991-03-16T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1991-10-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1991-10-05T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1991-10-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1991-10-05T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1991-03-16T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1991-03-16T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1991-03-16T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1991-03-16T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1991-10-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1991-10-05T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1991-10-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1991-10-05T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-14T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1992-03-14T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1992-03-14T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1992-03-14T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1992-10-03T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1992-10-03T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1992-10-03T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1992-10-03T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1992-03-14T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1992-03-14T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1992-03-14T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1992-03-14T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1992-10-03T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1992-10-03T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1992-10-03T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1992-10-03T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-20T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1993-03-20T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1993-03-20T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1993-03-20T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1993-10-02T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1993-10-02T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1993-10-02T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1993-10-02T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1993-03-20T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1993-03-20T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1993-03-20T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1993-03-20T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1993-10-02T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1993-10-02T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1993-10-02T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1993-10-02T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-19T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1994-03-19T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1994-03-19T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1994-03-19T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1994-10-01T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1994-10-01T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1994-10-01T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1994-10-01T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1994-03-19T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1994-03-19T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1994-03-19T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1994-03-19T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1994-10-01T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1994-10-01T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1994-10-01T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1994-10-01T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-18T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1995-03-18T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1995-03-18T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1995-03-18T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1995-09-30T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1995-09-30T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1995-09-30T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1995-09-30T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1995-03-18T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1995-03-18T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1995-03-18T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1995-03-18T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1995-09-30T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1995-09-30T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1995-09-30T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1995-09-30T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-16T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1996-03-16T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1996-03-16T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1996-03-16T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1996-10-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1996-10-05T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1996-10-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1996-10-05T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1996-03-16T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1996-03-16T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1996-03-16T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1996-03-16T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1996-10-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1996-10-05T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1996-10-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1996-10-05T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-15T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1997-03-15T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1997-03-15T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1997-03-15T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1997-10-04T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1997-10-04T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1997-10-04T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1997-10-04T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1997-03-15T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1997-03-15T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1997-03-15T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1997-03-15T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1997-10-04T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1997-10-04T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1997-10-04T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1997-10-04T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-14T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1998-03-14T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1998-03-14T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1998-03-14T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1998-10-03T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1998-10-03T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1998-10-03T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1998-10-03T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1998-03-14T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1998-03-14T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1998-03-14T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1998-03-14T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1998-10-03T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1998-10-03T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1998-10-03T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1998-10-03T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-20T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "1999-03-20T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("1999-03-20T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "1999-03-20T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("1999-10-02T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "1999-10-02T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("1999-10-02T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "1999-10-02T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("1999-03-20T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "1999-03-20T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("1999-03-20T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "1999-03-20T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1999-10-02T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "1999-10-02T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("1999-10-02T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "1999-10-02T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-18T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2000-03-18T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2000-03-18T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2000-03-18T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2000-09-30T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2000-09-30T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2000-09-30T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2000-09-30T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2000-03-18T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2000-03-18T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2000-03-18T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2000-03-18T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2000-09-30T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2000-09-30T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2000-09-30T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2000-09-30T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-17T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2001-03-17T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2001-03-17T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2001-03-17T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2001-10-06T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2001-10-06T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2001-10-06T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2001-10-06T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2001-03-17T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2001-03-17T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2001-03-17T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2001-03-17T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2001-10-06T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2001-10-06T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2001-10-06T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2001-10-06T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-16T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2002-03-16T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2002-03-16T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2002-03-16T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2002-10-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2002-10-05T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2002-10-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2002-10-05T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2002-03-16T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2002-03-16T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2002-03-16T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2002-03-16T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2002-10-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2002-10-05T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2002-10-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2002-10-05T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-15T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2003-03-15T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2003-03-15T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2003-03-15T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2003-10-04T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2003-10-04T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2003-10-04T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2003-10-04T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2003-03-15T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2003-03-15T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2003-03-15T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2003-03-15T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2003-10-04T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2003-10-04T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2003-10-04T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2003-10-04T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-20T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2004-03-20T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2004-03-20T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2004-03-20T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2004-10-02T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2004-10-02T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2004-10-02T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2004-10-02T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2004-03-20T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2004-03-20T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2004-03-20T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2004-03-20T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2004-10-02T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2004-10-02T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2004-10-02T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2004-10-02T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-19T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2005-03-19T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2005-03-19T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2005-03-19T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2005-10-01T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2005-10-01T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2005-10-01T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2005-10-01T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2005-03-19T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2005-03-19T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2005-03-19T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2005-03-19T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2005-10-01T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2005-10-01T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2005-10-01T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2005-10-01T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-18T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2006-03-18T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2006-03-18T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2006-03-18T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2006-09-30T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2006-09-30T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2006-09-30T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2006-09-30T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2006-03-18T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2006-03-18T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2006-03-18T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2006-03-18T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2006-09-30T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2006-09-30T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2006-09-30T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2006-09-30T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-17T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2007-03-17T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2007-03-17T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2007-03-17T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2007-09-29T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2007-09-29T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2007-09-29T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2007-09-29T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2007-03-17T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2007-03-17T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2007-03-17T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2007-03-17T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2007-09-29T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2007-09-29T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2007-09-29T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2007-09-29T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-04-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2008-04-05T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2008-04-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2008-04-05T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2008-09-27T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2008-09-27T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2008-09-27T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2008-09-27T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2008-04-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2008-04-05T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2008-04-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2008-04-05T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2008-09-27T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2008-09-27T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2008-09-27T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2008-09-27T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-04-04T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2009-04-04T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2009-04-04T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2009-04-04T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2009-09-26T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2009-09-26T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2009-09-26T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2009-09-26T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2009-04-04T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2009-04-04T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2009-04-04T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2009-04-04T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2009-09-26T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2009-09-26T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2009-09-26T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2009-09-26T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-03T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2010-04-03T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2010-04-03T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2010-04-03T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2010-09-25T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2010-09-25T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2010-09-25T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2010-09-25T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2010-04-03T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2010-04-03T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2010-04-03T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2010-04-03T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2010-09-25T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2010-09-25T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2010-09-25T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2010-09-25T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-04-02T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2011-04-02T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2011-04-02T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2011-04-02T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2011-09-24T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2011-09-24T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2011-09-24T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2011-09-24T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2011-04-02T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2011-04-02T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2011-04-02T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2011-04-02T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2011-09-24T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2011-09-24T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2011-09-24T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2011-09-24T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-31T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2012-03-31T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2012-03-31T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2012-03-31T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2012-09-29T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2012-09-29T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2012-09-29T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2012-09-29T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2012-03-31T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2012-03-31T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2012-03-31T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2012-03-31T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2012-09-29T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2012-09-29T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2012-09-29T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2012-09-29T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-06T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2013-04-06T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2013-04-06T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2013-04-06T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2013-09-28T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2013-09-28T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2013-09-28T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2013-09-28T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2013-04-06T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2013-04-06T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2013-04-06T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2013-04-06T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2013-09-28T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2013-09-28T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2013-09-28T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2013-09-28T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2014-04-05T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2014-04-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2014-04-05T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2014-09-27T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2014-09-27T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2014-09-27T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2014-09-27T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2014-04-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2014-04-05T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2014-04-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2014-04-05T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2014-09-27T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2014-09-27T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2014-09-27T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2014-09-27T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-04T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2015-04-04T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2015-04-04T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2015-04-04T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2015-09-26T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2015-09-26T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2015-09-26T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2015-09-26T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2015-04-04T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2015-04-04T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2015-04-04T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2015-04-04T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2015-09-26T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2015-09-26T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2015-09-26T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2015-09-26T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-02T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2016-04-02T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2016-04-02T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2016-04-02T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2016-09-24T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2016-09-24T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2016-09-24T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2016-09-24T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2016-04-02T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2016-04-02T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2016-04-02T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2016-04-02T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2016-09-24T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2016-09-24T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2016-09-24T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2016-09-24T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-01T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2017-04-01T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2017-04-01T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2017-04-01T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2017-09-23T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2017-09-23T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2017-09-23T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2017-09-23T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2017-04-01T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2017-04-01T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2017-04-01T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2017-04-01T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2017-09-23T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2017-09-23T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2017-09-23T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2017-09-23T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-31T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2018-03-31T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2018-03-31T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2018-03-31T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2018-09-29T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2018-09-29T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2018-09-29T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2018-09-29T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2018-03-31T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2018-03-31T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2018-03-31T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2018-03-31T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2018-09-29T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2018-09-29T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2018-09-29T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2018-09-29T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-06T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2019-04-06T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2019-04-06T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2019-04-06T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2019-09-28T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2019-09-28T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2019-09-28T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2019-09-28T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2019-04-06T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2019-04-06T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2019-04-06T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2019-04-06T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2019-09-28T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2019-09-28T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2019-09-28T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2019-09-28T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-04T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2020-04-04T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2020-04-04T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2020-04-04T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2020-09-26T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2020-09-26T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2020-09-26T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2020-09-26T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2020-04-04T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2020-04-04T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2020-04-04T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2020-04-04T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2020-09-26T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2020-09-26T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2020-09-26T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2020-09-26T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-03T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2021-04-03T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2021-04-03T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2021-04-03T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2021-09-25T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2021-09-25T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2021-09-25T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2021-09-25T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2021-04-03T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2021-04-03T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2021-04-03T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2021-04-03T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2021-09-25T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2021-09-25T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2021-09-25T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2021-09-25T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-02T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2022-04-02T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2022-04-02T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2022-04-02T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2022-09-24T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2022-09-24T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2022-09-24T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2022-09-24T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2022-04-02T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2022-04-02T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2022-04-02T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2022-04-02T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2022-09-24T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2022-09-24T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2022-09-24T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2022-09-24T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-01T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2023-04-01T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2023-04-01T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2023-04-01T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2023-09-23T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2023-09-23T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2023-09-23T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2023-09-23T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2023-04-01T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2023-04-01T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2023-04-01T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2023-04-01T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2023-09-23T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2023-09-23T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2023-09-23T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2023-09-23T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-06T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2024-04-06T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2024-04-06T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2024-04-06T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2024-09-28T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2024-09-28T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2024-09-28T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2024-09-28T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2024-04-06T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2024-04-06T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2024-04-06T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2024-04-06T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2024-09-28T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2024-09-28T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2024-09-28T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2024-09-28T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2025-04-05T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2025-04-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2025-04-05T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2025-09-27T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2025-09-27T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2025-09-27T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2025-09-27T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2025-04-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2025-04-05T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2025-04-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2025-04-05T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2025-09-27T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2025-09-27T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2025-09-27T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2025-09-27T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-04T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2026-04-04T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2026-04-04T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2026-04-04T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2026-09-26T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2026-09-26T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2026-09-26T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2026-09-26T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2026-04-04T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2026-04-04T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2026-04-04T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2026-04-04T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2026-09-26T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2026-09-26T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2026-09-26T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2026-09-26T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-03T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2027-04-03T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2027-04-03T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2027-04-03T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2027-09-25T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2027-09-25T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2027-09-25T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2027-09-25T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2027-04-03T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2027-04-03T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2027-04-03T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2027-04-03T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2027-09-25T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2027-09-25T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2027-09-25T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2027-09-25T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-01T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2028-04-01T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2028-04-01T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2028-04-01T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2028-09-23T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2028-09-23T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2028-09-23T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2028-09-23T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2028-04-01T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2028-04-01T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2028-04-01T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2028-04-01T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2028-09-23T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2028-09-23T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2028-09-23T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2028-09-23T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-31T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2029-03-31T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2029-03-31T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2029-03-31T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2029-09-29T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2029-09-29T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2029-09-29T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2029-09-29T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2029-03-31T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2029-03-31T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2029-03-31T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2029-03-31T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2029-09-29T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2029-09-29T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2029-09-29T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2029-09-29T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-06T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2030-04-06T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2030-04-06T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2030-04-06T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2030-09-28T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2030-09-28T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2030-09-28T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2030-09-28T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2030-04-06T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2030-04-06T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2030-04-06T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2030-04-06T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2030-09-28T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2030-09-28T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2030-09-28T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2030-09-28T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2031-04-05T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2031-04-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2031-04-05T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2031-09-27T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2031-09-27T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2031-09-27T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2031-09-27T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2031-04-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2031-04-05T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2031-04-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2031-04-05T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2031-09-27T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2031-09-27T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2031-09-27T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2031-09-27T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-03T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2032-04-03T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2032-04-03T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2032-04-03T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2032-09-25T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2032-09-25T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2032-09-25T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2032-09-25T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2032-04-03T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2032-04-03T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2032-04-03T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2032-04-03T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2032-09-25T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2032-09-25T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2032-09-25T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2032-09-25T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-02T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2033-04-02T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2033-04-02T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2033-04-02T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2033-09-24T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2033-09-24T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2033-09-24T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2033-09-24T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2033-04-02T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2033-04-02T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2033-04-02T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2033-04-02T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2033-09-24T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2033-09-24T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2033-09-24T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2033-09-24T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-01T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2034-04-01T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2034-04-01T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2034-04-01T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2034-09-23T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2034-09-23T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2034-09-23T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2034-09-23T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2034-04-01T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2034-04-01T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2034-04-01T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2034-04-01T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2034-09-23T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2034-09-23T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2034-09-23T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2034-09-23T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-31T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2035-03-31T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2035-03-31T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2035-03-31T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2035-09-29T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2035-09-29T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2035-09-29T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2035-09-29T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2035-03-31T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2035-03-31T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2035-03-31T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2035-03-31T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2035-09-29T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2035-09-29T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2035-09-29T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2035-09-29T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-05T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2036-04-05T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2036-04-05T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2036-04-05T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2036-09-27T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2036-09-27T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2036-09-27T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2036-09-27T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2036-04-05T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2036-04-05T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2036-04-05T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2036-04-05T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2036-09-27T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2036-09-27T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2036-09-27T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2036-09-27T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-04T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:44:59", "2037-04-04T13:59:59+00:00 should be 03:44:59 CHADT"); - t.equal(moment("2037-04-04T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:45:00", "2037-04-04T14:00:00+00:00 should be 02:45:00 CHAST"); - t.equal(moment("2037-09-26T13:59:59+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "02:44:59", "2037-09-26T13:59:59+00:00 should be 02:44:59 CHAST"); - t.equal(moment("2037-09-26T14:00:00+00:00").tz("Pacific/Chatham").format("HH:mm:ss"), "03:45:00", "2037-09-26T14:00:00+00:00 should be 03:45:00 CHADT"); - - t.equal(moment("2037-04-04T13:59:59+00:00").tz("Pacific/Chatham").zone(), -825, "2037-04-04T13:59:59+00:00 should be -825 minutes offset in CHADT"); - t.equal(moment("2037-04-04T14:00:00+00:00").tz("Pacific/Chatham").zone(), -765, "2037-04-04T14:00:00+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2037-09-26T13:59:59+00:00").tz("Pacific/Chatham").zone(), -765, "2037-09-26T13:59:59+00:00 should be -765 minutes offset in CHAST"); - t.equal(moment("2037-09-26T14:00:00+00:00").tz("Pacific/Chatham").zone(), -825, "2037-09-26T14:00:00+00:00 should be -825 minutes offset in CHADT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/chuuk.js b/tests/pacific/chuuk.js deleted file mode 100644 index 34bb3c63..00000000 --- a/tests/pacific/chuuk.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Chuuk"] = { - - -}; \ No newline at end of file diff --git a/tests/pacific/easter.js b/tests/pacific/easter.js deleted file mode 100644 index 03c41e4c..00000000 --- a/tests/pacific/easter.js +++ /dev/null @@ -1,1014 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Easter"] = { - - "1932" : function (t) { - t.equal(moment("1932-09-01T07:17:27+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:59:59", "1932-09-01T07:17:27+00:00 should be 23:59:59 EMT"); - t.equal(moment("1932-09-01T07:17:28+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "01:17:28", "1932-09-01T07:17:28+00:00 should be 01:17:28 EASST"); - - t.equal(moment("1932-09-01T07:17:27+00:00").tz("Pacific/Easter").zone(), 26248 / 60, "1932-09-01T07:17:27+00:00 should be 26248 / 60 minutes offset in EMT"); - t.equal(moment("1932-09-01T07:17:28+00:00").tz("Pacific/Easter").zone(), 360, "1932-09-01T07:17:28+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-06-01T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1942-06-01T03:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1942-06-01T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1942-06-01T04:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1942-08-01T04:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1942-08-01T04:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1942-08-01T05:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1942-08-01T05:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1942-06-01T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1942-06-01T03:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1942-06-01T04:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1942-06-01T04:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1942-08-01T04:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1942-08-01T04:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1942-08-01T05:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1942-08-01T05:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1946" : function (t) { - t.equal(moment("1946-09-01T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1946-09-01T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1946-09-01T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1946-09-01T03:00:00+00:00 should be 20:00:00 EAST"); - - t.equal(moment("1946-09-01T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1946-09-01T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1946-09-01T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1946-09-01T03:00:00+00:00 should be 420 minutes offset in EAST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-11-03T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1968-11-03T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1968-11-03T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1968-11-03T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1968-11-03T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1968-11-03T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1968-11-03T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1968-11-03T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-03-30T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1969-03-30T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1969-03-30T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1969-03-30T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1969-11-23T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1969-11-23T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1969-11-23T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1969-11-23T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1969-03-30T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1969-03-30T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1969-03-30T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1969-03-30T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1969-11-23T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1969-11-23T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1969-11-23T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1969-11-23T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-03-29T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1970-03-29T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1970-03-29T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1970-03-29T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1970-10-11T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1970-10-11T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1970-10-11T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1970-10-11T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1970-03-29T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1970-03-29T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1970-03-29T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1970-03-29T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1970-10-11T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1970-10-11T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1970-10-11T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1970-10-11T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-03-14T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1971-03-14T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1971-03-14T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1971-03-14T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1971-10-10T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1971-10-10T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1971-10-10T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1971-10-10T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1971-03-14T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1971-03-14T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1971-03-14T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1971-03-14T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1971-10-10T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1971-10-10T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1971-10-10T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1971-10-10T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-03-12T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1972-03-12T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1972-03-12T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1972-03-12T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1972-10-15T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1972-10-15T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1972-10-15T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1972-10-15T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1972-03-12T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1972-03-12T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1972-03-12T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1972-03-12T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1972-10-15T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1972-10-15T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1972-10-15T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1972-10-15T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-03-11T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1973-03-11T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1973-03-11T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1973-03-11T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1973-09-30T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1973-09-30T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1973-09-30T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1973-09-30T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1973-03-11T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1973-03-11T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1973-03-11T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1973-03-11T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1973-09-30T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1973-09-30T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1973-09-30T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1973-09-30T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-03-10T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1974-03-10T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1974-03-10T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1974-03-10T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1974-10-13T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1974-10-13T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1974-10-13T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1974-10-13T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1974-03-10T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1974-03-10T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1974-03-10T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1974-03-10T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1974-10-13T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1974-10-13T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1974-10-13T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1974-10-13T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-03-09T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1975-03-09T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1975-03-09T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1975-03-09T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1975-10-12T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1975-10-12T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1975-10-12T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1975-10-12T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1975-03-09T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1975-03-09T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1975-03-09T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1975-03-09T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1975-10-12T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1975-10-12T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1975-10-12T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1975-10-12T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-03-14T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1976-03-14T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1976-03-14T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1976-03-14T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1976-10-10T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1976-10-10T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1976-10-10T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1976-10-10T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1976-03-14T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1976-03-14T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1976-03-14T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1976-03-14T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1976-10-10T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1976-10-10T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1976-10-10T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1976-10-10T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-03-13T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1977-03-13T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1977-03-13T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1977-03-13T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1977-10-09T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1977-10-09T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1977-10-09T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1977-10-09T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1977-03-13T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1977-03-13T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1977-03-13T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1977-03-13T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1977-10-09T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1977-10-09T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1977-10-09T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1977-10-09T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-03-12T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1978-03-12T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1978-03-12T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1978-03-12T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1978-10-15T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1978-10-15T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1978-10-15T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1978-10-15T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1978-03-12T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1978-03-12T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1978-03-12T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1978-03-12T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1978-10-15T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1978-10-15T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1978-10-15T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1978-10-15T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-11T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1979-03-11T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1979-03-11T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1979-03-11T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1979-10-14T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1979-10-14T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1979-10-14T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1979-10-14T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1979-03-11T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1979-03-11T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1979-03-11T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1979-03-11T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1979-10-14T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1979-10-14T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1979-10-14T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1979-10-14T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-09T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1980-03-09T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1980-03-09T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1980-03-09T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1980-10-12T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1980-10-12T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1980-10-12T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1980-10-12T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1980-03-09T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1980-03-09T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1980-03-09T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1980-03-09T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1980-10-12T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1980-10-12T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1980-10-12T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1980-10-12T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-15T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1981-03-15T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1981-03-15T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:00:00", "1981-03-15T03:00:00+00:00 should be 20:00:00 EAST"); - t.equal(moment("1981-10-11T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1981-10-11T03:59:59+00:00 should be 20:59:59 EAST"); - t.equal(moment("1981-10-11T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "22:00:00", "1981-10-11T04:00:00+00:00 should be 22:00:00 EASST"); - - t.equal(moment("1981-03-15T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1981-03-15T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1981-03-15T03:00:00+00:00").tz("Pacific/Easter").zone(), 420, "1981-03-15T03:00:00+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1981-10-11T03:59:59+00:00").tz("Pacific/Easter").zone(), 420, "1981-10-11T03:59:59+00:00 should be 420 minutes offset in EAST"); - t.equal(moment("1981-10-11T04:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1981-10-11T04:00:00+00:00 should be 360 minutes offset in EASST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-14T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "20:59:59", "1982-03-14T02:59:59+00:00 should be 20:59:59 EASST"); - t.equal(moment("1982-03-14T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1982-03-14T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1982-10-10T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1982-10-10T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1982-10-10T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1982-10-10T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1982-03-14T02:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1982-03-14T02:59:59+00:00 should be 360 minutes offset in EASST"); - t.equal(moment("1982-03-14T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1982-03-14T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1982-10-10T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1982-10-10T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1982-10-10T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1982-10-10T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-13T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1983-03-13T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1983-03-13T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1983-03-13T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1983-10-09T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1983-10-09T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1983-10-09T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1983-10-09T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1983-03-13T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1983-03-13T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1983-03-13T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1983-03-13T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1983-10-09T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1983-10-09T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1983-10-09T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1983-10-09T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-11T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1984-03-11T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1984-03-11T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1984-03-11T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1984-10-14T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1984-10-14T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1984-10-14T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1984-10-14T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1984-03-11T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1984-03-11T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1984-03-11T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1984-03-11T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1984-10-14T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1984-10-14T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1984-10-14T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1984-10-14T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-10T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1985-03-10T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1985-03-10T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1985-03-10T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1985-10-13T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1985-10-13T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1985-10-13T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1985-10-13T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1985-03-10T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1985-03-10T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1985-03-10T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1985-03-10T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1985-10-13T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1985-10-13T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1985-10-13T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1985-10-13T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-09T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1986-03-09T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1986-03-09T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1986-03-09T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1986-10-12T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1986-10-12T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1986-10-12T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1986-10-12T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1986-03-09T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1986-03-09T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1986-03-09T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1986-03-09T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1986-10-12T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1986-10-12T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1986-10-12T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1986-10-12T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-12T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1987-04-12T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1987-04-12T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1987-04-12T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1987-10-11T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1987-10-11T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1987-10-11T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1987-10-11T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1987-04-12T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1987-04-12T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1987-04-12T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1987-04-12T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1987-10-11T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1987-10-11T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1987-10-11T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1987-10-11T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-13T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1988-03-13T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1988-03-13T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1988-03-13T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1988-10-02T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1988-10-02T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1988-10-02T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1988-10-02T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1988-03-13T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1988-03-13T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1988-03-13T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1988-03-13T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1988-10-02T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1988-10-02T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1988-10-02T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1988-10-02T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-12T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1989-03-12T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1989-03-12T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1989-03-12T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1989-10-15T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1989-10-15T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1989-03-12T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1989-03-12T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1989-03-12T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1989-03-12T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1989-10-15T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1989-10-15T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1989-10-15T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1989-10-15T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-18T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1990-03-18T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1990-03-18T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1990-03-18T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1990-09-16T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1990-09-16T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1990-09-16T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1990-09-16T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1990-03-18T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1990-03-18T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1990-03-18T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1990-03-18T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1990-09-16T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1990-09-16T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1990-09-16T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1990-09-16T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-10T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1991-03-10T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1991-03-10T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1991-03-10T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1991-10-13T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1991-10-13T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1991-10-13T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1991-10-13T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1991-03-10T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1991-03-10T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1991-03-10T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1991-03-10T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1991-10-13T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1991-10-13T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1991-10-13T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1991-10-13T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-15T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1992-03-15T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1992-03-15T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1992-03-15T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1992-10-11T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1992-10-11T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1992-10-11T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1992-10-11T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1992-03-15T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1992-03-15T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1992-03-15T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1992-03-15T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1992-10-11T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1992-10-11T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1992-10-11T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1992-10-11T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-14T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1993-03-14T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1993-03-14T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1993-03-14T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1993-10-10T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1993-10-10T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1993-10-10T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1993-10-10T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1993-03-14T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1993-03-14T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1993-03-14T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1993-03-14T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1993-10-10T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1993-10-10T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1993-10-10T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1993-10-10T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-13T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1994-03-13T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1994-03-13T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1994-03-13T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1994-10-09T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1994-10-09T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1994-10-09T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1994-10-09T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1994-03-13T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1994-03-13T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1994-03-13T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1994-03-13T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1994-10-09T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1994-10-09T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1994-10-09T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1994-10-09T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-12T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1995-03-12T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1995-03-12T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1995-03-12T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1995-10-15T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1995-10-15T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1995-03-12T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1995-03-12T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1995-03-12T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1995-03-12T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1995-10-15T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1995-10-15T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1995-10-15T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1995-10-15T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-10T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1996-03-10T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1996-03-10T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1996-03-10T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1996-10-13T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1996-10-13T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1996-10-13T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1996-10-13T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1996-03-10T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1996-03-10T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1996-03-10T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1996-03-10T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1996-10-13T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1996-10-13T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1996-10-13T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1996-10-13T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1997-03-30T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1997-03-30T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1997-03-30T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1997-10-12T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1997-10-12T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1997-10-12T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1997-10-12T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1997-03-30T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1997-03-30T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1997-03-30T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1997-03-30T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1997-10-12T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1997-10-12T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1997-10-12T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1997-10-12T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-15T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1998-03-15T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1998-03-15T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1998-03-15T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1998-09-27T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1998-09-27T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1998-09-27T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1998-09-27T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1998-03-15T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1998-03-15T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1998-03-15T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1998-03-15T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1998-09-27T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1998-09-27T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1998-09-27T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1998-09-27T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1999-04-04T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("1999-04-04T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "1999-04-04T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("1999-10-10T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "1999-10-10T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("1999-10-10T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "1999-10-10T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("1999-04-04T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "1999-04-04T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("1999-04-04T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "1999-04-04T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1999-10-10T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "1999-10-10T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("1999-10-10T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "1999-10-10T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-12T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2000-03-12T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2000-03-12T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2000-03-12T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2000-10-15T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2000-10-15T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2000-10-15T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2000-10-15T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2000-03-12T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2000-03-12T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2000-03-12T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2000-03-12T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2000-10-15T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2000-10-15T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2000-10-15T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2000-10-15T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-11T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2001-03-11T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2001-03-11T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2001-03-11T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2001-10-14T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2001-10-14T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2001-03-11T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2001-03-11T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2001-03-11T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2001-03-11T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2001-10-14T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2001-10-14T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2001-10-14T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2001-10-14T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-10T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2002-03-10T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2002-03-10T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2002-03-10T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2002-10-13T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2002-10-13T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2002-10-13T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2002-10-13T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2002-03-10T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2002-03-10T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2002-03-10T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2002-03-10T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2002-10-13T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2002-10-13T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2002-10-13T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2002-10-13T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-09T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2003-03-09T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2003-03-09T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2003-03-09T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2003-10-12T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2003-10-12T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2003-10-12T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2003-10-12T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2003-03-09T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2003-03-09T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2003-03-09T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2003-03-09T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2003-10-12T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2003-10-12T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2003-10-12T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2003-10-12T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-14T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2004-03-14T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2004-03-14T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2004-03-14T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2004-10-10T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2004-10-10T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2004-10-10T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2004-10-10T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2004-03-14T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2004-03-14T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2004-03-14T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2004-03-14T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2004-10-10T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2004-10-10T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2004-10-10T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2004-10-10T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-13T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2005-03-13T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2005-03-13T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2005-03-13T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2005-10-09T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2005-10-09T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2005-10-09T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2005-10-09T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2005-03-13T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2005-03-13T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2005-03-13T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2005-03-13T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2005-10-09T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2005-10-09T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2005-10-09T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2005-10-09T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-12T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2006-03-12T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2006-03-12T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2006-03-12T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2006-10-15T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2006-10-15T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2006-10-15T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2006-10-15T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2006-03-12T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2006-03-12T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2006-03-12T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2006-03-12T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2006-10-15T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2006-10-15T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2006-10-15T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2006-10-15T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2007-03-11T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2007-03-11T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2007-03-11T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2007-10-14T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2007-10-14T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2007-03-11T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2007-03-11T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2007-03-11T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2007-03-11T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2007-10-14T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2007-10-14T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2007-10-14T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2007-10-14T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2008-03-30T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2008-03-30T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2008-03-30T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2008-10-12T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2008-10-12T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2008-10-12T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2008-10-12T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2008-03-30T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2008-03-30T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2008-03-30T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2008-03-30T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2008-10-12T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2008-10-12T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2008-10-12T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2008-10-12T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-15T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2009-03-15T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2009-03-15T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2009-03-15T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2009-10-11T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2009-10-11T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2009-10-11T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2009-10-11T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2009-03-15T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2009-03-15T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2009-03-15T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2009-03-15T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2009-10-11T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2009-10-11T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2009-10-11T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2009-10-11T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-04-04T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2010-04-04T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2010-04-04T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2010-04-04T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2010-10-10T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2010-10-10T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2010-10-10T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2010-10-10T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2010-04-04T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2010-04-04T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2010-04-04T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2010-04-04T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2010-10-10T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2010-10-10T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2010-10-10T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2010-10-10T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-05-08T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2011-05-08T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2011-05-08T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2011-05-08T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2011-08-21T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2011-08-21T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2011-08-21T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2011-08-21T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2011-05-08T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2011-05-08T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2011-05-08T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2011-05-08T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2011-08-21T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2011-08-21T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2011-08-21T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2011-08-21T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-04-29T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2012-04-29T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2012-04-29T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2012-04-29T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2012-09-02T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2012-09-02T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2012-09-02T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2012-09-02T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2012-04-29T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2012-04-29T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2012-04-29T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2012-04-29T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2012-09-02T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2012-09-02T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2012-09-02T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2012-09-02T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-04-28T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2013-04-28T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2013-04-28T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2013-04-28T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2013-09-08T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2013-09-08T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2013-09-08T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2013-09-08T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2013-04-28T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2013-04-28T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2013-04-28T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2013-04-28T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2013-09-08T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2013-09-08T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2013-09-08T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2013-09-08T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-04-27T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2014-04-27T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2014-04-27T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2014-04-27T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2014-09-07T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2014-09-07T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2014-09-07T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2014-09-07T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2014-04-27T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2014-04-27T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2014-04-27T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2014-04-27T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2014-09-07T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2014-09-07T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2014-09-07T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2014-09-07T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-04-26T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2015-04-26T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2015-04-26T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2015-04-26T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2015-09-06T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2015-09-06T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2015-09-06T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2015-09-06T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2015-04-26T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2015-04-26T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2015-04-26T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2015-04-26T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2015-09-06T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2015-09-06T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2015-09-06T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2015-09-06T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-04-24T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2016-04-24T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2016-04-24T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2016-04-24T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2016-09-04T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2016-09-04T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2016-09-04T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2016-09-04T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2016-04-24T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2016-04-24T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2016-04-24T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2016-04-24T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2016-09-04T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2016-09-04T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2016-09-04T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2016-09-04T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-04-23T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2017-04-23T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2017-04-23T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2017-04-23T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2017-09-03T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2017-09-03T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2017-09-03T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2017-09-03T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2017-04-23T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2017-04-23T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2017-04-23T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2017-04-23T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2017-09-03T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2017-09-03T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2017-09-03T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2017-09-03T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-04-29T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2018-04-29T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2018-04-29T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2018-04-29T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2018-09-02T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2018-09-02T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2018-09-02T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2018-09-02T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2018-04-29T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2018-04-29T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2018-04-29T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2018-04-29T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2018-09-02T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2018-09-02T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2018-09-02T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2018-09-02T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-04-28T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2019-04-28T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2019-04-28T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2019-04-28T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2019-09-08T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2019-09-08T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2019-09-08T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2019-09-08T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2019-04-28T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2019-04-28T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2019-04-28T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2019-04-28T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2019-09-08T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2019-09-08T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2019-09-08T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2019-09-08T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-04-26T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2020-04-26T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2020-04-26T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2020-04-26T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2020-09-06T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2020-09-06T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2020-09-06T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2020-09-06T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2020-04-26T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2020-04-26T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2020-04-26T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2020-04-26T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2020-09-06T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2020-09-06T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2020-09-06T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2020-09-06T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-04-25T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2021-04-25T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2021-04-25T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2021-04-25T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2021-09-05T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2021-09-05T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2021-09-05T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2021-09-05T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2021-04-25T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2021-04-25T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2021-04-25T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2021-04-25T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2021-09-05T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2021-09-05T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2021-09-05T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2021-09-05T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-04-24T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2022-04-24T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2022-04-24T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2022-04-24T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2022-09-04T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2022-09-04T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2022-09-04T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2022-09-04T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2022-04-24T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2022-04-24T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2022-04-24T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2022-04-24T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2022-09-04T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2022-09-04T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2022-09-04T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2022-09-04T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-04-23T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2023-04-23T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2023-04-23T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2023-04-23T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2023-09-03T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2023-09-03T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2023-09-03T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2023-09-03T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2023-04-23T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2023-04-23T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2023-04-23T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2023-04-23T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2023-09-03T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2023-09-03T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2023-09-03T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2023-09-03T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-04-28T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2024-04-28T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2024-04-28T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2024-04-28T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2024-09-08T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2024-09-08T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2024-09-08T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2024-09-08T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2024-04-28T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2024-04-28T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2024-04-28T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2024-04-28T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2024-09-08T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2024-09-08T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2024-09-08T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2024-09-08T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-04-27T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2025-04-27T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2025-04-27T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2025-04-27T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2025-09-07T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2025-09-07T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2025-09-07T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2025-09-07T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2025-04-27T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2025-04-27T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2025-04-27T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2025-04-27T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2025-09-07T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2025-09-07T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2025-09-07T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2025-09-07T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-04-26T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2026-04-26T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2026-04-26T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2026-04-26T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2026-09-06T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2026-09-06T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2026-09-06T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2026-09-06T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2026-04-26T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2026-04-26T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2026-04-26T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2026-04-26T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2026-09-06T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2026-09-06T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2026-09-06T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2026-09-06T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-04-25T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2027-04-25T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2027-04-25T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2027-04-25T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2027-09-05T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2027-09-05T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2027-09-05T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2027-09-05T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2027-04-25T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2027-04-25T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2027-04-25T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2027-04-25T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2027-09-05T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2027-09-05T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2027-09-05T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2027-09-05T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-04-23T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2028-04-23T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2028-04-23T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2028-04-23T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2028-09-03T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2028-09-03T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2028-09-03T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2028-09-03T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2028-04-23T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2028-04-23T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2028-04-23T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2028-04-23T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2028-09-03T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2028-09-03T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2028-09-03T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2028-09-03T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-04-29T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2029-04-29T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2029-04-29T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2029-04-29T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2029-09-02T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2029-09-02T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2029-09-02T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2029-09-02T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2029-04-29T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2029-04-29T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2029-04-29T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2029-04-29T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2029-09-02T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2029-09-02T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2029-09-02T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2029-09-02T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-04-28T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2030-04-28T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2030-04-28T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2030-04-28T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2030-09-08T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2030-09-08T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2030-09-08T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2030-09-08T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2030-04-28T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2030-04-28T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2030-04-28T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2030-04-28T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2030-09-08T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2030-09-08T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2030-09-08T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2030-09-08T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-04-27T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2031-04-27T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2031-04-27T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2031-04-27T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2031-09-07T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2031-09-07T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2031-09-07T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2031-09-07T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2031-04-27T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2031-04-27T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2031-04-27T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2031-04-27T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2031-09-07T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2031-09-07T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2031-09-07T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2031-09-07T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-04-25T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2032-04-25T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2032-04-25T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2032-04-25T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2032-09-05T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2032-09-05T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2032-09-05T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2032-09-05T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2032-04-25T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2032-04-25T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2032-04-25T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2032-04-25T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2032-09-05T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2032-09-05T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2032-09-05T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2032-09-05T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-04-24T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2033-04-24T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2033-04-24T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2033-04-24T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2033-09-04T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2033-09-04T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2033-09-04T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2033-09-04T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2033-04-24T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2033-04-24T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2033-04-24T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2033-04-24T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2033-09-04T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2033-09-04T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2033-09-04T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2033-09-04T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-04-23T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2034-04-23T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2034-04-23T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2034-04-23T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2034-09-03T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2034-09-03T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2034-09-03T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2034-09-03T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2034-04-23T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2034-04-23T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2034-04-23T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2034-04-23T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2034-09-03T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2034-09-03T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2034-09-03T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2034-09-03T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-04-29T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2035-04-29T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2035-04-29T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2035-04-29T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2035-09-02T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2035-09-02T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2035-09-02T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2035-09-02T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2035-04-29T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2035-04-29T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2035-04-29T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2035-04-29T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2035-09-02T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2035-09-02T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2035-09-02T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2035-09-02T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-04-27T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2036-04-27T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2036-04-27T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2036-04-27T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2036-09-07T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2036-09-07T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2036-09-07T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2036-09-07T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2036-04-27T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2036-04-27T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2036-04-27T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2036-04-27T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2036-09-07T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2036-09-07T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2036-09-07T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2036-09-07T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-04-26T02:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2037-04-26T02:59:59+00:00 should be 21:59:59 EASST"); - t.equal(moment("2037-04-26T03:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:00:00", "2037-04-26T03:00:00+00:00 should be 21:00:00 EAST"); - t.equal(moment("2037-09-06T03:59:59+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "21:59:59", "2037-09-06T03:59:59+00:00 should be 21:59:59 EAST"); - t.equal(moment("2037-09-06T04:00:00+00:00").tz("Pacific/Easter").format("HH:mm:ss"), "23:00:00", "2037-09-06T04:00:00+00:00 should be 23:00:00 EASST"); - - t.equal(moment("2037-04-26T02:59:59+00:00").tz("Pacific/Easter").zone(), 300, "2037-04-26T02:59:59+00:00 should be 300 minutes offset in EASST"); - t.equal(moment("2037-04-26T03:00:00+00:00").tz("Pacific/Easter").zone(), 360, "2037-04-26T03:00:00+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2037-09-06T03:59:59+00:00").tz("Pacific/Easter").zone(), 360, "2037-09-06T03:59:59+00:00 should be 360 minutes offset in EAST"); - t.equal(moment("2037-09-06T04:00:00+00:00").tz("Pacific/Easter").zone(), 300, "2037-09-06T04:00:00+00:00 should be 300 minutes offset in EASST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/efate.js b/tests/pacific/efate.js deleted file mode 100644 index d8b92c64..00000000 --- a/tests/pacific/efate.js +++ /dev/null @@ -1,160 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Efate"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-12T12:46:43+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1912-01-12T12:46:43+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-12T12:46:44+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:46:44", "1912-01-12T12:46:44+00:00 should be 23:46:44 VUT"); - - t.equal(moment("1912-01-12T12:46:43+00:00").tz("Pacific/Efate").zone(), -40396 / 60, "1912-01-12T12:46:43+00:00 should be -40396 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-12T12:46:44+00:00").tz("Pacific/Efate").zone(), -660, "1912-01-12T12:46:44+00:00 should be -660 minutes offset in VUT"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-09-24T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1983-09-24T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1983-09-24T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1983-09-24T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1983-09-24T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1983-09-24T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1983-09-24T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1983-09-24T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-24T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1984-03-24T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1984-03-24T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1984-03-24T12:00:00+00:00 should be 23:00:00 VUT"); - t.equal(moment("1984-10-22T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1984-10-22T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1984-10-22T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1984-10-22T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1984-03-24T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1984-03-24T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1984-03-24T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1984-03-24T12:00:00+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1984-10-22T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1984-10-22T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1984-10-22T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1984-10-22T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-23T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1985-03-23T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1985-03-23T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1985-03-23T12:00:00+00:00 should be 23:00:00 VUT"); - t.equal(moment("1985-09-28T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1985-09-28T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1985-09-28T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1985-09-28T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1985-03-23T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1985-03-23T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1985-03-23T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1985-03-23T12:00:00+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1985-09-28T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1985-09-28T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1985-09-28T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1985-09-28T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-22T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1986-03-22T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1986-03-22T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1986-03-22T12:00:00+00:00 should be 23:00:00 VUT"); - t.equal(moment("1986-09-27T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1986-09-27T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1986-09-27T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1986-09-27T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1986-03-22T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1986-03-22T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1986-03-22T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1986-03-22T12:00:00+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1986-09-27T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1986-09-27T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1986-09-27T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1986-09-27T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-28T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1987-03-28T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1987-03-28T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1987-03-28T12:00:00+00:00 should be 23:00:00 VUT"); - t.equal(moment("1987-09-26T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1987-09-26T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1987-09-26T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1987-09-26T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1987-03-28T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1987-03-28T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1987-03-28T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1987-03-28T12:00:00+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1987-09-26T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1987-09-26T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1987-09-26T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1987-09-26T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-26T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1988-03-26T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1988-03-26T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1988-03-26T12:00:00+00:00 should be 23:00:00 VUT"); - t.equal(moment("1988-09-24T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1988-09-24T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1988-09-24T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1988-09-24T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1988-03-26T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1988-03-26T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1988-03-26T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1988-03-26T12:00:00+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1988-09-24T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1988-09-24T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1988-09-24T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1988-09-24T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-25T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1989-03-25T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1989-03-25T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1989-03-25T12:00:00+00:00 should be 23:00:00 VUT"); - t.equal(moment("1989-09-23T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1989-09-23T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1989-09-23T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1989-09-23T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1989-03-25T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1989-03-25T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1989-03-25T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1989-03-25T12:00:00+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1989-09-23T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1989-09-23T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1989-09-23T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1989-09-23T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-24T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1990-03-24T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1990-03-24T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1990-03-24T12:00:00+00:00 should be 23:00:00 VUT"); - t.equal(moment("1990-09-22T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1990-09-22T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1990-09-22T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1990-09-22T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1990-03-24T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1990-03-24T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1990-03-24T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1990-03-24T12:00:00+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1990-09-22T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1990-09-22T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1990-09-22T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1990-09-22T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-23T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1991-03-23T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1991-03-23T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1991-03-23T12:00:00+00:00 should be 23:00:00 VUT"); - t.equal(moment("1991-09-28T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1991-09-28T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1991-09-28T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1991-09-28T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1991-03-23T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1991-03-23T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1991-03-23T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1991-03-23T12:00:00+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1991-09-28T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1991-09-28T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1991-09-28T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1991-09-28T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-01-25T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1992-01-25T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1992-01-25T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1992-01-25T12:00:00+00:00 should be 23:00:00 VUT"); - t.equal(moment("1992-10-24T12:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1992-10-24T12:59:59+00:00 should be 23:59:59 VUT"); - t.equal(moment("1992-10-24T13:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "01:00:00", "1992-10-24T13:00:00+00:00 should be 01:00:00 VUST"); - - t.equal(moment("1992-01-25T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1992-01-25T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1992-01-25T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1992-01-25T12:00:00+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1992-10-24T12:59:59+00:00").tz("Pacific/Efate").zone(), -660, "1992-10-24T12:59:59+00:00 should be -660 minutes offset in VUT"); - t.equal(moment("1992-10-24T13:00:00+00:00").tz("Pacific/Efate").zone(), -720, "1992-10-24T13:00:00+00:00 should be -720 minutes offset in VUST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-01-23T11:59:59+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:59:59", "1993-01-23T11:59:59+00:00 should be 23:59:59 VUST"); - t.equal(moment("1993-01-23T12:00:00+00:00").tz("Pacific/Efate").format("HH:mm:ss"), "23:00:00", "1993-01-23T12:00:00+00:00 should be 23:00:00 VUT"); - - t.equal(moment("1993-01-23T11:59:59+00:00").tz("Pacific/Efate").zone(), -720, "1993-01-23T11:59:59+00:00 should be -720 minutes offset in VUST"); - t.equal(moment("1993-01-23T12:00:00+00:00").tz("Pacific/Efate").zone(), -660, "1993-01-23T12:00:00+00:00 should be -660 minutes offset in VUT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/enderbury.js b/tests/pacific/enderbury.js deleted file mode 100644 index f5aac847..00000000 --- a/tests/pacific/enderbury.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Enderbury"] = { - - "1979" : function (t) { - t.equal(moment("1979-10-01T11:59:59+00:00").tz("Pacific/Enderbury").format("HH:mm:ss"), "23:59:59", "1979-10-01T11:59:59+00:00 should be 23:59:59 PHOT"); - t.equal(moment("1979-10-01T12:00:00+00:00").tz("Pacific/Enderbury").format("HH:mm:ss"), "01:00:00", "1979-10-01T12:00:00+00:00 should be 01:00:00 PHOT"); - - t.equal(moment("1979-10-01T11:59:59+00:00").tz("Pacific/Enderbury").zone(), 720, "1979-10-01T11:59:59+00:00 should be 720 minutes offset in PHOT"); - t.equal(moment("1979-10-01T12:00:00+00:00").tz("Pacific/Enderbury").zone(), 660, "1979-10-01T12:00:00+00:00 should be 660 minutes offset in PHOT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-01-01T10:59:59+00:00").tz("Pacific/Enderbury").format("HH:mm:ss"), "23:59:59", "1995-01-01T10:59:59+00:00 should be 23:59:59 PHOT"); - t.equal(moment("1995-01-01T11:00:00+00:00").tz("Pacific/Enderbury").format("HH:mm:ss"), "00:00:00", "1995-01-01T11:00:00+00:00 should be 00:00:00 PHOT"); - - t.equal(moment("1995-01-01T10:59:59+00:00").tz("Pacific/Enderbury").zone(), 660, "1995-01-01T10:59:59+00:00 should be 660 minutes offset in PHOT"); - t.equal(moment("1995-01-01T11:00:00+00:00").tz("Pacific/Enderbury").zone(), -780, "1995-01-01T11:00:00+00:00 should be -780 minutes offset in PHOT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/fakaofo.js b/tests/pacific/fakaofo.js deleted file mode 100644 index fdb0d483..00000000 --- a/tests/pacific/fakaofo.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Fakaofo"] = { - - "2011" : function (t) { - t.equal(moment("2011-12-30T10:59:59+00:00").tz("Pacific/Fakaofo").format("HH:mm:ss"), "23:59:59", "2011-12-30T10:59:59+00:00 should be 23:59:59 TKT"); - t.equal(moment("2011-12-30T11:00:00+00:00").tz("Pacific/Fakaofo").format("HH:mm:ss"), "00:00:00", "2011-12-30T11:00:00+00:00 should be 00:00:00 TKT"); - - t.equal(moment("2011-12-30T10:59:59+00:00").tz("Pacific/Fakaofo").zone(), 660, "2011-12-30T10:59:59+00:00 should be 660 minutes offset in TKT"); - t.equal(moment("2011-12-30T11:00:00+00:00").tz("Pacific/Fakaofo").zone(), -780, "2011-12-30T11:00:00+00:00 should be -780 minutes offset in TKT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/fiji.js b/tests/pacific/fiji.js deleted file mode 100644 index 485d0bfb..00000000 --- a/tests/pacific/fiji.js +++ /dev/null @@ -1,450 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Fiji"] = { - - "1915" : function (t) { - t.equal(moment("1915-10-25T12:04:15+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "23:59:59", "1915-10-25T12:04:15+00:00 should be 23:59:59 LMT"); - t.equal(moment("1915-10-25T12:04:16+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "00:04:16", "1915-10-25T12:04:16+00:00 should be 00:04:16 FJT"); - - t.equal(moment("1915-10-25T12:04:15+00:00").tz("Pacific/Fiji").zone(), -42944 / 60, "1915-10-25T12:04:15+00:00 should be -42944 / 60 minutes offset in LMT"); - t.equal(moment("1915-10-25T12:04:16+00:00").tz("Pacific/Fiji").zone(), -720, "1915-10-25T12:04:16+00:00 should be -720 minutes offset in FJT"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-10-31T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "1998-10-31T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("1998-10-31T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "1998-10-31T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("1998-10-31T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "1998-10-31T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("1998-10-31T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "1998-10-31T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-02-27T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "1999-02-27T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("1999-02-27T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "1999-02-27T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("1999-11-06T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "1999-11-06T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("1999-11-06T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "1999-11-06T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("1999-02-27T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "1999-02-27T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("1999-02-27T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "1999-02-27T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("1999-11-06T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "1999-11-06T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("1999-11-06T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "1999-11-06T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-02-26T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2000-02-26T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2000-02-26T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2000-02-26T14:00:00+00:00 should be 02:00:00 FJT"); - - t.equal(moment("2000-02-26T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2000-02-26T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2000-02-26T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2000-02-26T14:00:00+00:00 should be -720 minutes offset in FJT"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-11-28T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2009-11-28T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2009-11-28T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2009-11-28T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2009-11-28T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2009-11-28T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2009-11-28T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2009-11-28T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-27T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2010-03-27T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2010-03-27T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2010-03-27T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2010-10-23T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2010-10-23T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2010-10-23T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2010-10-23T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2010-03-27T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2010-03-27T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2010-03-27T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2010-03-27T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2010-10-23T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2010-10-23T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2010-10-23T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2010-10-23T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-05T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2011-03-05T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2011-03-05T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2011-03-05T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2011-10-22T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2011-10-22T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2011-10-22T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2011-10-22T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2011-03-05T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2011-03-05T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2011-03-05T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2011-03-05T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2011-10-22T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2011-10-22T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2011-10-22T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2011-10-22T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-01-21T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2012-01-21T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2012-01-21T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2012-01-21T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2012-10-20T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2012-10-20T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2012-10-20T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2012-10-20T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2012-01-21T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2012-01-21T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2012-01-21T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2012-01-21T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2012-10-20T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2012-10-20T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2012-10-20T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2012-10-20T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-01-19T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2013-01-19T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2013-01-19T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2013-01-19T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2013-10-19T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2013-10-19T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2013-10-19T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2013-10-19T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2013-01-19T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2013-01-19T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2013-01-19T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2013-01-19T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2013-10-19T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2013-10-19T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2013-10-19T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2013-10-19T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-01-18T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2014-01-18T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2014-01-18T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2014-01-18T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2014-10-18T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2014-10-18T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2014-10-18T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2014-10-18T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2014-01-18T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2014-01-18T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2014-01-18T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2014-01-18T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2014-10-18T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2014-10-18T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2014-10-18T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2014-10-18T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-01-17T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2015-01-17T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2015-01-17T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2015-01-17T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2015-10-17T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2015-10-17T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2015-10-17T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2015-10-17T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2015-01-17T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2015-01-17T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2015-01-17T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2015-01-17T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2015-10-17T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2015-10-17T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2015-10-17T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2015-10-17T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-01-23T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2016-01-23T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2016-01-23T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2016-01-23T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2016-10-22T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2016-10-22T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2016-10-22T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2016-10-22T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2016-01-23T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2016-01-23T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2016-01-23T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2016-01-23T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2016-10-22T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2016-10-22T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2016-10-22T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2016-10-22T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-01-21T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2017-01-21T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2017-01-21T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2017-01-21T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2017-10-21T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2017-10-21T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2017-10-21T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2017-10-21T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2017-01-21T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2017-01-21T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2017-01-21T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2017-01-21T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2017-10-21T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2017-10-21T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2017-10-21T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2017-10-21T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-01-20T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2018-01-20T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2018-01-20T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2018-01-20T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2018-10-20T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2018-10-20T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2018-10-20T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2018-10-20T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2018-01-20T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2018-01-20T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2018-01-20T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2018-01-20T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2018-10-20T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2018-10-20T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2018-10-20T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2018-10-20T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-01-19T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2019-01-19T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2019-01-19T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2019-01-19T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2019-10-19T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2019-10-19T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2019-10-19T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2019-10-19T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2019-01-19T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2019-01-19T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2019-01-19T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2019-01-19T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2019-10-19T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2019-10-19T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2019-10-19T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2019-10-19T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-01-18T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2020-01-18T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2020-01-18T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2020-01-18T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2020-10-17T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2020-10-17T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2020-10-17T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2020-10-17T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2020-01-18T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2020-01-18T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2020-01-18T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2020-01-18T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2020-10-17T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2020-10-17T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2020-10-17T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2020-10-17T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-01-23T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2021-01-23T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2021-01-23T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2021-01-23T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2021-10-23T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2021-10-23T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2021-10-23T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2021-10-23T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2021-01-23T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2021-01-23T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2021-01-23T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2021-01-23T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2021-10-23T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2021-10-23T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2021-10-23T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2021-10-23T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-01-22T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2022-01-22T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2022-01-22T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2022-01-22T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2022-10-22T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2022-10-22T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2022-10-22T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2022-10-22T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2022-01-22T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2022-01-22T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2022-01-22T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2022-01-22T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2022-10-22T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2022-10-22T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2022-10-22T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2022-10-22T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-01-21T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2023-01-21T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2023-01-21T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2023-01-21T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2023-10-21T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2023-10-21T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2023-10-21T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2023-10-21T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2023-01-21T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2023-01-21T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2023-01-21T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2023-01-21T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2023-10-21T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2023-10-21T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2023-10-21T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2023-10-21T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-01-20T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2024-01-20T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2024-01-20T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2024-01-20T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2024-10-19T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2024-10-19T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2024-10-19T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2024-10-19T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2024-01-20T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2024-01-20T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2024-01-20T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2024-01-20T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2024-10-19T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2024-10-19T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2024-10-19T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2024-10-19T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-01-18T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2025-01-18T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2025-01-18T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2025-01-18T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2025-10-18T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2025-10-18T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2025-10-18T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2025-10-18T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2025-01-18T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2025-01-18T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2025-01-18T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2025-01-18T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2025-10-18T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2025-10-18T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2025-10-18T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2025-10-18T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-01-17T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2026-01-17T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2026-01-17T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2026-01-17T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2026-10-17T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2026-10-17T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2026-10-17T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2026-10-17T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2026-01-17T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2026-01-17T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2026-01-17T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2026-01-17T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2026-10-17T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2026-10-17T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2026-10-17T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2026-10-17T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-01-23T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2027-01-23T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2027-01-23T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2027-01-23T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2027-10-23T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2027-10-23T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2027-10-23T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2027-10-23T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2027-01-23T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2027-01-23T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2027-01-23T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2027-01-23T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2027-10-23T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2027-10-23T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2027-10-23T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2027-10-23T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-01-22T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2028-01-22T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2028-01-22T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2028-01-22T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2028-10-21T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2028-10-21T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2028-10-21T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2028-10-21T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2028-01-22T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2028-01-22T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2028-01-22T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2028-01-22T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2028-10-21T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2028-10-21T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2028-10-21T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2028-10-21T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-01-20T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2029-01-20T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2029-01-20T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2029-01-20T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2029-10-20T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2029-10-20T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2029-10-20T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2029-10-20T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2029-01-20T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2029-01-20T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2029-01-20T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2029-01-20T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2029-10-20T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2029-10-20T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2029-10-20T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2029-10-20T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-01-19T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2030-01-19T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2030-01-19T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2030-01-19T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2030-10-19T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2030-10-19T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2030-10-19T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2030-10-19T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2030-01-19T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2030-01-19T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2030-01-19T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2030-01-19T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2030-10-19T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2030-10-19T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2030-10-19T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2030-10-19T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-01-18T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2031-01-18T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2031-01-18T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2031-01-18T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2031-10-18T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2031-10-18T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2031-10-18T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2031-10-18T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2031-01-18T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2031-01-18T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2031-01-18T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2031-01-18T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2031-10-18T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2031-10-18T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2031-10-18T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2031-10-18T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-01-17T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2032-01-17T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2032-01-17T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2032-01-17T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2032-10-23T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2032-10-23T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2032-10-23T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2032-10-23T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2032-01-17T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2032-01-17T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2032-01-17T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2032-01-17T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2032-10-23T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2032-10-23T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2032-10-23T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2032-10-23T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-01-22T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2033-01-22T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2033-01-22T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2033-01-22T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2033-10-22T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2033-10-22T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2033-10-22T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2033-10-22T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2033-01-22T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2033-01-22T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2033-01-22T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2033-01-22T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2033-10-22T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2033-10-22T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2033-10-22T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2033-10-22T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-01-21T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2034-01-21T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2034-01-21T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2034-01-21T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2034-10-21T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2034-10-21T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2034-10-21T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2034-10-21T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2034-01-21T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2034-01-21T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2034-01-21T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2034-01-21T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2034-10-21T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2034-10-21T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2034-10-21T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2034-10-21T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-01-20T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2035-01-20T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2035-01-20T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2035-01-20T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2035-10-20T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2035-10-20T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2035-10-20T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2035-10-20T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2035-01-20T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2035-01-20T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2035-01-20T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2035-01-20T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2035-10-20T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2035-10-20T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2035-10-20T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2035-10-20T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-01-19T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2036-01-19T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2036-01-19T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2036-01-19T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2036-10-18T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2036-10-18T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2036-10-18T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2036-10-18T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2036-01-19T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2036-01-19T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2036-01-19T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2036-01-19T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2036-10-18T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2036-10-18T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2036-10-18T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2036-10-18T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-01-17T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:59:59", "2037-01-17T13:59:59+00:00 should be 02:59:59 FJST"); - t.equal(moment("2037-01-17T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "02:00:00", "2037-01-17T14:00:00+00:00 should be 02:00:00 FJT"); - t.equal(moment("2037-10-17T13:59:59+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "01:59:59", "2037-10-17T13:59:59+00:00 should be 01:59:59 FJT"); - t.equal(moment("2037-10-17T14:00:00+00:00").tz("Pacific/Fiji").format("HH:mm:ss"), "03:00:00", "2037-10-17T14:00:00+00:00 should be 03:00:00 FJST"); - - t.equal(moment("2037-01-17T13:59:59+00:00").tz("Pacific/Fiji").zone(), -780, "2037-01-17T13:59:59+00:00 should be -780 minutes offset in FJST"); - t.equal(moment("2037-01-17T14:00:00+00:00").tz("Pacific/Fiji").zone(), -720, "2037-01-17T14:00:00+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2037-10-17T13:59:59+00:00").tz("Pacific/Fiji").zone(), -720, "2037-10-17T13:59:59+00:00 should be -720 minutes offset in FJT"); - t.equal(moment("2037-10-17T14:00:00+00:00").tz("Pacific/Fiji").zone(), -780, "2037-10-17T14:00:00+00:00 should be -780 minutes offset in FJST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/funafuti.js b/tests/pacific/funafuti.js deleted file mode 100644 index 1a16e40b..00000000 --- a/tests/pacific/funafuti.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Funafuti"] = { - - -}; \ No newline at end of file diff --git a/tests/pacific/galapagos.js b/tests/pacific/galapagos.js deleted file mode 100644 index 95f3c928..00000000 --- a/tests/pacific/galapagos.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Galapagos"] = { - - "1931" : function (t) { - t.equal(moment("1931-01-01T05:58:23+00:00").tz("Pacific/Galapagos").format("HH:mm:ss"), "23:59:59", "1931-01-01T05:58:23+00:00 should be 23:59:59 LMT"); - t.equal(moment("1931-01-01T05:58:24+00:00").tz("Pacific/Galapagos").format("HH:mm:ss"), "00:58:24", "1931-01-01T05:58:24+00:00 should be 00:58:24 ECT"); - - t.equal(moment("1931-01-01T05:58:23+00:00").tz("Pacific/Galapagos").zone(), 21504 / 60, "1931-01-01T05:58:23+00:00 should be 21504 / 60 minutes offset in LMT"); - t.equal(moment("1931-01-01T05:58:24+00:00").tz("Pacific/Galapagos").zone(), 300, "1931-01-01T05:58:24+00:00 should be 300 minutes offset in ECT"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-01-01T04:59:59+00:00").tz("Pacific/Galapagos").format("HH:mm:ss"), "23:59:59", "1986-01-01T04:59:59+00:00 should be 23:59:59 ECT"); - t.equal(moment("1986-01-01T05:00:00+00:00").tz("Pacific/Galapagos").format("HH:mm:ss"), "23:00:00", "1986-01-01T05:00:00+00:00 should be 23:00:00 GALT"); - - t.equal(moment("1986-01-01T04:59:59+00:00").tz("Pacific/Galapagos").zone(), 300, "1986-01-01T04:59:59+00:00 should be 300 minutes offset in ECT"); - t.equal(moment("1986-01-01T05:00:00+00:00").tz("Pacific/Galapagos").zone(), 360, "1986-01-01T05:00:00+00:00 should be 360 minutes offset in GALT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/gambier.js b/tests/pacific/gambier.js deleted file mode 100644 index 68bd3772..00000000 --- a/tests/pacific/gambier.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Gambier"] = { - - "1912" : function (t) { - t.equal(moment("1912-10-01T08:59:47+00:00").tz("Pacific/Gambier").format("HH:mm:ss"), "23:59:59", "1912-10-01T08:59:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-10-01T08:59:48+00:00").tz("Pacific/Gambier").format("HH:mm:ss"), "23:59:48", "1912-10-01T08:59:48+00:00 should be 23:59:48 GAMT"); - - t.equal(moment("1912-10-01T08:59:47+00:00").tz("Pacific/Gambier").zone(), 32388 / 60, "1912-10-01T08:59:47+00:00 should be 32388 / 60 minutes offset in LMT"); - t.equal(moment("1912-10-01T08:59:48+00:00").tz("Pacific/Gambier").zone(), 540, "1912-10-01T08:59:48+00:00 should be 540 minutes offset in GAMT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/guadalcanal.js b/tests/pacific/guadalcanal.js deleted file mode 100644 index 5fb3eb8e..00000000 --- a/tests/pacific/guadalcanal.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Guadalcanal"] = { - - "1912" : function (t) { - t.equal(moment("1912-09-30T13:20:11+00:00").tz("Pacific/Guadalcanal").format("HH:mm:ss"), "23:59:59", "1912-09-30T13:20:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-09-30T13:20:12+00:00").tz("Pacific/Guadalcanal").format("HH:mm:ss"), "00:20:12", "1912-09-30T13:20:12+00:00 should be 00:20:12 SBT"); - - t.equal(moment("1912-09-30T13:20:11+00:00").tz("Pacific/Guadalcanal").zone(), -38388 / 60, "1912-09-30T13:20:11+00:00 should be -38388 / 60 minutes offset in LMT"); - t.equal(moment("1912-09-30T13:20:12+00:00").tz("Pacific/Guadalcanal").zone(), -660, "1912-09-30T13:20:12+00:00 should be -660 minutes offset in SBT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/guam.js b/tests/pacific/guam.js deleted file mode 100644 index 8d5e5993..00000000 --- a/tests/pacific/guam.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Guam"] = { - - "2000" : function (t) { - t.equal(moment("2000-12-22T13:59:59+00:00").tz("Pacific/Guam").format("HH:mm:ss"), "23:59:59", "2000-12-22T13:59:59+00:00 should be 23:59:59 GST"); - t.equal(moment("2000-12-22T14:00:00+00:00").tz("Pacific/Guam").format("HH:mm:ss"), "00:00:00", "2000-12-22T14:00:00+00:00 should be 00:00:00 ChST"); - - t.equal(moment("2000-12-22T13:59:59+00:00").tz("Pacific/Guam").zone(), -600, "2000-12-22T13:59:59+00:00 should be -600 minutes offset in GST"); - t.equal(moment("2000-12-22T14:00:00+00:00").tz("Pacific/Guam").zone(), -600, "2000-12-22T14:00:00+00:00 should be -600 minutes offset in ChST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/honolulu.js b/tests/pacific/honolulu.js deleted file mode 100644 index 9ee6e293..00000000 --- a/tests/pacific/honolulu.js +++ /dev/null @@ -1,48 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Honolulu"] = { - - "1933" : function (t) { - t.equal(moment("1933-04-30T12:29:59+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "01:59:59", "1933-04-30T12:29:59+00:00 should be 01:59:59 HST"); - t.equal(moment("1933-04-30T12:30:00+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "03:00:00", "1933-04-30T12:30:00+00:00 should be 03:00:00 HDT"); - t.equal(moment("1933-05-21T21:29:59+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "11:59:59", "1933-05-21T21:29:59+00:00 should be 11:59:59 HDT"); - t.equal(moment("1933-05-21T21:30:00+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "11:00:00", "1933-05-21T21:30:00+00:00 should be 11:00:00 HST"); - - t.equal(moment("1933-04-30T12:29:59+00:00").tz("Pacific/Honolulu").zone(), 630, "1933-04-30T12:29:59+00:00 should be 630 minutes offset in HST"); - t.equal(moment("1933-04-30T12:30:00+00:00").tz("Pacific/Honolulu").zone(), 570, "1933-04-30T12:30:00+00:00 should be 570 minutes offset in HDT"); - t.equal(moment("1933-05-21T21:29:59+00:00").tz("Pacific/Honolulu").zone(), 570, "1933-05-21T21:29:59+00:00 should be 570 minutes offset in HDT"); - t.equal(moment("1933-05-21T21:30:00+00:00").tz("Pacific/Honolulu").zone(), 630, "1933-05-21T21:30:00+00:00 should be 630 minutes offset in HST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T12:29:59+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "01:59:59", "1942-02-09T12:29:59+00:00 should be 01:59:59 HST"); - t.equal(moment("1942-02-09T12:30:00+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "03:00:00", "1942-02-09T12:30:00+00:00 should be 03:00:00 HDT"); - - t.equal(moment("1942-02-09T12:29:59+00:00").tz("Pacific/Honolulu").zone(), 630, "1942-02-09T12:29:59+00:00 should be 630 minutes offset in HST"); - t.equal(moment("1942-02-09T12:30:00+00:00").tz("Pacific/Honolulu").zone(), 570, "1942-02-09T12:30:00+00:00 should be 570 minutes offset in HDT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-09-30T11:29:59+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "01:59:59", "1945-09-30T11:29:59+00:00 should be 01:59:59 HDT"); - t.equal(moment("1945-09-30T11:30:00+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "01:00:00", "1945-09-30T11:30:00+00:00 should be 01:00:00 HST"); - - t.equal(moment("1945-09-30T11:29:59+00:00").tz("Pacific/Honolulu").zone(), 570, "1945-09-30T11:29:59+00:00 should be 570 minutes offset in HDT"); - t.equal(moment("1945-09-30T11:30:00+00:00").tz("Pacific/Honolulu").zone(), 630, "1945-09-30T11:30:00+00:00 should be 630 minutes offset in HST"); - - t.done(); - }, - - "1947" : function (t) { - t.equal(moment("1947-06-08T12:29:59+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "01:59:59", "1947-06-08T12:29:59+00:00 should be 01:59:59 HST"); - t.equal(moment("1947-06-08T12:30:00+00:00").tz("Pacific/Honolulu").format("HH:mm:ss"), "02:30:00", "1947-06-08T12:30:00+00:00 should be 02:30:00 HST"); - - t.equal(moment("1947-06-08T12:29:59+00:00").tz("Pacific/Honolulu").zone(), 630, "1947-06-08T12:29:59+00:00 should be 630 minutes offset in HST"); - t.equal(moment("1947-06-08T12:30:00+00:00").tz("Pacific/Honolulu").zone(), 600, "1947-06-08T12:30:00+00:00 should be 600 minutes offset in HST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/johnston.js b/tests/pacific/johnston.js deleted file mode 100644 index be6425e2..00000000 --- a/tests/pacific/johnston.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Johnston"] = { - - -}; \ No newline at end of file diff --git a/tests/pacific/kiritimati.js b/tests/pacific/kiritimati.js deleted file mode 100644 index bcf1486b..00000000 --- a/tests/pacific/kiritimati.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Kiritimati"] = { - - "1979" : function (t) { - t.equal(moment("1979-10-01T10:39:59+00:00").tz("Pacific/Kiritimati").format("HH:mm:ss"), "23:59:59", "1979-10-01T10:39:59+00:00 should be 23:59:59 LINT"); - t.equal(moment("1979-10-01T10:40:00+00:00").tz("Pacific/Kiritimati").format("HH:mm:ss"), "00:40:00", "1979-10-01T10:40:00+00:00 should be 00:40:00 LINT"); - - t.equal(moment("1979-10-01T10:39:59+00:00").tz("Pacific/Kiritimati").zone(), 640, "1979-10-01T10:39:59+00:00 should be 640 minutes offset in LINT"); - t.equal(moment("1979-10-01T10:40:00+00:00").tz("Pacific/Kiritimati").zone(), 600, "1979-10-01T10:40:00+00:00 should be 600 minutes offset in LINT"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-01-01T09:59:59+00:00").tz("Pacific/Kiritimati").format("HH:mm:ss"), "23:59:59", "1995-01-01T09:59:59+00:00 should be 23:59:59 LINT"); - t.equal(moment("1995-01-01T10:00:00+00:00").tz("Pacific/Kiritimati").format("HH:mm:ss"), "00:00:00", "1995-01-01T10:00:00+00:00 should be 00:00:00 LINT"); - - t.equal(moment("1995-01-01T09:59:59+00:00").tz("Pacific/Kiritimati").zone(), 600, "1995-01-01T09:59:59+00:00 should be 600 minutes offset in LINT"); - t.equal(moment("1995-01-01T10:00:00+00:00").tz("Pacific/Kiritimati").zone(), -840, "1995-01-01T10:00:00+00:00 should be -840 minutes offset in LINT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/kosrae.js b/tests/pacific/kosrae.js deleted file mode 100644 index 7d56b81b..00000000 --- a/tests/pacific/kosrae.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Kosrae"] = { - - "1969" : function (t) { - t.equal(moment("1969-09-30T12:59:59+00:00").tz("Pacific/Kosrae").format("HH:mm:ss"), "23:59:59", "1969-09-30T12:59:59+00:00 should be 23:59:59 KOST"); - t.equal(moment("1969-09-30T13:00:00+00:00").tz("Pacific/Kosrae").format("HH:mm:ss"), "01:00:00", "1969-09-30T13:00:00+00:00 should be 01:00:00 KOST"); - - t.equal(moment("1969-09-30T12:59:59+00:00").tz("Pacific/Kosrae").zone(), -660, "1969-09-30T12:59:59+00:00 should be -660 minutes offset in KOST"); - t.equal(moment("1969-09-30T13:00:00+00:00").tz("Pacific/Kosrae").zone(), -720, "1969-09-30T13:00:00+00:00 should be -720 minutes offset in KOST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-12-31T11:59:59+00:00").tz("Pacific/Kosrae").format("HH:mm:ss"), "23:59:59", "1998-12-31T11:59:59+00:00 should be 23:59:59 KOST"); - t.equal(moment("1998-12-31T12:00:00+00:00").tz("Pacific/Kosrae").format("HH:mm:ss"), "23:00:00", "1998-12-31T12:00:00+00:00 should be 23:00:00 KOST"); - - t.equal(moment("1998-12-31T11:59:59+00:00").tz("Pacific/Kosrae").zone(), -720, "1998-12-31T11:59:59+00:00 should be -720 minutes offset in KOST"); - t.equal(moment("1998-12-31T12:00:00+00:00").tz("Pacific/Kosrae").zone(), -660, "1998-12-31T12:00:00+00:00 should be -660 minutes offset in KOST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/kwajalein.js b/tests/pacific/kwajalein.js deleted file mode 100644 index 2d0274fb..00000000 --- a/tests/pacific/kwajalein.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Kwajalein"] = { - - "1969" : function (t) { - t.equal(moment("1969-09-30T12:59:59+00:00").tz("Pacific/Kwajalein").format("HH:mm:ss"), "23:59:59", "1969-09-30T12:59:59+00:00 should be 23:59:59 MHT"); - t.equal(moment("1969-09-30T13:00:00+00:00").tz("Pacific/Kwajalein").format("HH:mm:ss"), "01:00:00", "1969-09-30T13:00:00+00:00 should be 01:00:00 KWAT"); - - t.equal(moment("1969-09-30T12:59:59+00:00").tz("Pacific/Kwajalein").zone(), -660, "1969-09-30T12:59:59+00:00 should be -660 minutes offset in MHT"); - t.equal(moment("1969-09-30T13:00:00+00:00").tz("Pacific/Kwajalein").zone(), 720, "1969-09-30T13:00:00+00:00 should be 720 minutes offset in KWAT"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-08-20T11:59:59+00:00").tz("Pacific/Kwajalein").format("HH:mm:ss"), "23:59:59", "1993-08-20T11:59:59+00:00 should be 23:59:59 KWAT"); - t.equal(moment("1993-08-20T12:00:00+00:00").tz("Pacific/Kwajalein").format("HH:mm:ss"), "00:00:00", "1993-08-20T12:00:00+00:00 should be 00:00:00 MHT"); - - t.equal(moment("1993-08-20T11:59:59+00:00").tz("Pacific/Kwajalein").zone(), 720, "1993-08-20T11:59:59+00:00 should be 720 minutes offset in KWAT"); - t.equal(moment("1993-08-20T12:00:00+00:00").tz("Pacific/Kwajalein").zone(), -720, "1993-08-20T12:00:00+00:00 should be -720 minutes offset in MHT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/majuro.js b/tests/pacific/majuro.js deleted file mode 100644 index 1bc8c8b5..00000000 --- a/tests/pacific/majuro.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Majuro"] = { - - "1969" : function (t) { - t.equal(moment("1969-09-30T12:59:59+00:00").tz("Pacific/Majuro").format("HH:mm:ss"), "23:59:59", "1969-09-30T12:59:59+00:00 should be 23:59:59 MHT"); - t.equal(moment("1969-09-30T13:00:00+00:00").tz("Pacific/Majuro").format("HH:mm:ss"), "01:00:00", "1969-09-30T13:00:00+00:00 should be 01:00:00 MHT"); - - t.equal(moment("1969-09-30T12:59:59+00:00").tz("Pacific/Majuro").zone(), -660, "1969-09-30T12:59:59+00:00 should be -660 minutes offset in MHT"); - t.equal(moment("1969-09-30T13:00:00+00:00").tz("Pacific/Majuro").zone(), -720, "1969-09-30T13:00:00+00:00 should be -720 minutes offset in MHT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/marquesas.js b/tests/pacific/marquesas.js deleted file mode 100644 index 79af3d84..00000000 --- a/tests/pacific/marquesas.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Marquesas"] = { - - "1912" : function (t) { - t.equal(moment("1912-10-01T09:17:59+00:00").tz("Pacific/Marquesas").format("HH:mm:ss"), "23:59:59", "1912-10-01T09:17:59+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-10-01T09:18:00+00:00").tz("Pacific/Marquesas").format("HH:mm:ss"), "23:48:00", "1912-10-01T09:18:00+00:00 should be 23:48:00 MART"); - - t.equal(moment("1912-10-01T09:17:59+00:00").tz("Pacific/Marquesas").zone(), 558, "1912-10-01T09:17:59+00:00 should be 558 minutes offset in LMT"); - t.equal(moment("1912-10-01T09:18:00+00:00").tz("Pacific/Marquesas").zone(), 570, "1912-10-01T09:18:00+00:00 should be 570 minutes offset in MART"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/midway.js b/tests/pacific/midway.js deleted file mode 100644 index e90317ae..00000000 --- a/tests/pacific/midway.js +++ /dev/null @@ -1,38 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Midway"] = { - - "1956" : function (t) { - t.equal(moment("1956-06-03T10:59:59+00:00").tz("Pacific/Midway").format("HH:mm:ss"), "23:59:59", "1956-06-03T10:59:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1956-06-03T11:00:00+00:00").tz("Pacific/Midway").format("HH:mm:ss"), "01:00:00", "1956-06-03T11:00:00+00:00 should be 01:00:00 NDT"); - t.equal(moment("1956-09-02T09:59:59+00:00").tz("Pacific/Midway").format("HH:mm:ss"), "23:59:59", "1956-09-02T09:59:59+00:00 should be 23:59:59 NDT"); - t.equal(moment("1956-09-02T10:00:00+00:00").tz("Pacific/Midway").format("HH:mm:ss"), "23:00:00", "1956-09-02T10:00:00+00:00 should be 23:00:00 NST"); - - t.equal(moment("1956-06-03T10:59:59+00:00").tz("Pacific/Midway").zone(), 660, "1956-06-03T10:59:59+00:00 should be 660 minutes offset in NST"); - t.equal(moment("1956-06-03T11:00:00+00:00").tz("Pacific/Midway").zone(), 600, "1956-06-03T11:00:00+00:00 should be 600 minutes offset in NDT"); - t.equal(moment("1956-09-02T09:59:59+00:00").tz("Pacific/Midway").zone(), 600, "1956-09-02T09:59:59+00:00 should be 600 minutes offset in NDT"); - t.equal(moment("1956-09-02T10:00:00+00:00").tz("Pacific/Midway").zone(), 660, "1956-09-02T10:00:00+00:00 should be 660 minutes offset in NST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-01T10:59:59+00:00").tz("Pacific/Midway").format("HH:mm:ss"), "23:59:59", "1967-04-01T10:59:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1967-04-01T11:00:00+00:00").tz("Pacific/Midway").format("HH:mm:ss"), "00:00:00", "1967-04-01T11:00:00+00:00 should be 00:00:00 BST"); - - t.equal(moment("1967-04-01T10:59:59+00:00").tz("Pacific/Midway").zone(), 660, "1967-04-01T10:59:59+00:00 should be 660 minutes offset in NST"); - t.equal(moment("1967-04-01T11:00:00+00:00").tz("Pacific/Midway").zone(), 660, "1967-04-01T11:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-11-30T10:59:59+00:00").tz("Pacific/Midway").format("HH:mm:ss"), "23:59:59", "1983-11-30T10:59:59+00:00 should be 23:59:59 BST"); - t.equal(moment("1983-11-30T11:00:00+00:00").tz("Pacific/Midway").format("HH:mm:ss"), "00:00:00", "1983-11-30T11:00:00+00:00 should be 00:00:00 SST"); - - t.equal(moment("1983-11-30T10:59:59+00:00").tz("Pacific/Midway").zone(), 660, "1983-11-30T10:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1983-11-30T11:00:00+00:00").tz("Pacific/Midway").zone(), 660, "1983-11-30T11:00:00+00:00 should be 660 minutes offset in SST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/nauru.js b/tests/pacific/nauru.js deleted file mode 100644 index 5ea3df18..00000000 --- a/tests/pacific/nauru.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Nauru"] = { - - "1921" : function (t) { - t.equal(moment("1921-01-14T12:52:19+00:00").tz("Pacific/Nauru").format("HH:mm:ss"), "23:59:59", "1921-01-14T12:52:19+00:00 should be 23:59:59 LMT"); - t.equal(moment("1921-01-14T12:52:20+00:00").tz("Pacific/Nauru").format("HH:mm:ss"), "00:22:20", "1921-01-14T12:52:20+00:00 should be 00:22:20 NRT"); - - t.equal(moment("1921-01-14T12:52:19+00:00").tz("Pacific/Nauru").zone(), -40060 / 60, "1921-01-14T12:52:19+00:00 should be -40060 / 60 minutes offset in LMT"); - t.equal(moment("1921-01-14T12:52:20+00:00").tz("Pacific/Nauru").zone(), -690, "1921-01-14T12:52:20+00:00 should be -690 minutes offset in NRT"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-03-14T12:29:59+00:00").tz("Pacific/Nauru").format("HH:mm:ss"), "23:59:59", "1942-03-14T12:29:59+00:00 should be 23:59:59 NRT"); - t.equal(moment("1942-03-14T12:30:00+00:00").tz("Pacific/Nauru").format("HH:mm:ss"), "21:30:00", "1942-03-14T12:30:00+00:00 should be 21:30:00 JST"); - - t.equal(moment("1942-03-14T12:29:59+00:00").tz("Pacific/Nauru").zone(), -690, "1942-03-14T12:29:59+00:00 should be -690 minutes offset in NRT"); - t.equal(moment("1942-03-14T12:30:00+00:00").tz("Pacific/Nauru").zone(), -540, "1942-03-14T12:30:00+00:00 should be -540 minutes offset in JST"); - - t.done(); - }, - - "1944" : function (t) { - t.equal(moment("1944-08-14T14:59:59+00:00").tz("Pacific/Nauru").format("HH:mm:ss"), "23:59:59", "1944-08-14T14:59:59+00:00 should be 23:59:59 JST"); - t.equal(moment("1944-08-14T15:00:00+00:00").tz("Pacific/Nauru").format("HH:mm:ss"), "02:30:00", "1944-08-14T15:00:00+00:00 should be 02:30:00 NRT"); - - t.equal(moment("1944-08-14T14:59:59+00:00").tz("Pacific/Nauru").zone(), -540, "1944-08-14T14:59:59+00:00 should be -540 minutes offset in JST"); - t.equal(moment("1944-08-14T15:00:00+00:00").tz("Pacific/Nauru").zone(), -690, "1944-08-14T15:00:00+00:00 should be -690 minutes offset in NRT"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-30T12:29:59+00:00").tz("Pacific/Nauru").format("HH:mm:ss"), "23:59:59", "1979-04-30T12:29:59+00:00 should be 23:59:59 NRT"); - t.equal(moment("1979-04-30T12:30:00+00:00").tz("Pacific/Nauru").format("HH:mm:ss"), "00:30:00", "1979-04-30T12:30:00+00:00 should be 00:30:00 NRT"); - - t.equal(moment("1979-04-30T12:29:59+00:00").tz("Pacific/Nauru").zone(), -690, "1979-04-30T12:29:59+00:00 should be -690 minutes offset in NRT"); - t.equal(moment("1979-04-30T12:30:00+00:00").tz("Pacific/Nauru").zone(), -720, "1979-04-30T12:30:00+00:00 should be -720 minutes offset in NRT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/niue.js b/tests/pacific/niue.js deleted file mode 100644 index 85dbe797..00000000 --- a/tests/pacific/niue.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Niue"] = { - - "1951" : function (t) { - t.equal(moment("1951-01-01T11:19:59+00:00").tz("Pacific/Niue").format("HH:mm:ss"), "23:59:59", "1951-01-01T11:19:59+00:00 should be 23:59:59 NUT"); - t.equal(moment("1951-01-01T11:20:00+00:00").tz("Pacific/Niue").format("HH:mm:ss"), "23:50:00", "1951-01-01T11:20:00+00:00 should be 23:50:00 NUT"); - - t.equal(moment("1951-01-01T11:19:59+00:00").tz("Pacific/Niue").zone(), 680, "1951-01-01T11:19:59+00:00 should be 680 minutes offset in NUT"); - t.equal(moment("1951-01-01T11:20:00+00:00").tz("Pacific/Niue").zone(), 690, "1951-01-01T11:20:00+00:00 should be 690 minutes offset in NUT"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-10-01T11:29:59+00:00").tz("Pacific/Niue").format("HH:mm:ss"), "23:59:59", "1978-10-01T11:29:59+00:00 should be 23:59:59 NUT"); - t.equal(moment("1978-10-01T11:30:00+00:00").tz("Pacific/Niue").format("HH:mm:ss"), "00:30:00", "1978-10-01T11:30:00+00:00 should be 00:30:00 NUT"); - - t.equal(moment("1978-10-01T11:29:59+00:00").tz("Pacific/Niue").zone(), 690, "1978-10-01T11:29:59+00:00 should be 690 minutes offset in NUT"); - t.equal(moment("1978-10-01T11:30:00+00:00").tz("Pacific/Niue").zone(), 660, "1978-10-01T11:30:00+00:00 should be 660 minutes offset in NUT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/norfolk.js b/tests/pacific/norfolk.js deleted file mode 100644 index e62ae618..00000000 --- a/tests/pacific/norfolk.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Norfolk"] = { - - "1950" : function (t) { - t.equal(moment("1950-12-31T12:47:59+00:00").tz("Pacific/Norfolk").format("HH:mm:ss"), "23:59:59", "1950-12-31T12:47:59+00:00 should be 23:59:59 NMT"); - t.equal(moment("1950-12-31T12:48:00+00:00").tz("Pacific/Norfolk").format("HH:mm:ss"), "00:18:00", "1950-12-31T12:48:00+00:00 should be 00:18:00 NFT"); - - t.equal(moment("1950-12-31T12:47:59+00:00").tz("Pacific/Norfolk").zone(), -672, "1950-12-31T12:47:59+00:00 should be -672 minutes offset in NMT"); - t.equal(moment("1950-12-31T12:48:00+00:00").tz("Pacific/Norfolk").zone(), -690, "1950-12-31T12:48:00+00:00 should be -690 minutes offset in NFT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/noumea.js b/tests/pacific/noumea.js deleted file mode 100644 index 41373a97..00000000 --- a/tests/pacific/noumea.js +++ /dev/null @@ -1,68 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Noumea"] = { - - "1912" : function (t) { - t.equal(moment("1912-01-12T12:54:11+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "23:59:59", "1912-01-12T12:54:11+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-01-12T12:54:12+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "23:54:12", "1912-01-12T12:54:12+00:00 should be 23:54:12 NCT"); - - t.equal(moment("1912-01-12T12:54:11+00:00").tz("Pacific/Noumea").zone(), -39948 / 60, "1912-01-12T12:54:11+00:00 should be -39948 / 60 minutes offset in LMT"); - t.equal(moment("1912-01-12T12:54:12+00:00").tz("Pacific/Noumea").zone(), -660, "1912-01-12T12:54:12+00:00 should be -660 minutes offset in NCT"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-12-03T12:59:59+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "23:59:59", "1977-12-03T12:59:59+00:00 should be 23:59:59 NCT"); - t.equal(moment("1977-12-03T13:00:00+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "01:00:00", "1977-12-03T13:00:00+00:00 should be 01:00:00 NCST"); - - t.equal(moment("1977-12-03T12:59:59+00:00").tz("Pacific/Noumea").zone(), -660, "1977-12-03T12:59:59+00:00 should be -660 minutes offset in NCT"); - t.equal(moment("1977-12-03T13:00:00+00:00").tz("Pacific/Noumea").zone(), -720, "1977-12-03T13:00:00+00:00 should be -720 minutes offset in NCST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-02-26T11:59:59+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "23:59:59", "1978-02-26T11:59:59+00:00 should be 23:59:59 NCST"); - t.equal(moment("1978-02-26T12:00:00+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "23:00:00", "1978-02-26T12:00:00+00:00 should be 23:00:00 NCT"); - t.equal(moment("1978-12-02T12:59:59+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "23:59:59", "1978-12-02T12:59:59+00:00 should be 23:59:59 NCT"); - t.equal(moment("1978-12-02T13:00:00+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "01:00:00", "1978-12-02T13:00:00+00:00 should be 01:00:00 NCST"); - - t.equal(moment("1978-02-26T11:59:59+00:00").tz("Pacific/Noumea").zone(), -720, "1978-02-26T11:59:59+00:00 should be -720 minutes offset in NCST"); - t.equal(moment("1978-02-26T12:00:00+00:00").tz("Pacific/Noumea").zone(), -660, "1978-02-26T12:00:00+00:00 should be -660 minutes offset in NCT"); - t.equal(moment("1978-12-02T12:59:59+00:00").tz("Pacific/Noumea").zone(), -660, "1978-12-02T12:59:59+00:00 should be -660 minutes offset in NCT"); - t.equal(moment("1978-12-02T13:00:00+00:00").tz("Pacific/Noumea").zone(), -720, "1978-12-02T13:00:00+00:00 should be -720 minutes offset in NCST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-02-26T11:59:59+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "23:59:59", "1979-02-26T11:59:59+00:00 should be 23:59:59 NCST"); - t.equal(moment("1979-02-26T12:00:00+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "23:00:00", "1979-02-26T12:00:00+00:00 should be 23:00:00 NCT"); - - t.equal(moment("1979-02-26T11:59:59+00:00").tz("Pacific/Noumea").zone(), -720, "1979-02-26T11:59:59+00:00 should be -720 minutes offset in NCST"); - t.equal(moment("1979-02-26T12:00:00+00:00").tz("Pacific/Noumea").zone(), -660, "1979-02-26T12:00:00+00:00 should be -660 minutes offset in NCT"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-11-30T14:59:59+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "01:59:59", "1996-11-30T14:59:59+00:00 should be 01:59:59 NCT"); - t.equal(moment("1996-11-30T15:00:00+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "03:00:00", "1996-11-30T15:00:00+00:00 should be 03:00:00 NCST"); - - t.equal(moment("1996-11-30T14:59:59+00:00").tz("Pacific/Noumea").zone(), -660, "1996-11-30T14:59:59+00:00 should be -660 minutes offset in NCT"); - t.equal(moment("1996-11-30T15:00:00+00:00").tz("Pacific/Noumea").zone(), -720, "1996-11-30T15:00:00+00:00 should be -720 minutes offset in NCST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-01T14:59:59+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "02:59:59", "1997-03-01T14:59:59+00:00 should be 02:59:59 NCST"); - t.equal(moment("1997-03-01T15:00:00+00:00").tz("Pacific/Noumea").format("HH:mm:ss"), "02:00:00", "1997-03-01T15:00:00+00:00 should be 02:00:00 NCT"); - - t.equal(moment("1997-03-01T14:59:59+00:00").tz("Pacific/Noumea").zone(), -720, "1997-03-01T14:59:59+00:00 should be -720 minutes offset in NCST"); - t.equal(moment("1997-03-01T15:00:00+00:00").tz("Pacific/Noumea").zone(), -660, "1997-03-01T15:00:00+00:00 should be -660 minutes offset in NCT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/pago_pago.js b/tests/pacific/pago_pago.js deleted file mode 100644 index 943eca47..00000000 --- a/tests/pacific/pago_pago.js +++ /dev/null @@ -1,44 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Pago_Pago"] = { - - "1911" : function (t) { - t.equal(moment("1911-01-01T11:22:47+00:00").tz("Pacific/Pago_Pago").format("HH:mm:ss"), "23:59:59", "1911-01-01T11:22:47+00:00 should be 23:59:59 LMT"); - t.equal(moment("1911-01-01T11:22:48+00:00").tz("Pacific/Pago_Pago").format("HH:mm:ss"), "23:52:48", "1911-01-01T11:22:48+00:00 should be 23:52:48 SAMT"); - - t.equal(moment("1911-01-01T11:22:47+00:00").tz("Pacific/Pago_Pago").zone(), 40968 / 60, "1911-01-01T11:22:47+00:00 should be 40968 / 60 minutes offset in LMT"); - t.equal(moment("1911-01-01T11:22:48+00:00").tz("Pacific/Pago_Pago").zone(), 690, "1911-01-01T11:22:48+00:00 should be 690 minutes offset in SAMT"); - - t.done(); - }, - - "1950" : function (t) { - t.equal(moment("1950-01-01T11:29:59+00:00").tz("Pacific/Pago_Pago").format("HH:mm:ss"), "23:59:59", "1950-01-01T11:29:59+00:00 should be 23:59:59 SAMT"); - t.equal(moment("1950-01-01T11:30:00+00:00").tz("Pacific/Pago_Pago").format("HH:mm:ss"), "00:30:00", "1950-01-01T11:30:00+00:00 should be 00:30:00 NST"); - - t.equal(moment("1950-01-01T11:29:59+00:00").tz("Pacific/Pago_Pago").zone(), 690, "1950-01-01T11:29:59+00:00 should be 690 minutes offset in SAMT"); - t.equal(moment("1950-01-01T11:30:00+00:00").tz("Pacific/Pago_Pago").zone(), 660, "1950-01-01T11:30:00+00:00 should be 660 minutes offset in NST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-01T10:59:59+00:00").tz("Pacific/Pago_Pago").format("HH:mm:ss"), "23:59:59", "1967-04-01T10:59:59+00:00 should be 23:59:59 NST"); - t.equal(moment("1967-04-01T11:00:00+00:00").tz("Pacific/Pago_Pago").format("HH:mm:ss"), "00:00:00", "1967-04-01T11:00:00+00:00 should be 00:00:00 BST"); - - t.equal(moment("1967-04-01T10:59:59+00:00").tz("Pacific/Pago_Pago").zone(), 660, "1967-04-01T10:59:59+00:00 should be 660 minutes offset in NST"); - t.equal(moment("1967-04-01T11:00:00+00:00").tz("Pacific/Pago_Pago").zone(), 660, "1967-04-01T11:00:00+00:00 should be 660 minutes offset in BST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-11-30T10:59:59+00:00").tz("Pacific/Pago_Pago").format("HH:mm:ss"), "23:59:59", "1983-11-30T10:59:59+00:00 should be 23:59:59 BST"); - t.equal(moment("1983-11-30T11:00:00+00:00").tz("Pacific/Pago_Pago").format("HH:mm:ss"), "00:00:00", "1983-11-30T11:00:00+00:00 should be 00:00:00 SST"); - - t.equal(moment("1983-11-30T10:59:59+00:00").tz("Pacific/Pago_Pago").zone(), 660, "1983-11-30T10:59:59+00:00 should be 660 minutes offset in BST"); - t.equal(moment("1983-11-30T11:00:00+00:00").tz("Pacific/Pago_Pago").zone(), 660, "1983-11-30T11:00:00+00:00 should be 660 minutes offset in SST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/palau.js b/tests/pacific/palau.js deleted file mode 100644 index c07cfce3..00000000 --- a/tests/pacific/palau.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Palau"] = { - - -}; \ No newline at end of file diff --git a/tests/pacific/pitcairn.js b/tests/pacific/pitcairn.js deleted file mode 100644 index fbe57995..00000000 --- a/tests/pacific/pitcairn.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Pitcairn"] = { - - "1998" : function (t) { - t.equal(moment("1998-04-27T08:29:59+00:00").tz("Pacific/Pitcairn").format("HH:mm:ss"), "23:59:59", "1998-04-27T08:29:59+00:00 should be 23:59:59 PNT"); - t.equal(moment("1998-04-27T08:30:00+00:00").tz("Pacific/Pitcairn").format("HH:mm:ss"), "00:30:00", "1998-04-27T08:30:00+00:00 should be 00:30:00 PST"); - - t.equal(moment("1998-04-27T08:29:59+00:00").tz("Pacific/Pitcairn").zone(), 510, "1998-04-27T08:29:59+00:00 should be 510 minutes offset in PNT"); - t.equal(moment("1998-04-27T08:30:00+00:00").tz("Pacific/Pitcairn").zone(), 480, "1998-04-27T08:30:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/pohnpei.js b/tests/pacific/pohnpei.js deleted file mode 100644 index 7f93ef9e..00000000 --- a/tests/pacific/pohnpei.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Pohnpei"] = { - - -}; \ No newline at end of file diff --git a/tests/pacific/port_moresby.js b/tests/pacific/port_moresby.js deleted file mode 100644 index ee7c5356..00000000 --- a/tests/pacific/port_moresby.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Port_Moresby"] = { - - -}; \ No newline at end of file diff --git a/tests/pacific/rarotonga.js b/tests/pacific/rarotonga.js deleted file mode 100644 index cdfa09dc..00000000 --- a/tests/pacific/rarotonga.js +++ /dev/null @@ -1,192 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Rarotonga"] = { - - "1978" : function (t) { - t.equal(moment("1978-11-12T10:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1978-11-12T10:29:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1978-11-12T10:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "01:00:00", "1978-11-12T10:30:00+00:00 should be 01:00:00 CKHST"); - - t.equal(moment("1978-11-12T10:29:59+00:00").tz("Pacific/Rarotonga").zone(), 630, "1978-11-12T10:29:59+00:00 should be 630 minutes offset in CKT"); - t.equal(moment("1978-11-12T10:30:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1978-11-12T10:30:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-03-04T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1979-03-04T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1979-03-04T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1979-03-04T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1979-10-28T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1979-10-28T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1979-10-28T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1979-10-28T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1979-03-04T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1979-03-04T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1979-03-04T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1979-03-04T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1979-10-28T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1979-10-28T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1979-10-28T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1979-10-28T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-03-02T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1980-03-02T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1980-03-02T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1980-03-02T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1980-10-26T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1980-10-26T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1980-10-26T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1980-10-26T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1980-03-02T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1980-03-02T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1980-03-02T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1980-03-02T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1980-10-26T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1980-10-26T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1980-10-26T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1980-10-26T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-01T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1981-03-01T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1981-03-01T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1981-03-01T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1981-10-25T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1981-10-25T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1981-10-25T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1981-10-25T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1981-03-01T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1981-03-01T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1981-03-01T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1981-03-01T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1981-10-25T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1981-10-25T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1981-10-25T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1981-10-25T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-07T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1982-03-07T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1982-03-07T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1982-03-07T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1982-10-31T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1982-10-31T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1982-10-31T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1982-10-31T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1982-03-07T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1982-03-07T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1982-03-07T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1982-03-07T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1982-10-31T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1982-10-31T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1982-10-31T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1982-10-31T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-06T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1983-03-06T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1983-03-06T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1983-03-06T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1983-10-30T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1983-10-30T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1983-10-30T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1983-10-30T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1983-03-06T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1983-03-06T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1983-03-06T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1983-03-06T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1983-10-30T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1983-10-30T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1983-10-30T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1983-10-30T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-04T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1984-03-04T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1984-03-04T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1984-03-04T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1984-10-28T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1984-10-28T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1984-03-04T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1984-03-04T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1984-03-04T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1984-03-04T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1984-10-28T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1984-10-28T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1984-10-28T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1984-10-28T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-03T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1985-03-03T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1985-03-03T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1985-03-03T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1985-10-27T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1985-10-27T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1985-03-03T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1985-03-03T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1985-03-03T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1985-03-03T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1985-10-27T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1985-10-27T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1985-10-27T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1985-10-27T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-02T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1986-03-02T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1986-03-02T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1986-03-02T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1986-10-26T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1986-10-26T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1986-03-02T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1986-03-02T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1986-03-02T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1986-03-02T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1986-10-26T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1986-10-26T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1986-10-26T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1986-10-26T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-01T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1987-03-01T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1987-03-01T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1987-03-01T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1987-10-25T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1987-10-25T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1987-03-01T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1987-03-01T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1987-03-01T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1987-03-01T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1987-10-25T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1987-10-25T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1987-10-25T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1987-10-25T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-06T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1988-03-06T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1988-03-06T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1988-03-06T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1988-10-30T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1988-10-30T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1988-03-06T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1988-03-06T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1988-03-06T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1988-03-06T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1988-10-30T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1988-10-30T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1988-10-30T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1988-10-30T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-05T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1989-03-05T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1989-03-05T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1989-03-05T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1989-10-29T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1989-10-29T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1989-03-05T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1989-03-05T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1989-03-05T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1989-03-05T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1989-10-29T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1989-10-29T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1989-10-29T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1989-10-29T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-04T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1990-03-04T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1990-03-04T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1990-03-04T09:30:00+00:00 should be 23:30:00 CKT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1990-10-28T09:59:59+00:00 should be 23:59:59 CKT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "00:30:00", "1990-10-28T10:00:00+00:00 should be 00:30:00 CKHST"); - - t.equal(moment("1990-03-04T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1990-03-04T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1990-03-04T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1990-03-04T09:30:00+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1990-10-28T09:59:59+00:00").tz("Pacific/Rarotonga").zone(), 600, "1990-10-28T09:59:59+00:00 should be 600 minutes offset in CKT"); - t.equal(moment("1990-10-28T10:00:00+00:00").tz("Pacific/Rarotonga").zone(), 570, "1990-10-28T10:00:00+00:00 should be 570 minutes offset in CKHST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-03T09:29:59+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:59:59", "1991-03-03T09:29:59+00:00 should be 23:59:59 CKHST"); - t.equal(moment("1991-03-03T09:30:00+00:00").tz("Pacific/Rarotonga").format("HH:mm:ss"), "23:30:00", "1991-03-03T09:30:00+00:00 should be 23:30:00 CKT"); - - t.equal(moment("1991-03-03T09:29:59+00:00").tz("Pacific/Rarotonga").zone(), 570, "1991-03-03T09:29:59+00:00 should be 570 minutes offset in CKHST"); - t.equal(moment("1991-03-03T09:30:00+00:00").tz("Pacific/Rarotonga").zone(), 600, "1991-03-03T09:30:00+00:00 should be 600 minutes offset in CKT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/saipan.js b/tests/pacific/saipan.js deleted file mode 100644 index 884f4bb9..00000000 --- a/tests/pacific/saipan.js +++ /dev/null @@ -1,24 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Saipan"] = { - - "1969" : function (t) { - t.equal(moment("1969-09-30T14:59:59+00:00").tz("Pacific/Saipan").format("HH:mm:ss"), "23:59:59", "1969-09-30T14:59:59+00:00 should be 23:59:59 MPT"); - t.equal(moment("1969-09-30T15:00:00+00:00").tz("Pacific/Saipan").format("HH:mm:ss"), "01:00:00", "1969-09-30T15:00:00+00:00 should be 01:00:00 MPT"); - - t.equal(moment("1969-09-30T14:59:59+00:00").tz("Pacific/Saipan").zone(), -540, "1969-09-30T14:59:59+00:00 should be -540 minutes offset in MPT"); - t.equal(moment("1969-09-30T15:00:00+00:00").tz("Pacific/Saipan").zone(), -600, "1969-09-30T15:00:00+00:00 should be -600 minutes offset in MPT"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-12-22T13:59:59+00:00").tz("Pacific/Saipan").format("HH:mm:ss"), "23:59:59", "2000-12-22T13:59:59+00:00 should be 23:59:59 MPT"); - t.equal(moment("2000-12-22T14:00:00+00:00").tz("Pacific/Saipan").format("HH:mm:ss"), "00:00:00", "2000-12-22T14:00:00+00:00 should be 00:00:00 ChST"); - - t.equal(moment("2000-12-22T13:59:59+00:00").tz("Pacific/Saipan").zone(), -600, "2000-12-22T13:59:59+00:00 should be -600 minutes offset in MPT"); - t.equal(moment("2000-12-22T14:00:00+00:00").tz("Pacific/Saipan").zone(), -600, "2000-12-22T14:00:00+00:00 should be -600 minutes offset in ChST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/tahiti.js b/tests/pacific/tahiti.js deleted file mode 100644 index 28f27d53..00000000 --- a/tests/pacific/tahiti.js +++ /dev/null @@ -1,14 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Tahiti"] = { - - "1912" : function (t) { - t.equal(moment("1912-10-01T09:58:15+00:00").tz("Pacific/Tahiti").format("HH:mm:ss"), "23:59:59", "1912-10-01T09:58:15+00:00 should be 23:59:59 LMT"); - t.equal(moment("1912-10-01T09:58:16+00:00").tz("Pacific/Tahiti").format("HH:mm:ss"), "23:58:16", "1912-10-01T09:58:16+00:00 should be 23:58:16 TAHT"); - - t.equal(moment("1912-10-01T09:58:15+00:00").tz("Pacific/Tahiti").zone(), 35896 / 60, "1912-10-01T09:58:15+00:00 should be 35896 / 60 minutes offset in LMT"); - t.equal(moment("1912-10-01T09:58:16+00:00").tz("Pacific/Tahiti").zone(), 600, "1912-10-01T09:58:16+00:00 should be 600 minutes offset in TAHT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/tarawa.js b/tests/pacific/tarawa.js deleted file mode 100644 index f9eaebdd..00000000 --- a/tests/pacific/tarawa.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Tarawa"] = { - - -}; \ No newline at end of file diff --git a/tests/pacific/tongatapu.js b/tests/pacific/tongatapu.js deleted file mode 100644 index eff8be7a..00000000 --- a/tests/pacific/tongatapu.js +++ /dev/null @@ -1,62 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Tongatapu"] = { - - "1940" : function (t) { - t.equal(moment("1940-12-31T11:39:59+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "23:59:59", "1940-12-31T11:39:59+00:00 should be 23:59:59 TOT"); - t.equal(moment("1940-12-31T11:40:00+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "00:40:00", "1940-12-31T11:40:00+00:00 should be 00:40:00 TOT"); - - t.equal(moment("1940-12-31T11:39:59+00:00").tz("Pacific/Tongatapu").zone(), -740, "1940-12-31T11:39:59+00:00 should be -740 minutes offset in TOT"); - t.equal(moment("1940-12-31T11:40:00+00:00").tz("Pacific/Tongatapu").zone(), -780, "1940-12-31T11:40:00+00:00 should be -780 minutes offset in TOT"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-10-06T12:59:59+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "01:59:59", "1999-10-06T12:59:59+00:00 should be 01:59:59 TOT"); - t.equal(moment("1999-10-06T13:00:00+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "03:00:00", "1999-10-06T13:00:00+00:00 should be 03:00:00 TOST"); - - t.equal(moment("1999-10-06T12:59:59+00:00").tz("Pacific/Tongatapu").zone(), -780, "1999-10-06T12:59:59+00:00 should be -780 minutes offset in TOT"); - t.equal(moment("1999-10-06T13:00:00+00:00").tz("Pacific/Tongatapu").zone(), -840, "1999-10-06T13:00:00+00:00 should be -840 minutes offset in TOST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-18T12:59:59+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "02:59:59", "2000-03-18T12:59:59+00:00 should be 02:59:59 TOST"); - t.equal(moment("2000-03-18T13:00:00+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "02:00:00", "2000-03-18T13:00:00+00:00 should be 02:00:00 TOT"); - t.equal(moment("2000-11-04T12:59:59+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "01:59:59", "2000-11-04T12:59:59+00:00 should be 01:59:59 TOT"); - t.equal(moment("2000-11-04T13:00:00+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "03:00:00", "2000-11-04T13:00:00+00:00 should be 03:00:00 TOST"); - - t.equal(moment("2000-03-18T12:59:59+00:00").tz("Pacific/Tongatapu").zone(), -840, "2000-03-18T12:59:59+00:00 should be -840 minutes offset in TOST"); - t.equal(moment("2000-03-18T13:00:00+00:00").tz("Pacific/Tongatapu").zone(), -780, "2000-03-18T13:00:00+00:00 should be -780 minutes offset in TOT"); - t.equal(moment("2000-11-04T12:59:59+00:00").tz("Pacific/Tongatapu").zone(), -780, "2000-11-04T12:59:59+00:00 should be -780 minutes offset in TOT"); - t.equal(moment("2000-11-04T13:00:00+00:00").tz("Pacific/Tongatapu").zone(), -840, "2000-11-04T13:00:00+00:00 should be -840 minutes offset in TOST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-01-27T11:59:59+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "01:59:59", "2001-01-27T11:59:59+00:00 should be 01:59:59 TOST"); - t.equal(moment("2001-01-27T12:00:00+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "01:00:00", "2001-01-27T12:00:00+00:00 should be 01:00:00 TOT"); - t.equal(moment("2001-11-03T12:59:59+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "01:59:59", "2001-11-03T12:59:59+00:00 should be 01:59:59 TOT"); - t.equal(moment("2001-11-03T13:00:00+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "03:00:00", "2001-11-03T13:00:00+00:00 should be 03:00:00 TOST"); - - t.equal(moment("2001-01-27T11:59:59+00:00").tz("Pacific/Tongatapu").zone(), -840, "2001-01-27T11:59:59+00:00 should be -840 minutes offset in TOST"); - t.equal(moment("2001-01-27T12:00:00+00:00").tz("Pacific/Tongatapu").zone(), -780, "2001-01-27T12:00:00+00:00 should be -780 minutes offset in TOT"); - t.equal(moment("2001-11-03T12:59:59+00:00").tz("Pacific/Tongatapu").zone(), -780, "2001-11-03T12:59:59+00:00 should be -780 minutes offset in TOT"); - t.equal(moment("2001-11-03T13:00:00+00:00").tz("Pacific/Tongatapu").zone(), -840, "2001-11-03T13:00:00+00:00 should be -840 minutes offset in TOST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-01-26T11:59:59+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "01:59:59", "2002-01-26T11:59:59+00:00 should be 01:59:59 TOST"); - t.equal(moment("2002-01-26T12:00:00+00:00").tz("Pacific/Tongatapu").format("HH:mm:ss"), "01:00:00", "2002-01-26T12:00:00+00:00 should be 01:00:00 TOT"); - - t.equal(moment("2002-01-26T11:59:59+00:00").tz("Pacific/Tongatapu").zone(), -840, "2002-01-26T11:59:59+00:00 should be -840 minutes offset in TOST"); - t.equal(moment("2002-01-26T12:00:00+00:00").tz("Pacific/Tongatapu").zone(), -780, "2002-01-26T12:00:00+00:00 should be -780 minutes offset in TOT"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/pacific/wake.js b/tests/pacific/wake.js deleted file mode 100644 index 15c7e2f8..00000000 --- a/tests/pacific/wake.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Wake"] = { - - -}; \ No newline at end of file diff --git a/tests/pacific/wallis.js b/tests/pacific/wallis.js deleted file mode 100644 index 18efe417..00000000 --- a/tests/pacific/wallis.js +++ /dev/null @@ -1,6 +0,0 @@ -var moment = require("../../index"); - -exports["Pacific/Wallis"] = { - - -}; \ No newline at end of file diff --git a/tests/pst8pdt.js b/tests/pst8pdt.js deleted file mode 100644 index a78c1606..00000000 --- a/tests/pst8pdt.js +++ /dev/null @@ -1,1050 +0,0 @@ -var moment = require("../index"); - -exports["PST8PDT"] = { - - "1918" : function (t) { - t.equal(moment("1918-03-31T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1918-03-31T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1918-03-31T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1918-03-31T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1918-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1918-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1918-03-31T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1918-03-31T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1918-03-31T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1918-03-31T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1918-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1918-10-27T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1918-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1919" : function (t) { - t.equal(moment("1919-03-30T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1919-03-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1919-03-30T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1919-03-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1919-10-26T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1919-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1919-10-26T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1919-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1919-03-30T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1919-03-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1919-03-30T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1919-03-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1919-10-26T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1919-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1919-10-26T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1919-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1942" : function (t) { - t.equal(moment("1942-02-09T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1942-02-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1942-02-09T10:00:00+00:00 should be 03:00:00 PWT"); - - t.equal(moment("1942-02-09T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1942-02-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1942-02-09T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1942-02-09T10:00:00+00:00 should be 420 minutes offset in PWT"); - - t.done(); - }, - - "1945" : function (t) { - t.equal(moment("1945-08-14T22:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "15:59:59", "1945-08-14T22:59:59+00:00 should be 15:59:59 PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "16:00:00", "1945-08-14T23:00:00+00:00 should be 16:00:00 PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1945-09-30T08:59:59+00:00 should be 01:59:59 PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1945-09-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1945-08-14T22:59:59+00:00").tz("PST8PDT").zone(), 420, "1945-08-14T22:59:59+00:00 should be 420 minutes offset in PWT"); - t.equal(moment("1945-08-14T23:00:00+00:00").tz("PST8PDT").zone(), 420, "1945-08-14T23:00:00+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1945-09-30T08:59:59+00:00 should be 420 minutes offset in PPT"); - t.equal(moment("1945-09-30T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1945-09-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1967" : function (t) { - t.equal(moment("1967-04-30T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1967-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1967-04-30T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1967-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1967-10-29T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1967-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1967-10-29T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1967-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1967-04-30T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1967-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1967-04-30T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1967-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1967-10-29T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1967-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1967-10-29T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1967-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1968" : function (t) { - t.equal(moment("1968-04-28T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1968-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1968-04-28T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1968-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1968-10-27T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1968-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1968-10-27T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1968-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1968-04-28T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1968-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1968-04-28T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1968-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1968-10-27T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1968-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1968-10-27T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1968-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1969" : function (t) { - t.equal(moment("1969-04-27T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1969-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1969-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1969-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1969-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1969-04-27T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1969-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1969-04-27T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1969-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1969-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1969-10-26T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1969-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1970" : function (t) { - t.equal(moment("1970-04-26T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1970-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1970-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1970-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1970-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1970-04-26T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1970-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1970-04-26T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1970-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1970-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1970-10-25T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1970-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1971" : function (t) { - t.equal(moment("1971-04-25T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1971-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1971-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1971-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1971-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1971-04-25T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1971-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1971-04-25T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1971-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1971-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1971-10-31T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1971-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1972" : function (t) { - t.equal(moment("1972-04-30T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1972-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1972-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1972-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1972-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1972-04-30T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1972-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1972-04-30T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1972-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1972-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1972-10-29T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1972-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1973" : function (t) { - t.equal(moment("1973-04-29T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1973-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1973-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1973-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1973-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1973-04-29T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1973-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1973-04-29T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1973-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1973-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1973-10-28T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1973-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1974" : function (t) { - t.equal(moment("1974-01-06T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1974-01-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1974-01-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1974-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1974-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1974-01-06T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1974-01-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1974-01-06T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1974-01-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1974-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1974-10-27T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1974-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1975" : function (t) { - t.equal(moment("1975-02-23T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1975-02-23T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1975-02-23T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1975-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1975-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1975-02-23T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1975-02-23T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1975-02-23T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1975-02-23T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1975-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1975-10-26T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1975-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1976" : function (t) { - t.equal(moment("1976-04-25T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1976-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1976-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1976-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1976-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1976-04-25T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1976-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1976-04-25T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1976-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1976-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1976-10-31T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1976-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1977" : function (t) { - t.equal(moment("1977-04-24T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1977-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1977-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1977-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1977-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1977-04-24T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1977-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1977-04-24T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1977-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1977-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1977-10-30T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1977-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-30T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1978-04-30T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1978-04-30T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1978-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1978-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1978-04-30T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1978-04-30T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1978-04-30T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1978-04-30T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1978-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1978-10-29T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1978-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-29T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1979-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1979-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1979-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1979-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1979-04-29T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1979-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1979-04-29T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1979-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1979-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1979-10-28T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1979-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-27T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1980-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1980-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1980-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1980-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1980-04-27T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1980-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1980-04-27T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1980-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1980-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1980-10-26T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1980-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-04-26T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1981-04-26T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1981-04-26T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1981-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1981-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1981-04-26T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1981-04-26T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1981-04-26T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1981-04-26T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1981-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1981-10-25T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1981-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-04-25T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1982-04-25T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1982-04-25T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1982-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1982-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1982-04-25T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1982-04-25T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1982-04-25T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1982-04-25T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1982-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1982-10-31T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1982-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-04-24T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1983-04-24T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1983-04-24T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1983-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1983-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1983-04-24T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1983-04-24T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1983-04-24T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1983-04-24T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1983-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1983-10-30T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1983-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-04-29T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1984-04-29T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1984-04-29T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1984-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1984-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1984-04-29T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1984-04-29T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1984-04-29T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1984-04-29T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1984-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1984-10-28T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1984-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-04-28T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1985-04-28T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1985-04-28T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1985-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1985-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1985-04-28T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1985-04-28T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1985-04-28T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1985-04-28T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1985-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1985-10-27T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1985-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-04-27T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1986-04-27T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1986-04-27T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1986-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1986-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1986-04-27T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1986-04-27T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1986-04-27T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1986-04-27T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1986-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1986-10-26T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1986-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-04-05T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1987-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1987-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1987-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1987-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1987-04-05T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1987-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1987-04-05T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1987-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1987-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1987-10-25T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1987-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-04-03T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1988-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1988-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1988-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1988-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1988-04-03T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1988-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1988-04-03T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1988-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1988-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1988-10-30T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1988-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-04-02T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1989-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1989-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1989-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1989-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1989-04-02T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1989-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1989-04-02T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1989-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1989-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1989-10-29T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1989-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-04-01T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1990-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1990-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1990-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1990-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1990-04-01T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1990-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1990-04-01T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1990-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1990-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1990-10-28T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1990-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-04-07T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1991-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1991-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1991-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1991-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1991-04-07T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1991-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1991-04-07T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1991-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1991-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1991-10-27T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1991-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-04-05T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1992-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1992-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1992-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1992-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1992-04-05T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1992-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1992-04-05T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1992-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1992-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1992-10-25T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1992-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-04-04T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1993-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1993-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1993-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1993-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1993-04-04T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1993-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1993-04-04T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1993-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1993-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1993-10-31T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1993-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-04-03T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1994-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1994-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1994-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1994-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1994-04-03T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1994-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1994-04-03T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1994-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1994-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1994-10-30T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1994-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-04-02T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1995-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1995-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1995-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1995-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1995-04-02T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1995-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1995-04-02T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1995-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1995-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1995-10-29T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1995-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-04-07T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1996-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1996-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1996-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1996-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1996-04-07T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1996-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1996-04-07T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1996-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1996-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1996-10-27T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1996-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-04-06T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1997-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1997-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1997-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1997-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1997-04-06T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1997-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1997-04-06T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1997-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1997-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1997-10-26T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1997-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-04-05T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1998-04-05T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1998-04-05T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1998-10-25T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1998-10-25T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1998-04-05T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1998-04-05T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1998-04-05T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1998-04-05T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1998-10-25T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1998-10-25T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1998-10-25T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-04-04T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1999-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "1999-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "1999-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "1999-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("1999-04-04T09:59:59+00:00").tz("PST8PDT").zone(), 480, "1999-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("1999-04-04T10:00:00+00:00").tz("PST8PDT").zone(), 420, "1999-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T08:59:59+00:00").tz("PST8PDT").zone(), 420, "1999-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("1999-10-31T09:00:00+00:00").tz("PST8PDT").zone(), 480, "1999-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-04-02T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2000-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2000-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2000-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2000-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2000-04-02T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2000-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2000-04-02T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2000-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2000-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2000-10-29T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2000-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-04-01T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2001-04-01T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2001-04-01T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2001-10-28T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2001-10-28T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2001-04-01T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2001-04-01T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2001-04-01T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2001-04-01T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2001-10-28T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2001-10-28T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2001-10-28T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-04-07T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2002-04-07T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2002-04-07T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2002-10-27T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2002-10-27T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2002-04-07T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2002-04-07T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2002-04-07T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2002-04-07T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2002-10-27T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2002-10-27T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2002-10-27T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-04-06T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2003-04-06T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2003-04-06T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2003-10-26T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2003-10-26T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2003-04-06T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2003-04-06T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2003-04-06T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2003-04-06T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2003-10-26T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2003-10-26T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2003-10-26T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-04-04T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2004-04-04T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2004-04-04T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2004-10-31T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2004-10-31T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2004-04-04T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2004-04-04T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2004-04-04T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2004-04-04T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2004-10-31T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2004-10-31T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2004-10-31T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-04-03T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2005-04-03T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2005-04-03T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2005-10-30T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2005-10-30T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2005-04-03T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2005-04-03T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2005-04-03T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2005-04-03T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2005-10-30T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2005-10-30T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2005-10-30T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-04-02T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2006-04-02T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2006-04-02T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2006-10-29T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2006-10-29T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2006-04-02T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2006-04-02T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2006-04-02T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2006-04-02T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2006-10-29T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2006-10-29T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2006-10-29T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-11T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2007-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2007-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2007-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2007-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2007-03-11T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2007-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2007-03-11T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2007-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2007-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2007-11-04T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2007-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-09T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2008-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2008-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2008-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2008-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2008-03-09T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2008-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2008-03-09T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2008-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2008-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2008-11-02T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2008-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-08T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2009-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2009-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2009-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2009-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2009-03-08T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2009-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2009-03-08T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2009-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2009-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2009-11-01T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2009-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-14T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2010-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2010-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2010-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2010-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2010-03-14T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2010-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2010-03-14T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2010-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2010-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2010-11-07T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2010-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-13T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2011-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2011-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2011-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2011-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2011-03-13T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2011-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2011-03-13T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2011-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2011-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2011-11-06T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2011-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-11T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2012-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2012-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2012-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2012-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2012-03-11T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2012-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2012-03-11T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2012-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2012-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2012-11-04T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2012-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-10T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2013-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2013-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2013-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2013-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2013-03-10T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2013-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2013-03-10T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2013-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2013-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2013-11-03T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2013-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-09T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2014-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2014-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2014-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2014-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2014-03-09T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2014-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2014-03-09T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2014-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2014-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2014-11-02T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2014-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-08T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2015-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2015-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2015-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2015-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2015-03-08T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2015-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2015-03-08T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2015-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2015-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2015-11-01T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2015-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-13T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2016-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2016-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2016-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2016-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2016-03-13T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2016-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2016-03-13T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2016-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2016-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2016-11-06T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2016-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-12T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2017-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2017-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2017-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2017-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2017-03-12T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2017-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2017-03-12T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2017-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2017-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2017-11-05T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2017-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-11T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2018-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2018-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2018-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2018-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2018-03-11T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2018-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2018-03-11T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2018-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2018-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2018-11-04T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2018-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-10T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2019-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2019-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2019-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2019-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2019-03-10T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2019-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2019-03-10T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2019-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2019-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2019-11-03T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2019-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-08T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2020-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2020-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2020-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2020-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2020-03-08T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2020-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2020-03-08T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2020-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2020-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2020-11-01T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2020-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-14T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2021-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2021-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2021-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2021-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2021-03-14T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2021-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2021-03-14T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2021-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2021-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2021-11-07T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2021-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-13T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2022-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2022-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2022-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2022-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2022-03-13T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2022-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2022-03-13T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2022-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2022-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2022-11-06T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2022-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-12T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2023-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2023-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2023-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2023-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2023-03-12T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2023-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2023-03-12T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2023-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2023-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2023-11-05T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2023-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-10T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2024-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2024-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2024-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2024-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2024-03-10T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2024-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2024-03-10T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2024-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2024-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2024-11-03T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2024-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-09T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2025-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2025-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2025-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2025-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2025-03-09T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2025-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2025-03-09T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2025-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2025-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2025-11-02T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2025-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-08T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2026-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2026-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2026-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2026-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2026-03-08T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2026-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2026-03-08T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2026-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2026-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2026-11-01T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2026-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-14T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2027-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2027-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2027-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2027-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2027-03-14T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2027-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2027-03-14T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2027-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2027-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2027-11-07T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2027-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-12T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2028-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2028-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2028-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2028-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2028-03-12T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2028-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2028-03-12T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2028-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2028-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2028-11-05T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2028-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-11T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2029-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2029-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2029-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2029-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2029-03-11T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2029-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2029-03-11T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2029-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2029-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2029-11-04T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2029-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-10T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2030-03-10T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2030-03-10T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2030-11-03T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2030-11-03T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2030-03-10T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2030-03-10T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2030-03-10T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2030-03-10T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2030-11-03T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2030-11-03T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2030-11-03T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-09T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2031-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2031-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2031-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2031-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2031-03-09T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2031-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2031-03-09T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2031-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2031-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2031-11-02T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2031-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-14T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2032-03-14T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2032-03-14T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2032-11-07T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2032-11-07T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2032-03-14T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2032-03-14T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2032-03-14T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2032-03-14T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2032-11-07T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2032-11-07T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2032-11-07T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-13T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2033-03-13T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2033-03-13T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2033-11-06T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2033-11-06T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2033-03-13T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2033-03-13T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2033-03-13T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2033-03-13T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2033-11-06T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2033-11-06T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2033-11-06T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-12T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2034-03-12T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2034-03-12T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2034-11-05T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2034-11-05T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2034-03-12T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2034-03-12T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2034-03-12T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2034-03-12T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2034-11-05T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2034-11-05T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2034-11-05T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-11T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2035-03-11T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2035-03-11T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2035-11-04T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2035-11-04T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2035-03-11T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2035-03-11T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2035-03-11T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2035-03-11T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2035-11-04T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2035-11-04T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2035-11-04T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-09T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2036-03-09T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2036-03-09T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2036-11-02T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2036-11-02T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2036-03-09T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2036-03-09T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2036-03-09T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2036-03-09T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2036-11-02T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2036-11-02T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2036-11-02T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-08T09:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2037-03-08T09:59:59+00:00 should be 01:59:59 PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "03:00:00", "2037-03-08T10:00:00+00:00 should be 03:00:00 PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:59:59", "2037-11-01T08:59:59+00:00 should be 01:59:59 PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("PST8PDT").format("HH:mm:ss"), "01:00:00", "2037-11-01T09:00:00+00:00 should be 01:00:00 PST"); - - t.equal(moment("2037-03-08T09:59:59+00:00").tz("PST8PDT").zone(), 480, "2037-03-08T09:59:59+00:00 should be 480 minutes offset in PST"); - t.equal(moment("2037-03-08T10:00:00+00:00").tz("PST8PDT").zone(), 420, "2037-03-08T10:00:00+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T08:59:59+00:00").tz("PST8PDT").zone(), 420, "2037-11-01T08:59:59+00:00 should be 420 minutes offset in PDT"); - t.equal(moment("2037-11-01T09:00:00+00:00").tz("PST8PDT").zone(), 480, "2037-11-01T09:00:00+00:00 should be 480 minutes offset in PST"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/wet.js b/tests/wet.js deleted file mode 100644 index ac946752..00000000 --- a/tests/wet.js +++ /dev/null @@ -1,858 +0,0 @@ -var moment = require("../index"); - -exports["WET"] = { - - "1977" : function (t) { - t.equal(moment("1977-04-03T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1977-04-03T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1977-04-03T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1977-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1977-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1977-04-03T00:59:59+00:00").tz("WET").zone(), 0, "1977-04-03T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1977-04-03T01:00:00+00:00").tz("WET").zone(), -60, "1977-04-03T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-25T00:59:59+00:00").tz("WET").zone(), -60, "1977-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1977-09-25T01:00:00+00:00").tz("WET").zone(), 0, "1977-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1978" : function (t) { - t.equal(moment("1978-04-02T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1978-04-02T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1978-04-02T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1978-10-01T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1978-10-01T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1978-04-02T00:59:59+00:00").tz("WET").zone(), 0, "1978-04-02T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1978-04-02T01:00:00+00:00").tz("WET").zone(), -60, "1978-04-02T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-10-01T00:59:59+00:00").tz("WET").zone(), -60, "1978-10-01T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1978-10-01T01:00:00+00:00").tz("WET").zone(), 0, "1978-10-01T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1979" : function (t) { - t.equal(moment("1979-04-01T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1979-04-01T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1979-04-01T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1979-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1979-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1979-04-01T00:59:59+00:00").tz("WET").zone(), 0, "1979-04-01T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1979-04-01T01:00:00+00:00").tz("WET").zone(), -60, "1979-04-01T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1979-09-30T00:59:59+00:00").tz("WET").zone(), -60, "1979-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1979-09-30T01:00:00+00:00").tz("WET").zone(), 0, "1979-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1980" : function (t) { - t.equal(moment("1980-04-06T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1980-04-06T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1980-04-06T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1980-09-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1980-09-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1980-04-06T00:59:59+00:00").tz("WET").zone(), 0, "1980-04-06T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1980-04-06T01:00:00+00:00").tz("WET").zone(), -60, "1980-04-06T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-09-28T00:59:59+00:00").tz("WET").zone(), -60, "1980-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1980-09-28T01:00:00+00:00").tz("WET").zone(), 0, "1980-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1981" : function (t) { - t.equal(moment("1981-03-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1981-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1981-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1981-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1981-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1981-03-29T00:59:59+00:00").tz("WET").zone(), 0, "1981-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1981-03-29T01:00:00+00:00").tz("WET").zone(), -60, "1981-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T00:59:59+00:00").tz("WET").zone(), -60, "1981-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1981-09-27T01:00:00+00:00").tz("WET").zone(), 0, "1981-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1982" : function (t) { - t.equal(moment("1982-03-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1982-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1982-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1982-09-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1982-09-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1982-03-28T00:59:59+00:00").tz("WET").zone(), 0, "1982-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1982-03-28T01:00:00+00:00").tz("WET").zone(), -60, "1982-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T00:59:59+00:00").tz("WET").zone(), -60, "1982-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1982-09-26T01:00:00+00:00").tz("WET").zone(), 0, "1982-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1983" : function (t) { - t.equal(moment("1983-03-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1983-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1983-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1983-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1983-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1983-03-27T00:59:59+00:00").tz("WET").zone(), 0, "1983-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1983-03-27T01:00:00+00:00").tz("WET").zone(), -60, "1983-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T00:59:59+00:00").tz("WET").zone(), -60, "1983-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1983-09-25T01:00:00+00:00").tz("WET").zone(), 0, "1983-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1984" : function (t) { - t.equal(moment("1984-03-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1984-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1984-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1984-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1984-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1984-03-25T00:59:59+00:00").tz("WET").zone(), 0, "1984-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1984-03-25T01:00:00+00:00").tz("WET").zone(), -60, "1984-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T00:59:59+00:00").tz("WET").zone(), -60, "1984-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1984-09-30T01:00:00+00:00").tz("WET").zone(), 0, "1984-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1985" : function (t) { - t.equal(moment("1985-03-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1985-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1985-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1985-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1985-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1985-03-31T00:59:59+00:00").tz("WET").zone(), 0, "1985-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1985-03-31T01:00:00+00:00").tz("WET").zone(), -60, "1985-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T00:59:59+00:00").tz("WET").zone(), -60, "1985-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1985-09-29T01:00:00+00:00").tz("WET").zone(), 0, "1985-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1986" : function (t) { - t.equal(moment("1986-03-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1986-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1986-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1986-09-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1986-09-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1986-03-30T00:59:59+00:00").tz("WET").zone(), 0, "1986-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1986-03-30T01:00:00+00:00").tz("WET").zone(), -60, "1986-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T00:59:59+00:00").tz("WET").zone(), -60, "1986-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1986-09-28T01:00:00+00:00").tz("WET").zone(), 0, "1986-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1987" : function (t) { - t.equal(moment("1987-03-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1987-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1987-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1987-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1987-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1987-03-29T00:59:59+00:00").tz("WET").zone(), 0, "1987-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1987-03-29T01:00:00+00:00").tz("WET").zone(), -60, "1987-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T00:59:59+00:00").tz("WET").zone(), -60, "1987-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1987-09-27T01:00:00+00:00").tz("WET").zone(), 0, "1987-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1988" : function (t) { - t.equal(moment("1988-03-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1988-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1988-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1988-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1988-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1988-03-27T00:59:59+00:00").tz("WET").zone(), 0, "1988-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1988-03-27T01:00:00+00:00").tz("WET").zone(), -60, "1988-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T00:59:59+00:00").tz("WET").zone(), -60, "1988-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1988-09-25T01:00:00+00:00").tz("WET").zone(), 0, "1988-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1989" : function (t) { - t.equal(moment("1989-03-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1989-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1989-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1989-09-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1989-09-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1989-03-26T00:59:59+00:00").tz("WET").zone(), 0, "1989-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1989-03-26T01:00:00+00:00").tz("WET").zone(), -60, "1989-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T00:59:59+00:00").tz("WET").zone(), -60, "1989-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1989-09-24T01:00:00+00:00").tz("WET").zone(), 0, "1989-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1990" : function (t) { - t.equal(moment("1990-03-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1990-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1990-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1990-09-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1990-09-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1990-03-25T00:59:59+00:00").tz("WET").zone(), 0, "1990-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1990-03-25T01:00:00+00:00").tz("WET").zone(), -60, "1990-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T00:59:59+00:00").tz("WET").zone(), -60, "1990-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1990-09-30T01:00:00+00:00").tz("WET").zone(), 0, "1990-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1991" : function (t) { - t.equal(moment("1991-03-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1991-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1991-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1991-09-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1991-09-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1991-03-31T00:59:59+00:00").tz("WET").zone(), 0, "1991-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1991-03-31T01:00:00+00:00").tz("WET").zone(), -60, "1991-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T00:59:59+00:00").tz("WET").zone(), -60, "1991-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1991-09-29T01:00:00+00:00").tz("WET").zone(), 0, "1991-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1992" : function (t) { - t.equal(moment("1992-03-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1992-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1992-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1992-09-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1992-09-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1992-03-29T00:59:59+00:00").tz("WET").zone(), 0, "1992-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1992-03-29T01:00:00+00:00").tz("WET").zone(), -60, "1992-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T00:59:59+00:00").tz("WET").zone(), -60, "1992-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1992-09-27T01:00:00+00:00").tz("WET").zone(), 0, "1992-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1993" : function (t) { - t.equal(moment("1993-03-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1993-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1993-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1993-09-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1993-09-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1993-03-28T00:59:59+00:00").tz("WET").zone(), 0, "1993-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1993-03-28T01:00:00+00:00").tz("WET").zone(), -60, "1993-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1993-09-26T00:59:59+00:00").tz("WET").zone(), -60, "1993-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1993-09-26T01:00:00+00:00").tz("WET").zone(), 0, "1993-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1994" : function (t) { - t.equal(moment("1994-03-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1994-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1994-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1994-09-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1994-09-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1994-03-27T00:59:59+00:00").tz("WET").zone(), 0, "1994-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1994-03-27T01:00:00+00:00").tz("WET").zone(), -60, "1994-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1994-09-25T00:59:59+00:00").tz("WET").zone(), -60, "1994-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1994-09-25T01:00:00+00:00").tz("WET").zone(), 0, "1994-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1995" : function (t) { - t.equal(moment("1995-03-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1995-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1995-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1995-09-24T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1995-09-24T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1995-03-26T00:59:59+00:00").tz("WET").zone(), 0, "1995-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1995-03-26T01:00:00+00:00").tz("WET").zone(), -60, "1995-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1995-09-24T00:59:59+00:00").tz("WET").zone(), -60, "1995-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1995-09-24T01:00:00+00:00").tz("WET").zone(), 0, "1995-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1996" : function (t) { - t.equal(moment("1996-03-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1996-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1996-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1996-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1996-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1996-03-31T00:59:59+00:00").tz("WET").zone(), 0, "1996-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1996-03-31T01:00:00+00:00").tz("WET").zone(), -60, "1996-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T00:59:59+00:00").tz("WET").zone(), -60, "1996-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1996-10-27T01:00:00+00:00").tz("WET").zone(), 0, "1996-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1997" : function (t) { - t.equal(moment("1997-03-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1997-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1997-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1997-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1997-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1997-03-30T00:59:59+00:00").tz("WET").zone(), 0, "1997-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1997-03-30T01:00:00+00:00").tz("WET").zone(), -60, "1997-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T00:59:59+00:00").tz("WET").zone(), -60, "1997-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1997-10-26T01:00:00+00:00").tz("WET").zone(), 0, "1997-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1998" : function (t) { - t.equal(moment("1998-03-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1998-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1998-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1998-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1998-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1998-03-29T00:59:59+00:00").tz("WET").zone(), 0, "1998-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1998-03-29T01:00:00+00:00").tz("WET").zone(), -60, "1998-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T00:59:59+00:00").tz("WET").zone(), -60, "1998-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1998-10-25T01:00:00+00:00").tz("WET").zone(), 0, "1998-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "1999" : function (t) { - t.equal(moment("1999-03-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "1999-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "1999-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "1999-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "1999-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("1999-03-28T00:59:59+00:00").tz("WET").zone(), 0, "1999-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("1999-03-28T01:00:00+00:00").tz("WET").zone(), -60, "1999-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T00:59:59+00:00").tz("WET").zone(), -60, "1999-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("1999-10-31T01:00:00+00:00").tz("WET").zone(), 0, "1999-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2000" : function (t) { - t.equal(moment("2000-03-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2000-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2000-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2000-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2000-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2000-03-26T00:59:59+00:00").tz("WET").zone(), 0, "2000-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2000-03-26T01:00:00+00:00").tz("WET").zone(), -60, "2000-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T00:59:59+00:00").tz("WET").zone(), -60, "2000-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2000-10-29T01:00:00+00:00").tz("WET").zone(), 0, "2000-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2001" : function (t) { - t.equal(moment("2001-03-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2001-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2001-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2001-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2001-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2001-03-25T00:59:59+00:00").tz("WET").zone(), 0, "2001-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2001-03-25T01:00:00+00:00").tz("WET").zone(), -60, "2001-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T00:59:59+00:00").tz("WET").zone(), -60, "2001-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2001-10-28T01:00:00+00:00").tz("WET").zone(), 0, "2001-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2002" : function (t) { - t.equal(moment("2002-03-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2002-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2002-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2002-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2002-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2002-03-31T00:59:59+00:00").tz("WET").zone(), 0, "2002-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2002-03-31T01:00:00+00:00").tz("WET").zone(), -60, "2002-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T00:59:59+00:00").tz("WET").zone(), -60, "2002-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2002-10-27T01:00:00+00:00").tz("WET").zone(), 0, "2002-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2003" : function (t) { - t.equal(moment("2003-03-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2003-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2003-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2003-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2003-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2003-03-30T00:59:59+00:00").tz("WET").zone(), 0, "2003-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2003-03-30T01:00:00+00:00").tz("WET").zone(), -60, "2003-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T00:59:59+00:00").tz("WET").zone(), -60, "2003-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2003-10-26T01:00:00+00:00").tz("WET").zone(), 0, "2003-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2004" : function (t) { - t.equal(moment("2004-03-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2004-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2004-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2004-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2004-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2004-03-28T00:59:59+00:00").tz("WET").zone(), 0, "2004-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2004-03-28T01:00:00+00:00").tz("WET").zone(), -60, "2004-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T00:59:59+00:00").tz("WET").zone(), -60, "2004-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2004-10-31T01:00:00+00:00").tz("WET").zone(), 0, "2004-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2005" : function (t) { - t.equal(moment("2005-03-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2005-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2005-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2005-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2005-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2005-03-27T00:59:59+00:00").tz("WET").zone(), 0, "2005-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2005-03-27T01:00:00+00:00").tz("WET").zone(), -60, "2005-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T00:59:59+00:00").tz("WET").zone(), -60, "2005-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2005-10-30T01:00:00+00:00").tz("WET").zone(), 0, "2005-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2006" : function (t) { - t.equal(moment("2006-03-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2006-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2006-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2006-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2006-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2006-03-26T00:59:59+00:00").tz("WET").zone(), 0, "2006-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2006-03-26T01:00:00+00:00").tz("WET").zone(), -60, "2006-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T00:59:59+00:00").tz("WET").zone(), -60, "2006-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2006-10-29T01:00:00+00:00").tz("WET").zone(), 0, "2006-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2007" : function (t) { - t.equal(moment("2007-03-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2007-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2007-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2007-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2007-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2007-03-25T00:59:59+00:00").tz("WET").zone(), 0, "2007-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2007-03-25T01:00:00+00:00").tz("WET").zone(), -60, "2007-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T00:59:59+00:00").tz("WET").zone(), -60, "2007-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2007-10-28T01:00:00+00:00").tz("WET").zone(), 0, "2007-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2008" : function (t) { - t.equal(moment("2008-03-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2008-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2008-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2008-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2008-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2008-03-30T00:59:59+00:00").tz("WET").zone(), 0, "2008-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2008-03-30T01:00:00+00:00").tz("WET").zone(), -60, "2008-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T00:59:59+00:00").tz("WET").zone(), -60, "2008-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2008-10-26T01:00:00+00:00").tz("WET").zone(), 0, "2008-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2009" : function (t) { - t.equal(moment("2009-03-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2009-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2009-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2009-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2009-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2009-03-29T00:59:59+00:00").tz("WET").zone(), 0, "2009-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2009-03-29T01:00:00+00:00").tz("WET").zone(), -60, "2009-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T00:59:59+00:00").tz("WET").zone(), -60, "2009-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2009-10-25T01:00:00+00:00").tz("WET").zone(), 0, "2009-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2010" : function (t) { - t.equal(moment("2010-03-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2010-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2010-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2010-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2010-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2010-03-28T00:59:59+00:00").tz("WET").zone(), 0, "2010-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2010-03-28T01:00:00+00:00").tz("WET").zone(), -60, "2010-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T00:59:59+00:00").tz("WET").zone(), -60, "2010-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2010-10-31T01:00:00+00:00").tz("WET").zone(), 0, "2010-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2011" : function (t) { - t.equal(moment("2011-03-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2011-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2011-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2011-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2011-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2011-03-27T00:59:59+00:00").tz("WET").zone(), 0, "2011-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2011-03-27T01:00:00+00:00").tz("WET").zone(), -60, "2011-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T00:59:59+00:00").tz("WET").zone(), -60, "2011-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2011-10-30T01:00:00+00:00").tz("WET").zone(), 0, "2011-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2012" : function (t) { - t.equal(moment("2012-03-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2012-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2012-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2012-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2012-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2012-03-25T00:59:59+00:00").tz("WET").zone(), 0, "2012-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2012-03-25T01:00:00+00:00").tz("WET").zone(), -60, "2012-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T00:59:59+00:00").tz("WET").zone(), -60, "2012-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2012-10-28T01:00:00+00:00").tz("WET").zone(), 0, "2012-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2013" : function (t) { - t.equal(moment("2013-03-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2013-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2013-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2013-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2013-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2013-03-31T00:59:59+00:00").tz("WET").zone(), 0, "2013-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2013-03-31T01:00:00+00:00").tz("WET").zone(), -60, "2013-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T00:59:59+00:00").tz("WET").zone(), -60, "2013-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2013-10-27T01:00:00+00:00").tz("WET").zone(), 0, "2013-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2014" : function (t) { - t.equal(moment("2014-03-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2014-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2014-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2014-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2014-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2014-03-30T00:59:59+00:00").tz("WET").zone(), 0, "2014-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2014-03-30T01:00:00+00:00").tz("WET").zone(), -60, "2014-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T00:59:59+00:00").tz("WET").zone(), -60, "2014-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2014-10-26T01:00:00+00:00").tz("WET").zone(), 0, "2014-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2015" : function (t) { - t.equal(moment("2015-03-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2015-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2015-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2015-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2015-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2015-03-29T00:59:59+00:00").tz("WET").zone(), 0, "2015-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2015-03-29T01:00:00+00:00").tz("WET").zone(), -60, "2015-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T00:59:59+00:00").tz("WET").zone(), -60, "2015-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2015-10-25T01:00:00+00:00").tz("WET").zone(), 0, "2015-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2016" : function (t) { - t.equal(moment("2016-03-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2016-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2016-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2016-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2016-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2016-03-27T00:59:59+00:00").tz("WET").zone(), 0, "2016-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2016-03-27T01:00:00+00:00").tz("WET").zone(), -60, "2016-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T00:59:59+00:00").tz("WET").zone(), -60, "2016-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2016-10-30T01:00:00+00:00").tz("WET").zone(), 0, "2016-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2017" : function (t) { - t.equal(moment("2017-03-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2017-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2017-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2017-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2017-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2017-03-26T00:59:59+00:00").tz("WET").zone(), 0, "2017-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2017-03-26T01:00:00+00:00").tz("WET").zone(), -60, "2017-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T00:59:59+00:00").tz("WET").zone(), -60, "2017-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2017-10-29T01:00:00+00:00").tz("WET").zone(), 0, "2017-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2018" : function (t) { - t.equal(moment("2018-03-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2018-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2018-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2018-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2018-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2018-03-25T00:59:59+00:00").tz("WET").zone(), 0, "2018-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2018-03-25T01:00:00+00:00").tz("WET").zone(), -60, "2018-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T00:59:59+00:00").tz("WET").zone(), -60, "2018-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2018-10-28T01:00:00+00:00").tz("WET").zone(), 0, "2018-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2019" : function (t) { - t.equal(moment("2019-03-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2019-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2019-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2019-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2019-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2019-03-31T00:59:59+00:00").tz("WET").zone(), 0, "2019-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2019-03-31T01:00:00+00:00").tz("WET").zone(), -60, "2019-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T00:59:59+00:00").tz("WET").zone(), -60, "2019-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2019-10-27T01:00:00+00:00").tz("WET").zone(), 0, "2019-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2020" : function (t) { - t.equal(moment("2020-03-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2020-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2020-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2020-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2020-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2020-03-29T00:59:59+00:00").tz("WET").zone(), 0, "2020-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2020-03-29T01:00:00+00:00").tz("WET").zone(), -60, "2020-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T00:59:59+00:00").tz("WET").zone(), -60, "2020-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2020-10-25T01:00:00+00:00").tz("WET").zone(), 0, "2020-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2021" : function (t) { - t.equal(moment("2021-03-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2021-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2021-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2021-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2021-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2021-03-28T00:59:59+00:00").tz("WET").zone(), 0, "2021-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2021-03-28T01:00:00+00:00").tz("WET").zone(), -60, "2021-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T00:59:59+00:00").tz("WET").zone(), -60, "2021-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2021-10-31T01:00:00+00:00").tz("WET").zone(), 0, "2021-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2022" : function (t) { - t.equal(moment("2022-03-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2022-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2022-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2022-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2022-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2022-03-27T00:59:59+00:00").tz("WET").zone(), 0, "2022-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2022-03-27T01:00:00+00:00").tz("WET").zone(), -60, "2022-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T00:59:59+00:00").tz("WET").zone(), -60, "2022-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2022-10-30T01:00:00+00:00").tz("WET").zone(), 0, "2022-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2023" : function (t) { - t.equal(moment("2023-03-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2023-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2023-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2023-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2023-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2023-03-26T00:59:59+00:00").tz("WET").zone(), 0, "2023-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2023-03-26T01:00:00+00:00").tz("WET").zone(), -60, "2023-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T00:59:59+00:00").tz("WET").zone(), -60, "2023-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2023-10-29T01:00:00+00:00").tz("WET").zone(), 0, "2023-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2024" : function (t) { - t.equal(moment("2024-03-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2024-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2024-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2024-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2024-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2024-03-31T00:59:59+00:00").tz("WET").zone(), 0, "2024-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2024-03-31T01:00:00+00:00").tz("WET").zone(), -60, "2024-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T00:59:59+00:00").tz("WET").zone(), -60, "2024-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2024-10-27T01:00:00+00:00").tz("WET").zone(), 0, "2024-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2025" : function (t) { - t.equal(moment("2025-03-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2025-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2025-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2025-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2025-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2025-03-30T00:59:59+00:00").tz("WET").zone(), 0, "2025-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2025-03-30T01:00:00+00:00").tz("WET").zone(), -60, "2025-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T00:59:59+00:00").tz("WET").zone(), -60, "2025-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2025-10-26T01:00:00+00:00").tz("WET").zone(), 0, "2025-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2026" : function (t) { - t.equal(moment("2026-03-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2026-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2026-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2026-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2026-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2026-03-29T00:59:59+00:00").tz("WET").zone(), 0, "2026-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2026-03-29T01:00:00+00:00").tz("WET").zone(), -60, "2026-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T00:59:59+00:00").tz("WET").zone(), -60, "2026-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2026-10-25T01:00:00+00:00").tz("WET").zone(), 0, "2026-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2027" : function (t) { - t.equal(moment("2027-03-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2027-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2027-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2027-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2027-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2027-03-28T00:59:59+00:00").tz("WET").zone(), 0, "2027-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2027-03-28T01:00:00+00:00").tz("WET").zone(), -60, "2027-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T00:59:59+00:00").tz("WET").zone(), -60, "2027-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2027-10-31T01:00:00+00:00").tz("WET").zone(), 0, "2027-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2028" : function (t) { - t.equal(moment("2028-03-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2028-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2028-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2028-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2028-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2028-03-26T00:59:59+00:00").tz("WET").zone(), 0, "2028-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2028-03-26T01:00:00+00:00").tz("WET").zone(), -60, "2028-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T00:59:59+00:00").tz("WET").zone(), -60, "2028-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2028-10-29T01:00:00+00:00").tz("WET").zone(), 0, "2028-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2029" : function (t) { - t.equal(moment("2029-03-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2029-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2029-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2029-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2029-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2029-03-25T00:59:59+00:00").tz("WET").zone(), 0, "2029-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2029-03-25T01:00:00+00:00").tz("WET").zone(), -60, "2029-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T00:59:59+00:00").tz("WET").zone(), -60, "2029-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2029-10-28T01:00:00+00:00").tz("WET").zone(), 0, "2029-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2030" : function (t) { - t.equal(moment("2030-03-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2030-03-31T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2030-03-31T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2030-10-27T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2030-10-27T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2030-03-31T00:59:59+00:00").tz("WET").zone(), 0, "2030-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2030-03-31T01:00:00+00:00").tz("WET").zone(), -60, "2030-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T00:59:59+00:00").tz("WET").zone(), -60, "2030-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2030-10-27T01:00:00+00:00").tz("WET").zone(), 0, "2030-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2031" : function (t) { - t.equal(moment("2031-03-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2031-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2031-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2031-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2031-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2031-03-30T00:59:59+00:00").tz("WET").zone(), 0, "2031-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2031-03-30T01:00:00+00:00").tz("WET").zone(), -60, "2031-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T00:59:59+00:00").tz("WET").zone(), -60, "2031-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2031-10-26T01:00:00+00:00").tz("WET").zone(), 0, "2031-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2032" : function (t) { - t.equal(moment("2032-03-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2032-03-28T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2032-03-28T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2032-10-31T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2032-10-31T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2032-03-28T00:59:59+00:00").tz("WET").zone(), 0, "2032-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2032-03-28T01:00:00+00:00").tz("WET").zone(), -60, "2032-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T00:59:59+00:00").tz("WET").zone(), -60, "2032-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2032-10-31T01:00:00+00:00").tz("WET").zone(), 0, "2032-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2033" : function (t) { - t.equal(moment("2033-03-27T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2033-03-27T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2033-03-27T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2033-10-30T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2033-10-30T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2033-03-27T00:59:59+00:00").tz("WET").zone(), 0, "2033-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2033-03-27T01:00:00+00:00").tz("WET").zone(), -60, "2033-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T00:59:59+00:00").tz("WET").zone(), -60, "2033-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2033-10-30T01:00:00+00:00").tz("WET").zone(), 0, "2033-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2034" : function (t) { - t.equal(moment("2034-03-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2034-03-26T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2034-03-26T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2034-10-29T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2034-10-29T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2034-03-26T00:59:59+00:00").tz("WET").zone(), 0, "2034-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2034-03-26T01:00:00+00:00").tz("WET").zone(), -60, "2034-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T00:59:59+00:00").tz("WET").zone(), -60, "2034-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2034-10-29T01:00:00+00:00").tz("WET").zone(), 0, "2034-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2035" : function (t) { - t.equal(moment("2035-03-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2035-03-25T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2035-03-25T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2035-10-28T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2035-10-28T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2035-03-25T00:59:59+00:00").tz("WET").zone(), 0, "2035-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2035-03-25T01:00:00+00:00").tz("WET").zone(), -60, "2035-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T00:59:59+00:00").tz("WET").zone(), -60, "2035-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2035-10-28T01:00:00+00:00").tz("WET").zone(), 0, "2035-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2036" : function (t) { - t.equal(moment("2036-03-30T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2036-03-30T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2036-03-30T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2036-10-26T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2036-10-26T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2036-03-30T00:59:59+00:00").tz("WET").zone(), 0, "2036-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2036-03-30T01:00:00+00:00").tz("WET").zone(), -60, "2036-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T00:59:59+00:00").tz("WET").zone(), -60, "2036-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2036-10-26T01:00:00+00:00").tz("WET").zone(), 0, "2036-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - }, - - "2037" : function (t) { - t.equal(moment("2037-03-29T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "00:59:59", "2037-03-29T00:59:59+00:00 should be 00:59:59 WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "02:00:00", "2037-03-29T01:00:00+00:00 should be 02:00:00 WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("WET").format("HH:mm:ss"), "01:59:59", "2037-10-25T00:59:59+00:00 should be 01:59:59 WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("WET").format("HH:mm:ss"), "01:00:00", "2037-10-25T01:00:00+00:00 should be 01:00:00 WET"); - - t.equal(moment("2037-03-29T00:59:59+00:00").tz("WET").zone(), 0, "2037-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); - t.equal(moment("2037-03-29T01:00:00+00:00").tz("WET").zone(), -60, "2037-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T00:59:59+00:00").tz("WET").zone(), -60, "2037-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); - t.equal(moment("2037-10-25T01:00:00+00:00").tz("WET").zone(), 0, "2037-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); - - t.done(); - } -}; \ No newline at end of file diff --git a/tests/zones/africa/abidjan.js b/tests/zones/africa/abidjan.js new file mode 100644 index 00000000..a2dc0d80 --- /dev/null +++ b/tests/zones/africa/abidjan.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Abidjan"] = { + "1912" : helpers.makeTestYear("Africa/Abidjan", [ + ["1912-01-01T00:16:07+00:00", "23:59:59", "LMT", 968 / 60], + ["1912-01-01T00:16:08+00:00", "00:16:08", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/accra.js b/tests/zones/africa/accra.js new file mode 100644 index 00000000..958abc64 --- /dev/null +++ b/tests/zones/africa/accra.js @@ -0,0 +1,59 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Accra"] = { + "1918" : helpers.makeTestYear("Africa/Accra", [ + ["1918-01-01T00:00:51+00:00", "23:59:59", "LMT", 52 / 60], + ["1918-01-01T00:00:52+00:00", "00:00:52", "GMT", 0] + ]), + + "1936" : helpers.makeTestYear("Africa/Accra", [ + ["1936-08-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1936-09-01T00:00:00+00:00", "00:20:00", "GHST", -20], + ["1936-12-30T23:39:59+00:00", "23:59:59", "GHST", -20], + ["1936-12-30T23:40:00+00:00", "23:40:00", "GMT", 0] + ]), + + "1937" : helpers.makeTestYear("Africa/Accra", [ + ["1937-08-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1937-09-01T00:00:00+00:00", "00:20:00", "GHST", -20], + ["1937-12-30T23:39:59+00:00", "23:59:59", "GHST", -20], + ["1937-12-30T23:40:00+00:00", "23:40:00", "GMT", 0] + ]), + + "1938" : helpers.makeTestYear("Africa/Accra", [ + ["1938-08-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1938-09-01T00:00:00+00:00", "00:20:00", "GHST", -20], + ["1938-12-30T23:39:59+00:00", "23:59:59", "GHST", -20], + ["1938-12-30T23:40:00+00:00", "23:40:00", "GMT", 0] + ]), + + "1939" : helpers.makeTestYear("Africa/Accra", [ + ["1939-08-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1939-09-01T00:00:00+00:00", "00:20:00", "GHST", -20], + ["1939-12-30T23:39:59+00:00", "23:59:59", "GHST", -20], + ["1939-12-30T23:40:00+00:00", "23:40:00", "GMT", 0] + ]), + + "1940" : helpers.makeTestYear("Africa/Accra", [ + ["1940-08-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1940-09-01T00:00:00+00:00", "00:20:00", "GHST", -20], + ["1940-12-30T23:39:59+00:00", "23:59:59", "GHST", -20], + ["1940-12-30T23:40:00+00:00", "23:40:00", "GMT", 0] + ]), + + "1941" : helpers.makeTestYear("Africa/Accra", [ + ["1941-08-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1941-09-01T00:00:00+00:00", "00:20:00", "GHST", -20], + ["1941-12-30T23:39:59+00:00", "23:59:59", "GHST", -20], + ["1941-12-30T23:40:00+00:00", "23:40:00", "GMT", 0] + ]), + + "1942" : helpers.makeTestYear("Africa/Accra", [ + ["1942-08-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1942-09-01T00:00:00+00:00", "00:20:00", "GHST", -20], + ["1942-12-30T23:39:59+00:00", "23:59:59", "GHST", -20], + ["1942-12-30T23:40:00+00:00", "23:40:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/addis_ababa.js b/tests/zones/africa/addis_ababa.js new file mode 100644 index 00000000..89df3be8 --- /dev/null +++ b/tests/zones/africa/addis_ababa.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Addis_Ababa"] = { + "1936" : helpers.makeTestYear("Africa/Addis_Ababa", [ + ["1936-05-04T21:24:39+00:00", "23:59:59", "ADMT", -9320 / 60], + ["1936-05-04T21:24:40+00:00", "00:24:40", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/algiers.js b/tests/zones/africa/algiers.js new file mode 100644 index 00000000..144f6169 --- /dev/null +++ b/tests/zones/africa/algiers.js @@ -0,0 +1,131 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Algiers"] = { + "1911" : helpers.makeTestYear("Africa/Algiers", [ + ["1911-03-10T23:50:38+00:00", "23:59:59", "PMT", -561 / 60], + ["1911-03-10T23:50:39+00:00", "23:50:39", "WET", 0] + ]), + + "1916" : helpers.makeTestYear("Africa/Algiers", [ + ["1916-06-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1916-06-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1916-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1916-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1917" : helpers.makeTestYear("Africa/Algiers", [ + ["1917-03-24T22:59:59+00:00", "22:59:59", "WET", 0], + ["1917-03-24T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1917-10-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1917-10-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1918" : helpers.makeTestYear("Africa/Algiers", [ + ["1918-03-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1918-03-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1918-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1918-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1919" : helpers.makeTestYear("Africa/Algiers", [ + ["1919-03-01T22:59:59+00:00", "22:59:59", "WET", 0], + ["1919-03-01T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1919-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1919-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1920" : helpers.makeTestYear("Africa/Algiers", [ + ["1920-02-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1920-02-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1920-10-23T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1920-10-23T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1921" : helpers.makeTestYear("Africa/Algiers", [ + ["1921-03-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1921-03-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1921-06-21T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1921-06-21T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1939" : helpers.makeTestYear("Africa/Algiers", [ + ["1939-09-11T22:59:59+00:00", "22:59:59", "WET", 0], + ["1939-09-11T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1939-11-18T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1939-11-19T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1940" : helpers.makeTestYear("Africa/Algiers", [ + ["1940-02-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["1940-02-25T02:00:00+00:00", "03:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Africa/Algiers", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-07T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1944-10-08T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Africa/Algiers", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-09-15T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1945-09-15T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Africa/Algiers", [ + ["1946-10-06T22:59:59+00:00", "23:59:59", "CET", -60], + ["1946-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1956" : helpers.makeTestYear("Africa/Algiers", [ + ["1956-01-28T23:59:59+00:00", "23:59:59", "WET", 0], + ["1956-01-29T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1963" : helpers.makeTestYear("Africa/Algiers", [ + ["1963-04-13T22:59:59+00:00", "23:59:59", "CET", -60], + ["1963-04-13T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1971" : helpers.makeTestYear("Africa/Algiers", [ + ["1971-04-25T22:59:59+00:00", "22:59:59", "WET", 0], + ["1971-04-25T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1971-09-26T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1971-09-26T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1977" : helpers.makeTestYear("Africa/Algiers", [ + ["1977-05-05T23:59:59+00:00", "23:59:59", "WET", 0], + ["1977-05-06T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1977-10-20T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1977-10-20T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Africa/Algiers", [ + ["1978-03-23T23:59:59+00:00", "00:59:59", "CET", -60], + ["1978-03-24T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1978-09-22T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1978-09-22T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Africa/Algiers", [ + ["1979-10-25T22:59:59+00:00", "23:59:59", "CET", -60], + ["1979-10-25T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1980" : helpers.makeTestYear("Africa/Algiers", [ + ["1980-04-24T23:59:59+00:00", "23:59:59", "WET", 0], + ["1980-04-25T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1980-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1980-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1981" : helpers.makeTestYear("Africa/Algiers", [ + ["1981-04-30T23:59:59+00:00", "23:59:59", "WET", 0], + ["1981-05-01T00:00:00+00:00", "01:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/asmara.js b/tests/zones/africa/asmara.js new file mode 100644 index 00000000..b1d50b62 --- /dev/null +++ b/tests/zones/africa/asmara.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Asmara"] = { + "1936" : helpers.makeTestYear("Africa/Asmara", [ + ["1936-05-04T21:24:39+00:00", "23:59:59", "ADMT", -9320 / 60], + ["1936-05-04T21:24:40+00:00", "00:24:40", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/bamako.js b/tests/zones/africa/bamako.js new file mode 100644 index 00000000..33b2122c --- /dev/null +++ b/tests/zones/africa/bamako.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Bamako"] = { + "1912" : helpers.makeTestYear("Africa/Bamako", [ + ["1912-01-01T00:31:59+00:00", "23:59:59", "LMT", 32], + ["1912-01-01T00:32:00+00:00", "00:32:00", "GMT", 0] + ]), + + "1934" : helpers.makeTestYear("Africa/Bamako", [ + ["1934-02-25T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1934-02-26T00:00:00+00:00", "23:00:00", "WAT", 60] + ]), + + "1960" : helpers.makeTestYear("Africa/Bamako", [ + ["1960-06-20T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1960-06-20T01:00:00+00:00", "01:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/bangui.js b/tests/zones/africa/bangui.js new file mode 100644 index 00000000..b0df437c --- /dev/null +++ b/tests/zones/africa/bangui.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Bangui"] = { + "1911" : helpers.makeTestYear("Africa/Bangui", [ + ["1911-12-31T22:45:39+00:00", "23:59:59", "LMT", -4460 / 60], + ["1911-12-31T22:45:40+00:00", "23:45:40", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/banjul.js b/tests/zones/africa/banjul.js new file mode 100644 index 00000000..f665a68f --- /dev/null +++ b/tests/zones/africa/banjul.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Banjul"] = { + "1912" : helpers.makeTestYear("Africa/Banjul", [ + ["1912-01-01T01:06:35+00:00", "23:59:59", "LMT", 3996 / 60], + ["1912-01-01T01:06:36+00:00", "00:00:00", "BMT", 3996 / 60] + ]), + + "1935" : helpers.makeTestYear("Africa/Banjul", [ + ["1935-01-01T01:06:35+00:00", "23:59:59", "BMT", 3996 / 60], + ["1935-01-01T01:06:36+00:00", "00:06:36", "WAT", 60] + ]), + + "1964" : helpers.makeTestYear("Africa/Banjul", [ + ["1964-01-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1964-01-01T01:00:00+00:00", "01:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/bissau.js b/tests/zones/africa/bissau.js new file mode 100644 index 00000000..7595ca0e --- /dev/null +++ b/tests/zones/africa/bissau.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Bissau"] = { + "1911" : helpers.makeTestYear("Africa/Bissau", [ + ["1911-05-26T01:02:19+00:00", "23:59:59", "LMT", 3740 / 60], + ["1911-05-26T01:02:20+00:00", "00:02:20", "WAT", 60] + ]), + + "1975" : helpers.makeTestYear("Africa/Bissau", [ + ["1975-01-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1975-01-01T01:00:00+00:00", "01:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/blantyre.js b/tests/zones/africa/blantyre.js new file mode 100644 index 00000000..a3c14900 --- /dev/null +++ b/tests/zones/africa/blantyre.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Blantyre"] = { + "1903" : helpers.makeTestYear("Africa/Blantyre", [ + ["1903-02-28T21:39:59+00:00", "23:59:59", "LMT", -140], + ["1903-02-28T21:40:00+00:00", "23:40:00", "CAT", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/brazzaville.js b/tests/zones/africa/brazzaville.js new file mode 100644 index 00000000..13ce437e --- /dev/null +++ b/tests/zones/africa/brazzaville.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Brazzaville"] = { + "1911" : helpers.makeTestYear("Africa/Brazzaville", [ + ["1911-12-31T22:58:51+00:00", "23:59:59", "LMT", -3668 / 60], + ["1911-12-31T22:58:52+00:00", "23:58:52", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/bujumbura.js b/tests/zones/africa/bujumbura.js new file mode 100644 index 00000000..14050dc1 --- /dev/null +++ b/tests/zones/africa/bujumbura.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Bujumbura"] = { + +}; \ No newline at end of file diff --git a/tests/zones/africa/cairo.js b/tests/zones/africa/cairo.js new file mode 100644 index 00000000..d7af7951 --- /dev/null +++ b/tests/zones/africa/cairo.js @@ -0,0 +1,429 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Cairo"] = { + "1940" : helpers.makeTestYear("Africa/Cairo", [ + ["1940-07-14T21:59:59+00:00", "23:59:59", "EET", -120], + ["1940-07-14T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1940-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1940-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1941" : helpers.makeTestYear("Africa/Cairo", [ + ["1941-04-14T21:59:59+00:00", "23:59:59", "EET", -120], + ["1941-04-14T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1941-09-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1941-09-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1942" : helpers.makeTestYear("Africa/Cairo", [ + ["1942-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1942-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1942-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1942-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1943" : helpers.makeTestYear("Africa/Cairo", [ + ["1943-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1943-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1943-10-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1943-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1944" : helpers.makeTestYear("Africa/Cairo", [ + ["1944-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1944-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1944-10-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1944-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1945" : helpers.makeTestYear("Africa/Cairo", [ + ["1945-04-15T21:59:59+00:00", "23:59:59", "EET", -120], + ["1945-04-15T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1945-10-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1945-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1957" : helpers.makeTestYear("Africa/Cairo", [ + ["1957-05-09T21:59:59+00:00", "23:59:59", "EET", -120], + ["1957-05-09T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1957-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1957-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1958" : helpers.makeTestYear("Africa/Cairo", [ + ["1958-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1958-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1958-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1958-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1959" : helpers.makeTestYear("Africa/Cairo", [ + ["1959-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1959-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1959-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1959-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1960" : helpers.makeTestYear("Africa/Cairo", [ + ["1960-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1960-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1960-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1960-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1961" : helpers.makeTestYear("Africa/Cairo", [ + ["1961-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1961-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1961-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1961-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1962" : helpers.makeTestYear("Africa/Cairo", [ + ["1962-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1962-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1962-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1962-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1963" : helpers.makeTestYear("Africa/Cairo", [ + ["1963-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1963-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1963-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1963-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1964" : helpers.makeTestYear("Africa/Cairo", [ + ["1964-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1964-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1964-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1964-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1965" : helpers.makeTestYear("Africa/Cairo", [ + ["1965-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1965-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1965-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1965-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1966" : helpers.makeTestYear("Africa/Cairo", [ + ["1966-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1966-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1966-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1966-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1967" : helpers.makeTestYear("Africa/Cairo", [ + ["1967-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1967-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1967-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1967-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1968" : helpers.makeTestYear("Africa/Cairo", [ + ["1968-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1968-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1968-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1968-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1969" : helpers.makeTestYear("Africa/Cairo", [ + ["1969-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1969-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1969-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1969-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1970" : helpers.makeTestYear("Africa/Cairo", [ + ["1970-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1970-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1970-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1970-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1971" : helpers.makeTestYear("Africa/Cairo", [ + ["1971-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1971-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1971-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1971-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1972" : helpers.makeTestYear("Africa/Cairo", [ + ["1972-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1972-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1972-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1972-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1973" : helpers.makeTestYear("Africa/Cairo", [ + ["1973-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1973-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1973-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1973-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1974" : helpers.makeTestYear("Africa/Cairo", [ + ["1974-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1974-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1974-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1974-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1975" : helpers.makeTestYear("Africa/Cairo", [ + ["1975-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1975-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1975-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1975-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1976" : helpers.makeTestYear("Africa/Cairo", [ + ["1976-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1976-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1976-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1976-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1977" : helpers.makeTestYear("Africa/Cairo", [ + ["1977-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1977-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1977-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1977-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1978" : helpers.makeTestYear("Africa/Cairo", [ + ["1978-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1978-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1978-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1978-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1979" : helpers.makeTestYear("Africa/Cairo", [ + ["1979-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1979-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1979-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1979-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1980" : helpers.makeTestYear("Africa/Cairo", [ + ["1980-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1980-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1980-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1980-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1981" : helpers.makeTestYear("Africa/Cairo", [ + ["1981-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1981-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1981-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1981-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1982" : helpers.makeTestYear("Africa/Cairo", [ + ["1982-07-24T22:59:59+00:00", "00:59:59", "EET", -120], + ["1982-07-24T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1982-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1982-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1983" : helpers.makeTestYear("Africa/Cairo", [ + ["1983-07-11T22:59:59+00:00", "00:59:59", "EET", -120], + ["1983-07-11T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1983-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1983-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1984" : helpers.makeTestYear("Africa/Cairo", [ + ["1984-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1984-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1984-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1984-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1985" : helpers.makeTestYear("Africa/Cairo", [ + ["1985-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1985-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1985-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1985-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Africa/Cairo", [ + ["1986-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1986-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1986-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1986-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Africa/Cairo", [ + ["1987-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1987-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1987-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1987-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Africa/Cairo", [ + ["1988-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1988-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1988-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1988-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Africa/Cairo", [ + ["1989-05-05T22:59:59+00:00", "00:59:59", "EET", -120], + ["1989-05-05T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1989-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1989-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Africa/Cairo", [ + ["1990-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1990-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1990-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1990-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Africa/Cairo", [ + ["1991-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1991-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1991-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1991-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Africa/Cairo", [ + ["1992-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1992-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1992-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1992-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Africa/Cairo", [ + ["1993-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1993-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1993-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1993-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Africa/Cairo", [ + ["1994-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1994-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1994-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1994-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Africa/Cairo", [ + ["1995-04-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1995-04-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1995-09-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1995-09-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Africa/Cairo", [ + ["1996-04-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-04-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1996-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Africa/Cairo", [ + ["1997-04-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["1997-04-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1997-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1997-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Africa/Cairo", [ + ["1998-04-23T21:59:59+00:00", "23:59:59", "EET", -120], + ["1998-04-23T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1998-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1998-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Africa/Cairo", [ + ["1999-04-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1999-04-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1999-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1999-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Africa/Cairo", [ + ["2000-04-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2000-04-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2000-09-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2000-09-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Africa/Cairo", [ + ["2001-04-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2001-04-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2001-09-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2001-09-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Africa/Cairo", [ + ["2002-04-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2002-04-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2002-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2002-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Africa/Cairo", [ + ["2003-04-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2003-04-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2003-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2003-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Africa/Cairo", [ + ["2004-04-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2004-04-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2004-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2004-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Africa/Cairo", [ + ["2005-04-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2005-04-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2005-09-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2005-09-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Africa/Cairo", [ + ["2006-04-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2006-04-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2006-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2006-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Africa/Cairo", [ + ["2007-04-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2007-04-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2007-09-06T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2007-09-06T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Africa/Cairo", [ + ["2008-04-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2008-04-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2008-08-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2008-08-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Africa/Cairo", [ + ["2009-04-23T21:59:59+00:00", "23:59:59", "EET", -120], + ["2009-04-23T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2009-08-20T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2009-08-20T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Africa/Cairo", [ + ["2010-04-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2010-04-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2010-08-10T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2010-08-10T21:00:00+00:00", "23:00:00", "EET", -120], + ["2010-09-09T21:59:59+00:00", "23:59:59", "EET", -120], + ["2010-09-09T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2010-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2010-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/casablanca.js b/tests/zones/africa/casablanca.js new file mode 100644 index 00000000..cd2e033e --- /dev/null +++ b/tests/zones/africa/casablanca.js @@ -0,0 +1,333 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Casablanca"] = { + "1913" : helpers.makeTestYear("Africa/Casablanca", [ + ["1913-10-26T00:30:19+00:00", "23:59:59", "LMT", 1820 / 60], + ["1913-10-26T00:30:20+00:00", "00:30:20", "WET", 0] + ]), + + "1939" : helpers.makeTestYear("Africa/Casablanca", [ + ["1939-09-11T23:59:59+00:00", "23:59:59", "WET", 0], + ["1939-09-12T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1939-11-18T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1939-11-18T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1940" : helpers.makeTestYear("Africa/Casablanca", [ + ["1940-02-24T23:59:59+00:00", "23:59:59", "WET", 0], + ["1940-02-25T00:00:00+00:00", "01:00:00", "WEST", -60] + ]), + + "1945" : helpers.makeTestYear("Africa/Casablanca", [ + ["1945-11-17T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1945-11-17T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1950" : helpers.makeTestYear("Africa/Casablanca", [ + ["1950-06-10T23:59:59+00:00", "23:59:59", "WET", 0], + ["1950-06-11T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1950-10-28T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1950-10-28T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1967" : helpers.makeTestYear("Africa/Casablanca", [ + ["1967-06-03T11:59:59+00:00", "11:59:59", "WET", 0], + ["1967-06-03T12:00:00+00:00", "13:00:00", "WEST", -60], + ["1967-09-30T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1967-09-30T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1974" : helpers.makeTestYear("Africa/Casablanca", [ + ["1974-06-23T23:59:59+00:00", "23:59:59", "WET", 0], + ["1974-06-24T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1974-08-31T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1974-08-31T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1976" : helpers.makeTestYear("Africa/Casablanca", [ + ["1976-04-30T23:59:59+00:00", "23:59:59", "WET", 0], + ["1976-05-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1976-07-31T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1976-07-31T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1977" : helpers.makeTestYear("Africa/Casablanca", [ + ["1977-04-30T23:59:59+00:00", "23:59:59", "WET", 0], + ["1977-05-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1977-09-27T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1977-09-27T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1978" : helpers.makeTestYear("Africa/Casablanca", [ + ["1978-05-31T23:59:59+00:00", "23:59:59", "WET", 0], + ["1978-06-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1978-08-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1978-08-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1984" : helpers.makeTestYear("Africa/Casablanca", [ + ["1984-03-15T23:59:59+00:00", "23:59:59", "WET", 0], + ["1984-03-16T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Africa/Casablanca", [ + ["1985-12-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1985-12-31T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2008" : helpers.makeTestYear("Africa/Casablanca", [ + ["2008-05-31T23:59:59+00:00", "23:59:59", "WET", 0], + ["2008-06-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["2008-08-31T22:59:59+00:00", "23:59:59", "WEST", -60], + ["2008-08-31T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2009" : helpers.makeTestYear("Africa/Casablanca", [ + ["2009-05-31T23:59:59+00:00", "23:59:59", "WET", 0], + ["2009-06-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["2009-08-20T22:59:59+00:00", "23:59:59", "WEST", -60], + ["2009-08-20T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2010" : helpers.makeTestYear("Africa/Casablanca", [ + ["2010-05-01T23:59:59+00:00", "23:59:59", "WET", 0], + ["2010-05-02T00:00:00+00:00", "01:00:00", "WEST", -60], + ["2010-08-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["2010-08-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2011" : helpers.makeTestYear("Africa/Casablanca", [ + ["2011-04-02T23:59:59+00:00", "23:59:59", "WET", 0], + ["2011-04-03T00:00:00+00:00", "01:00:00", "WEST", -60], + ["2011-07-30T22:59:59+00:00", "23:59:59", "WEST", -60], + ["2011-07-30T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2012" : helpers.makeTestYear("Africa/Casablanca", [ + ["2012-04-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2012-04-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2012-07-20T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2012-07-20T02:00:00+00:00", "02:00:00", "WET", 0], + ["2012-08-20T01:59:59+00:00", "01:59:59", "WET", 0], + ["2012-08-20T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2012-09-30T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2012-09-30T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2013" : helpers.makeTestYear("Africa/Casablanca", [ + ["2013-04-28T01:59:59+00:00", "01:59:59", "WET", 0], + ["2013-04-28T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2013-07-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2013-07-07T02:00:00+00:00", "02:00:00", "WET", 0], + ["2013-08-10T01:59:59+00:00", "01:59:59", "WET", 0], + ["2013-08-10T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2013-10-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2013-10-27T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2014" : helpers.makeTestYear("Africa/Casablanca", [ + ["2014-03-30T01:59:59+00:00", "01:59:59", "WET", 0], + ["2014-03-30T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2014-06-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2014-06-29T02:00:00+00:00", "02:00:00", "WET", 0], + ["2014-07-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2014-07-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2014-10-26T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2014-10-26T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2015" : helpers.makeTestYear("Africa/Casablanca", [ + ["2015-03-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2015-03-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2015-06-18T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2015-06-18T02:00:00+00:00", "02:00:00", "WET", 0], + ["2015-07-18T01:59:59+00:00", "01:59:59", "WET", 0], + ["2015-07-18T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2015-10-25T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2015-10-25T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2016" : helpers.makeTestYear("Africa/Casablanca", [ + ["2016-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["2016-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2016-06-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2016-06-07T02:00:00+00:00", "02:00:00", "WET", 0], + ["2016-07-07T01:59:59+00:00", "01:59:59", "WET", 0], + ["2016-07-07T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2016-10-30T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2016-10-30T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2017" : helpers.makeTestYear("Africa/Casablanca", [ + ["2017-03-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["2017-03-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2017-05-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2017-05-27T02:00:00+00:00", "02:00:00", "WET", 0], + ["2017-06-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["2017-06-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2017-10-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2017-10-29T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2018" : helpers.makeTestYear("Africa/Casablanca", [ + ["2018-03-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["2018-03-25T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2018-05-16T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2018-05-16T02:00:00+00:00", "02:00:00", "WET", 0], + ["2018-06-15T01:59:59+00:00", "01:59:59", "WET", 0], + ["2018-06-15T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2018-10-28T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2018-10-28T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2019" : helpers.makeTestYear("Africa/Casablanca", [ + ["2019-03-31T01:59:59+00:00", "01:59:59", "WET", 0], + ["2019-03-31T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2019-05-06T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2019-05-06T02:00:00+00:00", "02:00:00", "WET", 0], + ["2019-06-05T01:59:59+00:00", "01:59:59", "WET", 0], + ["2019-06-05T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2019-10-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2019-10-27T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2020" : helpers.makeTestYear("Africa/Casablanca", [ + ["2020-03-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2020-03-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2020-04-24T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2020-04-24T02:00:00+00:00", "02:00:00", "WET", 0], + ["2020-05-24T01:59:59+00:00", "01:59:59", "WET", 0], + ["2020-05-24T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2020-10-25T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2020-10-25T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2021" : helpers.makeTestYear("Africa/Casablanca", [ + ["2021-03-28T01:59:59+00:00", "01:59:59", "WET", 0], + ["2021-03-28T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2021-04-13T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2021-04-13T02:00:00+00:00", "02:00:00", "WET", 0], + ["2021-05-13T01:59:59+00:00", "01:59:59", "WET", 0], + ["2021-05-13T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2021-10-31T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2021-10-31T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2022" : helpers.makeTestYear("Africa/Casablanca", [ + ["2022-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["2022-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2022-04-03T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2022-04-03T02:00:00+00:00", "02:00:00", "WET", 0], + ["2022-05-03T01:59:59+00:00", "01:59:59", "WET", 0], + ["2022-05-03T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2022-10-30T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2022-10-30T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2023" : helpers.makeTestYear("Africa/Casablanca", [ + ["2023-04-22T01:59:59+00:00", "01:59:59", "WET", 0], + ["2023-04-22T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2023-10-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2023-10-29T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2024" : helpers.makeTestYear("Africa/Casablanca", [ + ["2024-04-10T01:59:59+00:00", "01:59:59", "WET", 0], + ["2024-04-10T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2024-10-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2024-10-27T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2025" : helpers.makeTestYear("Africa/Casablanca", [ + ["2025-03-31T01:59:59+00:00", "01:59:59", "WET", 0], + ["2025-03-31T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2025-10-26T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2025-10-26T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2026" : helpers.makeTestYear("Africa/Casablanca", [ + ["2026-03-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2026-03-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2026-10-25T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2026-10-25T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2027" : helpers.makeTestYear("Africa/Casablanca", [ + ["2027-03-28T01:59:59+00:00", "01:59:59", "WET", 0], + ["2027-03-28T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2027-10-31T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2027-10-31T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2028" : helpers.makeTestYear("Africa/Casablanca", [ + ["2028-03-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["2028-03-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2028-10-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2028-10-29T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2029" : helpers.makeTestYear("Africa/Casablanca", [ + ["2029-03-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["2029-03-25T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2029-10-28T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2029-10-28T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2030" : helpers.makeTestYear("Africa/Casablanca", [ + ["2030-03-31T01:59:59+00:00", "01:59:59", "WET", 0], + ["2030-03-31T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2030-10-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2030-10-27T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2031" : helpers.makeTestYear("Africa/Casablanca", [ + ["2031-03-30T01:59:59+00:00", "01:59:59", "WET", 0], + ["2031-03-30T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2031-10-26T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2031-10-26T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2032" : helpers.makeTestYear("Africa/Casablanca", [ + ["2032-03-28T01:59:59+00:00", "01:59:59", "WET", 0], + ["2032-03-28T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2032-10-31T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2032-10-31T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2033" : helpers.makeTestYear("Africa/Casablanca", [ + ["2033-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["2033-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2033-10-30T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2033-10-30T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2034" : helpers.makeTestYear("Africa/Casablanca", [ + ["2034-03-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["2034-03-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2034-10-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2034-10-29T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2035" : helpers.makeTestYear("Africa/Casablanca", [ + ["2035-03-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["2035-03-25T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2035-10-28T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2035-10-28T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2036" : helpers.makeTestYear("Africa/Casablanca", [ + ["2036-03-30T01:59:59+00:00", "01:59:59", "WET", 0], + ["2036-03-30T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2036-10-21T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2036-10-21T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2037" : helpers.makeTestYear("Africa/Casablanca", [ + ["2037-03-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2037-03-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2037-10-11T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2037-10-11T02:00:00+00:00", "02:00:00", "WET", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/ceuta.js b/tests/zones/africa/ceuta.js new file mode 100644 index 00000000..89301282 --- /dev/null +++ b/tests/zones/africa/ceuta.js @@ -0,0 +1,444 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Ceuta"] = { + "1918" : helpers.makeTestYear("Africa/Ceuta", [ + ["1918-05-06T22:59:59+00:00", "22:59:59", "WET", 0], + ["1918-05-06T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1918-10-07T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1918-10-07T22:00:00+00:00", "22:00:00", "WET", 0] + ]), + + "1924" : helpers.makeTestYear("Africa/Ceuta", [ + ["1924-04-16T22:59:59+00:00", "22:59:59", "WET", 0], + ["1924-04-16T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1924-10-04T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1924-10-04T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1926" : helpers.makeTestYear("Africa/Ceuta", [ + ["1926-04-17T22:59:59+00:00", "22:59:59", "WET", 0], + ["1926-04-17T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1926-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1926-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1927" : helpers.makeTestYear("Africa/Ceuta", [ + ["1927-04-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1927-04-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1927-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1927-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1928" : helpers.makeTestYear("Africa/Ceuta", [ + ["1928-04-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1928-04-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1928-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1928-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1967" : helpers.makeTestYear("Africa/Ceuta", [ + ["1967-06-03T11:59:59+00:00", "11:59:59", "WET", 0], + ["1967-06-03T12:00:00+00:00", "13:00:00", "WEST", -60], + ["1967-09-30T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1967-09-30T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1974" : helpers.makeTestYear("Africa/Ceuta", [ + ["1974-06-23T23:59:59+00:00", "23:59:59", "WET", 0], + ["1974-06-24T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1974-08-31T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1974-08-31T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1976" : helpers.makeTestYear("Africa/Ceuta", [ + ["1976-04-30T23:59:59+00:00", "23:59:59", "WET", 0], + ["1976-05-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1976-07-31T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1976-07-31T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1977" : helpers.makeTestYear("Africa/Ceuta", [ + ["1977-04-30T23:59:59+00:00", "23:59:59", "WET", 0], + ["1977-05-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1977-09-27T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1977-09-27T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1978" : helpers.makeTestYear("Africa/Ceuta", [ + ["1978-05-31T23:59:59+00:00", "23:59:59", "WET", 0], + ["1978-06-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1978-08-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1978-08-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1984" : helpers.makeTestYear("Africa/Ceuta", [ + ["1984-03-15T23:59:59+00:00", "23:59:59", "WET", 0], + ["1984-03-16T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Africa/Ceuta", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Africa/Ceuta", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Africa/Ceuta", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Africa/Ceuta", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Africa/Ceuta", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Africa/Ceuta", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Africa/Ceuta", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Africa/Ceuta", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Africa/Ceuta", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Africa/Ceuta", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Africa/Ceuta", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Africa/Ceuta", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Africa/Ceuta", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Africa/Ceuta", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Africa/Ceuta", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Africa/Ceuta", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Africa/Ceuta", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Africa/Ceuta", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Africa/Ceuta", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Africa/Ceuta", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Africa/Ceuta", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Africa/Ceuta", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Africa/Ceuta", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Africa/Ceuta", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Africa/Ceuta", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Africa/Ceuta", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Africa/Ceuta", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Africa/Ceuta", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Africa/Ceuta", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Africa/Ceuta", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Africa/Ceuta", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Africa/Ceuta", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Africa/Ceuta", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Africa/Ceuta", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Africa/Ceuta", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Africa/Ceuta", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Africa/Ceuta", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Africa/Ceuta", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Africa/Ceuta", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Africa/Ceuta", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Africa/Ceuta", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Africa/Ceuta", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Africa/Ceuta", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Africa/Ceuta", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Africa/Ceuta", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Africa/Ceuta", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Africa/Ceuta", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Africa/Ceuta", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Africa/Ceuta", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Africa/Ceuta", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Africa/Ceuta", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Africa/Ceuta", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/conakry.js b/tests/zones/africa/conakry.js new file mode 100644 index 00000000..a9dd9894 --- /dev/null +++ b/tests/zones/africa/conakry.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Conakry"] = { + "1912" : helpers.makeTestYear("Africa/Conakry", [ + ["1912-01-01T00:54:51+00:00", "23:59:59", "LMT", 3292 / 60], + ["1912-01-01T00:54:52+00:00", "00:54:52", "GMT", 0] + ]), + + "1934" : helpers.makeTestYear("Africa/Conakry", [ + ["1934-02-25T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1934-02-26T00:00:00+00:00", "23:00:00", "WAT", 60] + ]), + + "1960" : helpers.makeTestYear("Africa/Conakry", [ + ["1960-01-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1960-01-01T01:00:00+00:00", "01:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/dakar.js b/tests/zones/africa/dakar.js new file mode 100644 index 00000000..5e236d77 --- /dev/null +++ b/tests/zones/africa/dakar.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Dakar"] = { + "1912" : helpers.makeTestYear("Africa/Dakar", [ + ["1912-01-01T01:09:43+00:00", "23:59:59", "LMT", 4184 / 60], + ["1912-01-01T01:09:44+00:00", "00:09:44", "WAT", 60] + ]), + + "1941" : helpers.makeTestYear("Africa/Dakar", [ + ["1941-06-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1941-06-01T01:00:00+00:00", "01:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/dar_es_salaam.js b/tests/zones/africa/dar_es_salaam.js new file mode 100644 index 00000000..bd10456f --- /dev/null +++ b/tests/zones/africa/dar_es_salaam.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Dar_es_Salaam"] = { + "1930" : helpers.makeTestYear("Africa/Dar_es_Salaam", [ + ["1930-12-31T21:22:51+00:00", "23:59:59", "LMT", -9428 / 60], + ["1930-12-31T21:22:52+00:00", "00:22:52", "EAT", -180] + ]), + + "1947" : helpers.makeTestYear("Africa/Dar_es_Salaam", [ + ["1947-12-31T20:59:59+00:00", "23:59:59", "EAT", -180], + ["1947-12-31T21:00:00+00:00", "23:45:00", "BEAUT", -165] + ]), + + "1960" : helpers.makeTestYear("Africa/Dar_es_Salaam", [ + ["1960-12-31T21:14:59+00:00", "23:59:59", "BEAUT", -165], + ["1960-12-31T21:15:00+00:00", "00:15:00", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/djibouti.js b/tests/zones/africa/djibouti.js new file mode 100644 index 00000000..3950864b --- /dev/null +++ b/tests/zones/africa/djibouti.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Djibouti"] = { + "1911" : helpers.makeTestYear("Africa/Djibouti", [ + ["1911-06-30T21:07:23+00:00", "23:59:59", "LMT", -10356 / 60], + ["1911-06-30T21:07:24+00:00", "00:07:24", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/douala.js b/tests/zones/africa/douala.js new file mode 100644 index 00000000..9f47941c --- /dev/null +++ b/tests/zones/africa/douala.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Douala"] = { + "1911" : helpers.makeTestYear("Africa/Douala", [ + ["1911-12-31T23:21:11+00:00", "23:59:59", "LMT", -2328 / 60], + ["1911-12-31T23:21:12+00:00", "00:21:12", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/el_aaiun.js b/tests/zones/africa/el_aaiun.js new file mode 100644 index 00000000..87830573 --- /dev/null +++ b/tests/zones/africa/el_aaiun.js @@ -0,0 +1,287 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/El_Aaiun"] = { + "1934" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["1934-01-01T00:52:47+00:00", "23:59:59", "LMT", 3168 / 60], + ["1934-01-01T00:52:48+00:00", "23:52:48", "WAT", 60] + ]), + + "1976" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["1976-04-14T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1976-04-14T01:00:00+00:00", "01:00:00", "WET", 0], + ["1976-04-30T23:59:59+00:00", "23:59:59", "WET", 0], + ["1976-05-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1976-07-31T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1976-07-31T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1977" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["1977-04-30T23:59:59+00:00", "23:59:59", "WET", 0], + ["1977-05-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1977-09-27T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1977-09-27T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1978" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["1978-05-31T23:59:59+00:00", "23:59:59", "WET", 0], + ["1978-06-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1978-08-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1978-08-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2008" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2008-05-31T23:59:59+00:00", "23:59:59", "WET", 0], + ["2008-06-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["2008-08-31T22:59:59+00:00", "23:59:59", "WEST", -60], + ["2008-08-31T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2009" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2009-05-31T23:59:59+00:00", "23:59:59", "WET", 0], + ["2009-06-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["2009-08-20T22:59:59+00:00", "23:59:59", "WEST", -60], + ["2009-08-20T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2010" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2010-05-01T23:59:59+00:00", "23:59:59", "WET", 0], + ["2010-05-02T00:00:00+00:00", "01:00:00", "WEST", -60], + ["2010-08-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["2010-08-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2011" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2011-04-02T23:59:59+00:00", "23:59:59", "WET", 0], + ["2011-04-03T00:00:00+00:00", "01:00:00", "WEST", -60], + ["2011-07-30T22:59:59+00:00", "23:59:59", "WEST", -60], + ["2011-07-30T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "2012" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2012-04-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2012-04-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2012-07-20T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2012-07-20T02:00:00+00:00", "02:00:00", "WET", 0], + ["2012-08-20T01:59:59+00:00", "01:59:59", "WET", 0], + ["2012-08-20T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2012-09-30T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2012-09-30T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2013" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2013-04-28T01:59:59+00:00", "01:59:59", "WET", 0], + ["2013-04-28T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2013-07-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2013-07-07T02:00:00+00:00", "02:00:00", "WET", 0], + ["2013-08-10T01:59:59+00:00", "01:59:59", "WET", 0], + ["2013-08-10T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2013-10-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2013-10-27T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2014" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2014-03-30T01:59:59+00:00", "01:59:59", "WET", 0], + ["2014-03-30T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2014-06-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2014-06-29T02:00:00+00:00", "02:00:00", "WET", 0], + ["2014-07-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2014-07-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2014-10-26T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2014-10-26T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2015" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2015-03-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2015-03-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2015-06-18T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2015-06-18T02:00:00+00:00", "02:00:00", "WET", 0], + ["2015-07-18T01:59:59+00:00", "01:59:59", "WET", 0], + ["2015-07-18T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2015-10-25T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2015-10-25T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2016" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2016-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["2016-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2016-06-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2016-06-07T02:00:00+00:00", "02:00:00", "WET", 0], + ["2016-07-07T01:59:59+00:00", "01:59:59", "WET", 0], + ["2016-07-07T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2016-10-30T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2016-10-30T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2017" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2017-03-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["2017-03-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2017-05-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2017-05-27T02:00:00+00:00", "02:00:00", "WET", 0], + ["2017-06-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["2017-06-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2017-10-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2017-10-29T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2018" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2018-03-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["2018-03-25T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2018-05-16T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2018-05-16T02:00:00+00:00", "02:00:00", "WET", 0], + ["2018-06-15T01:59:59+00:00", "01:59:59", "WET", 0], + ["2018-06-15T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2018-10-28T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2018-10-28T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2019" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2019-03-31T01:59:59+00:00", "01:59:59", "WET", 0], + ["2019-03-31T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2019-05-06T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2019-05-06T02:00:00+00:00", "02:00:00", "WET", 0], + ["2019-06-05T01:59:59+00:00", "01:59:59", "WET", 0], + ["2019-06-05T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2019-10-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2019-10-27T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2020" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2020-03-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2020-03-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2020-04-24T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2020-04-24T02:00:00+00:00", "02:00:00", "WET", 0], + ["2020-05-24T01:59:59+00:00", "01:59:59", "WET", 0], + ["2020-05-24T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2020-10-25T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2020-10-25T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2021" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2021-03-28T01:59:59+00:00", "01:59:59", "WET", 0], + ["2021-03-28T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2021-04-13T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2021-04-13T02:00:00+00:00", "02:00:00", "WET", 0], + ["2021-05-13T01:59:59+00:00", "01:59:59", "WET", 0], + ["2021-05-13T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2021-10-31T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2021-10-31T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2022" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2022-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["2022-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2022-04-03T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2022-04-03T02:00:00+00:00", "02:00:00", "WET", 0], + ["2022-05-03T01:59:59+00:00", "01:59:59", "WET", 0], + ["2022-05-03T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2022-10-30T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2022-10-30T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2023" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2023-04-22T01:59:59+00:00", "01:59:59", "WET", 0], + ["2023-04-22T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2023-10-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2023-10-29T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2024" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2024-04-10T01:59:59+00:00", "01:59:59", "WET", 0], + ["2024-04-10T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2024-10-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2024-10-27T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2025" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2025-03-31T01:59:59+00:00", "01:59:59", "WET", 0], + ["2025-03-31T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2025-10-26T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2025-10-26T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2026" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2026-03-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2026-03-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2026-10-25T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2026-10-25T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2027" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2027-03-28T01:59:59+00:00", "01:59:59", "WET", 0], + ["2027-03-28T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2027-10-31T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2027-10-31T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2028" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2028-03-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["2028-03-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2028-10-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2028-10-29T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2029" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2029-03-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["2029-03-25T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2029-10-28T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2029-10-28T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2030" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2030-03-31T01:59:59+00:00", "01:59:59", "WET", 0], + ["2030-03-31T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2030-10-27T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2030-10-27T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2031" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2031-03-30T01:59:59+00:00", "01:59:59", "WET", 0], + ["2031-03-30T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2031-10-26T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2031-10-26T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2032" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2032-03-28T01:59:59+00:00", "01:59:59", "WET", 0], + ["2032-03-28T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2032-10-31T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2032-10-31T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2033" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2033-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["2033-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2033-10-30T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2033-10-30T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2034" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2034-03-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["2034-03-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2034-10-29T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2034-10-29T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2035" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2035-03-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["2035-03-25T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2035-10-28T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2035-10-28T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2036" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2036-03-30T01:59:59+00:00", "01:59:59", "WET", 0], + ["2036-03-30T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2036-10-21T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2036-10-21T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "2037" : helpers.makeTestYear("Africa/El_Aaiun", [ + ["2037-03-29T01:59:59+00:00", "01:59:59", "WET", 0], + ["2037-03-29T02:00:00+00:00", "03:00:00", "WEST", -60], + ["2037-10-11T01:59:59+00:00", "02:59:59", "WEST", -60], + ["2037-10-11T02:00:00+00:00", "02:00:00", "WET", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/freetown.js b/tests/zones/africa/freetown.js new file mode 100644 index 00000000..7d9f3621 --- /dev/null +++ b/tests/zones/africa/freetown.js @@ -0,0 +1,110 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Freetown"] = { + "1913" : helpers.makeTestYear("Africa/Freetown", [ + ["1913-06-01T00:52:59+00:00", "23:59:59", "FMT", 53], + ["1913-06-01T00:53:00+00:00", "23:53:00", "WAT", 60] + ]), + + "1935" : helpers.makeTestYear("Africa/Freetown", [ + ["1935-06-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1935-06-01T01:00:00+00:00", "00:40:00", "SLST", 20], + ["1935-10-01T00:19:59+00:00", "23:59:59", "SLST", 20], + ["1935-10-01T00:20:00+00:00", "23:20:00", "WAT", 60] + ]), + + "1936" : helpers.makeTestYear("Africa/Freetown", [ + ["1936-06-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1936-06-01T01:00:00+00:00", "00:40:00", "SLST", 20], + ["1936-10-01T00:19:59+00:00", "23:59:59", "SLST", 20], + ["1936-10-01T00:20:00+00:00", "23:20:00", "WAT", 60] + ]), + + "1937" : helpers.makeTestYear("Africa/Freetown", [ + ["1937-06-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1937-06-01T01:00:00+00:00", "00:40:00", "SLST", 20], + ["1937-10-01T00:19:59+00:00", "23:59:59", "SLST", 20], + ["1937-10-01T00:20:00+00:00", "23:20:00", "WAT", 60] + ]), + + "1938" : helpers.makeTestYear("Africa/Freetown", [ + ["1938-06-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1938-06-01T01:00:00+00:00", "00:40:00", "SLST", 20], + ["1938-10-01T00:19:59+00:00", "23:59:59", "SLST", 20], + ["1938-10-01T00:20:00+00:00", "23:20:00", "WAT", 60] + ]), + + "1939" : helpers.makeTestYear("Africa/Freetown", [ + ["1939-06-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1939-06-01T01:00:00+00:00", "00:40:00", "SLST", 20], + ["1939-10-01T00:19:59+00:00", "23:59:59", "SLST", 20], + ["1939-10-01T00:20:00+00:00", "23:20:00", "WAT", 60] + ]), + + "1940" : helpers.makeTestYear("Africa/Freetown", [ + ["1940-06-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1940-06-01T01:00:00+00:00", "00:40:00", "SLST", 20], + ["1940-10-01T00:19:59+00:00", "23:59:59", "SLST", 20], + ["1940-10-01T00:20:00+00:00", "23:20:00", "WAT", 60] + ]), + + "1941" : helpers.makeTestYear("Africa/Freetown", [ + ["1941-06-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1941-06-01T01:00:00+00:00", "00:40:00", "SLST", 20], + ["1941-10-01T00:19:59+00:00", "23:59:59", "SLST", 20], + ["1941-10-01T00:20:00+00:00", "23:20:00", "WAT", 60] + ]), + + "1942" : helpers.makeTestYear("Africa/Freetown", [ + ["1942-06-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1942-06-01T01:00:00+00:00", "00:40:00", "SLST", 20], + ["1942-10-01T00:19:59+00:00", "23:59:59", "SLST", 20], + ["1942-10-01T00:20:00+00:00", "23:20:00", "WAT", 60] + ]), + + "1957" : helpers.makeTestYear("Africa/Freetown", [ + ["1957-01-01T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1957-01-01T01:00:00+00:00", "01:00:00", "WAT", 0], + ["1957-05-31T23:59:59+00:00", "23:59:59", "WAT", 0], + ["1957-06-01T00:00:00+00:00", "01:00:00", "SLST", -60], + ["1957-08-31T22:59:59+00:00", "23:59:59", "SLST", -60], + ["1957-08-31T23:00:00+00:00", "23:00:00", "GMT", 0] + ]), + + "1958" : helpers.makeTestYear("Africa/Freetown", [ + ["1958-05-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1958-06-01T00:00:00+00:00", "01:00:00", "SLST", -60], + ["1958-08-31T22:59:59+00:00", "23:59:59", "SLST", -60], + ["1958-08-31T23:00:00+00:00", "23:00:00", "GMT", 0] + ]), + + "1959" : helpers.makeTestYear("Africa/Freetown", [ + ["1959-05-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1959-06-01T00:00:00+00:00", "01:00:00", "SLST", -60], + ["1959-08-31T22:59:59+00:00", "23:59:59", "SLST", -60], + ["1959-08-31T23:00:00+00:00", "23:00:00", "GMT", 0] + ]), + + "1960" : helpers.makeTestYear("Africa/Freetown", [ + ["1960-05-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1960-06-01T00:00:00+00:00", "01:00:00", "SLST", -60], + ["1960-08-31T22:59:59+00:00", "23:59:59", "SLST", -60], + ["1960-08-31T23:00:00+00:00", "23:00:00", "GMT", 0] + ]), + + "1961" : helpers.makeTestYear("Africa/Freetown", [ + ["1961-05-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1961-06-01T00:00:00+00:00", "01:00:00", "SLST", -60], + ["1961-08-31T22:59:59+00:00", "23:59:59", "SLST", -60], + ["1961-08-31T23:00:00+00:00", "23:00:00", "GMT", 0] + ]), + + "1962" : helpers.makeTestYear("Africa/Freetown", [ + ["1962-05-31T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1962-06-01T00:00:00+00:00", "01:00:00", "SLST", -60], + ["1962-08-31T22:59:59+00:00", "23:59:59", "SLST", -60], + ["1962-08-31T23:00:00+00:00", "23:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/gaborone.js b/tests/zones/africa/gaborone.js new file mode 100644 index 00000000..2e340646 --- /dev/null +++ b/tests/zones/africa/gaborone.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Gaborone"] = { + "1903" : helpers.makeTestYear("Africa/Gaborone", [ + ["1903-02-28T22:29:59+00:00", "23:59:59", "SAST", -90], + ["1903-02-28T22:30:00+00:00", "00:30:00", "CAT", -120] + ]), + + "1943" : helpers.makeTestYear("Africa/Gaborone", [ + ["1943-09-18T23:59:59+00:00", "01:59:59", "CAT", -120], + ["1943-09-19T00:00:00+00:00", "03:00:00", "CAST", -180] + ]), + + "1944" : helpers.makeTestYear("Africa/Gaborone", [ + ["1944-03-18T22:59:59+00:00", "01:59:59", "CAST", -180], + ["1944-03-18T23:00:00+00:00", "01:00:00", "CAT", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/harare.js b/tests/zones/africa/harare.js new file mode 100644 index 00000000..38266a2e --- /dev/null +++ b/tests/zones/africa/harare.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Harare"] = { + "1903" : helpers.makeTestYear("Africa/Harare", [ + ["1903-02-28T21:55:47+00:00", "23:59:59", "LMT", -7452 / 60], + ["1903-02-28T21:55:48+00:00", "23:55:48", "CAT", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/johannesburg.js b/tests/zones/africa/johannesburg.js new file mode 100644 index 00000000..b4ecd36b --- /dev/null +++ b/tests/zones/africa/johannesburg.js @@ -0,0 +1,27 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Johannesburg"] = { + "1903" : helpers.makeTestYear("Africa/Johannesburg", [ + ["1903-02-28T22:29:59+00:00", "23:59:59", "SAST", -90], + ["1903-02-28T22:30:00+00:00", "00:30:00", "SAST", -120] + ]), + + "1942" : helpers.makeTestYear("Africa/Johannesburg", [ + ["1942-09-19T23:59:59+00:00", "01:59:59", "SAST", -120], + ["1942-09-20T00:00:00+00:00", "03:00:00", "SAST", -180] + ]), + + "1943" : helpers.makeTestYear("Africa/Johannesburg", [ + ["1943-03-20T22:59:59+00:00", "01:59:59", "SAST", -180], + ["1943-03-20T23:00:00+00:00", "01:00:00", "SAST", -120], + ["1943-09-18T23:59:59+00:00", "01:59:59", "SAST", -120], + ["1943-09-19T00:00:00+00:00", "03:00:00", "SAST", -180] + ]), + + "1944" : helpers.makeTestYear("Africa/Johannesburg", [ + ["1944-03-18T22:59:59+00:00", "01:59:59", "SAST", -180], + ["1944-03-18T23:00:00+00:00", "01:00:00", "SAST", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/juba.js b/tests/zones/africa/juba.js new file mode 100644 index 00000000..b452750e --- /dev/null +++ b/tests/zones/africa/juba.js @@ -0,0 +1,127 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Juba"] = { + "1930" : helpers.makeTestYear("Africa/Juba", [ + ["1930-12-31T21:49:51+00:00", "23:59:59", "LMT", -7808 / 60], + ["1930-12-31T21:49:52+00:00", "23:49:52", "CAT", -120] + ]), + + "1970" : helpers.makeTestYear("Africa/Juba", [ + ["1970-04-30T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1970-04-30T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1970-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1970-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1971" : helpers.makeTestYear("Africa/Juba", [ + ["1971-04-29T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1971-04-29T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1971-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1971-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1972" : helpers.makeTestYear("Africa/Juba", [ + ["1972-04-29T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1972-04-29T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1972-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1972-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1973" : helpers.makeTestYear("Africa/Juba", [ + ["1973-04-28T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1973-04-28T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1973-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1973-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1974" : helpers.makeTestYear("Africa/Juba", [ + ["1974-04-27T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1974-04-27T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1974-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1974-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1975" : helpers.makeTestYear("Africa/Juba", [ + ["1975-04-26T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1975-04-26T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1975-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1975-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1976" : helpers.makeTestYear("Africa/Juba", [ + ["1976-04-24T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1976-04-24T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1976-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1976-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1977" : helpers.makeTestYear("Africa/Juba", [ + ["1977-04-23T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1977-04-23T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1977-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1977-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1978" : helpers.makeTestYear("Africa/Juba", [ + ["1978-04-29T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1978-04-29T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1978-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1978-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1979" : helpers.makeTestYear("Africa/Juba", [ + ["1979-04-28T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1979-04-28T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1979-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1979-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1980" : helpers.makeTestYear("Africa/Juba", [ + ["1980-04-26T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1980-04-26T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1980-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1980-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1981" : helpers.makeTestYear("Africa/Juba", [ + ["1981-04-25T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1981-04-25T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1981-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1981-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1982" : helpers.makeTestYear("Africa/Juba", [ + ["1982-04-24T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1982-04-24T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1982-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1982-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1983" : helpers.makeTestYear("Africa/Juba", [ + ["1983-04-23T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1983-04-23T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1983-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1983-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1984" : helpers.makeTestYear("Africa/Juba", [ + ["1984-04-28T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1984-04-28T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1984-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1984-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1985" : helpers.makeTestYear("Africa/Juba", [ + ["1985-04-27T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1985-04-27T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1985-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1985-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "2000" : helpers.makeTestYear("Africa/Juba", [ + ["2000-01-15T09:59:59+00:00", "11:59:59", "CAT", -120], + ["2000-01-15T10:00:00+00:00", "13:00:00", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/kampala.js b/tests/zones/africa/kampala.js new file mode 100644 index 00000000..4ceffd79 --- /dev/null +++ b/tests/zones/africa/kampala.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Kampala"] = { + "1928" : helpers.makeTestYear("Africa/Kampala", [ + ["1928-06-30T21:50:19+00:00", "23:59:59", "LMT", -7780 / 60], + ["1928-06-30T21:50:20+00:00", "00:50:20", "EAT", -180] + ]), + + "1929" : helpers.makeTestYear("Africa/Kampala", [ + ["1929-12-31T20:59:59+00:00", "23:59:59", "EAT", -180], + ["1929-12-31T21:00:00+00:00", "23:30:00", "BEAT", -150] + ]), + + "1947" : helpers.makeTestYear("Africa/Kampala", [ + ["1947-12-31T21:29:59+00:00", "23:59:59", "BEAT", -150], + ["1947-12-31T21:30:00+00:00", "00:15:00", "BEAUT", -165] + ]), + + "1956" : helpers.makeTestYear("Africa/Kampala", [ + ["1956-12-31T21:14:59+00:00", "23:59:59", "BEAUT", -165], + ["1956-12-31T21:15:00+00:00", "00:15:00", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/khartoum.js b/tests/zones/africa/khartoum.js new file mode 100644 index 00000000..b71e2bbb --- /dev/null +++ b/tests/zones/africa/khartoum.js @@ -0,0 +1,127 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Khartoum"] = { + "1930" : helpers.makeTestYear("Africa/Khartoum", [ + ["1930-12-31T21:49:51+00:00", "23:59:59", "LMT", -7808 / 60], + ["1930-12-31T21:49:52+00:00", "23:49:52", "CAT", -120] + ]), + + "1970" : helpers.makeTestYear("Africa/Khartoum", [ + ["1970-04-30T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1970-04-30T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1970-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1970-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1971" : helpers.makeTestYear("Africa/Khartoum", [ + ["1971-04-29T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1971-04-29T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1971-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1971-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1972" : helpers.makeTestYear("Africa/Khartoum", [ + ["1972-04-29T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1972-04-29T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1972-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1972-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1973" : helpers.makeTestYear("Africa/Khartoum", [ + ["1973-04-28T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1973-04-28T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1973-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1973-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1974" : helpers.makeTestYear("Africa/Khartoum", [ + ["1974-04-27T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1974-04-27T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1974-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1974-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1975" : helpers.makeTestYear("Africa/Khartoum", [ + ["1975-04-26T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1975-04-26T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1975-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1975-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1976" : helpers.makeTestYear("Africa/Khartoum", [ + ["1976-04-24T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1976-04-24T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1976-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1976-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1977" : helpers.makeTestYear("Africa/Khartoum", [ + ["1977-04-23T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1977-04-23T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1977-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1977-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1978" : helpers.makeTestYear("Africa/Khartoum", [ + ["1978-04-29T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1978-04-29T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1978-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1978-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1979" : helpers.makeTestYear("Africa/Khartoum", [ + ["1979-04-28T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1979-04-28T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1979-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1979-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1980" : helpers.makeTestYear("Africa/Khartoum", [ + ["1980-04-26T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1980-04-26T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1980-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1980-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1981" : helpers.makeTestYear("Africa/Khartoum", [ + ["1981-04-25T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1981-04-25T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1981-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1981-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1982" : helpers.makeTestYear("Africa/Khartoum", [ + ["1982-04-24T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1982-04-24T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1982-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1982-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1983" : helpers.makeTestYear("Africa/Khartoum", [ + ["1983-04-23T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1983-04-23T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1983-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1983-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1984" : helpers.makeTestYear("Africa/Khartoum", [ + ["1984-04-28T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1984-04-28T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1984-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1984-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "1985" : helpers.makeTestYear("Africa/Khartoum", [ + ["1985-04-27T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1985-04-27T22:00:00+00:00", "01:00:00", "CAST", -180], + ["1985-10-14T20:59:59+00:00", "23:59:59", "CAST", -180], + ["1985-10-14T21:00:00+00:00", "23:00:00", "CAT", -120] + ]), + + "2000" : helpers.makeTestYear("Africa/Khartoum", [ + ["2000-01-15T09:59:59+00:00", "11:59:59", "CAT", -120], + ["2000-01-15T10:00:00+00:00", "13:00:00", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/kigali.js b/tests/zones/africa/kigali.js new file mode 100644 index 00000000..0bc14a7f --- /dev/null +++ b/tests/zones/africa/kigali.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Kigali"] = { + "1935" : helpers.makeTestYear("Africa/Kigali", [ + ["1935-05-31T21:59:43+00:00", "23:59:59", "LMT", -7216 / 60], + ["1935-05-31T21:59:44+00:00", "23:59:44", "CAT", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/kinshasa.js b/tests/zones/africa/kinshasa.js new file mode 100644 index 00000000..7363c8f3 --- /dev/null +++ b/tests/zones/africa/kinshasa.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Kinshasa"] = { + +}; \ No newline at end of file diff --git a/tests/zones/africa/lagos.js b/tests/zones/africa/lagos.js new file mode 100644 index 00000000..bdd68c20 --- /dev/null +++ b/tests/zones/africa/lagos.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Lagos"] = { + "1919" : helpers.makeTestYear("Africa/Lagos", [ + ["1919-08-31T23:46:23+00:00", "23:59:59", "LMT", -816 / 60], + ["1919-08-31T23:46:24+00:00", "00:46:24", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/libreville.js b/tests/zones/africa/libreville.js new file mode 100644 index 00000000..68ae8184 --- /dev/null +++ b/tests/zones/africa/libreville.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Libreville"] = { + "1911" : helpers.makeTestYear("Africa/Libreville", [ + ["1911-12-31T23:22:11+00:00", "23:59:59", "LMT", -2268 / 60], + ["1911-12-31T23:22:12+00:00", "00:22:12", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/lome.js b/tests/zones/africa/lome.js new file mode 100644 index 00000000..8b414620 --- /dev/null +++ b/tests/zones/africa/lome.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Lome"] = { + +}; \ No newline at end of file diff --git a/tests/zones/africa/luanda.js b/tests/zones/africa/luanda.js new file mode 100644 index 00000000..b041b577 --- /dev/null +++ b/tests/zones/africa/luanda.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Luanda"] = { + "1911" : helpers.makeTestYear("Africa/Luanda", [ + ["1911-05-25T23:07:55+00:00", "23:59:59", "AOT", -3124 / 60], + ["1911-05-25T23:07:56+00:00", "00:07:56", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/lubumbashi.js b/tests/zones/africa/lubumbashi.js new file mode 100644 index 00000000..9048f477 --- /dev/null +++ b/tests/zones/africa/lubumbashi.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Lubumbashi"] = { + +}; \ No newline at end of file diff --git a/tests/zones/africa/lusaka.js b/tests/zones/africa/lusaka.js new file mode 100644 index 00000000..d94c53a4 --- /dev/null +++ b/tests/zones/africa/lusaka.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Lusaka"] = { + "1903" : helpers.makeTestYear("Africa/Lusaka", [ + ["1903-02-28T22:06:51+00:00", "23:59:59", "LMT", -6788 / 60], + ["1903-02-28T22:06:52+00:00", "00:06:52", "CAT", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/malabo.js b/tests/zones/africa/malabo.js new file mode 100644 index 00000000..1e9ecf6b --- /dev/null +++ b/tests/zones/africa/malabo.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Malabo"] = { + "1911" : helpers.makeTestYear("Africa/Malabo", [ + ["1911-12-31T23:24:51+00:00", "23:59:59", "LMT", -2108 / 60], + ["1911-12-31T23:24:52+00:00", "23:24:52", "GMT", 0] + ]), + + "1963" : helpers.makeTestYear("Africa/Malabo", [ + ["1963-12-14T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1963-12-15T00:00:00+00:00", "01:00:00", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/maputo.js b/tests/zones/africa/maputo.js new file mode 100644 index 00000000..534ac32b --- /dev/null +++ b/tests/zones/africa/maputo.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Maputo"] = { + "1903" : helpers.makeTestYear("Africa/Maputo", [ + ["1903-02-28T21:49:39+00:00", "23:59:59", "LMT", -7820 / 60], + ["1903-02-28T21:49:40+00:00", "23:49:40", "CAT", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/maseru.js b/tests/zones/africa/maseru.js new file mode 100644 index 00000000..cc0bb1a8 --- /dev/null +++ b/tests/zones/africa/maseru.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Maseru"] = { + "1903" : helpers.makeTestYear("Africa/Maseru", [ + ["1903-02-28T22:09:59+00:00", "23:59:59", "LMT", -110], + ["1903-02-28T22:10:00+00:00", "00:10:00", "SAST", -120] + ]), + + "1943" : helpers.makeTestYear("Africa/Maseru", [ + ["1943-09-18T23:59:59+00:00", "01:59:59", "SAST", -120], + ["1943-09-19T00:00:00+00:00", "03:00:00", "SAST", -180] + ]), + + "1944" : helpers.makeTestYear("Africa/Maseru", [ + ["1944-03-18T22:59:59+00:00", "01:59:59", "SAST", -180], + ["1944-03-18T23:00:00+00:00", "01:00:00", "SAST", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/mbabane.js b/tests/zones/africa/mbabane.js new file mode 100644 index 00000000..f4ee03ae --- /dev/null +++ b/tests/zones/africa/mbabane.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Mbabane"] = { + "1903" : helpers.makeTestYear("Africa/Mbabane", [ + ["1903-02-28T21:55:35+00:00", "23:59:59", "LMT", -7464 / 60], + ["1903-02-28T21:55:36+00:00", "23:55:36", "SAST", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/mogadishu.js b/tests/zones/africa/mogadishu.js new file mode 100644 index 00000000..00f39260 --- /dev/null +++ b/tests/zones/africa/mogadishu.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Mogadishu"] = { + "1930" : helpers.makeTestYear("Africa/Mogadishu", [ + ["1930-12-31T20:59:59+00:00", "23:59:59", "EAT", -180], + ["1930-12-31T21:00:00+00:00", "23:30:00", "BEAT", -150] + ]), + + "1956" : helpers.makeTestYear("Africa/Mogadishu", [ + ["1956-12-31T21:29:59+00:00", "23:59:59", "BEAT", -150], + ["1956-12-31T21:30:00+00:00", "00:30:00", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/monrovia.js b/tests/zones/africa/monrovia.js new file mode 100644 index 00000000..d372c96b --- /dev/null +++ b/tests/zones/africa/monrovia.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Monrovia"] = { + "1919" : helpers.makeTestYear("Africa/Monrovia", [ + ["1919-03-01T00:43:07+00:00", "23:59:59", "MMT", 2588 / 60], + ["1919-03-01T00:43:08+00:00", "23:58:38", "LRT", 2670 / 60] + ]), + + "1972" : helpers.makeTestYear("Africa/Monrovia", [ + ["1972-05-01T00:44:29+00:00", "23:59:59", "LRT", 2670 / 60], + ["1972-05-01T00:44:30+00:00", "00:44:30", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/nairobi.js b/tests/zones/africa/nairobi.js new file mode 100644 index 00000000..5fbe6379 --- /dev/null +++ b/tests/zones/africa/nairobi.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Nairobi"] = { + "1928" : helpers.makeTestYear("Africa/Nairobi", [ + ["1928-06-30T21:32:43+00:00", "23:59:59", "LMT", -8836 / 60], + ["1928-06-30T21:32:44+00:00", "00:32:44", "EAT", -180] + ]), + + "1929" : helpers.makeTestYear("Africa/Nairobi", [ + ["1929-12-31T20:59:59+00:00", "23:59:59", "EAT", -180], + ["1929-12-31T21:00:00+00:00", "23:30:00", "BEAT", -150] + ]), + + "1939" : helpers.makeTestYear("Africa/Nairobi", [ + ["1939-12-31T21:29:59+00:00", "23:59:59", "BEAT", -150], + ["1939-12-31T21:30:00+00:00", "00:15:00", "BEAUT", -165] + ]), + + "1959" : helpers.makeTestYear("Africa/Nairobi", [ + ["1959-12-31T21:14:59+00:00", "23:59:59", "BEAUT", -165], + ["1959-12-31T21:15:00+00:00", "00:15:00", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/ndjamena.js b/tests/zones/africa/ndjamena.js new file mode 100644 index 00000000..ae732453 --- /dev/null +++ b/tests/zones/africa/ndjamena.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Ndjamena"] = { + "1911" : helpers.makeTestYear("Africa/Ndjamena", [ + ["1911-12-31T22:59:47+00:00", "23:59:59", "LMT", -3612 / 60], + ["1911-12-31T22:59:48+00:00", "23:59:48", "WAT", -60] + ]), + + "1979" : helpers.makeTestYear("Africa/Ndjamena", [ + ["1979-10-13T22:59:59+00:00", "23:59:59", "WAT", -60], + ["1979-10-13T23:00:00+00:00", "01:00:00", "WAST", -120] + ]), + + "1980" : helpers.makeTestYear("Africa/Ndjamena", [ + ["1980-03-07T21:59:59+00:00", "23:59:59", "WAST", -120], + ["1980-03-07T22:00:00+00:00", "23:00:00", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/niamey.js b/tests/zones/africa/niamey.js new file mode 100644 index 00000000..e91cbe94 --- /dev/null +++ b/tests/zones/africa/niamey.js @@ -0,0 +1,23 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Niamey"] = { + "1911" : helpers.makeTestYear("Africa/Niamey", [ + ["1911-12-31T23:51:31+00:00", "23:59:59", "LMT", -508 / 60], + ["1911-12-31T23:51:32+00:00", "22:51:32", "WAT", 60] + ]), + + "1934" : helpers.makeTestYear("Africa/Niamey", [ + ["1934-02-26T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1934-02-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1959" : helpers.makeTestYear("Africa/Niamey", [ + ["1959-12-31T23:59:59+00:00", "23:59:59", "GMT", 0] + ]), + + "1960" : helpers.makeTestYear("Africa/Niamey", [ + ["1960-01-01T00:00:00+00:00", "01:00:00", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/nouakchott.js b/tests/zones/africa/nouakchott.js new file mode 100644 index 00000000..45cf4a6d --- /dev/null +++ b/tests/zones/africa/nouakchott.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Nouakchott"] = { + "1912" : helpers.makeTestYear("Africa/Nouakchott", [ + ["1912-01-01T01:03:47+00:00", "23:59:59", "LMT", 3828 / 60], + ["1912-01-01T01:03:48+00:00", "01:03:48", "GMT", 0] + ]), + + "1934" : helpers.makeTestYear("Africa/Nouakchott", [ + ["1934-02-25T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1934-02-26T00:00:00+00:00", "23:00:00", "WAT", 60] + ]), + + "1960" : helpers.makeTestYear("Africa/Nouakchott", [ + ["1960-11-28T00:59:59+00:00", "23:59:59", "WAT", 60], + ["1960-11-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/ouagadougou.js b/tests/zones/africa/ouagadougou.js new file mode 100644 index 00000000..0d5bb09a --- /dev/null +++ b/tests/zones/africa/ouagadougou.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Ouagadougou"] = { + "1912" : helpers.makeTestYear("Africa/Ouagadougou", [ + ["1912-01-01T00:06:03+00:00", "23:59:59", "LMT", 364 / 60], + ["1912-01-01T00:06:04+00:00", "00:06:04", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/porto-novo.js b/tests/zones/africa/porto-novo.js new file mode 100644 index 00000000..86a65b08 --- /dev/null +++ b/tests/zones/africa/porto-novo.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Porto-Novo"] = { + "1911" : helpers.makeTestYear("Africa/Porto-Novo", [ + ["1911-12-31T23:49:31+00:00", "23:59:59", "LMT", -628 / 60], + ["1911-12-31T23:49:32+00:00", "23:49:32", "GMT", 0] + ]), + + "1934" : helpers.makeTestYear("Africa/Porto-Novo", [ + ["1934-02-25T23:59:59+00:00", "23:59:59", "GMT", 0], + ["1934-02-26T00:00:00+00:00", "01:00:00", "WAT", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/sao_tome.js b/tests/zones/africa/sao_tome.js new file mode 100644 index 00000000..3921f5e6 --- /dev/null +++ b/tests/zones/africa/sao_tome.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Sao_Tome"] = { + "1912" : helpers.makeTestYear("Africa/Sao_Tome", [ + ["1912-01-01T00:36:31+00:00", "23:59:59", "LMT", 2192 / 60], + ["1912-01-01T00:36:32+00:00", "00:36:32", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/tripoli.js b/tests/zones/africa/tripoli.js new file mode 100644 index 00000000..d895ec27 --- /dev/null +++ b/tests/zones/africa/tripoli.js @@ -0,0 +1,126 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Tripoli"] = { + "1919" : helpers.makeTestYear("Africa/Tripoli", [ + ["1919-12-31T23:07:15+00:00", "23:59:59", "LMT", -3164 / 60], + ["1919-12-31T23:07:16+00:00", "00:07:16", "CET", -60] + ]), + + "1951" : helpers.makeTestYear("Africa/Tripoli", [ + ["1951-10-14T00:59:59+00:00", "01:59:59", "CET", -60], + ["1951-10-14T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1951-12-31T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1951-12-31T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1953" : helpers.makeTestYear("Africa/Tripoli", [ + ["1953-10-09T00:59:59+00:00", "01:59:59", "CET", -60], + ["1953-10-09T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1953-12-31T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1953-12-31T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1955" : helpers.makeTestYear("Africa/Tripoli", [ + ["1955-09-29T22:59:59+00:00", "23:59:59", "CET", -60], + ["1955-09-29T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1955-12-31T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1955-12-31T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1958" : helpers.makeTestYear("Africa/Tripoli", [ + ["1958-12-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1958-12-31T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1981" : helpers.makeTestYear("Africa/Tripoli", [ + ["1981-12-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1981-12-31T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Africa/Tripoli", [ + ["1982-03-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1982-03-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1982-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1982-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Africa/Tripoli", [ + ["1983-03-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1983-03-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1983-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1983-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Africa/Tripoli", [ + ["1984-03-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1984-03-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1984-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1984-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Africa/Tripoli", [ + ["1985-04-05T22:59:59+00:00", "23:59:59", "CET", -60], + ["1985-04-05T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1985-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1985-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Africa/Tripoli", [ + ["1986-04-03T22:59:59+00:00", "23:59:59", "CET", -60], + ["1986-04-03T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1986-10-02T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1986-10-02T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Africa/Tripoli", [ + ["1987-03-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1987-03-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1987-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1987-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Africa/Tripoli", [ + ["1988-03-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1988-03-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1988-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1988-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Africa/Tripoli", [ + ["1989-03-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1989-03-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1989-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1989-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Africa/Tripoli", [ + ["1990-05-03T22:59:59+00:00", "23:59:59", "CET", -60], + ["1990-05-03T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Africa/Tripoli", [ + ["1996-09-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-09-29T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Africa/Tripoli", [ + ["1997-04-03T22:59:59+00:00", "23:59:59", "CET", -60], + ["1997-04-03T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1997-10-03T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1997-10-03T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Africa/Tripoli", [ + ["2012-11-09T23:59:59+00:00", "01:59:59", "EET", -120], + ["2012-11-10T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Africa/Tripoli", [ + ["2013-03-28T23:59:59+00:00", "00:59:59", "CET", -60], + ["2013-03-29T00:00:00+00:00", "02:00:00", "CEST", -120], + ["2013-10-24T23:59:59+00:00", "01:59:59", "CEST", -120], + ["2013-10-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/tunis.js b/tests/zones/africa/tunis.js new file mode 100644 index 00000000..e2f0f835 --- /dev/null +++ b/tests/zones/africa/tunis.js @@ -0,0 +1,122 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Tunis"] = { + "1911" : helpers.makeTestYear("Africa/Tunis", [ + ["1911-03-10T23:50:38+00:00", "23:59:59", "PMT", -561 / 60], + ["1911-03-10T23:50:39+00:00", "00:50:39", "CET", -60] + ]), + + "1939" : helpers.makeTestYear("Africa/Tunis", [ + ["1939-04-15T21:59:59+00:00", "22:59:59", "CET", -60], + ["1939-04-15T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1939-11-18T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1939-11-18T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Africa/Tunis", [ + ["1940-02-25T21:59:59+00:00", "22:59:59", "CET", -60], + ["1940-02-25T22:00:00+00:00", "00:00:00", "CEST", -120] + ]), + + "1941" : helpers.makeTestYear("Africa/Tunis", [ + ["1941-10-05T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1941-10-05T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1942" : helpers.makeTestYear("Africa/Tunis", [ + ["1942-03-08T22:59:59+00:00", "23:59:59", "CET", -60], + ["1942-03-08T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Africa/Tunis", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-04-16T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1943-04-17T00:00:00+00:00", "01:00:00", "CET", -60], + ["1943-04-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-04-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-03T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1943-10-04T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Africa/Tunis", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-07T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1944-10-07T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Africa/Tunis", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-09-15T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1945-09-15T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Africa/Tunis", [ + ["1977-04-29T22:59:59+00:00", "23:59:59", "CET", -60], + ["1977-04-29T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1977-09-23T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1977-09-23T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Africa/Tunis", [ + ["1978-04-30T22:59:59+00:00", "23:59:59", "CET", -60], + ["1978-04-30T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1978-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1978-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Africa/Tunis", [ + ["1988-05-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1988-05-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1988-09-24T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1988-09-24T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Africa/Tunis", [ + ["1989-03-25T22:59:59+00:00", "23:59:59", "CET", -60], + ["1989-03-25T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1989-09-23T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1989-09-23T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Africa/Tunis", [ + ["1990-04-30T22:59:59+00:00", "23:59:59", "CET", -60], + ["1990-04-30T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1990-09-29T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1990-09-29T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Africa/Tunis", [ + ["2005-04-30T22:59:59+00:00", "23:59:59", "CET", -60], + ["2005-04-30T23:00:00+00:00", "01:00:00", "CEST", -120], + ["2005-09-29T23:59:59+00:00", "01:59:59", "CEST", -120], + ["2005-09-30T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Africa/Tunis", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Africa/Tunis", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Africa/Tunis", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/africa/windhoek.js b/tests/zones/africa/windhoek.js new file mode 100644 index 00000000..08a4648c --- /dev/null +++ b/tests/zones/africa/windhoek.js @@ -0,0 +1,333 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Africa/Windhoek"] = { + "1903" : helpers.makeTestYear("Africa/Windhoek", [ + ["1903-02-28T22:29:59+00:00", "23:59:59", "SWAT", -90], + ["1903-02-28T22:30:00+00:00", "00:30:00", "SAST", -120] + ]), + + "1942" : helpers.makeTestYear("Africa/Windhoek", [ + ["1942-09-19T23:59:59+00:00", "01:59:59", "SAST", -120], + ["1942-09-20T00:00:00+00:00", "03:00:00", "SAST", -180] + ]), + + "1943" : helpers.makeTestYear("Africa/Windhoek", [ + ["1943-03-20T22:59:59+00:00", "01:59:59", "SAST", -180], + ["1943-03-20T23:00:00+00:00", "01:00:00", "SAST", -120] + ]), + + "1990" : helpers.makeTestYear("Africa/Windhoek", [ + ["1990-03-20T21:59:59+00:00", "23:59:59", "SAST", -120], + ["1990-03-20T22:00:00+00:00", "00:00:00", "CAT", -120] + ]), + + "1994" : helpers.makeTestYear("Africa/Windhoek", [ + ["1994-04-02T21:59:59+00:00", "23:59:59", "CAT", -120], + ["1994-04-02T22:00:00+00:00", "23:00:00", "WAT", -60], + ["1994-09-04T00:59:59+00:00", "01:59:59", "WAT", -60], + ["1994-09-04T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "1995" : helpers.makeTestYear("Africa/Windhoek", [ + ["1995-04-01T23:59:59+00:00", "01:59:59", "WAST", -120], + ["1995-04-02T00:00:00+00:00", "01:00:00", "WAT", -60], + ["1995-09-03T00:59:59+00:00", "01:59:59", "WAT", -60], + ["1995-09-03T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "1996" : helpers.makeTestYear("Africa/Windhoek", [ + ["1996-04-06T23:59:59+00:00", "01:59:59", "WAST", -120], + ["1996-04-07T00:00:00+00:00", "01:00:00", "WAT", -60], + ["1996-09-01T00:59:59+00:00", "01:59:59", "WAT", -60], + ["1996-09-01T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "1997" : helpers.makeTestYear("Africa/Windhoek", [ + ["1997-04-05T23:59:59+00:00", "01:59:59", "WAST", -120], + ["1997-04-06T00:00:00+00:00", "01:00:00", "WAT", -60], + ["1997-09-07T00:59:59+00:00", "01:59:59", "WAT", -60], + ["1997-09-07T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "1998" : helpers.makeTestYear("Africa/Windhoek", [ + ["1998-04-04T23:59:59+00:00", "01:59:59", "WAST", -120], + ["1998-04-05T00:00:00+00:00", "01:00:00", "WAT", -60], + ["1998-09-06T00:59:59+00:00", "01:59:59", "WAT", -60], + ["1998-09-06T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "1999" : helpers.makeTestYear("Africa/Windhoek", [ + ["1999-04-03T23:59:59+00:00", "01:59:59", "WAST", -120], + ["1999-04-04T00:00:00+00:00", "01:00:00", "WAT", -60], + ["1999-09-05T00:59:59+00:00", "01:59:59", "WAT", -60], + ["1999-09-05T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2000" : helpers.makeTestYear("Africa/Windhoek", [ + ["2000-04-01T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2000-04-02T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2000-09-03T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2000-09-03T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2001" : helpers.makeTestYear("Africa/Windhoek", [ + ["2001-03-31T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2001-04-01T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2001-09-02T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2001-09-02T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2002" : helpers.makeTestYear("Africa/Windhoek", [ + ["2002-04-06T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2002-04-07T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2002-09-01T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2002-09-01T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2003" : helpers.makeTestYear("Africa/Windhoek", [ + ["2003-04-05T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2003-04-06T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2003-09-07T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2003-09-07T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2004" : helpers.makeTestYear("Africa/Windhoek", [ + ["2004-04-03T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2004-04-04T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2004-09-05T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2004-09-05T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2005" : helpers.makeTestYear("Africa/Windhoek", [ + ["2005-04-02T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2005-04-03T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2005-09-04T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2005-09-04T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2006" : helpers.makeTestYear("Africa/Windhoek", [ + ["2006-04-01T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2006-04-02T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2006-09-03T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2006-09-03T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2007" : helpers.makeTestYear("Africa/Windhoek", [ + ["2007-03-31T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2007-04-01T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2007-09-02T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2007-09-02T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2008" : helpers.makeTestYear("Africa/Windhoek", [ + ["2008-04-05T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2008-04-06T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2008-09-07T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2008-09-07T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2009" : helpers.makeTestYear("Africa/Windhoek", [ + ["2009-04-04T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2009-04-05T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2009-09-06T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2009-09-06T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2010" : helpers.makeTestYear("Africa/Windhoek", [ + ["2010-04-03T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2010-04-04T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2010-09-05T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2010-09-05T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2011" : helpers.makeTestYear("Africa/Windhoek", [ + ["2011-04-02T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2011-04-03T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2011-09-04T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2011-09-04T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2012" : helpers.makeTestYear("Africa/Windhoek", [ + ["2012-03-31T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2012-04-01T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2012-09-02T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2012-09-02T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2013" : helpers.makeTestYear("Africa/Windhoek", [ + ["2013-04-06T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2013-04-07T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2013-09-01T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2013-09-01T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2014" : helpers.makeTestYear("Africa/Windhoek", [ + ["2014-04-05T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2014-04-06T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2014-09-07T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2014-09-07T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2015" : helpers.makeTestYear("Africa/Windhoek", [ + ["2015-04-04T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2015-04-05T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2015-09-06T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2015-09-06T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2016" : helpers.makeTestYear("Africa/Windhoek", [ + ["2016-04-02T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2016-04-03T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2016-09-04T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2016-09-04T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2017" : helpers.makeTestYear("Africa/Windhoek", [ + ["2017-04-01T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2017-04-02T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2017-09-03T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2017-09-03T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2018" : helpers.makeTestYear("Africa/Windhoek", [ + ["2018-03-31T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2018-04-01T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2018-09-02T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2018-09-02T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2019" : helpers.makeTestYear("Africa/Windhoek", [ + ["2019-04-06T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2019-04-07T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2019-09-01T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2019-09-01T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2020" : helpers.makeTestYear("Africa/Windhoek", [ + ["2020-04-04T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2020-04-05T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2020-09-06T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2020-09-06T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2021" : helpers.makeTestYear("Africa/Windhoek", [ + ["2021-04-03T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2021-04-04T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2021-09-05T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2021-09-05T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2022" : helpers.makeTestYear("Africa/Windhoek", [ + ["2022-04-02T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2022-04-03T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2022-09-04T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2022-09-04T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2023" : helpers.makeTestYear("Africa/Windhoek", [ + ["2023-04-01T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2023-04-02T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2023-09-03T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2023-09-03T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2024" : helpers.makeTestYear("Africa/Windhoek", [ + ["2024-04-06T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2024-04-07T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2024-09-01T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2024-09-01T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2025" : helpers.makeTestYear("Africa/Windhoek", [ + ["2025-04-05T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2025-04-06T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2025-09-07T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2025-09-07T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2026" : helpers.makeTestYear("Africa/Windhoek", [ + ["2026-04-04T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2026-04-05T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2026-09-06T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2026-09-06T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2027" : helpers.makeTestYear("Africa/Windhoek", [ + ["2027-04-03T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2027-04-04T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2027-09-05T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2027-09-05T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2028" : helpers.makeTestYear("Africa/Windhoek", [ + ["2028-04-01T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2028-04-02T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2028-09-03T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2028-09-03T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2029" : helpers.makeTestYear("Africa/Windhoek", [ + ["2029-03-31T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2029-04-01T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2029-09-02T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2029-09-02T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2030" : helpers.makeTestYear("Africa/Windhoek", [ + ["2030-04-06T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2030-04-07T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2030-09-01T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2030-09-01T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2031" : helpers.makeTestYear("Africa/Windhoek", [ + ["2031-04-05T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2031-04-06T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2031-09-07T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2031-09-07T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2032" : helpers.makeTestYear("Africa/Windhoek", [ + ["2032-04-03T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2032-04-04T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2032-09-05T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2032-09-05T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2033" : helpers.makeTestYear("Africa/Windhoek", [ + ["2033-04-02T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2033-04-03T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2033-09-04T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2033-09-04T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2034" : helpers.makeTestYear("Africa/Windhoek", [ + ["2034-04-01T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2034-04-02T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2034-09-03T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2034-09-03T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2035" : helpers.makeTestYear("Africa/Windhoek", [ + ["2035-03-31T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2035-04-01T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2035-09-02T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2035-09-02T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2036" : helpers.makeTestYear("Africa/Windhoek", [ + ["2036-04-05T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2036-04-06T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2036-09-07T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2036-09-07T01:00:00+00:00", "03:00:00", "WAST", -120] + ]), + + "2037" : helpers.makeTestYear("Africa/Windhoek", [ + ["2037-04-04T23:59:59+00:00", "01:59:59", "WAST", -120], + ["2037-04-05T00:00:00+00:00", "01:00:00", "WAT", -60], + ["2037-09-06T00:59:59+00:00", "01:59:59", "WAT", -60], + ["2037-09-06T01:00:00+00:00", "03:00:00", "WAST", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/adak.js b/tests/zones/america/adak.js new file mode 100644 index 00000000..98258600 --- /dev/null +++ b/tests/zones/america/adak.js @@ -0,0 +1,507 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Adak"] = { + "1942" : helpers.makeTestYear("America/Adak", [ + ["1942-02-09T12:59:59+00:00", "01:59:59", "NST", 660], + ["1942-02-09T13:00:00+00:00", "03:00:00", "NWT", 600] + ]), + + "1945" : helpers.makeTestYear("America/Adak", [ + ["1945-08-14T22:59:59+00:00", "12:59:59", "NWT", 600], + ["1945-08-14T23:00:00+00:00", "13:00:00", "NPT", 600], + ["1945-09-30T11:59:59+00:00", "01:59:59", "NPT", 600], + ["1945-09-30T12:00:00+00:00", "01:00:00", "NST", 660] + ]), + + "1967" : helpers.makeTestYear("America/Adak", [ + ["1967-04-01T10:59:59+00:00", "23:59:59", "NST", 660], + ["1967-04-01T11:00:00+00:00", "00:00:00", "BST", 660] + ]), + + "1969" : helpers.makeTestYear("America/Adak", [ + ["1969-04-27T12:59:59+00:00", "01:59:59", "BST", 660], + ["1969-04-27T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1969-10-26T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1969-10-26T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1970" : helpers.makeTestYear("America/Adak", [ + ["1970-04-26T12:59:59+00:00", "01:59:59", "BST", 660], + ["1970-04-26T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1970-10-25T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1970-10-25T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1971" : helpers.makeTestYear("America/Adak", [ + ["1971-04-25T12:59:59+00:00", "01:59:59", "BST", 660], + ["1971-04-25T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1971-10-31T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1971-10-31T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1972" : helpers.makeTestYear("America/Adak", [ + ["1972-04-30T12:59:59+00:00", "01:59:59", "BST", 660], + ["1972-04-30T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1972-10-29T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1972-10-29T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1973" : helpers.makeTestYear("America/Adak", [ + ["1973-04-29T12:59:59+00:00", "01:59:59", "BST", 660], + ["1973-04-29T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1973-10-28T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1973-10-28T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1974" : helpers.makeTestYear("America/Adak", [ + ["1974-01-06T12:59:59+00:00", "01:59:59", "BST", 660], + ["1974-01-06T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1974-10-27T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1974-10-27T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1975" : helpers.makeTestYear("America/Adak", [ + ["1975-02-23T12:59:59+00:00", "01:59:59", "BST", 660], + ["1975-02-23T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1975-10-26T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1975-10-26T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1976" : helpers.makeTestYear("America/Adak", [ + ["1976-04-25T12:59:59+00:00", "01:59:59", "BST", 660], + ["1976-04-25T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1976-10-31T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1976-10-31T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1977" : helpers.makeTestYear("America/Adak", [ + ["1977-04-24T12:59:59+00:00", "01:59:59", "BST", 660], + ["1977-04-24T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1977-10-30T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1977-10-30T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1978" : helpers.makeTestYear("America/Adak", [ + ["1978-04-30T12:59:59+00:00", "01:59:59", "BST", 660], + ["1978-04-30T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1978-10-29T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1978-10-29T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1979" : helpers.makeTestYear("America/Adak", [ + ["1979-04-29T12:59:59+00:00", "01:59:59", "BST", 660], + ["1979-04-29T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1979-10-28T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1979-10-28T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1980" : helpers.makeTestYear("America/Adak", [ + ["1980-04-27T12:59:59+00:00", "01:59:59", "BST", 660], + ["1980-04-27T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1980-10-26T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1980-10-26T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1981" : helpers.makeTestYear("America/Adak", [ + ["1981-04-26T12:59:59+00:00", "01:59:59", "BST", 660], + ["1981-04-26T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1981-10-25T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1981-10-25T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1982" : helpers.makeTestYear("America/Adak", [ + ["1982-04-25T12:59:59+00:00", "01:59:59", "BST", 660], + ["1982-04-25T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1982-10-31T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1982-10-31T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1983" : helpers.makeTestYear("America/Adak", [ + ["1983-04-24T12:59:59+00:00", "01:59:59", "BST", 660], + ["1983-04-24T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1983-10-30T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1983-10-30T12:00:00+00:00", "02:00:00", "AHST", 600], + ["1983-11-30T09:59:59+00:00", "23:59:59", "AHST", 600], + ["1983-11-30T10:00:00+00:00", "00:00:00", "HAST", 600] + ]), + + "1984" : helpers.makeTestYear("America/Adak", [ + ["1984-04-29T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1984-04-29T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1984-10-28T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1984-10-28T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1985" : helpers.makeTestYear("America/Adak", [ + ["1985-04-28T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1985-04-28T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1985-10-27T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1985-10-27T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1986" : helpers.makeTestYear("America/Adak", [ + ["1986-04-27T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1986-04-27T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1986-10-26T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1986-10-26T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1987" : helpers.makeTestYear("America/Adak", [ + ["1987-04-05T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1987-04-05T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1987-10-25T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1987-10-25T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1988" : helpers.makeTestYear("America/Adak", [ + ["1988-04-03T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1988-04-03T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1988-10-30T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1988-10-30T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1989" : helpers.makeTestYear("America/Adak", [ + ["1989-04-02T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1989-04-02T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1989-10-29T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1989-10-29T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1990" : helpers.makeTestYear("America/Adak", [ + ["1990-04-01T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1990-04-01T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1990-10-28T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1990-10-28T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1991" : helpers.makeTestYear("America/Adak", [ + ["1991-04-07T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1991-04-07T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1991-10-27T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1991-10-27T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1992" : helpers.makeTestYear("America/Adak", [ + ["1992-04-05T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1992-04-05T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1992-10-25T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1992-10-25T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1993" : helpers.makeTestYear("America/Adak", [ + ["1993-04-04T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1993-04-04T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1993-10-31T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1993-10-31T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1994" : helpers.makeTestYear("America/Adak", [ + ["1994-04-03T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1994-04-03T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1994-10-30T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1994-10-30T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1995" : helpers.makeTestYear("America/Adak", [ + ["1995-04-02T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1995-04-02T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1995-10-29T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1995-10-29T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1996" : helpers.makeTestYear("America/Adak", [ + ["1996-04-07T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1996-04-07T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1996-10-27T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1996-10-27T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1997" : helpers.makeTestYear("America/Adak", [ + ["1997-04-06T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1997-04-06T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1997-10-26T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1997-10-26T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1998" : helpers.makeTestYear("America/Adak", [ + ["1998-04-05T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1998-04-05T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1998-10-25T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1998-10-25T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "1999" : helpers.makeTestYear("America/Adak", [ + ["1999-04-04T11:59:59+00:00", "01:59:59", "HAST", 600], + ["1999-04-04T12:00:00+00:00", "03:00:00", "HADT", 540], + ["1999-10-31T10:59:59+00:00", "01:59:59", "HADT", 540], + ["1999-10-31T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2000" : helpers.makeTestYear("America/Adak", [ + ["2000-04-02T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2000-04-02T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2000-10-29T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2000-10-29T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2001" : helpers.makeTestYear("America/Adak", [ + ["2001-04-01T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2001-04-01T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2001-10-28T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2001-10-28T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2002" : helpers.makeTestYear("America/Adak", [ + ["2002-04-07T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2002-04-07T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2002-10-27T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2002-10-27T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2003" : helpers.makeTestYear("America/Adak", [ + ["2003-04-06T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2003-04-06T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2003-10-26T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2003-10-26T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2004" : helpers.makeTestYear("America/Adak", [ + ["2004-04-04T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2004-04-04T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2004-10-31T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2004-10-31T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2005" : helpers.makeTestYear("America/Adak", [ + ["2005-04-03T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2005-04-03T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2005-10-30T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2005-10-30T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2006" : helpers.makeTestYear("America/Adak", [ + ["2006-04-02T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2006-04-02T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2006-10-29T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2006-10-29T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2007" : helpers.makeTestYear("America/Adak", [ + ["2007-03-11T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2007-03-11T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2007-11-04T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2007-11-04T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2008" : helpers.makeTestYear("America/Adak", [ + ["2008-03-09T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2008-03-09T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2008-11-02T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2008-11-02T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2009" : helpers.makeTestYear("America/Adak", [ + ["2009-03-08T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2009-03-08T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2009-11-01T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2009-11-01T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2010" : helpers.makeTestYear("America/Adak", [ + ["2010-03-14T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2010-03-14T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2010-11-07T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2010-11-07T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2011" : helpers.makeTestYear("America/Adak", [ + ["2011-03-13T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2011-03-13T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2011-11-06T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2011-11-06T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2012" : helpers.makeTestYear("America/Adak", [ + ["2012-03-11T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2012-03-11T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2012-11-04T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2012-11-04T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2013" : helpers.makeTestYear("America/Adak", [ + ["2013-03-10T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2013-03-10T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2013-11-03T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2013-11-03T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2014" : helpers.makeTestYear("America/Adak", [ + ["2014-03-09T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2014-03-09T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2014-11-02T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2014-11-02T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2015" : helpers.makeTestYear("America/Adak", [ + ["2015-03-08T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2015-03-08T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2015-11-01T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2015-11-01T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2016" : helpers.makeTestYear("America/Adak", [ + ["2016-03-13T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2016-03-13T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2016-11-06T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2016-11-06T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2017" : helpers.makeTestYear("America/Adak", [ + ["2017-03-12T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2017-03-12T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2017-11-05T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2017-11-05T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2018" : helpers.makeTestYear("America/Adak", [ + ["2018-03-11T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2018-03-11T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2018-11-04T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2018-11-04T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2019" : helpers.makeTestYear("America/Adak", [ + ["2019-03-10T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2019-03-10T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2019-11-03T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2019-11-03T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2020" : helpers.makeTestYear("America/Adak", [ + ["2020-03-08T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2020-03-08T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2020-11-01T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2020-11-01T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2021" : helpers.makeTestYear("America/Adak", [ + ["2021-03-14T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2021-03-14T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2021-11-07T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2021-11-07T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2022" : helpers.makeTestYear("America/Adak", [ + ["2022-03-13T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2022-03-13T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2022-11-06T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2022-11-06T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2023" : helpers.makeTestYear("America/Adak", [ + ["2023-03-12T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2023-03-12T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2023-11-05T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2023-11-05T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2024" : helpers.makeTestYear("America/Adak", [ + ["2024-03-10T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2024-03-10T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2024-11-03T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2024-11-03T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2025" : helpers.makeTestYear("America/Adak", [ + ["2025-03-09T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2025-03-09T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2025-11-02T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2025-11-02T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2026" : helpers.makeTestYear("America/Adak", [ + ["2026-03-08T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2026-03-08T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2026-11-01T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2026-11-01T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2027" : helpers.makeTestYear("America/Adak", [ + ["2027-03-14T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2027-03-14T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2027-11-07T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2027-11-07T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2028" : helpers.makeTestYear("America/Adak", [ + ["2028-03-12T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2028-03-12T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2028-11-05T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2028-11-05T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2029" : helpers.makeTestYear("America/Adak", [ + ["2029-03-11T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2029-03-11T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2029-11-04T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2029-11-04T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2030" : helpers.makeTestYear("America/Adak", [ + ["2030-03-10T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2030-03-10T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2030-11-03T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2030-11-03T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2031" : helpers.makeTestYear("America/Adak", [ + ["2031-03-09T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2031-03-09T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2031-11-02T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2031-11-02T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2032" : helpers.makeTestYear("America/Adak", [ + ["2032-03-14T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2032-03-14T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2032-11-07T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2032-11-07T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2033" : helpers.makeTestYear("America/Adak", [ + ["2033-03-13T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2033-03-13T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2033-11-06T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2033-11-06T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2034" : helpers.makeTestYear("America/Adak", [ + ["2034-03-12T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2034-03-12T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2034-11-05T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2034-11-05T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2035" : helpers.makeTestYear("America/Adak", [ + ["2035-03-11T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2035-03-11T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2035-11-04T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2035-11-04T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2036" : helpers.makeTestYear("America/Adak", [ + ["2036-03-09T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2036-03-09T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2036-11-02T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2036-11-02T11:00:00+00:00", "01:00:00", "HAST", 600] + ]), + + "2037" : helpers.makeTestYear("America/Adak", [ + ["2037-03-08T11:59:59+00:00", "01:59:59", "HAST", 600], + ["2037-03-08T12:00:00+00:00", "03:00:00", "HADT", 540], + ["2037-11-01T10:59:59+00:00", "01:59:59", "HADT", 540], + ["2037-11-01T11:00:00+00:00", "01:00:00", "HAST", 600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/anchorage.js b/tests/zones/america/anchorage.js new file mode 100644 index 00000000..a7325f0c --- /dev/null +++ b/tests/zones/america/anchorage.js @@ -0,0 +1,507 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Anchorage"] = { + "1942" : helpers.makeTestYear("America/Anchorage", [ + ["1942-02-09T11:59:59+00:00", "01:59:59", "CAT", 600], + ["1942-02-09T12:00:00+00:00", "03:00:00", "CAWT", 540] + ]), + + "1945" : helpers.makeTestYear("America/Anchorage", [ + ["1945-08-14T22:59:59+00:00", "13:59:59", "CAWT", 540], + ["1945-08-14T23:00:00+00:00", "14:00:00", "CAPT", 540], + ["1945-09-30T10:59:59+00:00", "01:59:59", "CAPT", 540], + ["1945-09-30T11:00:00+00:00", "01:00:00", "CAT", 600] + ]), + + "1967" : helpers.makeTestYear("America/Anchorage", [ + ["1967-04-01T09:59:59+00:00", "23:59:59", "CAT", 600], + ["1967-04-01T10:00:00+00:00", "00:00:00", "AHST", 600] + ]), + + "1969" : helpers.makeTestYear("America/Anchorage", [ + ["1969-04-27T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1969-04-27T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1969-10-26T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1969-10-26T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1970" : helpers.makeTestYear("America/Anchorage", [ + ["1970-04-26T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1970-04-26T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1970-10-25T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1970-10-25T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1971" : helpers.makeTestYear("America/Anchorage", [ + ["1971-04-25T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1971-04-25T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1971-10-31T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1971-10-31T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1972" : helpers.makeTestYear("America/Anchorage", [ + ["1972-04-30T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1972-04-30T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1972-10-29T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1972-10-29T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1973" : helpers.makeTestYear("America/Anchorage", [ + ["1973-04-29T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1973-04-29T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1973-10-28T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1973-10-28T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1974" : helpers.makeTestYear("America/Anchorage", [ + ["1974-01-06T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1974-01-06T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1974-10-27T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1974-10-27T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1975" : helpers.makeTestYear("America/Anchorage", [ + ["1975-02-23T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1975-02-23T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1975-10-26T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1975-10-26T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1976" : helpers.makeTestYear("America/Anchorage", [ + ["1976-04-25T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1976-04-25T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1976-10-31T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1976-10-31T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1977" : helpers.makeTestYear("America/Anchorage", [ + ["1977-04-24T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1977-04-24T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1977-10-30T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1977-10-30T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1978" : helpers.makeTestYear("America/Anchorage", [ + ["1978-04-30T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1978-04-30T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1978-10-29T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1978-10-29T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1979" : helpers.makeTestYear("America/Anchorage", [ + ["1979-04-29T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1979-04-29T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1979-10-28T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1979-10-28T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1980" : helpers.makeTestYear("America/Anchorage", [ + ["1980-04-27T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1980-04-27T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1980-10-26T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1980-10-26T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1981" : helpers.makeTestYear("America/Anchorage", [ + ["1981-04-26T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1981-04-26T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1981-10-25T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1981-10-25T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1982" : helpers.makeTestYear("America/Anchorage", [ + ["1982-04-25T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1982-04-25T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1982-10-31T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1982-10-31T11:00:00+00:00", "01:00:00", "AHST", 600] + ]), + + "1983" : helpers.makeTestYear("America/Anchorage", [ + ["1983-04-24T11:59:59+00:00", "01:59:59", "AHST", 600], + ["1983-04-24T12:00:00+00:00", "03:00:00", "AHDT", 540], + ["1983-10-30T10:59:59+00:00", "01:59:59", "AHDT", 540], + ["1983-10-30T11:00:00+00:00", "02:00:00", "YST", 540], + ["1983-11-30T08:59:59+00:00", "23:59:59", "YST", 540], + ["1983-11-30T09:00:00+00:00", "00:00:00", "AKST", 540] + ]), + + "1984" : helpers.makeTestYear("America/Anchorage", [ + ["1984-04-29T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1984-04-29T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1984-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1984-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1985" : helpers.makeTestYear("America/Anchorage", [ + ["1985-04-28T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1985-04-28T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1985-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1985-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1986" : helpers.makeTestYear("America/Anchorage", [ + ["1986-04-27T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1986-04-27T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1986-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1986-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1987" : helpers.makeTestYear("America/Anchorage", [ + ["1987-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1987-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1987-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1987-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1988" : helpers.makeTestYear("America/Anchorage", [ + ["1988-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1988-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1988-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1988-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1989" : helpers.makeTestYear("America/Anchorage", [ + ["1989-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1989-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1989-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1989-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1990" : helpers.makeTestYear("America/Anchorage", [ + ["1990-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1990-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1990-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1990-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1991" : helpers.makeTestYear("America/Anchorage", [ + ["1991-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1991-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1991-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1991-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1992" : helpers.makeTestYear("America/Anchorage", [ + ["1992-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1992-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1992-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1992-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1993" : helpers.makeTestYear("America/Anchorage", [ + ["1993-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1993-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1993-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1993-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1994" : helpers.makeTestYear("America/Anchorage", [ + ["1994-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1994-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1994-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1994-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1995" : helpers.makeTestYear("America/Anchorage", [ + ["1995-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1995-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1995-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1995-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1996" : helpers.makeTestYear("America/Anchorage", [ + ["1996-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1996-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1996-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1996-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1997" : helpers.makeTestYear("America/Anchorage", [ + ["1997-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1997-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1997-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1997-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1998" : helpers.makeTestYear("America/Anchorage", [ + ["1998-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1998-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1998-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1998-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1999" : helpers.makeTestYear("America/Anchorage", [ + ["1999-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1999-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1999-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1999-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2000" : helpers.makeTestYear("America/Anchorage", [ + ["2000-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2000-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2000-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2000-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2001" : helpers.makeTestYear("America/Anchorage", [ + ["2001-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2001-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2001-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2001-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2002" : helpers.makeTestYear("America/Anchorage", [ + ["2002-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2002-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2002-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2002-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2003" : helpers.makeTestYear("America/Anchorage", [ + ["2003-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2003-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2003-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2003-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2004" : helpers.makeTestYear("America/Anchorage", [ + ["2004-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2004-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2004-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2004-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2005" : helpers.makeTestYear("America/Anchorage", [ + ["2005-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2005-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2005-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2005-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2006" : helpers.makeTestYear("America/Anchorage", [ + ["2006-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2006-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2006-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2006-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2007" : helpers.makeTestYear("America/Anchorage", [ + ["2007-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2007-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2007-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2007-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2008" : helpers.makeTestYear("America/Anchorage", [ + ["2008-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2008-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2008-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2008-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2009" : helpers.makeTestYear("America/Anchorage", [ + ["2009-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2009-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2009-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2009-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2010" : helpers.makeTestYear("America/Anchorage", [ + ["2010-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2010-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2010-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2010-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2011" : helpers.makeTestYear("America/Anchorage", [ + ["2011-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2011-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2011-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2011-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2012" : helpers.makeTestYear("America/Anchorage", [ + ["2012-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2012-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2012-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2012-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2013" : helpers.makeTestYear("America/Anchorage", [ + ["2013-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2013-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2013-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2013-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2014" : helpers.makeTestYear("America/Anchorage", [ + ["2014-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2014-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2014-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2014-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2015" : helpers.makeTestYear("America/Anchorage", [ + ["2015-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2015-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2015-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2015-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2016" : helpers.makeTestYear("America/Anchorage", [ + ["2016-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2016-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2016-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2016-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2017" : helpers.makeTestYear("America/Anchorage", [ + ["2017-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2017-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2017-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2017-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2018" : helpers.makeTestYear("America/Anchorage", [ + ["2018-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2018-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2018-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2018-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2019" : helpers.makeTestYear("America/Anchorage", [ + ["2019-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2019-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2019-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2019-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2020" : helpers.makeTestYear("America/Anchorage", [ + ["2020-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2020-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2020-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2020-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2021" : helpers.makeTestYear("America/Anchorage", [ + ["2021-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2021-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2021-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2021-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2022" : helpers.makeTestYear("America/Anchorage", [ + ["2022-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2022-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2022-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2022-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2023" : helpers.makeTestYear("America/Anchorage", [ + ["2023-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2023-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2023-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2023-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2024" : helpers.makeTestYear("America/Anchorage", [ + ["2024-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2024-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2024-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2024-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2025" : helpers.makeTestYear("America/Anchorage", [ + ["2025-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2025-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2025-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2025-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2026" : helpers.makeTestYear("America/Anchorage", [ + ["2026-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2026-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2026-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2026-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2027" : helpers.makeTestYear("America/Anchorage", [ + ["2027-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2027-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2027-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2027-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2028" : helpers.makeTestYear("America/Anchorage", [ + ["2028-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2028-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2028-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2028-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2029" : helpers.makeTestYear("America/Anchorage", [ + ["2029-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2029-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2029-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2029-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2030" : helpers.makeTestYear("America/Anchorage", [ + ["2030-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2030-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2030-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2030-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2031" : helpers.makeTestYear("America/Anchorage", [ + ["2031-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2031-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2031-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2031-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2032" : helpers.makeTestYear("America/Anchorage", [ + ["2032-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2032-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2032-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2032-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2033" : helpers.makeTestYear("America/Anchorage", [ + ["2033-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2033-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2033-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2033-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2034" : helpers.makeTestYear("America/Anchorage", [ + ["2034-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2034-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2034-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2034-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2035" : helpers.makeTestYear("America/Anchorage", [ + ["2035-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2035-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2035-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2035-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2036" : helpers.makeTestYear("America/Anchorage", [ + ["2036-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2036-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2036-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2036-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2037" : helpers.makeTestYear("America/Anchorage", [ + ["2037-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2037-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2037-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2037-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/anguilla.js b/tests/zones/america/anguilla.js new file mode 100644 index 00000000..2615eeb5 --- /dev/null +++ b/tests/zones/america/anguilla.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Anguilla"] = { + "1912" : helpers.makeTestYear("America/Anguilla", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/antigua.js b/tests/zones/america/antigua.js new file mode 100644 index 00000000..a702d4c0 --- /dev/null +++ b/tests/zones/america/antigua.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Antigua"] = { + "1912" : helpers.makeTestYear("America/Antigua", [ + ["1912-03-02T04:07:11+00:00", "23:59:59", "LMT", 14832 / 60], + ["1912-03-02T04:07:12+00:00", "23:07:12", "EST", 300] + ]), + + "1951" : helpers.makeTestYear("America/Antigua", [ + ["1951-01-01T04:59:59+00:00", "23:59:59", "EST", 300], + ["1951-01-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/araguaina.js b/tests/zones/america/araguaina.js new file mode 100644 index 00000000..4d0af908 --- /dev/null +++ b/tests/zones/america/araguaina.js @@ -0,0 +1,203 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Araguaina"] = { + "1914" : helpers.makeTestYear("America/Araguaina", [ + ["1914-01-01T03:12:47+00:00", "23:59:59", "LMT", 11568 / 60], + ["1914-01-01T03:12:48+00:00", "00:12:48", "BRT", 180] + ]), + + "1931" : helpers.makeTestYear("America/Araguaina", [ + ["1931-10-03T13:59:59+00:00", "10:59:59", "BRT", 180], + ["1931-10-03T14:00:00+00:00", "12:00:00", "BRST", 120] + ]), + + "1932" : helpers.makeTestYear("America/Araguaina", [ + ["1932-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1932-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1932-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1932-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1933" : helpers.makeTestYear("America/Araguaina", [ + ["1933-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1933-04-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1949" : helpers.makeTestYear("America/Araguaina", [ + ["1949-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1949-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1950" : helpers.makeTestYear("America/Araguaina", [ + ["1950-04-16T02:59:59+00:00", "00:59:59", "BRST", 120], + ["1950-04-16T03:00:00+00:00", "00:00:00", "BRT", 180], + ["1950-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1950-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1951" : helpers.makeTestYear("America/Araguaina", [ + ["1951-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1951-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1951-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1951-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1952" : helpers.makeTestYear("America/Araguaina", [ + ["1952-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1952-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1952-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1952-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1953" : helpers.makeTestYear("America/Araguaina", [ + ["1953-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1953-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1963" : helpers.makeTestYear("America/Araguaina", [ + ["1963-12-09T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1963-12-09T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1964" : helpers.makeTestYear("America/Araguaina", [ + ["1964-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1964-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1965" : helpers.makeTestYear("America/Araguaina", [ + ["1965-01-31T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-01-31T03:00:00+00:00", "01:00:00", "BRST", 120], + ["1965-03-31T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1965-03-31T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1965-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1966" : helpers.makeTestYear("America/Araguaina", [ + ["1966-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1966-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1966-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1966-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1967" : helpers.makeTestYear("America/Araguaina", [ + ["1967-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1967-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1967-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1967-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1968" : helpers.makeTestYear("America/Araguaina", [ + ["1968-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1968-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1985" : helpers.makeTestYear("America/Araguaina", [ + ["1985-11-02T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1985-11-02T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1986" : helpers.makeTestYear("America/Araguaina", [ + ["1986-03-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1986-03-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1986-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1986-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1987" : helpers.makeTestYear("America/Araguaina", [ + ["1987-02-14T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1987-02-14T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1987-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1987-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1988" : helpers.makeTestYear("America/Araguaina", [ + ["1988-02-07T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1988-02-07T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1988-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1988-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Araguaina", [ + ["1989-01-29T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1989-01-29T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Araguaina", [ + ["1990-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1990-02-11T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1995" : helpers.makeTestYear("America/Araguaina", [ + ["1995-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1995-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1996" : helpers.makeTestYear("America/Araguaina", [ + ["1996-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1996-02-11T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1996-10-06T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1996-10-06T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1997" : helpers.makeTestYear("America/Araguaina", [ + ["1997-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1997-02-16T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1997-10-06T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1997-10-06T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1998" : helpers.makeTestYear("America/Araguaina", [ + ["1998-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1998-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1998-10-11T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1998-10-11T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1999" : helpers.makeTestYear("America/Araguaina", [ + ["1999-02-21T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1999-02-21T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1999-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1999-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2000" : helpers.makeTestYear("America/Araguaina", [ + ["2000-02-27T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2000-02-27T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2000-10-08T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2000-10-08T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2001" : helpers.makeTestYear("America/Araguaina", [ + ["2001-02-18T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2001-02-18T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2001-10-14T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2001-10-14T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2002" : helpers.makeTestYear("America/Araguaina", [ + ["2002-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2002-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2002-11-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2002-11-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2003" : helpers.makeTestYear("America/Araguaina", [ + ["2003-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2003-02-16T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "2012" : helpers.makeTestYear("America/Araguaina", [ + ["2012-10-21T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2012-10-21T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2013" : helpers.makeTestYear("America/Araguaina", [ + ["2013-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2013-02-17T02:00:00+00:00", "23:00:00", "BRT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/buenos_aires.js b/tests/zones/america/argentina/buenos_aires.js new file mode 100644 index 00000000..6c432403 --- /dev/null +++ b/tests/zones/america/argentina/buenos_aires.js @@ -0,0 +1,227 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/Buenos_Aires"] = { + "1920" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "ART", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "ART", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1991-03-03T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1991-03-03T02:00:00+00:00", "23:00:00", "ART", 180], + ["1991-10-20T02:59:59+00:00", "23:59:59", "ART", 180], + ["1991-10-20T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180], + ["2008-10-19T02:59:59+00:00", "23:59:59", "ART", 180], + ["2008-10-19T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2009" : helpers.makeTestYear("America/Argentina/Buenos_Aires", [ + ["2009-03-15T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2009-03-15T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/catamarca.js b/tests/zones/america/argentina/catamarca.js new file mode 100644 index 00000000..7b23f7fa --- /dev/null +++ b/tests/zones/america/argentina/catamarca.js @@ -0,0 +1,227 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/Catamarca"] = { + "1920" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "ART", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "ART", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1991-03-03T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1991-03-03T02:00:00+00:00", "22:00:00", "WART", 240], + ["1991-10-20T03:59:59+00:00", "23:59:59", "WART", 240], + ["1991-10-20T04:00:00+00:00", "02:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2004" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["2004-06-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["2004-06-01T03:00:00+00:00", "23:00:00", "WART", 240], + ["2004-06-20T03:59:59+00:00", "23:59:59", "WART", 240], + ["2004-06-20T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/Catamarca", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/cordoba.js b/tests/zones/america/argentina/cordoba.js new file mode 100644 index 00000000..8a7fd2de --- /dev/null +++ b/tests/zones/america/argentina/cordoba.js @@ -0,0 +1,227 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/Cordoba"] = { + "1920" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "ART", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "ART", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1991-03-03T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1991-03-03T02:00:00+00:00", "22:00:00", "WART", 240], + ["1991-10-20T03:59:59+00:00", "23:59:59", "WART", 240], + ["1991-10-20T04:00:00+00:00", "02:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180], + ["2008-10-19T02:59:59+00:00", "23:59:59", "ART", 180], + ["2008-10-19T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2009" : helpers.makeTestYear("America/Argentina/Cordoba", [ + ["2009-03-15T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2009-03-15T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/jujuy.js b/tests/zones/america/argentina/jujuy.js new file mode 100644 index 00000000..2d653d98 --- /dev/null +++ b/tests/zones/america/argentina/jujuy.js @@ -0,0 +1,220 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/Jujuy"] = { + "1920" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "22:00:00", "WART", 240], + ["1990-10-28T03:59:59+00:00", "23:59:59", "WART", 240], + ["1990-10-28T04:00:00+00:00", "01:00:00", "WARST", 180] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1991-03-17T02:59:59+00:00", "23:59:59", "WARST", 180], + ["1991-03-17T03:00:00+00:00", "23:00:00", "WART", 240], + ["1991-10-06T03:59:59+00:00", "23:59:59", "WART", 240], + ["1991-10-06T04:00:00+00:00", "02:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/Jujuy", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/la_rioja.js b/tests/zones/america/argentina/la_rioja.js new file mode 100644 index 00000000..c0d7abd2 --- /dev/null +++ b/tests/zones/america/argentina/la_rioja.js @@ -0,0 +1,229 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/La_Rioja"] = { + "1920" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "ART", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "ART", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1991-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1991-03-01T02:00:00+00:00", "22:00:00", "WART", 240], + ["1991-05-07T03:59:59+00:00", "23:59:59", "WART", 240], + ["1991-05-07T04:00:00+00:00", "01:00:00", "ART", 180], + ["1991-10-20T02:59:59+00:00", "23:59:59", "ART", 180], + ["1991-10-20T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2004" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["2004-06-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["2004-06-01T03:00:00+00:00", "23:00:00", "WART", 240], + ["2004-06-20T03:59:59+00:00", "23:59:59", "WART", 240], + ["2004-06-20T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/La_Rioja", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/mendoza.js b/tests/zones/america/argentina/mendoza.js new file mode 100644 index 00000000..ff84371b --- /dev/null +++ b/tests/zones/america/argentina/mendoza.js @@ -0,0 +1,227 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/Mendoza"] = { + "1920" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "22:00:00", "WART", 240], + ["1990-10-15T03:59:59+00:00", "23:59:59", "WART", 240], + ["1990-10-15T04:00:00+00:00", "01:00:00", "WARST", 180] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1991-03-01T02:59:59+00:00", "23:59:59", "WARST", 180], + ["1991-03-01T03:00:00+00:00", "23:00:00", "WART", 240], + ["1991-10-15T03:59:59+00:00", "23:59:59", "WART", 240], + ["1991-10-15T04:00:00+00:00", "01:00:00", "WARST", 180] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1992-03-01T02:59:59+00:00", "23:59:59", "WARST", 180], + ["1992-03-01T03:00:00+00:00", "23:00:00", "WART", 240], + ["1992-10-18T03:59:59+00:00", "23:59:59", "WART", 240], + ["1992-10-18T04:00:00+00:00", "02:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2004" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["2004-05-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["2004-05-23T03:00:00+00:00", "23:00:00", "WART", 240], + ["2004-09-26T03:59:59+00:00", "23:59:59", "WART", 240], + ["2004-09-26T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/Mendoza", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/rio_gallegos.js b/tests/zones/america/argentina/rio_gallegos.js new file mode 100644 index 00000000..df03f1ae --- /dev/null +++ b/tests/zones/america/argentina/rio_gallegos.js @@ -0,0 +1,227 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/Rio_Gallegos"] = { + "1920" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "ART", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "ART", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1991-03-03T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1991-03-03T02:00:00+00:00", "23:00:00", "ART", 180], + ["1991-10-20T02:59:59+00:00", "23:59:59", "ART", 180], + ["1991-10-20T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2004" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["2004-06-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["2004-06-01T03:00:00+00:00", "23:00:00", "WART", 240], + ["2004-06-20T03:59:59+00:00", "23:59:59", "WART", 240], + ["2004-06-20T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/Rio_Gallegos", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/salta.js b/tests/zones/america/argentina/salta.js new file mode 100644 index 00000000..4f5837c3 --- /dev/null +++ b/tests/zones/america/argentina/salta.js @@ -0,0 +1,220 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/Salta"] = { + "1920" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "ART", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "ART", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1991-03-03T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1991-03-03T02:00:00+00:00", "22:00:00", "WART", 240], + ["1991-10-20T03:59:59+00:00", "23:59:59", "WART", 240], + ["1991-10-20T04:00:00+00:00", "02:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/Salta", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/Salta", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/Salta", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/Salta", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/san_juan.js b/tests/zones/america/argentina/san_juan.js new file mode 100644 index 00000000..1ce9df29 --- /dev/null +++ b/tests/zones/america/argentina/san_juan.js @@ -0,0 +1,229 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/San_Juan"] = { + "1920" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "ART", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "ART", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1991-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1991-03-01T02:00:00+00:00", "22:00:00", "WART", 240], + ["1991-05-07T03:59:59+00:00", "23:59:59", "WART", 240], + ["1991-05-07T04:00:00+00:00", "01:00:00", "ART", 180], + ["1991-10-20T02:59:59+00:00", "23:59:59", "ART", 180], + ["1991-10-20T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2004" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["2004-05-31T02:59:59+00:00", "23:59:59", "ART", 180], + ["2004-05-31T03:00:00+00:00", "23:00:00", "WART", 240], + ["2004-07-25T03:59:59+00:00", "23:59:59", "WART", 240], + ["2004-07-25T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/San_Juan", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/san_luis.js b/tests/zones/america/argentina/san_luis.js new file mode 100644 index 00000000..4b636224 --- /dev/null +++ b/tests/zones/america/argentina/san_luis.js @@ -0,0 +1,226 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/San_Luis"] = { + "1920" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1990-03-14T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-14T02:00:00+00:00", "22:00:00", "WART", 240], + ["1990-10-15T03:59:59+00:00", "23:59:59", "WART", 240], + ["1990-10-15T04:00:00+00:00", "01:00:00", "WARST", 180] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1991-03-01T02:59:59+00:00", "23:59:59", "WARST", 180], + ["1991-03-01T03:00:00+00:00", "23:00:00", "WART", 240], + ["1991-06-01T03:59:59+00:00", "23:59:59", "WART", 240], + ["1991-06-01T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "WARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "WARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2004" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["2004-05-31T02:59:59+00:00", "23:59:59", "ART", 180], + ["2004-05-31T03:00:00+00:00", "23:00:00", "WART", 240], + ["2004-07-25T03:59:59+00:00", "23:59:59", "WART", 240], + ["2004-07-25T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["2008-01-21T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-01-21T02:00:00+00:00", "23:00:00", "WARST", 180], + ["2008-03-09T02:59:59+00:00", "23:59:59", "WARST", 180], + ["2008-03-09T03:00:00+00:00", "23:00:00", "WART", 240], + ["2008-10-12T03:59:59+00:00", "23:59:59", "WART", 240], + ["2008-10-12T04:00:00+00:00", "01:00:00", "WARST", 180] + ]), + + "2009" : helpers.makeTestYear("America/Argentina/San_Luis", [ + ["2009-03-08T02:59:59+00:00", "23:59:59", "WARST", 180], + ["2009-03-08T03:00:00+00:00", "23:00:00", "WART", 240], + ["2009-10-11T03:59:59+00:00", "23:59:59", "WART", 240], + ["2009-10-11T04:00:00+00:00", "01:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/tucuman.js b/tests/zones/america/argentina/tucuman.js new file mode 100644 index 00000000..a6a54f4c --- /dev/null +++ b/tests/zones/america/argentina/tucuman.js @@ -0,0 +1,234 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/Tucuman"] = { + "1920" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "ART", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "ART", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1991-03-03T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1991-03-03T02:00:00+00:00", "22:00:00", "WART", 240], + ["1991-10-20T03:59:59+00:00", "23:59:59", "WART", 240], + ["1991-10-20T04:00:00+00:00", "02:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2004" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["2004-06-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["2004-06-01T03:00:00+00:00", "23:00:00", "WART", 240], + ["2004-06-13T03:59:59+00:00", "23:59:59", "WART", 240], + ["2004-06-13T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180], + ["2008-10-19T02:59:59+00:00", "23:59:59", "ART", 180], + ["2008-10-19T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2009" : helpers.makeTestYear("America/Argentina/Tucuman", [ + ["2009-03-15T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2009-03-15T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/argentina/ushuaia.js b/tests/zones/america/argentina/ushuaia.js new file mode 100644 index 00000000..c2edf192 --- /dev/null +++ b/tests/zones/america/argentina/ushuaia.js @@ -0,0 +1,227 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Argentina/Ushuaia"] = { + "1920" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1920-05-01T04:16:47+00:00", "23:59:59", "CMT", 15408 / 60], + ["1920-05-01T04:16:48+00:00", "00:16:48", "ART", 240] + ]), + + "1930" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1930-12-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1930-12-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1931" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1931-04-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1931-04-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1931-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1931-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1932-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1932-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1932-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1932-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1933-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1933-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1933-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1933-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1934-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1934-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1934-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1934-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1935-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1935-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1935-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1935-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1936-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1936-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1936-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1936-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1937-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1937-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1937-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1937-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1938-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1938-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1938-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1938-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1939-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1939-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1939-11-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1939-11-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1940-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1940-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1940-07-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1940-07-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1941-06-15T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1941-06-15T03:00:00+00:00", "23:00:00", "ART", 240], + ["1941-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1941-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1943" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1943-08-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1943-08-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1943-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1943-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1946" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1946-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1946-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1946-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1946-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1963" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1963-10-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1963-10-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1963-12-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1963-12-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1964-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1964-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1965" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1988" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1988-12-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1988-12-01T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1989-03-05T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1989-03-05T02:00:00+00:00", "23:00:00", "ART", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "ART", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "ART", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "ART", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1991-03-03T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1991-03-03T02:00:00+00:00", "23:00:00", "ART", 180], + ["1991-10-20T02:59:59+00:00", "23:59:59", "ART", 180], + ["1991-10-20T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "ART", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "ART", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1993-03-07T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1993-03-07T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1999" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "ART", 180], + ["1999-10-03T03:00:00+00:00", "00:00:00", "ARST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["2000-03-03T02:59:59+00:00", "23:59:59", "ARST", 180], + ["2000-03-03T03:00:00+00:00", "00:00:00", "ART", 180] + ]), + + "2004" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["2004-05-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2004-05-30T03:00:00+00:00", "23:00:00", "WART", 240], + ["2004-06-20T03:59:59+00:00", "23:59:59", "WART", 240], + ["2004-06-20T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "2007" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["2007-12-30T02:59:59+00:00", "23:59:59", "ART", 180], + ["2007-12-30T03:00:00+00:00", "01:00:00", "ARST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Argentina/Ushuaia", [ + ["2008-03-16T01:59:59+00:00", "23:59:59", "ARST", 120], + ["2008-03-16T02:00:00+00:00", "23:00:00", "ART", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/aruba.js b/tests/zones/america/aruba.js new file mode 100644 index 00000000..dc70ec01 --- /dev/null +++ b/tests/zones/america/aruba.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Aruba"] = { + "1912" : helpers.makeTestYear("America/Aruba", [ + ["1912-02-12T04:35:46+00:00", "23:59:59", "LMT", 16547 / 60], + ["1912-02-12T04:35:47+00:00", "00:05:47", "ANT", 270] + ]), + + "1965" : helpers.makeTestYear("America/Aruba", [ + ["1965-01-01T04:29:59+00:00", "23:59:59", "ANT", 270], + ["1965-01-01T04:30:00+00:00", "00:30:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/asuncion.js b/tests/zones/america/asuncion.js new file mode 100644 index 00000000..c876a652 --- /dev/null +++ b/tests/zones/america/asuncion.js @@ -0,0 +1,459 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Asuncion"] = { + "1931" : helpers.makeTestYear("America/Asuncion", [ + ["1931-10-10T03:50:39+00:00", "23:59:59", "AMT", 13840 / 60], + ["1931-10-10T03:50:40+00:00", "23:50:40", "PYT", 240] + ]), + + "1972" : helpers.makeTestYear("America/Asuncion", [ + ["1972-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1972-10-01T04:00:00+00:00", "01:00:00", "PYT", 180] + ]), + + "1974" : helpers.makeTestYear("America/Asuncion", [ + ["1974-04-01T02:59:59+00:00", "23:59:59", "PYT", 180], + ["1974-04-01T03:00:00+00:00", "23:00:00", "PYT", 240] + ]), + + "1975" : helpers.makeTestYear("America/Asuncion", [ + ["1975-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1975-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1976" : helpers.makeTestYear("America/Asuncion", [ + ["1976-03-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1976-03-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1976-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1976-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1977" : helpers.makeTestYear("America/Asuncion", [ + ["1977-03-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1977-03-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1977-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1977-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1978" : helpers.makeTestYear("America/Asuncion", [ + ["1978-03-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1978-03-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1978-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1978-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1979" : helpers.makeTestYear("America/Asuncion", [ + ["1979-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1979-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1979-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1979-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1980" : helpers.makeTestYear("America/Asuncion", [ + ["1980-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1980-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1980-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1980-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1981" : helpers.makeTestYear("America/Asuncion", [ + ["1981-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1981-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1981-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1981-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1982" : helpers.makeTestYear("America/Asuncion", [ + ["1982-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1982-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1982-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1982-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1983" : helpers.makeTestYear("America/Asuncion", [ + ["1983-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1983-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1983-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1983-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1984" : helpers.makeTestYear("America/Asuncion", [ + ["1984-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1984-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1984-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1984-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1985" : helpers.makeTestYear("America/Asuncion", [ + ["1985-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1985-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1985-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1985-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1986" : helpers.makeTestYear("America/Asuncion", [ + ["1986-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1986-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1986-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1986-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1987" : helpers.makeTestYear("America/Asuncion", [ + ["1987-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1987-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1987-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1987-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1988" : helpers.makeTestYear("America/Asuncion", [ + ["1988-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1988-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1988-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1988-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1989" : helpers.makeTestYear("America/Asuncion", [ + ["1989-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1989-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1989-10-22T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1989-10-22T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1990" : helpers.makeTestYear("America/Asuncion", [ + ["1990-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1990-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1990-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1990-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1991" : helpers.makeTestYear("America/Asuncion", [ + ["1991-04-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1991-04-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1991-10-06T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1991-10-06T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1992" : helpers.makeTestYear("America/Asuncion", [ + ["1992-03-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1992-03-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1992-10-05T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1992-10-05T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1993" : helpers.makeTestYear("America/Asuncion", [ + ["1993-03-31T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1993-03-31T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1993-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1993-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1994" : helpers.makeTestYear("America/Asuncion", [ + ["1994-02-27T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1994-02-27T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1994-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1994-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1995" : helpers.makeTestYear("America/Asuncion", [ + ["1995-02-26T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1995-02-26T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1995-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1995-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1996" : helpers.makeTestYear("America/Asuncion", [ + ["1996-03-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1996-03-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1996-10-06T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1996-10-06T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1997" : helpers.makeTestYear("America/Asuncion", [ + ["1997-02-23T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1997-02-23T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1997-10-05T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1997-10-05T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1998" : helpers.makeTestYear("America/Asuncion", [ + ["1998-03-01T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1998-03-01T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1998-10-04T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1998-10-04T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "1999" : helpers.makeTestYear("America/Asuncion", [ + ["1999-03-07T02:59:59+00:00", "23:59:59", "PYST", 180], + ["1999-03-07T03:00:00+00:00", "23:00:00", "PYT", 240], + ["1999-10-03T03:59:59+00:00", "23:59:59", "PYT", 240], + ["1999-10-03T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Asuncion", [ + ["2000-03-05T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2000-03-05T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2000-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2000-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2001" : helpers.makeTestYear("America/Asuncion", [ + ["2001-03-04T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2001-03-04T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2001-10-07T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2001-10-07T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2002" : helpers.makeTestYear("America/Asuncion", [ + ["2002-04-07T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2002-04-07T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2002-09-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2002-09-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2003" : helpers.makeTestYear("America/Asuncion", [ + ["2003-04-06T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2003-04-06T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2003-09-07T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2003-09-07T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2004" : helpers.makeTestYear("America/Asuncion", [ + ["2004-04-04T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2004-04-04T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2004-10-17T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2004-10-17T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2005" : helpers.makeTestYear("America/Asuncion", [ + ["2005-03-13T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2005-03-13T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2005-10-16T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2005-10-16T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2006" : helpers.makeTestYear("America/Asuncion", [ + ["2006-03-12T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2006-03-12T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2006-10-15T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2006-10-15T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2007" : helpers.makeTestYear("America/Asuncion", [ + ["2007-03-11T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2007-03-11T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2007-10-21T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2007-10-21T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2008" : helpers.makeTestYear("America/Asuncion", [ + ["2008-03-09T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2008-03-09T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2008-10-19T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2008-10-19T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2009" : helpers.makeTestYear("America/Asuncion", [ + ["2009-03-08T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2009-03-08T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2009-10-18T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2009-10-18T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2010" : helpers.makeTestYear("America/Asuncion", [ + ["2010-04-11T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2010-04-11T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2010-10-03T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2010-10-03T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2011" : helpers.makeTestYear("America/Asuncion", [ + ["2011-04-10T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2011-04-10T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2011-10-02T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2011-10-02T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2012" : helpers.makeTestYear("America/Asuncion", [ + ["2012-04-08T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2012-04-08T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2012-10-07T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2012-10-07T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2013" : helpers.makeTestYear("America/Asuncion", [ + ["2013-03-24T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2013-03-24T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2013-10-06T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2013-10-06T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2014" : helpers.makeTestYear("America/Asuncion", [ + ["2014-03-23T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2014-03-23T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2014-10-05T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2014-10-05T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2015" : helpers.makeTestYear("America/Asuncion", [ + ["2015-03-22T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2015-03-22T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2015-10-04T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2015-10-04T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2016" : helpers.makeTestYear("America/Asuncion", [ + ["2016-03-27T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2016-03-27T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2016-10-02T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2016-10-02T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2017" : helpers.makeTestYear("America/Asuncion", [ + ["2017-03-26T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2017-03-26T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2017-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2017-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2018" : helpers.makeTestYear("America/Asuncion", [ + ["2018-03-25T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2018-03-25T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2018-10-07T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2018-10-07T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2019" : helpers.makeTestYear("America/Asuncion", [ + ["2019-03-24T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2019-03-24T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2019-10-06T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2019-10-06T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2020" : helpers.makeTestYear("America/Asuncion", [ + ["2020-03-22T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2020-03-22T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2020-10-04T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2020-10-04T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2021" : helpers.makeTestYear("America/Asuncion", [ + ["2021-03-28T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2021-03-28T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2021-10-03T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2021-10-03T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2022" : helpers.makeTestYear("America/Asuncion", [ + ["2022-03-27T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2022-03-27T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2022-10-02T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2022-10-02T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2023" : helpers.makeTestYear("America/Asuncion", [ + ["2023-03-26T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2023-03-26T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2023-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2023-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2024" : helpers.makeTestYear("America/Asuncion", [ + ["2024-03-24T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2024-03-24T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2024-10-06T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2024-10-06T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2025" : helpers.makeTestYear("America/Asuncion", [ + ["2025-03-23T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2025-03-23T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2025-10-05T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2025-10-05T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2026" : helpers.makeTestYear("America/Asuncion", [ + ["2026-03-22T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2026-03-22T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2026-10-04T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2026-10-04T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2027" : helpers.makeTestYear("America/Asuncion", [ + ["2027-03-28T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2027-03-28T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2027-10-03T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2027-10-03T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2028" : helpers.makeTestYear("America/Asuncion", [ + ["2028-03-26T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2028-03-26T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2028-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2028-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2029" : helpers.makeTestYear("America/Asuncion", [ + ["2029-03-25T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2029-03-25T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2029-10-07T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2029-10-07T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2030" : helpers.makeTestYear("America/Asuncion", [ + ["2030-03-24T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2030-03-24T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2030-10-06T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2030-10-06T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2031" : helpers.makeTestYear("America/Asuncion", [ + ["2031-03-23T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2031-03-23T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2031-10-05T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2031-10-05T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2032" : helpers.makeTestYear("America/Asuncion", [ + ["2032-03-28T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2032-03-28T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2032-10-03T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2032-10-03T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2033" : helpers.makeTestYear("America/Asuncion", [ + ["2033-03-27T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2033-03-27T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2033-10-02T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2033-10-02T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2034" : helpers.makeTestYear("America/Asuncion", [ + ["2034-03-26T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2034-03-26T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2034-10-01T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2034-10-01T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2035" : helpers.makeTestYear("America/Asuncion", [ + ["2035-03-25T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2035-03-25T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2035-10-07T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2035-10-07T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2036" : helpers.makeTestYear("America/Asuncion", [ + ["2036-03-23T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2036-03-23T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2036-10-05T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2036-10-05T04:00:00+00:00", "01:00:00", "PYST", 180] + ]), + + "2037" : helpers.makeTestYear("America/Asuncion", [ + ["2037-03-22T02:59:59+00:00", "23:59:59", "PYST", 180], + ["2037-03-22T03:00:00+00:00", "23:00:00", "PYT", 240], + ["2037-10-04T03:59:59+00:00", "23:59:59", "PYT", 240], + ["2037-10-04T04:00:00+00:00", "01:00:00", "PYST", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/atikokan.js b/tests/zones/america/atikokan.js new file mode 100644 index 00000000..875f28bc --- /dev/null +++ b/tests/zones/america/atikokan.js @@ -0,0 +1,29 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Atikokan"] = { + "1918" : helpers.makeTestYear("America/Atikokan", [ + ["1918-04-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-04-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1940" : helpers.makeTestYear("America/Atikokan", [ + ["1940-09-29T05:59:59+00:00", "23:59:59", "CST", 360], + ["1940-09-29T06:00:00+00:00", "01:00:00", "CDT", 300] + ]), + + "1942" : helpers.makeTestYear("America/Atikokan", [ + ["1942-02-09T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Atikokan", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "02:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/bahia.js b/tests/zones/america/bahia.js new file mode 100644 index 00000000..b565194d --- /dev/null +++ b/tests/zones/america/bahia.js @@ -0,0 +1,235 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Bahia"] = { + "1914" : helpers.makeTestYear("America/Bahia", [ + ["1914-01-01T02:34:03+00:00", "23:59:59", "LMT", 9244 / 60], + ["1914-01-01T02:34:04+00:00", "23:34:04", "BRT", 180] + ]), + + "1931" : helpers.makeTestYear("America/Bahia", [ + ["1931-10-03T13:59:59+00:00", "10:59:59", "BRT", 180], + ["1931-10-03T14:00:00+00:00", "12:00:00", "BRST", 120] + ]), + + "1932" : helpers.makeTestYear("America/Bahia", [ + ["1932-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1932-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1932-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1932-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1933" : helpers.makeTestYear("America/Bahia", [ + ["1933-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1933-04-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1949" : helpers.makeTestYear("America/Bahia", [ + ["1949-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1949-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1950" : helpers.makeTestYear("America/Bahia", [ + ["1950-04-16T02:59:59+00:00", "00:59:59", "BRST", 120], + ["1950-04-16T03:00:00+00:00", "00:00:00", "BRT", 180], + ["1950-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1950-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1951" : helpers.makeTestYear("America/Bahia", [ + ["1951-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1951-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1951-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1951-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1952" : helpers.makeTestYear("America/Bahia", [ + ["1952-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1952-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1952-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1952-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1953" : helpers.makeTestYear("America/Bahia", [ + ["1953-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1953-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1963" : helpers.makeTestYear("America/Bahia", [ + ["1963-12-09T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1963-12-09T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1964" : helpers.makeTestYear("America/Bahia", [ + ["1964-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1964-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1965" : helpers.makeTestYear("America/Bahia", [ + ["1965-01-31T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-01-31T03:00:00+00:00", "01:00:00", "BRST", 120], + ["1965-03-31T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1965-03-31T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1965-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1966" : helpers.makeTestYear("America/Bahia", [ + ["1966-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1966-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1966-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1966-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1967" : helpers.makeTestYear("America/Bahia", [ + ["1967-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1967-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1967-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1967-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1968" : helpers.makeTestYear("America/Bahia", [ + ["1968-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1968-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1985" : helpers.makeTestYear("America/Bahia", [ + ["1985-11-02T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1985-11-02T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1986" : helpers.makeTestYear("America/Bahia", [ + ["1986-03-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1986-03-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1986-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1986-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1987" : helpers.makeTestYear("America/Bahia", [ + ["1987-02-14T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1987-02-14T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1987-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1987-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1988" : helpers.makeTestYear("America/Bahia", [ + ["1988-02-07T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1988-02-07T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1988-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1988-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Bahia", [ + ["1989-01-29T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1989-01-29T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Bahia", [ + ["1990-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1990-02-11T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Bahia", [ + ["1991-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1991-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1991-10-20T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1991-10-20T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Bahia", [ + ["1992-02-09T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1992-02-09T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1992-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1992-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Bahia", [ + ["1993-01-31T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1993-01-31T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1993-10-17T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1993-10-17T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1994" : helpers.makeTestYear("America/Bahia", [ + ["1994-02-20T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1994-02-20T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1994-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1994-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1995" : helpers.makeTestYear("America/Bahia", [ + ["1995-02-19T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1995-02-19T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1995-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1995-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1996" : helpers.makeTestYear("America/Bahia", [ + ["1996-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1996-02-11T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1996-10-06T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1996-10-06T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1997" : helpers.makeTestYear("America/Bahia", [ + ["1997-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1997-02-16T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1997-10-06T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1997-10-06T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1998" : helpers.makeTestYear("America/Bahia", [ + ["1998-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1998-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1998-10-11T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1998-10-11T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1999" : helpers.makeTestYear("America/Bahia", [ + ["1999-02-21T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1999-02-21T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1999-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1999-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2000" : helpers.makeTestYear("America/Bahia", [ + ["2000-02-27T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2000-02-27T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2000-10-08T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2000-10-08T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2001" : helpers.makeTestYear("America/Bahia", [ + ["2001-02-18T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2001-02-18T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2001-10-14T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2001-10-14T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2002" : helpers.makeTestYear("America/Bahia", [ + ["2002-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2002-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2002-11-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2002-11-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2003" : helpers.makeTestYear("America/Bahia", [ + ["2003-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2003-02-16T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "2011" : helpers.makeTestYear("America/Bahia", [ + ["2011-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2011-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2012" : helpers.makeTestYear("America/Bahia", [ + ["2012-02-26T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2012-02-26T02:00:00+00:00", "23:00:00", "BRT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/bahia_banderas.js b/tests/zones/america/bahia_banderas.js new file mode 100644 index 00000000..57cb8a09 --- /dev/null +++ b/tests/zones/america/bahia_banderas.js @@ -0,0 +1,341 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Bahia_Banderas"] = { + "1922" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1922-01-01T06:59:59+00:00", "23:58:59", "LMT", 421], + ["1922-01-01T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1927" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1927-06-11T05:59:59+00:00", "22:59:59", "MST", 420], + ["1927-06-11T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1930" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1930-11-15T05:59:59+00:00", "23:59:59", "CST", 360], + ["1930-11-15T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1931" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1931-05-02T05:59:59+00:00", "22:59:59", "MST", 420], + ["1931-05-02T06:00:00+00:00", "00:00:00", "CST", 360], + ["1931-10-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1931-10-01T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1932" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1932-04-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1932-04-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1942-04-24T05:59:59+00:00", "23:59:59", "CST", 360], + ["1942-04-24T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1949" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1949-01-14T06:59:59+00:00", "23:59:59", "MST", 420], + ["1949-01-14T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1970-01-01T07:59:59+00:00", "23:59:59", "PST", 480], + ["1970-01-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2001-05-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-05-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-09-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2007-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2008-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2009-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2010-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-04-04T09:00:00+00:00", "04:00:00", "CDT", 300], + ["2010-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2011-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2012-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2013-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2014-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2015-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2016-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2017-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2018-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2019-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2020-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2021-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2022-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2023-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2024-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2025-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2026-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2027-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2028-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2029-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2030-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2031-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2032-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2033-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2034-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2035-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2036-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Bahia_Banderas", [ + ["2037-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/barbados.js b/tests/zones/america/barbados.js new file mode 100644 index 00000000..59b9b7d9 --- /dev/null +++ b/tests/zones/america/barbados.js @@ -0,0 +1,43 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Barbados"] = { + "1924" : helpers.makeTestYear("America/Barbados", [ + ["1924-01-01T03:58:28+00:00", "23:59:59", "LMT", 14309 / 60], + ["1924-01-01T03:58:29+00:00", "00:00:00", "BMT", 14309 / 60] + ]), + + "1932" : helpers.makeTestYear("America/Barbados", [ + ["1932-01-01T03:58:28+00:00", "23:59:59", "BMT", 14309 / 60], + ["1932-01-01T03:58:29+00:00", "23:58:29", "AST", 240] + ]), + + "1977" : helpers.makeTestYear("America/Barbados", [ + ["1977-06-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["1977-06-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1977-10-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1977-10-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1978" : helpers.makeTestYear("America/Barbados", [ + ["1978-04-16T05:59:59+00:00", "01:59:59", "AST", 240], + ["1978-04-16T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1978-10-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1978-10-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1979" : helpers.makeTestYear("America/Barbados", [ + ["1979-04-15T05:59:59+00:00", "01:59:59", "AST", 240], + ["1979-04-15T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1979-09-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1979-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1980" : helpers.makeTestYear("America/Barbados", [ + ["1980-04-20T05:59:59+00:00", "01:59:59", "AST", 240], + ["1980-04-20T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1980-09-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1980-09-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/belem.js b/tests/zones/america/belem.js new file mode 100644 index 00000000..c6ce7b83 --- /dev/null +++ b/tests/zones/america/belem.js @@ -0,0 +1,120 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Belem"] = { + "1914" : helpers.makeTestYear("America/Belem", [ + ["1914-01-01T03:13:55+00:00", "23:59:59", "LMT", 11636 / 60], + ["1914-01-01T03:13:56+00:00", "00:13:56", "BRT", 180] + ]), + + "1931" : helpers.makeTestYear("America/Belem", [ + ["1931-10-03T13:59:59+00:00", "10:59:59", "BRT", 180], + ["1931-10-03T14:00:00+00:00", "12:00:00", "BRST", 120] + ]), + + "1932" : helpers.makeTestYear("America/Belem", [ + ["1932-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1932-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1932-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1932-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1933" : helpers.makeTestYear("America/Belem", [ + ["1933-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1933-04-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1949" : helpers.makeTestYear("America/Belem", [ + ["1949-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1949-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1950" : helpers.makeTestYear("America/Belem", [ + ["1950-04-16T02:59:59+00:00", "00:59:59", "BRST", 120], + ["1950-04-16T03:00:00+00:00", "00:00:00", "BRT", 180], + ["1950-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1950-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1951" : helpers.makeTestYear("America/Belem", [ + ["1951-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1951-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1951-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1951-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1952" : helpers.makeTestYear("America/Belem", [ + ["1952-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1952-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1952-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1952-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1953" : helpers.makeTestYear("America/Belem", [ + ["1953-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1953-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1963" : helpers.makeTestYear("America/Belem", [ + ["1963-12-09T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1963-12-09T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1964" : helpers.makeTestYear("America/Belem", [ + ["1964-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1964-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1965" : helpers.makeTestYear("America/Belem", [ + ["1965-01-31T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-01-31T03:00:00+00:00", "01:00:00", "BRST", 120], + ["1965-03-31T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1965-03-31T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1965-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1966" : helpers.makeTestYear("America/Belem", [ + ["1966-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1966-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1966-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1966-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1967" : helpers.makeTestYear("America/Belem", [ + ["1967-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1967-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1967-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1967-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1968" : helpers.makeTestYear("America/Belem", [ + ["1968-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1968-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1985" : helpers.makeTestYear("America/Belem", [ + ["1985-11-02T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1985-11-02T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1986" : helpers.makeTestYear("America/Belem", [ + ["1986-03-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1986-03-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1986-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1986-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1987" : helpers.makeTestYear("America/Belem", [ + ["1987-02-14T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1987-02-14T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1987-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1987-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1988" : helpers.makeTestYear("America/Belem", [ + ["1988-02-07T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1988-02-07T02:00:00+00:00", "23:00:00", "BRT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/belize.js b/tests/zones/america/belize.js new file mode 100644 index 00000000..3059eceb --- /dev/null +++ b/tests/zones/america/belize.js @@ -0,0 +1,208 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Belize"] = { + "1912" : helpers.makeTestYear("America/Belize", [ + ["1912-04-01T05:52:47+00:00", "23:59:59", "LMT", 21168 / 60], + ["1912-04-01T05:52:48+00:00", "23:52:48", "CST", 360] + ]), + + "1918" : helpers.makeTestYear("America/Belize", [ + ["1918-10-06T05:59:59+00:00", "23:59:59", "CST", 360], + ["1918-10-06T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1919" : helpers.makeTestYear("America/Belize", [ + ["1919-02-09T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1919-02-09T05:30:00+00:00", "23:30:00", "CST", 360], + ["1919-10-05T05:59:59+00:00", "23:59:59", "CST", 360], + ["1919-10-05T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1920" : helpers.makeTestYear("America/Belize", [ + ["1920-02-15T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1920-02-15T05:30:00+00:00", "23:30:00", "CST", 360], + ["1920-10-03T05:59:59+00:00", "23:59:59", "CST", 360], + ["1920-10-03T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1921" : helpers.makeTestYear("America/Belize", [ + ["1921-02-13T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1921-02-13T05:30:00+00:00", "23:30:00", "CST", 360], + ["1921-10-02T05:59:59+00:00", "23:59:59", "CST", 360], + ["1921-10-02T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1922" : helpers.makeTestYear("America/Belize", [ + ["1922-02-12T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1922-02-12T05:30:00+00:00", "23:30:00", "CST", 360], + ["1922-10-08T05:59:59+00:00", "23:59:59", "CST", 360], + ["1922-10-08T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1923" : helpers.makeTestYear("America/Belize", [ + ["1923-02-11T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1923-02-11T05:30:00+00:00", "23:30:00", "CST", 360], + ["1923-10-07T05:59:59+00:00", "23:59:59", "CST", 360], + ["1923-10-07T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1924" : helpers.makeTestYear("America/Belize", [ + ["1924-02-10T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1924-02-10T05:30:00+00:00", "23:30:00", "CST", 360], + ["1924-10-05T05:59:59+00:00", "23:59:59", "CST", 360], + ["1924-10-05T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1925" : helpers.makeTestYear("America/Belize", [ + ["1925-02-15T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1925-02-15T05:30:00+00:00", "23:30:00", "CST", 360], + ["1925-10-04T05:59:59+00:00", "23:59:59", "CST", 360], + ["1925-10-04T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1926" : helpers.makeTestYear("America/Belize", [ + ["1926-02-14T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1926-02-14T05:30:00+00:00", "23:30:00", "CST", 360], + ["1926-10-03T05:59:59+00:00", "23:59:59", "CST", 360], + ["1926-10-03T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1927" : helpers.makeTestYear("America/Belize", [ + ["1927-02-13T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1927-02-13T05:30:00+00:00", "23:30:00", "CST", 360], + ["1927-10-02T05:59:59+00:00", "23:59:59", "CST", 360], + ["1927-10-02T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1928" : helpers.makeTestYear("America/Belize", [ + ["1928-02-12T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1928-02-12T05:30:00+00:00", "23:30:00", "CST", 360], + ["1928-10-07T05:59:59+00:00", "23:59:59", "CST", 360], + ["1928-10-07T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1929" : helpers.makeTestYear("America/Belize", [ + ["1929-02-10T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1929-02-10T05:30:00+00:00", "23:30:00", "CST", 360], + ["1929-10-06T05:59:59+00:00", "23:59:59", "CST", 360], + ["1929-10-06T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1930" : helpers.makeTestYear("America/Belize", [ + ["1930-02-09T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1930-02-09T05:30:00+00:00", "23:30:00", "CST", 360], + ["1930-10-05T05:59:59+00:00", "23:59:59", "CST", 360], + ["1930-10-05T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1931" : helpers.makeTestYear("America/Belize", [ + ["1931-02-15T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1931-02-15T05:30:00+00:00", "23:30:00", "CST", 360], + ["1931-10-04T05:59:59+00:00", "23:59:59", "CST", 360], + ["1931-10-04T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1932" : helpers.makeTestYear("America/Belize", [ + ["1932-02-14T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1932-02-14T05:30:00+00:00", "23:30:00", "CST", 360], + ["1932-10-02T05:59:59+00:00", "23:59:59", "CST", 360], + ["1932-10-02T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1933" : helpers.makeTestYear("America/Belize", [ + ["1933-02-12T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1933-02-12T05:30:00+00:00", "23:30:00", "CST", 360], + ["1933-10-08T05:59:59+00:00", "23:59:59", "CST", 360], + ["1933-10-08T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1934" : helpers.makeTestYear("America/Belize", [ + ["1934-02-11T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1934-02-11T05:30:00+00:00", "23:30:00", "CST", 360], + ["1934-10-07T05:59:59+00:00", "23:59:59", "CST", 360], + ["1934-10-07T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1935" : helpers.makeTestYear("America/Belize", [ + ["1935-02-10T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1935-02-10T05:30:00+00:00", "23:30:00", "CST", 360], + ["1935-10-06T05:59:59+00:00", "23:59:59", "CST", 360], + ["1935-10-06T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1936" : helpers.makeTestYear("America/Belize", [ + ["1936-02-09T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1936-02-09T05:30:00+00:00", "23:30:00", "CST", 360], + ["1936-10-04T05:59:59+00:00", "23:59:59", "CST", 360], + ["1936-10-04T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1937" : helpers.makeTestYear("America/Belize", [ + ["1937-02-14T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1937-02-14T05:30:00+00:00", "23:30:00", "CST", 360], + ["1937-10-03T05:59:59+00:00", "23:59:59", "CST", 360], + ["1937-10-03T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1938" : helpers.makeTestYear("America/Belize", [ + ["1938-02-13T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1938-02-13T05:30:00+00:00", "23:30:00", "CST", 360], + ["1938-10-02T05:59:59+00:00", "23:59:59", "CST", 360], + ["1938-10-02T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1939" : helpers.makeTestYear("America/Belize", [ + ["1939-02-12T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1939-02-12T05:30:00+00:00", "23:30:00", "CST", 360], + ["1939-10-08T05:59:59+00:00", "23:59:59", "CST", 360], + ["1939-10-08T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1940" : helpers.makeTestYear("America/Belize", [ + ["1940-02-11T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1940-02-11T05:30:00+00:00", "23:30:00", "CST", 360], + ["1940-10-06T05:59:59+00:00", "23:59:59", "CST", 360], + ["1940-10-06T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1941" : helpers.makeTestYear("America/Belize", [ + ["1941-02-09T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1941-02-09T05:30:00+00:00", "23:30:00", "CST", 360], + ["1941-10-05T05:59:59+00:00", "23:59:59", "CST", 360], + ["1941-10-05T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1942" : helpers.makeTestYear("America/Belize", [ + ["1942-02-15T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1942-02-15T05:30:00+00:00", "23:30:00", "CST", 360], + ["1942-10-04T05:59:59+00:00", "23:59:59", "CST", 360], + ["1942-10-04T06:00:00+00:00", "00:30:00", "CHDT", 330] + ]), + + "1943" : helpers.makeTestYear("America/Belize", [ + ["1943-02-14T05:29:59+00:00", "23:59:59", "CHDT", 330], + ["1943-02-14T05:30:00+00:00", "23:30:00", "CST", 360] + ]), + + "1973" : helpers.makeTestYear("America/Belize", [ + ["1973-12-05T05:59:59+00:00", "23:59:59", "CST", 360], + ["1973-12-05T06:00:00+00:00", "01:00:00", "CDT", 300] + ]), + + "1974" : helpers.makeTestYear("America/Belize", [ + ["1974-02-09T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1974-02-09T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("America/Belize", [ + ["1982-12-18T05:59:59+00:00", "23:59:59", "CST", 360], + ["1982-12-18T06:00:00+00:00", "01:00:00", "CDT", 300] + ]), + + "1983" : helpers.makeTestYear("America/Belize", [ + ["1983-02-12T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1983-02-12T05:00:00+00:00", "23:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/blanc-sablon.js b/tests/zones/america/blanc-sablon.js new file mode 100644 index 00000000..4ccf71dc --- /dev/null +++ b/tests/zones/america/blanc-sablon.js @@ -0,0 +1,24 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Blanc-Sablon"] = { + "1918" : helpers.makeTestYear("America/Blanc-Sablon", [ + ["1918-04-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["1918-04-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1918-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1918-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1942" : helpers.makeTestYear("America/Blanc-Sablon", [ + ["1942-02-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["1942-02-09T06:00:00+00:00", "03:00:00", "AWT", 180] + ]), + + "1945" : helpers.makeTestYear("America/Blanc-Sablon", [ + ["1945-08-14T22:59:59+00:00", "19:59:59", "AWT", 180], + ["1945-08-14T23:00:00+00:00", "20:00:00", "APT", 180], + ["1945-09-30T04:59:59+00:00", "01:59:59", "APT", 180], + ["1945-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/boa_vista.js b/tests/zones/america/boa_vista.js new file mode 100644 index 00000000..c71dc3bb --- /dev/null +++ b/tests/zones/america/boa_vista.js @@ -0,0 +1,134 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Boa_Vista"] = { + "1914" : helpers.makeTestYear("America/Boa_Vista", [ + ["1914-01-01T04:02:39+00:00", "23:59:59", "LMT", 14560 / 60], + ["1914-01-01T04:02:40+00:00", "00:02:40", "AMT", 240] + ]), + + "1931" : helpers.makeTestYear("America/Boa_Vista", [ + ["1931-10-03T14:59:59+00:00", "10:59:59", "AMT", 240], + ["1931-10-03T15:00:00+00:00", "12:00:00", "AMST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Boa_Vista", [ + ["1932-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1932-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1932-10-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1932-10-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Boa_Vista", [ + ["1933-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1933-04-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1949" : helpers.makeTestYear("America/Boa_Vista", [ + ["1949-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1949-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1950" : helpers.makeTestYear("America/Boa_Vista", [ + ["1950-04-16T03:59:59+00:00", "00:59:59", "AMST", 180], + ["1950-04-16T04:00:00+00:00", "00:00:00", "AMT", 240], + ["1950-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1950-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1951" : helpers.makeTestYear("America/Boa_Vista", [ + ["1951-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1951-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1951-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1951-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1952" : helpers.makeTestYear("America/Boa_Vista", [ + ["1952-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1952-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1952-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1952-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1953" : helpers.makeTestYear("America/Boa_Vista", [ + ["1953-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1953-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1963" : helpers.makeTestYear("America/Boa_Vista", [ + ["1963-12-09T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1963-12-09T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Boa_Vista", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1965" : helpers.makeTestYear("America/Boa_Vista", [ + ["1965-01-31T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-01-31T04:00:00+00:00", "01:00:00", "AMST", 180], + ["1965-03-31T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1965-03-31T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1965-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Boa_Vista", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1966-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1966-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Boa_Vista", [ + ["1967-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1967-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1967-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1967-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Boa_Vista", [ + ["1968-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1968-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1985" : helpers.makeTestYear("America/Boa_Vista", [ + ["1985-11-02T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1985-11-02T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1986" : helpers.makeTestYear("America/Boa_Vista", [ + ["1986-03-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1986-03-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1986-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1986-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1987" : helpers.makeTestYear("America/Boa_Vista", [ + ["1987-02-14T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1987-02-14T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1987-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1987-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1988" : helpers.makeTestYear("America/Boa_Vista", [ + ["1988-02-07T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1988-02-07T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1999" : helpers.makeTestYear("America/Boa_Vista", [ + ["1999-10-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1999-10-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Boa_Vista", [ + ["2000-02-27T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2000-02-27T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2000-10-08T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2000-10-08T04:00:00+00:00", "01:00:00", "AMST", 180], + ["2000-10-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2000-10-15T03:00:00+00:00", "23:00:00", "AMT", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/bogota.js b/tests/zones/america/bogota.js new file mode 100644 index 00000000..3b44c5ab --- /dev/null +++ b/tests/zones/america/bogota.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Bogota"] = { + "1914" : helpers.makeTestYear("America/Bogota", [ + ["1914-11-23T04:56:15+00:00", "23:59:59", "BMT", 17776 / 60], + ["1914-11-23T04:56:16+00:00", "23:56:16", "COT", 300] + ]), + + "1992" : helpers.makeTestYear("America/Bogota", [ + ["1992-05-03T04:59:59+00:00", "23:59:59", "COT", 300], + ["1992-05-03T05:00:00+00:00", "01:00:00", "COST", 240] + ]), + + "1993" : helpers.makeTestYear("America/Bogota", [ + ["1993-04-04T03:59:59+00:00", "23:59:59", "COST", 240], + ["1993-04-04T04:00:00+00:00", "23:00:00", "COT", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/boise.js b/tests/zones/america/boise.js new file mode 100644 index 00000000..59c72912 --- /dev/null +++ b/tests/zones/america/boise.js @@ -0,0 +1,533 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Boise"] = { + "1918" : helpers.makeTestYear("America/Boise", [ + ["1918-03-31T09:59:59+00:00", "01:59:59", "PST", 480], + ["1918-03-31T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1918-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1918-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1919" : helpers.makeTestYear("America/Boise", [ + ["1919-03-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1919-03-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1919-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1919-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1923" : helpers.makeTestYear("America/Boise", [ + ["1923-05-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["1923-05-13T10:00:00+00:00", "03:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/Boise", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/Boise", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1967" : helpers.makeTestYear("America/Boise", [ + ["1967-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1967-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1967-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1967-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1968" : helpers.makeTestYear("America/Boise", [ + ["1968-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1968-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1968-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1968-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1969" : helpers.makeTestYear("America/Boise", [ + ["1969-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1969-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1969-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1969-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1970" : helpers.makeTestYear("America/Boise", [ + ["1970-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1970-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1970-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1970-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1971" : helpers.makeTestYear("America/Boise", [ + ["1971-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1971-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1971-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1971-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1972" : helpers.makeTestYear("America/Boise", [ + ["1972-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1972-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1972-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1972-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1973" : helpers.makeTestYear("America/Boise", [ + ["1973-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1973-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1973-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1973-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1974" : helpers.makeTestYear("America/Boise", [ + ["1974-02-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1974-02-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1974-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1974-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1975" : helpers.makeTestYear("America/Boise", [ + ["1975-02-23T08:59:59+00:00", "01:59:59", "MST", 420], + ["1975-02-23T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1975-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1975-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1976" : helpers.makeTestYear("America/Boise", [ + ["1976-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1976-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1976-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1976-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1977" : helpers.makeTestYear("America/Boise", [ + ["1977-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1977-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1977-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1977-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1978" : helpers.makeTestYear("America/Boise", [ + ["1978-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1978-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1978-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1978-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1979" : helpers.makeTestYear("America/Boise", [ + ["1979-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1979-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1979-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1979-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("America/Boise", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("America/Boise", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("America/Boise", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("America/Boise", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("America/Boise", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("America/Boise", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("America/Boise", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("America/Boise", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("America/Boise", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("America/Boise", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("America/Boise", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("America/Boise", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("America/Boise", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1993" : helpers.makeTestYear("America/Boise", [ + ["1993-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1993-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1993-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1993-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1994" : helpers.makeTestYear("America/Boise", [ + ["1994-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1994-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1994-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1994-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1995" : helpers.makeTestYear("America/Boise", [ + ["1995-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1995-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1995-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1995-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/Boise", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/Boise", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/Boise", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Boise", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/Boise", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/Boise", [ + ["2001-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Boise", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Boise", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Boise", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Boise", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Boise", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Boise", [ + ["2007-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Boise", [ + ["2008-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Boise", [ + ["2009-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Boise", [ + ["2010-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("America/Boise", [ + ["2011-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("America/Boise", [ + ["2012-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("America/Boise", [ + ["2013-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("America/Boise", [ + ["2014-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("America/Boise", [ + ["2015-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("America/Boise", [ + ["2016-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("America/Boise", [ + ["2017-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("America/Boise", [ + ["2018-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("America/Boise", [ + ["2019-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("America/Boise", [ + ["2020-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("America/Boise", [ + ["2021-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("America/Boise", [ + ["2022-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("America/Boise", [ + ["2023-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("America/Boise", [ + ["2024-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("America/Boise", [ + ["2025-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("America/Boise", [ + ["2026-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("America/Boise", [ + ["2027-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("America/Boise", [ + ["2028-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("America/Boise", [ + ["2029-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("America/Boise", [ + ["2030-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("America/Boise", [ + ["2031-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("America/Boise", [ + ["2032-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("America/Boise", [ + ["2033-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("America/Boise", [ + ["2034-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("America/Boise", [ + ["2035-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("America/Boise", [ + ["2036-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("America/Boise", [ + ["2037-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/cambridge_bay.js b/tests/zones/america/cambridge_bay.js new file mode 100644 index 00000000..dd5c3cea --- /dev/null +++ b/tests/zones/america/cambridge_bay.js @@ -0,0 +1,440 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Cambridge_Bay"] = { + "1919" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1919-12-31T23:59:59+00:00", "23:59:59", "zzz", 0] + ]), + + "1920" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1920-01-01T00:00:00+00:00", "17:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1965" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1965-04-25T06:59:59+00:00", "23:59:59", "MST", 420], + ["1965-04-25T07:00:00+00:00", "02:00:00", "MDDT", 300], + ["1965-10-31T06:59:59+00:00", "01:59:59", "MDDT", 300], + ["1965-10-31T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1993" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1993-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1993-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1993-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1993-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1994" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1994-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1994-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1994-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1994-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1995" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1995-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1995-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1995-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1995-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "02:00:00", "EST", 300], + ["2000-11-05T04:59:59+00:00", "23:59:59", "EST", 300], + ["2000-11-05T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2001-04-01T08:59:59+00:00", "02:59:59", "CST", 360], + ["2001-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2007-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2008-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2009-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2010-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2011-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2012-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2013-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2014-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2015-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2016-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2017-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2018-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2019-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2020-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2021-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2022-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2023-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2024-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2025-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2026-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2027-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2028-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2029-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2030-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2031-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2032-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2033-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2034-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2035-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2036-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("America/Cambridge_Bay", [ + ["2037-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/campo_grande.js b/tests/zones/america/campo_grande.js new file mode 100644 index 00000000..0a6e2e93 --- /dev/null +++ b/tests/zones/america/campo_grande.js @@ -0,0 +1,465 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Campo_Grande"] = { + "1914" : helpers.makeTestYear("America/Campo_Grande", [ + ["1914-01-01T03:38:27+00:00", "23:59:59", "LMT", 13108 / 60], + ["1914-01-01T03:38:28+00:00", "23:38:28", "AMT", 240] + ]), + + "1931" : helpers.makeTestYear("America/Campo_Grande", [ + ["1931-10-03T14:59:59+00:00", "10:59:59", "AMT", 240], + ["1931-10-03T15:00:00+00:00", "12:00:00", "AMST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Campo_Grande", [ + ["1932-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1932-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1932-10-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1932-10-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Campo_Grande", [ + ["1933-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1933-04-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1949" : helpers.makeTestYear("America/Campo_Grande", [ + ["1949-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1949-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1950" : helpers.makeTestYear("America/Campo_Grande", [ + ["1950-04-16T03:59:59+00:00", "00:59:59", "AMST", 180], + ["1950-04-16T04:00:00+00:00", "00:00:00", "AMT", 240], + ["1950-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1950-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1951" : helpers.makeTestYear("America/Campo_Grande", [ + ["1951-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1951-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1951-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1951-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1952" : helpers.makeTestYear("America/Campo_Grande", [ + ["1952-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1952-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1952-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1952-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1953" : helpers.makeTestYear("America/Campo_Grande", [ + ["1953-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1953-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1963" : helpers.makeTestYear("America/Campo_Grande", [ + ["1963-12-09T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1963-12-09T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Campo_Grande", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1965" : helpers.makeTestYear("America/Campo_Grande", [ + ["1965-01-31T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-01-31T04:00:00+00:00", "01:00:00", "AMST", 180], + ["1965-03-31T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1965-03-31T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1965-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Campo_Grande", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1966-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1966-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Campo_Grande", [ + ["1967-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1967-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1967-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1967-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Campo_Grande", [ + ["1968-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1968-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1985" : helpers.makeTestYear("America/Campo_Grande", [ + ["1985-11-02T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1985-11-02T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1986" : helpers.makeTestYear("America/Campo_Grande", [ + ["1986-03-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1986-03-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1986-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1986-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1987" : helpers.makeTestYear("America/Campo_Grande", [ + ["1987-02-14T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1987-02-14T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1987-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1987-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1988" : helpers.makeTestYear("America/Campo_Grande", [ + ["1988-02-07T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1988-02-07T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1988-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1988-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1989" : helpers.makeTestYear("America/Campo_Grande", [ + ["1989-01-29T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1989-01-29T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1989-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1989-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1990" : helpers.makeTestYear("America/Campo_Grande", [ + ["1990-02-11T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1990-02-11T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1990-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1990-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1991" : helpers.makeTestYear("America/Campo_Grande", [ + ["1991-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1991-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1991-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1991-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1992" : helpers.makeTestYear("America/Campo_Grande", [ + ["1992-02-09T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1992-02-09T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1992-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1992-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1993" : helpers.makeTestYear("America/Campo_Grande", [ + ["1993-01-31T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1993-01-31T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1993-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1993-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1994" : helpers.makeTestYear("America/Campo_Grande", [ + ["1994-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1994-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1994-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1994-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1995" : helpers.makeTestYear("America/Campo_Grande", [ + ["1995-02-19T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1995-02-19T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1995-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1995-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1996" : helpers.makeTestYear("America/Campo_Grande", [ + ["1996-02-11T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1996-02-11T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1996-10-06T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1996-10-06T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1997" : helpers.makeTestYear("America/Campo_Grande", [ + ["1997-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1997-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1997-10-06T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1997-10-06T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1998" : helpers.makeTestYear("America/Campo_Grande", [ + ["1998-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1998-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1998-10-11T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1998-10-11T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1999" : helpers.makeTestYear("America/Campo_Grande", [ + ["1999-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1999-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1999-10-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1999-10-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Campo_Grande", [ + ["2000-02-27T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2000-02-27T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2000-10-08T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2000-10-08T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2001" : helpers.makeTestYear("America/Campo_Grande", [ + ["2001-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2001-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2001-10-14T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2001-10-14T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2002" : helpers.makeTestYear("America/Campo_Grande", [ + ["2002-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2002-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2002-11-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2002-11-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2003" : helpers.makeTestYear("America/Campo_Grande", [ + ["2003-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2003-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2003-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2003-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2004" : helpers.makeTestYear("America/Campo_Grande", [ + ["2004-02-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2004-02-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2004-11-02T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2004-11-02T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2005" : helpers.makeTestYear("America/Campo_Grande", [ + ["2005-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2005-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2005-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2005-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2006" : helpers.makeTestYear("America/Campo_Grande", [ + ["2006-02-19T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2006-02-19T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2006-11-05T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2006-11-05T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2007" : helpers.makeTestYear("America/Campo_Grande", [ + ["2007-02-25T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2007-02-25T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2007-10-14T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2007-10-14T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2008" : helpers.makeTestYear("America/Campo_Grande", [ + ["2008-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2008-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2008-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2008-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2009" : helpers.makeTestYear("America/Campo_Grande", [ + ["2009-02-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2009-02-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2009-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2009-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2010" : helpers.makeTestYear("America/Campo_Grande", [ + ["2010-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2010-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2010-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2010-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2011" : helpers.makeTestYear("America/Campo_Grande", [ + ["2011-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2011-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2011-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2011-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2012" : helpers.makeTestYear("America/Campo_Grande", [ + ["2012-02-26T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2012-02-26T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2012-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2012-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2013" : helpers.makeTestYear("America/Campo_Grande", [ + ["2013-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2013-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2013-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2013-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2014" : helpers.makeTestYear("America/Campo_Grande", [ + ["2014-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2014-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2014-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2014-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2015" : helpers.makeTestYear("America/Campo_Grande", [ + ["2015-02-22T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2015-02-22T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2015-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2015-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2016" : helpers.makeTestYear("America/Campo_Grande", [ + ["2016-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2016-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2016-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2016-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2017" : helpers.makeTestYear("America/Campo_Grande", [ + ["2017-02-19T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2017-02-19T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2017-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2017-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2018" : helpers.makeTestYear("America/Campo_Grande", [ + ["2018-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2018-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2018-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2018-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2019" : helpers.makeTestYear("America/Campo_Grande", [ + ["2019-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2019-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2019-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2019-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2020" : helpers.makeTestYear("America/Campo_Grande", [ + ["2020-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2020-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2020-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2020-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2021" : helpers.makeTestYear("America/Campo_Grande", [ + ["2021-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2021-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2021-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2021-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2022" : helpers.makeTestYear("America/Campo_Grande", [ + ["2022-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2022-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2022-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2022-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2023" : helpers.makeTestYear("America/Campo_Grande", [ + ["2023-02-26T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2023-02-26T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2023-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2023-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2024" : helpers.makeTestYear("America/Campo_Grande", [ + ["2024-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2024-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2024-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2024-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2025" : helpers.makeTestYear("America/Campo_Grande", [ + ["2025-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2025-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2025-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2025-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2026" : helpers.makeTestYear("America/Campo_Grande", [ + ["2026-02-22T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2026-02-22T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2026-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2026-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2027" : helpers.makeTestYear("America/Campo_Grande", [ + ["2027-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2027-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2027-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2027-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2028" : helpers.makeTestYear("America/Campo_Grande", [ + ["2028-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2028-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2028-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2028-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2029" : helpers.makeTestYear("America/Campo_Grande", [ + ["2029-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2029-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2029-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2029-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2030" : helpers.makeTestYear("America/Campo_Grande", [ + ["2030-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2030-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2030-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2030-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2031" : helpers.makeTestYear("America/Campo_Grande", [ + ["2031-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2031-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2031-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2031-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2032" : helpers.makeTestYear("America/Campo_Grande", [ + ["2032-02-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2032-02-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2032-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2032-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2033" : helpers.makeTestYear("America/Campo_Grande", [ + ["2033-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2033-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2033-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2033-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2034" : helpers.makeTestYear("America/Campo_Grande", [ + ["2034-02-26T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2034-02-26T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2034-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2034-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2035" : helpers.makeTestYear("America/Campo_Grande", [ + ["2035-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2035-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2035-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2035-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2036" : helpers.makeTestYear("America/Campo_Grande", [ + ["2036-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2036-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2036-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2036-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2037" : helpers.makeTestYear("America/Campo_Grande", [ + ["2037-02-22T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2037-02-22T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2037-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2037-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/cancun.js b/tests/zones/america/cancun.js new file mode 100644 index 00000000..3948cb35 --- /dev/null +++ b/tests/zones/america/cancun.js @@ -0,0 +1,311 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Cancun"] = { + "1922" : helpers.makeTestYear("America/Cancun", [ + ["1922-01-01T05:59:59+00:00", "00:12:55", "LMT", 20824 / 60], + ["1922-01-01T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Cancun", [ + ["1981-12-23T05:59:59+00:00", "23:59:59", "CST", 360], + ["1981-12-23T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Cancun", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Cancun", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Cancun", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-08-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-08-02T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Cancun", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Cancun", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Cancun", [ + ["2001-05-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-05-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Cancun", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Cancun", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Cancun", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Cancun", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Cancun", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Cancun", [ + ["2007-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Cancun", [ + ["2008-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Cancun", [ + ["2009-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Cancun", [ + ["2010-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Cancun", [ + ["2011-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Cancun", [ + ["2012-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Cancun", [ + ["2013-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Cancun", [ + ["2014-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Cancun", [ + ["2015-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Cancun", [ + ["2016-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Cancun", [ + ["2017-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Cancun", [ + ["2018-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Cancun", [ + ["2019-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Cancun", [ + ["2020-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Cancun", [ + ["2021-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Cancun", [ + ["2022-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Cancun", [ + ["2023-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Cancun", [ + ["2024-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Cancun", [ + ["2025-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Cancun", [ + ["2026-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Cancun", [ + ["2027-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Cancun", [ + ["2028-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Cancun", [ + ["2029-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Cancun", [ + ["2030-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Cancun", [ + ["2031-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Cancun", [ + ["2032-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Cancun", [ + ["2033-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Cancun", [ + ["2034-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Cancun", [ + ["2035-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Cancun", [ + ["2036-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Cancun", [ + ["2037-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/caracas.js b/tests/zones/america/caracas.js new file mode 100644 index 00000000..32798915 --- /dev/null +++ b/tests/zones/america/caracas.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Caracas"] = { + "1912" : helpers.makeTestYear("America/Caracas", [ + ["1912-02-12T04:27:39+00:00", "23:59:59", "CMT", 16060 / 60], + ["1912-02-12T04:27:40+00:00", "23:57:40", "VET", 270] + ]), + + "1965" : helpers.makeTestYear("America/Caracas", [ + ["1965-01-01T04:29:59+00:00", "23:59:59", "VET", 270], + ["1965-01-01T04:30:00+00:00", "00:30:00", "VET", 240] + ]), + + "2007" : helpers.makeTestYear("America/Caracas", [ + ["2007-12-09T06:59:59+00:00", "02:59:59", "VET", 240], + ["2007-12-09T07:00:00+00:00", "02:30:00", "VET", 270] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/cayenne.js b/tests/zones/america/cayenne.js new file mode 100644 index 00000000..3223a357 --- /dev/null +++ b/tests/zones/america/cayenne.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Cayenne"] = { + "1911" : helpers.makeTestYear("America/Cayenne", [ + ["1911-07-01T03:29:19+00:00", "23:59:59", "LMT", 12560 / 60], + ["1911-07-01T03:29:20+00:00", "23:29:20", "GFT", 240] + ]), + + "1967" : helpers.makeTestYear("America/Cayenne", [ + ["1967-10-01T03:59:59+00:00", "23:59:59", "GFT", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "GFT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/cayman.js b/tests/zones/america/cayman.js new file mode 100644 index 00000000..bcf6db57 --- /dev/null +++ b/tests/zones/america/cayman.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Cayman"] = { + "1912" : helpers.makeTestYear("America/Cayman", [ + ["1912-02-01T05:07:10+00:00", "23:59:59", "KMT", 18431 / 60], + ["1912-02-01T05:07:11+00:00", "00:07:11", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/chicago.js b/tests/zones/america/chicago.js new file mode 100644 index 00000000..f3ffbf91 --- /dev/null +++ b/tests/zones/america/chicago.js @@ -0,0 +1,829 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Chicago"] = { + "1918" : helpers.makeTestYear("America/Chicago", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Chicago", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1920" : helpers.makeTestYear("America/Chicago", [ + ["1920-06-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["1920-06-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1920-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1920-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1921" : helpers.makeTestYear("America/Chicago", [ + ["1921-03-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1921-03-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1921-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1921-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1922" : helpers.makeTestYear("America/Chicago", [ + ["1922-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1922-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1922-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1922-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1923" : helpers.makeTestYear("America/Chicago", [ + ["1923-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1923-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1923-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1923-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1924" : helpers.makeTestYear("America/Chicago", [ + ["1924-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1924-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1924-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1924-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1925" : helpers.makeTestYear("America/Chicago", [ + ["1925-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1925-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1925-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1925-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1926" : helpers.makeTestYear("America/Chicago", [ + ["1926-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1926-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1926-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1926-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1927" : helpers.makeTestYear("America/Chicago", [ + ["1927-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1927-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1927-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1927-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1928" : helpers.makeTestYear("America/Chicago", [ + ["1928-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1928-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1928-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1928-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1929" : helpers.makeTestYear("America/Chicago", [ + ["1929-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1929-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1929-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1929-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1930" : helpers.makeTestYear("America/Chicago", [ + ["1930-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1930-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1930-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1930-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1931" : helpers.makeTestYear("America/Chicago", [ + ["1931-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1931-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1931-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1931-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1932" : helpers.makeTestYear("America/Chicago", [ + ["1932-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1932-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1932-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1932-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1933" : helpers.makeTestYear("America/Chicago", [ + ["1933-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1933-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1933-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1933-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1934" : helpers.makeTestYear("America/Chicago", [ + ["1934-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1934-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1934-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1934-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1935" : helpers.makeTestYear("America/Chicago", [ + ["1935-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1935-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1935-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1935-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1936" : helpers.makeTestYear("America/Chicago", [ + ["1936-03-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1936-03-01T08:00:00+00:00", "03:00:00", "EST", 300], + ["1936-11-15T06:59:59+00:00", "01:59:59", "EST", 300], + ["1936-11-15T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1937" : helpers.makeTestYear("America/Chicago", [ + ["1937-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1937-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1937-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1937-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1938" : helpers.makeTestYear("America/Chicago", [ + ["1938-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1938-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1938-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1938-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1939" : helpers.makeTestYear("America/Chicago", [ + ["1939-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1939-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1939-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1939-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1940" : helpers.makeTestYear("America/Chicago", [ + ["1940-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1940-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1940-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1940-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1941" : helpers.makeTestYear("America/Chicago", [ + ["1941-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1941-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1941-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1941-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Chicago", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Chicago", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1946" : helpers.makeTestYear("America/Chicago", [ + ["1946-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1946-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1946-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1946-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1947" : helpers.makeTestYear("America/Chicago", [ + ["1947-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1947-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1947-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1947-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1948" : helpers.makeTestYear("America/Chicago", [ + ["1948-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1948-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1948-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1948-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1949" : helpers.makeTestYear("America/Chicago", [ + ["1949-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1949-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1949-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1949-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1950" : helpers.makeTestYear("America/Chicago", [ + ["1950-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1950-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1950-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1950-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1951" : helpers.makeTestYear("America/Chicago", [ + ["1951-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1951-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1951-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1951-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1952" : helpers.makeTestYear("America/Chicago", [ + ["1952-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1952-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1952-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1952-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1953" : helpers.makeTestYear("America/Chicago", [ + ["1953-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1953-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1953-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1953-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Chicago", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1954-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1954-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Chicago", [ + ["1955-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1955-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1955-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1955-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1956" : helpers.makeTestYear("America/Chicago", [ + ["1956-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1956-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1956-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1956-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1957" : helpers.makeTestYear("America/Chicago", [ + ["1957-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1957-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1957-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1957-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Chicago", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1958-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1958-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1959" : helpers.makeTestYear("America/Chicago", [ + ["1959-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1959-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1959-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1959-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1960" : helpers.makeTestYear("America/Chicago", [ + ["1960-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1960-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1960-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1960-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1961" : helpers.makeTestYear("America/Chicago", [ + ["1961-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1961-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1961-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1961-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1962" : helpers.makeTestYear("America/Chicago", [ + ["1962-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1962-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1962-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1962-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1963" : helpers.makeTestYear("America/Chicago", [ + ["1963-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1963-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1963-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1963-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1964" : helpers.makeTestYear("America/Chicago", [ + ["1964-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1964-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1964-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1964-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1965" : helpers.makeTestYear("America/Chicago", [ + ["1965-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1965-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1965-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1965-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1966" : helpers.makeTestYear("America/Chicago", [ + ["1966-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1966-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1966-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1966-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1967" : helpers.makeTestYear("America/Chicago", [ + ["1967-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1967-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1967-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1967-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1968" : helpers.makeTestYear("America/Chicago", [ + ["1968-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1968-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1968-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1968-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1969" : helpers.makeTestYear("America/Chicago", [ + ["1969-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1969-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1969-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1969-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1970" : helpers.makeTestYear("America/Chicago", [ + ["1970-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1970-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1970-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1970-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1971" : helpers.makeTestYear("America/Chicago", [ + ["1971-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1971-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1971-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1971-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1972" : helpers.makeTestYear("America/Chicago", [ + ["1972-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1972-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1972-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1972-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1973" : helpers.makeTestYear("America/Chicago", [ + ["1973-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1973-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1973-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1973-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1974" : helpers.makeTestYear("America/Chicago", [ + ["1974-01-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1974-01-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1974-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1974-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1975" : helpers.makeTestYear("America/Chicago", [ + ["1975-02-23T07:59:59+00:00", "01:59:59", "CST", 360], + ["1975-02-23T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1975-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1975-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1976" : helpers.makeTestYear("America/Chicago", [ + ["1976-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1976-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1976-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1976-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1977" : helpers.makeTestYear("America/Chicago", [ + ["1977-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1977-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1977-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1977-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1978" : helpers.makeTestYear("America/Chicago", [ + ["1978-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1978-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1978-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1978-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1979" : helpers.makeTestYear("America/Chicago", [ + ["1979-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1979-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1979-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1979-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Chicago", [ + ["1980-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1980-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1980-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1980-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Chicago", [ + ["1981-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1981-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1981-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1981-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("America/Chicago", [ + ["1982-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1982-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1982-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1982-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("America/Chicago", [ + ["1983-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1983-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1983-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1983-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1984" : helpers.makeTestYear("America/Chicago", [ + ["1984-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1984-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1984-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1984-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1985" : helpers.makeTestYear("America/Chicago", [ + ["1985-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1985-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1985-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1985-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1986" : helpers.makeTestYear("America/Chicago", [ + ["1986-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1986-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1986-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1986-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/Chicago", [ + ["1987-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1987-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1987-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1987-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Chicago", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1989" : helpers.makeTestYear("America/Chicago", [ + ["1989-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1989-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1989-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1989-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1990" : helpers.makeTestYear("America/Chicago", [ + ["1990-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1990-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1990-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1990-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Chicago", [ + ["1991-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1991-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1991-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1991-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("America/Chicago", [ + ["1992-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1992-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1992-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1992-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("America/Chicago", [ + ["1993-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1993-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1993-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1993-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1994" : helpers.makeTestYear("America/Chicago", [ + ["1994-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1994-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1994-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1994-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1995" : helpers.makeTestYear("America/Chicago", [ + ["1995-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1995-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1995-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1995-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Chicago", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Chicago", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Chicago", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Chicago", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Chicago", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Chicago", [ + ["2001-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Chicago", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Chicago", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Chicago", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Chicago", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Chicago", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Chicago", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Chicago", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Chicago", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Chicago", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Chicago", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Chicago", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Chicago", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Chicago", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Chicago", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Chicago", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Chicago", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Chicago", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Chicago", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Chicago", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Chicago", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Chicago", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Chicago", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Chicago", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Chicago", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Chicago", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Chicago", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Chicago", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Chicago", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Chicago", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Chicago", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Chicago", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Chicago", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Chicago", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Chicago", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Chicago", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Chicago", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/chihuahua.js b/tests/zones/america/chihuahua.js new file mode 100644 index 00000000..7a7cbc14 --- /dev/null +++ b/tests/zones/america/chihuahua.js @@ -0,0 +1,326 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Chihuahua"] = { + "1922" : helpers.makeTestYear("America/Chihuahua", [ + ["1922-01-01T06:59:59+00:00", "23:55:39", "LMT", 25460 / 60], + ["1922-01-01T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1927" : helpers.makeTestYear("America/Chihuahua", [ + ["1927-06-11T05:59:59+00:00", "22:59:59", "MST", 420], + ["1927-06-11T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1930" : helpers.makeTestYear("America/Chihuahua", [ + ["1930-11-15T05:59:59+00:00", "23:59:59", "CST", 360], + ["1930-11-15T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1931" : helpers.makeTestYear("America/Chihuahua", [ + ["1931-05-02T05:59:59+00:00", "22:59:59", "MST", 420], + ["1931-05-02T06:00:00+00:00", "00:00:00", "CST", 360], + ["1931-10-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1931-10-01T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1932" : helpers.makeTestYear("America/Chihuahua", [ + ["1932-04-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1932-04-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Chihuahua", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Chihuahua", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Chihuahua", [ + ["1998-04-05T08:59:59+00:00", "02:59:59", "CST", 360], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Chihuahua", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/Chihuahua", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/Chihuahua", [ + ["2001-05-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-05-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-09-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Chihuahua", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Chihuahua", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Chihuahua", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Chihuahua", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Chihuahua", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Chihuahua", [ + ["2007-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Chihuahua", [ + ["2008-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Chihuahua", [ + ["2009-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Chihuahua", [ + ["2010-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("America/Chihuahua", [ + ["2011-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("America/Chihuahua", [ + ["2012-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("America/Chihuahua", [ + ["2013-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("America/Chihuahua", [ + ["2014-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("America/Chihuahua", [ + ["2015-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("America/Chihuahua", [ + ["2016-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("America/Chihuahua", [ + ["2017-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("America/Chihuahua", [ + ["2018-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("America/Chihuahua", [ + ["2019-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("America/Chihuahua", [ + ["2020-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("America/Chihuahua", [ + ["2021-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("America/Chihuahua", [ + ["2022-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("America/Chihuahua", [ + ["2023-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("America/Chihuahua", [ + ["2024-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("America/Chihuahua", [ + ["2025-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("America/Chihuahua", [ + ["2026-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("America/Chihuahua", [ + ["2027-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("America/Chihuahua", [ + ["2028-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("America/Chihuahua", [ + ["2029-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("America/Chihuahua", [ + ["2030-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("America/Chihuahua", [ + ["2031-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("America/Chihuahua", [ + ["2032-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("America/Chihuahua", [ + ["2033-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("America/Chihuahua", [ + ["2034-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("America/Chihuahua", [ + ["2035-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("America/Chihuahua", [ + ["2036-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("America/Chihuahua", [ + ["2037-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/costa_rica.js b/tests/zones/america/costa_rica.js new file mode 100644 index 00000000..2c336ade --- /dev/null +++ b/tests/zones/america/costa_rica.js @@ -0,0 +1,38 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Costa_Rica"] = { + "1921" : helpers.makeTestYear("America/Costa_Rica", [ + ["1921-01-15T05:36:12+00:00", "23:59:59", "SJMT", 20173 / 60], + ["1921-01-15T05:36:13+00:00", "23:36:13", "CST", 360] + ]), + + "1979" : helpers.makeTestYear("America/Costa_Rica", [ + ["1979-02-25T05:59:59+00:00", "23:59:59", "CST", 360], + ["1979-02-25T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1979-06-03T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1979-06-03T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Costa_Rica", [ + ["1980-02-24T05:59:59+00:00", "23:59:59", "CST", 360], + ["1980-02-24T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1980-06-01T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1980-06-01T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Costa_Rica", [ + ["1991-01-19T05:59:59+00:00", "23:59:59", "CST", 360], + ["1991-01-19T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1991-07-01T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1991-07-01T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("America/Costa_Rica", [ + ["1992-01-18T05:59:59+00:00", "23:59:59", "CST", 360], + ["1992-01-18T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1992-03-15T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1992-03-15T05:00:00+00:00", "23:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/creston.js b/tests/zones/america/creston.js new file mode 100644 index 00000000..6d4d5491 --- /dev/null +++ b/tests/zones/america/creston.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Creston"] = { + "1916" : helpers.makeTestYear("America/Creston", [ + ["1916-10-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1916-10-01T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1918" : helpers.makeTestYear("America/Creston", [ + ["1918-06-02T07:59:59+00:00", "23:59:59", "PST", 480], + ["1918-06-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/cuiaba.js b/tests/zones/america/cuiaba.js new file mode 100644 index 00000000..44251f5d --- /dev/null +++ b/tests/zones/america/cuiaba.js @@ -0,0 +1,461 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Cuiaba"] = { + "1914" : helpers.makeTestYear("America/Cuiaba", [ + ["1914-01-01T03:44:19+00:00", "23:59:59", "LMT", 13460 / 60], + ["1914-01-01T03:44:20+00:00", "23:44:20", "AMT", 240] + ]), + + "1931" : helpers.makeTestYear("America/Cuiaba", [ + ["1931-10-03T14:59:59+00:00", "10:59:59", "AMT", 240], + ["1931-10-03T15:00:00+00:00", "12:00:00", "AMST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Cuiaba", [ + ["1932-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1932-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1932-10-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1932-10-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Cuiaba", [ + ["1933-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1933-04-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1949" : helpers.makeTestYear("America/Cuiaba", [ + ["1949-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1949-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1950" : helpers.makeTestYear("America/Cuiaba", [ + ["1950-04-16T03:59:59+00:00", "00:59:59", "AMST", 180], + ["1950-04-16T04:00:00+00:00", "00:00:00", "AMT", 240], + ["1950-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1950-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1951" : helpers.makeTestYear("America/Cuiaba", [ + ["1951-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1951-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1951-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1951-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1952" : helpers.makeTestYear("America/Cuiaba", [ + ["1952-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1952-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1952-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1952-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1953" : helpers.makeTestYear("America/Cuiaba", [ + ["1953-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1953-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1963" : helpers.makeTestYear("America/Cuiaba", [ + ["1963-12-09T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1963-12-09T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Cuiaba", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1965" : helpers.makeTestYear("America/Cuiaba", [ + ["1965-01-31T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-01-31T04:00:00+00:00", "01:00:00", "AMST", 180], + ["1965-03-31T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1965-03-31T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1965-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Cuiaba", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1966-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1966-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Cuiaba", [ + ["1967-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1967-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1967-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1967-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Cuiaba", [ + ["1968-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1968-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1985" : helpers.makeTestYear("America/Cuiaba", [ + ["1985-11-02T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1985-11-02T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1986" : helpers.makeTestYear("America/Cuiaba", [ + ["1986-03-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1986-03-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1986-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1986-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1987" : helpers.makeTestYear("America/Cuiaba", [ + ["1987-02-14T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1987-02-14T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1987-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1987-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1988" : helpers.makeTestYear("America/Cuiaba", [ + ["1988-02-07T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1988-02-07T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1988-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1988-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1989" : helpers.makeTestYear("America/Cuiaba", [ + ["1989-01-29T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1989-01-29T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1989-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1989-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1990" : helpers.makeTestYear("America/Cuiaba", [ + ["1990-02-11T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1990-02-11T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1990-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1990-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1991" : helpers.makeTestYear("America/Cuiaba", [ + ["1991-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1991-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1991-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1991-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1992" : helpers.makeTestYear("America/Cuiaba", [ + ["1992-02-09T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1992-02-09T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1992-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1992-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1993" : helpers.makeTestYear("America/Cuiaba", [ + ["1993-01-31T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1993-01-31T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1993-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1993-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1994" : helpers.makeTestYear("America/Cuiaba", [ + ["1994-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1994-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1994-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1994-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1995" : helpers.makeTestYear("America/Cuiaba", [ + ["1995-02-19T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1995-02-19T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1995-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1995-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1996" : helpers.makeTestYear("America/Cuiaba", [ + ["1996-02-11T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1996-02-11T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1996-10-06T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1996-10-06T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1997" : helpers.makeTestYear("America/Cuiaba", [ + ["1997-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1997-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1997-10-06T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1997-10-06T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1998" : helpers.makeTestYear("America/Cuiaba", [ + ["1998-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1998-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1998-10-11T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1998-10-11T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1999" : helpers.makeTestYear("America/Cuiaba", [ + ["1999-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1999-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1999-10-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1999-10-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Cuiaba", [ + ["2000-02-27T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2000-02-27T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2000-10-08T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2000-10-08T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2001" : helpers.makeTestYear("America/Cuiaba", [ + ["2001-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2001-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2001-10-14T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2001-10-14T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2002" : helpers.makeTestYear("America/Cuiaba", [ + ["2002-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2002-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2002-11-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2002-11-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2003" : helpers.makeTestYear("America/Cuiaba", [ + ["2003-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2003-02-16T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "2004" : helpers.makeTestYear("America/Cuiaba", [ + ["2004-11-02T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2004-11-02T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2005" : helpers.makeTestYear("America/Cuiaba", [ + ["2005-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2005-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2005-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2005-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2006" : helpers.makeTestYear("America/Cuiaba", [ + ["2006-02-19T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2006-02-19T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2006-11-05T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2006-11-05T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2007" : helpers.makeTestYear("America/Cuiaba", [ + ["2007-02-25T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2007-02-25T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2007-10-14T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2007-10-14T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2008" : helpers.makeTestYear("America/Cuiaba", [ + ["2008-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2008-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2008-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2008-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2009" : helpers.makeTestYear("America/Cuiaba", [ + ["2009-02-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2009-02-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2009-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2009-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2010" : helpers.makeTestYear("America/Cuiaba", [ + ["2010-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2010-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2010-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2010-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2011" : helpers.makeTestYear("America/Cuiaba", [ + ["2011-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2011-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2011-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2011-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2012" : helpers.makeTestYear("America/Cuiaba", [ + ["2012-02-26T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2012-02-26T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2012-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2012-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2013" : helpers.makeTestYear("America/Cuiaba", [ + ["2013-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2013-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2013-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2013-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2014" : helpers.makeTestYear("America/Cuiaba", [ + ["2014-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2014-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2014-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2014-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2015" : helpers.makeTestYear("America/Cuiaba", [ + ["2015-02-22T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2015-02-22T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2015-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2015-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2016" : helpers.makeTestYear("America/Cuiaba", [ + ["2016-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2016-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2016-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2016-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2017" : helpers.makeTestYear("America/Cuiaba", [ + ["2017-02-19T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2017-02-19T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2017-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2017-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2018" : helpers.makeTestYear("America/Cuiaba", [ + ["2018-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2018-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2018-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2018-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2019" : helpers.makeTestYear("America/Cuiaba", [ + ["2019-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2019-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2019-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2019-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2020" : helpers.makeTestYear("America/Cuiaba", [ + ["2020-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2020-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2020-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2020-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2021" : helpers.makeTestYear("America/Cuiaba", [ + ["2021-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2021-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2021-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2021-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2022" : helpers.makeTestYear("America/Cuiaba", [ + ["2022-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2022-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2022-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2022-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2023" : helpers.makeTestYear("America/Cuiaba", [ + ["2023-02-26T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2023-02-26T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2023-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2023-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2024" : helpers.makeTestYear("America/Cuiaba", [ + ["2024-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2024-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2024-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2024-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2025" : helpers.makeTestYear("America/Cuiaba", [ + ["2025-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2025-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2025-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2025-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2026" : helpers.makeTestYear("America/Cuiaba", [ + ["2026-02-22T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2026-02-22T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2026-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2026-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2027" : helpers.makeTestYear("America/Cuiaba", [ + ["2027-02-21T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2027-02-21T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2027-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2027-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2028" : helpers.makeTestYear("America/Cuiaba", [ + ["2028-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2028-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2028-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2028-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2029" : helpers.makeTestYear("America/Cuiaba", [ + ["2029-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2029-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2029-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2029-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2030" : helpers.makeTestYear("America/Cuiaba", [ + ["2030-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2030-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2030-10-20T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2030-10-20T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2031" : helpers.makeTestYear("America/Cuiaba", [ + ["2031-02-16T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2031-02-16T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2031-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2031-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2032" : helpers.makeTestYear("America/Cuiaba", [ + ["2032-02-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2032-02-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2032-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2032-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2033" : helpers.makeTestYear("America/Cuiaba", [ + ["2033-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2033-02-20T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2033-10-16T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2033-10-16T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2034" : helpers.makeTestYear("America/Cuiaba", [ + ["2034-02-26T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2034-02-26T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2034-10-15T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2034-10-15T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2035" : helpers.makeTestYear("America/Cuiaba", [ + ["2035-02-18T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2035-02-18T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2035-10-21T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2035-10-21T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2036" : helpers.makeTestYear("America/Cuiaba", [ + ["2036-02-17T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2036-02-17T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2036-10-19T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2036-10-19T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "2037" : helpers.makeTestYear("America/Cuiaba", [ + ["2037-02-22T02:59:59+00:00", "23:59:59", "AMST", 180], + ["2037-02-22T03:00:00+00:00", "23:00:00", "AMT", 240], + ["2037-10-18T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2037-10-18T04:00:00+00:00", "01:00:00", "AMST", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/curacao.js b/tests/zones/america/curacao.js new file mode 100644 index 00000000..9f677ed0 --- /dev/null +++ b/tests/zones/america/curacao.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Curacao"] = { + "1912" : helpers.makeTestYear("America/Curacao", [ + ["1912-02-12T04:35:46+00:00", "23:59:59", "LMT", 16547 / 60], + ["1912-02-12T04:35:47+00:00", "00:05:47", "ANT", 270] + ]), + + "1965" : helpers.makeTestYear("America/Curacao", [ + ["1965-01-01T04:29:59+00:00", "23:59:59", "ANT", 270], + ["1965-01-01T04:30:00+00:00", "00:30:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/danmarkshavn.js b/tests/zones/america/danmarkshavn.js new file mode 100644 index 00000000..4a0fbcdf --- /dev/null +++ b/tests/zones/america/danmarkshavn.js @@ -0,0 +1,127 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Danmarkshavn"] = { + "1916" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1916-07-28T01:14:39+00:00", "23:59:59", "LMT", 4480 / 60], + ["1916-07-28T01:14:40+00:00", "22:14:40", "WGT", 180] + ]), + + "1980" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1980-04-06T04:59:59+00:00", "01:59:59", "WGT", 180], + ["1980-04-06T05:00:00+00:00", "03:00:00", "WGST", 120], + ["1980-09-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1980-09-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1981" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1981-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1981-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1981-09-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1981-09-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1982" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1982-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1982-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1982-09-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1982-09-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1983" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1983-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1983-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1983-09-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1983-09-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1984" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1984-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1984-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1984-09-30T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1984-09-30T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1985" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1985-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1985-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1985-09-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1985-09-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1986" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1986-03-30T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1986-03-30T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1986-09-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1986-09-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1987" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1987-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1987-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1987-09-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1987-09-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1988" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1988-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1988-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1988-09-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1988-09-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1989" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1989-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1989-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1989-09-24T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1989-09-24T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1990" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1990-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1990-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1990-09-30T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1990-09-30T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1991" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1991-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1991-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1991-09-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1991-09-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1992" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1992-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1992-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1992-09-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1992-09-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1993" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1993-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1993-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1993-09-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1993-09-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1994" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1994-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1994-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1994-09-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1994-09-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1995" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1995-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1995-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1995-09-24T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1995-09-24T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1996" : helpers.makeTestYear("America/Danmarkshavn", [ + ["1996-01-01T02:59:59+00:00", "23:59:59", "WGT", 180], + ["1996-01-01T03:00:00+00:00", "03:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/dawson.js b/tests/zones/america/dawson.js new file mode 100644 index 00000000..324e443b --- /dev/null +++ b/tests/zones/america/dawson.js @@ -0,0 +1,449 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Dawson"] = { + "1918" : helpers.makeTestYear("America/Dawson", [ + ["1918-04-14T10:59:59+00:00", "01:59:59", "YST", 540], + ["1918-04-14T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1918-10-27T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1918-10-27T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1919" : helpers.makeTestYear("America/Dawson", [ + ["1919-05-25T10:59:59+00:00", "01:59:59", "YST", 540], + ["1919-05-25T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1919-11-01T07:59:59+00:00", "23:59:59", "YDT", 480], + ["1919-11-01T08:00:00+00:00", "23:00:00", "YST", 540] + ]), + + "1942" : helpers.makeTestYear("America/Dawson", [ + ["1942-02-09T10:59:59+00:00", "01:59:59", "YST", 540], + ["1942-02-09T11:00:00+00:00", "03:00:00", "YWT", 480] + ]), + + "1945" : helpers.makeTestYear("America/Dawson", [ + ["1945-08-14T22:59:59+00:00", "14:59:59", "YWT", 480], + ["1945-08-14T23:00:00+00:00", "15:00:00", "YPT", 480], + ["1945-09-30T09:59:59+00:00", "01:59:59", "YPT", 480], + ["1945-09-30T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1965" : helpers.makeTestYear("America/Dawson", [ + ["1965-04-25T08:59:59+00:00", "23:59:59", "YST", 540], + ["1965-04-25T09:00:00+00:00", "02:00:00", "YDDT", 420], + ["1965-10-31T08:59:59+00:00", "01:59:59", "YDDT", 420], + ["1965-10-31T09:00:00+00:00", "00:00:00", "YST", 540] + ]), + + "1973" : helpers.makeTestYear("America/Dawson", [ + ["1973-10-28T08:59:59+00:00", "23:59:59", "YST", 540], + ["1973-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("America/Dawson", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1980-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1980-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("America/Dawson", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("America/Dawson", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("America/Dawson", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1984" : helpers.makeTestYear("America/Dawson", [ + ["1984-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1984-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1984-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1984-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1985" : helpers.makeTestYear("America/Dawson", [ + ["1985-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1985-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1985-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1985-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1986" : helpers.makeTestYear("America/Dawson", [ + ["1986-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1986-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1986-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1986-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1987" : helpers.makeTestYear("America/Dawson", [ + ["1987-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1987-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1987-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1987-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1988" : helpers.makeTestYear("America/Dawson", [ + ["1988-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1988-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1988-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1988-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1989" : helpers.makeTestYear("America/Dawson", [ + ["1989-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1989-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1989-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1989-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1990" : helpers.makeTestYear("America/Dawson", [ + ["1990-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["1990-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1990-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1990-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1991" : helpers.makeTestYear("America/Dawson", [ + ["1991-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1991-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1991-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1991-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1992" : helpers.makeTestYear("America/Dawson", [ + ["1992-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1992-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1992-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1992-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1993" : helpers.makeTestYear("America/Dawson", [ + ["1993-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1993-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1993-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1993-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1994" : helpers.makeTestYear("America/Dawson", [ + ["1994-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1994-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1994-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1994-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1995" : helpers.makeTestYear("America/Dawson", [ + ["1995-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1995-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1995-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1995-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1996" : helpers.makeTestYear("America/Dawson", [ + ["1996-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1996-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1996-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1996-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1997" : helpers.makeTestYear("America/Dawson", [ + ["1997-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1997-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1997-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1997-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1998" : helpers.makeTestYear("America/Dawson", [ + ["1998-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1998-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1998-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1998-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1999" : helpers.makeTestYear("America/Dawson", [ + ["1999-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1999-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1999-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1999-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2000" : helpers.makeTestYear("America/Dawson", [ + ["2000-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2000-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2000-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2000-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2001" : helpers.makeTestYear("America/Dawson", [ + ["2001-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2001-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2001-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2001-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2002" : helpers.makeTestYear("America/Dawson", [ + ["2002-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2002-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2002-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2002-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2003" : helpers.makeTestYear("America/Dawson", [ + ["2003-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2003-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2003-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2003-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2004" : helpers.makeTestYear("America/Dawson", [ + ["2004-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2004-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2004-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2004-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2005" : helpers.makeTestYear("America/Dawson", [ + ["2005-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2005-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2005-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2005-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2006" : helpers.makeTestYear("America/Dawson", [ + ["2006-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2006-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2006-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2006-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2007" : helpers.makeTestYear("America/Dawson", [ + ["2007-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2007-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2007-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2007-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2008" : helpers.makeTestYear("America/Dawson", [ + ["2008-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2008-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2008-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2008-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2009" : helpers.makeTestYear("America/Dawson", [ + ["2009-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2009-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2009-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2009-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2010" : helpers.makeTestYear("America/Dawson", [ + ["2010-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2010-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2010-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2010-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2011" : helpers.makeTestYear("America/Dawson", [ + ["2011-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2011-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2011-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2011-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2012" : helpers.makeTestYear("America/Dawson", [ + ["2012-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2012-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2012-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2012-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2013" : helpers.makeTestYear("America/Dawson", [ + ["2013-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2013-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2013-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2013-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2014" : helpers.makeTestYear("America/Dawson", [ + ["2014-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2014-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2014-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2014-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2015" : helpers.makeTestYear("America/Dawson", [ + ["2015-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2015-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2015-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2015-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2016" : helpers.makeTestYear("America/Dawson", [ + ["2016-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2016-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2016-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2016-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2017" : helpers.makeTestYear("America/Dawson", [ + ["2017-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2017-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2017-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2017-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2018" : helpers.makeTestYear("America/Dawson", [ + ["2018-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2018-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2018-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2018-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2019" : helpers.makeTestYear("America/Dawson", [ + ["2019-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2019-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2019-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2019-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2020" : helpers.makeTestYear("America/Dawson", [ + ["2020-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2020-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2020-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2020-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2021" : helpers.makeTestYear("America/Dawson", [ + ["2021-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2021-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2021-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2021-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2022" : helpers.makeTestYear("America/Dawson", [ + ["2022-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2022-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2022-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2022-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2023" : helpers.makeTestYear("America/Dawson", [ + ["2023-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2023-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2023-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2023-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2024" : helpers.makeTestYear("America/Dawson", [ + ["2024-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2024-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2024-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2024-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2025" : helpers.makeTestYear("America/Dawson", [ + ["2025-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2025-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2025-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2025-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2026" : helpers.makeTestYear("America/Dawson", [ + ["2026-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2026-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2026-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2026-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2027" : helpers.makeTestYear("America/Dawson", [ + ["2027-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2027-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2027-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2027-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2028" : helpers.makeTestYear("America/Dawson", [ + ["2028-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2028-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2028-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2028-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2029" : helpers.makeTestYear("America/Dawson", [ + ["2029-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2029-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2029-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2029-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2030" : helpers.makeTestYear("America/Dawson", [ + ["2030-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2030-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2030-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2030-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2031" : helpers.makeTestYear("America/Dawson", [ + ["2031-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2031-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2031-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2031-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2032" : helpers.makeTestYear("America/Dawson", [ + ["2032-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2032-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2032-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2032-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2033" : helpers.makeTestYear("America/Dawson", [ + ["2033-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2033-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2033-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2033-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2034" : helpers.makeTestYear("America/Dawson", [ + ["2034-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2034-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2034-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2034-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2035" : helpers.makeTestYear("America/Dawson", [ + ["2035-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2035-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2035-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2035-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2036" : helpers.makeTestYear("America/Dawson", [ + ["2036-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2036-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2036-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2036-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2037" : helpers.makeTestYear("America/Dawson", [ + ["2037-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2037-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2037-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2037-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/dawson_creek.js b/tests/zones/america/dawson_creek.js new file mode 100644 index 00000000..e322d0c7 --- /dev/null +++ b/tests/zones/america/dawson_creek.js @@ -0,0 +1,206 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Dawson_Creek"] = { + "1918" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1918-04-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["1918-04-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1918-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1918-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1942" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1942-02-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["1942-02-09T10:00:00+00:00", "03:00:00", "PWT", 420] + ]), + + "1945" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1945-08-14T22:59:59+00:00", "15:59:59", "PWT", 420], + ["1945-08-14T23:00:00+00:00", "16:00:00", "PPT", 420], + ["1945-09-30T08:59:59+00:00", "01:59:59", "PPT", 420], + ["1945-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1947" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1947-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1947-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1947-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1947-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1948" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1948-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1948-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1948-09-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1948-09-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1949" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1949-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1949-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1949-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1949-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1950" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1950-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1950-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1950-09-24T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1950-09-24T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1951" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1951-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1951-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1951-09-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1951-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1952" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1952-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1952-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1952-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1952-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1953" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1953-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1953-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1953-09-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1953-09-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1954" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1954-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1954-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1954-09-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1954-09-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1955" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1955-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1955-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1955-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1955-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1956" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1956-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1956-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1956-09-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1956-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1957" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1957-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1957-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1957-09-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1957-09-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1958" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1958-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1958-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1958-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1958-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1959" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1959-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1959-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1959-09-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1959-09-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1960" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1960-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1960-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1960-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1960-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1961" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1961-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1961-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1961-09-24T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1961-09-24T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1962" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1962-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1962-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1962-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1962-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1963" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1963-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1963-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1963-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1963-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1964" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1964-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1964-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1964-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1964-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1965" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1965-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1965-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1965-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1965-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1966" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1966-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1966-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1966-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1966-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1967" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1967-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1967-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1967-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1967-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1968" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1968-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1968-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1968-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1968-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1969" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1969-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1969-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1969-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1969-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1970-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1970-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1970-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1970-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1971" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1971-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1971-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1971-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1971-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1972" : helpers.makeTestYear("America/Dawson_Creek", [ + ["1972-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1972-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1972-08-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1972-08-30T09:00:00+00:00", "02:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/denver.js b/tests/zones/america/denver.js new file mode 100644 index 00000000..4f75ef90 --- /dev/null +++ b/tests/zones/america/denver.js @@ -0,0 +1,556 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Denver"] = { + "1918" : helpers.makeTestYear("America/Denver", [ + ["1918-03-31T08:59:59+00:00", "01:59:59", "MST", 420], + ["1918-03-31T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1918-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1918-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1919" : helpers.makeTestYear("America/Denver", [ + ["1919-03-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1919-03-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1919-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1919-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1920" : helpers.makeTestYear("America/Denver", [ + ["1920-03-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1920-03-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1920-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1920-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1921" : helpers.makeTestYear("America/Denver", [ + ["1921-03-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1921-03-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1921-05-22T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1921-05-22T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/Denver", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/Denver", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1965" : helpers.makeTestYear("America/Denver", [ + ["1965-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1965-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1965-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1965-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1966" : helpers.makeTestYear("America/Denver", [ + ["1966-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1966-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1966-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1966-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1967" : helpers.makeTestYear("America/Denver", [ + ["1967-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1967-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1967-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1967-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1968" : helpers.makeTestYear("America/Denver", [ + ["1968-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1968-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1968-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1968-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1969" : helpers.makeTestYear("America/Denver", [ + ["1969-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1969-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1969-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1969-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1970" : helpers.makeTestYear("America/Denver", [ + ["1970-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1970-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1970-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1970-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1971" : helpers.makeTestYear("America/Denver", [ + ["1971-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1971-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1971-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1971-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1972" : helpers.makeTestYear("America/Denver", [ + ["1972-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1972-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1972-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1972-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1973" : helpers.makeTestYear("America/Denver", [ + ["1973-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1973-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1973-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1973-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1974" : helpers.makeTestYear("America/Denver", [ + ["1974-01-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1974-01-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1974-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1974-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1975" : helpers.makeTestYear("America/Denver", [ + ["1975-02-23T08:59:59+00:00", "01:59:59", "MST", 420], + ["1975-02-23T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1975-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1975-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1976" : helpers.makeTestYear("America/Denver", [ + ["1976-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1976-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1976-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1976-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1977" : helpers.makeTestYear("America/Denver", [ + ["1977-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1977-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1977-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1977-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1978" : helpers.makeTestYear("America/Denver", [ + ["1978-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1978-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1978-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1978-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1979" : helpers.makeTestYear("America/Denver", [ + ["1979-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1979-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1979-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1979-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("America/Denver", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("America/Denver", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("America/Denver", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("America/Denver", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("America/Denver", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("America/Denver", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("America/Denver", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("America/Denver", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("America/Denver", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("America/Denver", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("America/Denver", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("America/Denver", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("America/Denver", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1993" : helpers.makeTestYear("America/Denver", [ + ["1993-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1993-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1993-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1993-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1994" : helpers.makeTestYear("America/Denver", [ + ["1994-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1994-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1994-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1994-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1995" : helpers.makeTestYear("America/Denver", [ + ["1995-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1995-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1995-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1995-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/Denver", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/Denver", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/Denver", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Denver", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/Denver", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/Denver", [ + ["2001-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Denver", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Denver", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Denver", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Denver", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Denver", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Denver", [ + ["2007-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Denver", [ + ["2008-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Denver", [ + ["2009-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Denver", [ + ["2010-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("America/Denver", [ + ["2011-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("America/Denver", [ + ["2012-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("America/Denver", [ + ["2013-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("America/Denver", [ + ["2014-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("America/Denver", [ + ["2015-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("America/Denver", [ + ["2016-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("America/Denver", [ + ["2017-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("America/Denver", [ + ["2018-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("America/Denver", [ + ["2019-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("America/Denver", [ + ["2020-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("America/Denver", [ + ["2021-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("America/Denver", [ + ["2022-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("America/Denver", [ + ["2023-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("America/Denver", [ + ["2024-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("America/Denver", [ + ["2025-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("America/Denver", [ + ["2026-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("America/Denver", [ + ["2027-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("America/Denver", [ + ["2028-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("America/Denver", [ + ["2029-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("America/Denver", [ + ["2030-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("America/Denver", [ + ["2031-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("America/Denver", [ + ["2032-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("America/Denver", [ + ["2033-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("America/Denver", [ + ["2034-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("America/Denver", [ + ["2035-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("America/Denver", [ + ["2036-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("America/Denver", [ + ["2037-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/detroit.js b/tests/zones/america/detroit.js new file mode 100644 index 00000000..673d7ab4 --- /dev/null +++ b/tests/zones/america/detroit.js @@ -0,0 +1,496 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Detroit"] = { + "1905" : helpers.makeTestYear("America/Detroit", [ + ["1905-01-01T05:32:10+00:00", "23:59:59", "LMT", 19931 / 60], + ["1905-01-01T05:32:11+00:00", "23:32:11", "CST", 360] + ]), + + "1915" : helpers.makeTestYear("America/Detroit", [ + ["1915-05-15T07:59:59+00:00", "01:59:59", "CST", 360], + ["1915-05-15T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1942" : helpers.makeTestYear("America/Detroit", [ + ["1942-02-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["1942-02-09T07:00:00+00:00", "03:00:00", "EWT", 240] + ]), + + "1945" : helpers.makeTestYear("America/Detroit", [ + ["1945-08-14T22:59:59+00:00", "18:59:59", "EWT", 240], + ["1945-08-14T23:00:00+00:00", "19:00:00", "EPT", 240], + ["1945-09-30T05:59:59+00:00", "01:59:59", "EPT", 240], + ["1945-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1948" : helpers.makeTestYear("America/Detroit", [ + ["1948-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1948-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1948-09-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1948-09-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1967" : helpers.makeTestYear("America/Detroit", [ + ["1967-06-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["1967-06-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1967-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1967-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1973" : helpers.makeTestYear("America/Detroit", [ + ["1973-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1973-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1973-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1973-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Detroit", [ + ["1974-01-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-01-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1974-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1974-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Detroit", [ + ["1975-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("America/Detroit", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("America/Detroit", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("America/Detroit", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Detroit", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Detroit", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Detroit", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Detroit", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Detroit", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Detroit", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Detroit", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Detroit", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Detroit", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Detroit", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Detroit", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Detroit", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Detroit", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Detroit", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Detroit", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Detroit", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Detroit", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Detroit", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Detroit", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Detroit", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Detroit", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("America/Detroit", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Detroit", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Detroit", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Detroit", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Detroit", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Detroit", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Detroit", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Detroit", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Detroit", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Detroit", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Detroit", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Detroit", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Detroit", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Detroit", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Detroit", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Detroit", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Detroit", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Detroit", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Detroit", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Detroit", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Detroit", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Detroit", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Detroit", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Detroit", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Detroit", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Detroit", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Detroit", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Detroit", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Detroit", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Detroit", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Detroit", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Detroit", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Detroit", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Detroit", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Detroit", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Detroit", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Detroit", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Detroit", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/dominica.js b/tests/zones/america/dominica.js new file mode 100644 index 00000000..c08bf08d --- /dev/null +++ b/tests/zones/america/dominica.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Dominica"] = { + "1912" : helpers.makeTestYear("America/Dominica", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/edmonton.js b/tests/zones/america/edmonton.js new file mode 100644 index 00000000..f81a2b5b --- /dev/null +++ b/tests/zones/america/edmonton.js @@ -0,0 +1,547 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Edmonton"] = { + "1906" : helpers.makeTestYear("America/Edmonton", [ + ["1906-09-01T07:33:51+00:00", "23:59:59", "LMT", 27232 / 60], + ["1906-09-01T07:33:52+00:00", "00:33:52", "MST", 420] + ]), + + "1918" : helpers.makeTestYear("America/Edmonton", [ + ["1918-04-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["1918-04-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1918-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1918-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1919" : helpers.makeTestYear("America/Edmonton", [ + ["1919-04-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["1919-04-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1919-05-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1919-05-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1920" : helpers.makeTestYear("America/Edmonton", [ + ["1920-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1920-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1920-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1920-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1921" : helpers.makeTestYear("America/Edmonton", [ + ["1921-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1921-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1921-09-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1921-09-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1922" : helpers.makeTestYear("America/Edmonton", [ + ["1922-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1922-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1922-09-24T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1922-09-24T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1923" : helpers.makeTestYear("America/Edmonton", [ + ["1923-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1923-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1923-09-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1923-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/Edmonton", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/Edmonton", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1947" : helpers.makeTestYear("America/Edmonton", [ + ["1947-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1947-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1947-09-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1947-09-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1967" : helpers.makeTestYear("America/Edmonton", [ + ["1967-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1967-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1967-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1967-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1969" : helpers.makeTestYear("America/Edmonton", [ + ["1969-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1969-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1969-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1969-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1972" : helpers.makeTestYear("America/Edmonton", [ + ["1972-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1972-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1972-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1972-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1973" : helpers.makeTestYear("America/Edmonton", [ + ["1973-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1973-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1973-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1973-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1974" : helpers.makeTestYear("America/Edmonton", [ + ["1974-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1974-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1974-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1974-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1975" : helpers.makeTestYear("America/Edmonton", [ + ["1975-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1975-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1975-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1975-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1976" : helpers.makeTestYear("America/Edmonton", [ + ["1976-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1976-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1976-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1976-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1977" : helpers.makeTestYear("America/Edmonton", [ + ["1977-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1977-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1977-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1977-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1978" : helpers.makeTestYear("America/Edmonton", [ + ["1978-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1978-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1978-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1978-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1979" : helpers.makeTestYear("America/Edmonton", [ + ["1979-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1979-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1979-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1979-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("America/Edmonton", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("America/Edmonton", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("America/Edmonton", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("America/Edmonton", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("America/Edmonton", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("America/Edmonton", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("America/Edmonton", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("America/Edmonton", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("America/Edmonton", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("America/Edmonton", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("America/Edmonton", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("America/Edmonton", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("America/Edmonton", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1993" : helpers.makeTestYear("America/Edmonton", [ + ["1993-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1993-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1993-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1993-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1994" : helpers.makeTestYear("America/Edmonton", [ + ["1994-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1994-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1994-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1994-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1995" : helpers.makeTestYear("America/Edmonton", [ + ["1995-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1995-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1995-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1995-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/Edmonton", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/Edmonton", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/Edmonton", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Edmonton", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/Edmonton", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/Edmonton", [ + ["2001-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Edmonton", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Edmonton", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Edmonton", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Edmonton", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Edmonton", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Edmonton", [ + ["2007-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Edmonton", [ + ["2008-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Edmonton", [ + ["2009-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Edmonton", [ + ["2010-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("America/Edmonton", [ + ["2011-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("America/Edmonton", [ + ["2012-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("America/Edmonton", [ + ["2013-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("America/Edmonton", [ + ["2014-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("America/Edmonton", [ + ["2015-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("America/Edmonton", [ + ["2016-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("America/Edmonton", [ + ["2017-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("America/Edmonton", [ + ["2018-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("America/Edmonton", [ + ["2019-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("America/Edmonton", [ + ["2020-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("America/Edmonton", [ + ["2021-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("America/Edmonton", [ + ["2022-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("America/Edmonton", [ + ["2023-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("America/Edmonton", [ + ["2024-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("America/Edmonton", [ + ["2025-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("America/Edmonton", [ + ["2026-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("America/Edmonton", [ + ["2027-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("America/Edmonton", [ + ["2028-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("America/Edmonton", [ + ["2029-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("America/Edmonton", [ + ["2030-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("America/Edmonton", [ + ["2031-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("America/Edmonton", [ + ["2032-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("America/Edmonton", [ + ["2033-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("America/Edmonton", [ + ["2034-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("America/Edmonton", [ + ["2035-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("America/Edmonton", [ + ["2036-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("America/Edmonton", [ + ["2037-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/eirunepe.js b/tests/zones/america/eirunepe.js new file mode 100644 index 00000000..3220328e --- /dev/null +++ b/tests/zones/america/eirunepe.js @@ -0,0 +1,140 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Eirunepe"] = { + "1914" : helpers.makeTestYear("America/Eirunepe", [ + ["1914-01-01T04:39:27+00:00", "23:59:59", "LMT", 16768 / 60], + ["1914-01-01T04:39:28+00:00", "23:39:28", "ACT", 300] + ]), + + "1931" : helpers.makeTestYear("America/Eirunepe", [ + ["1931-10-03T15:59:59+00:00", "10:59:59", "ACT", 300], + ["1931-10-03T16:00:00+00:00", "12:00:00", "ACST", 240] + ]), + + "1932" : helpers.makeTestYear("America/Eirunepe", [ + ["1932-04-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1932-04-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1932-10-03T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1932-10-03T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1933" : helpers.makeTestYear("America/Eirunepe", [ + ["1933-04-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1933-04-01T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "1949" : helpers.makeTestYear("America/Eirunepe", [ + ["1949-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1949-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1950" : helpers.makeTestYear("America/Eirunepe", [ + ["1950-04-16T04:59:59+00:00", "00:59:59", "ACST", 240], + ["1950-04-16T05:00:00+00:00", "00:00:00", "ACT", 300], + ["1950-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1950-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1951" : helpers.makeTestYear("America/Eirunepe", [ + ["1951-04-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1951-04-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1951-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1951-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1952" : helpers.makeTestYear("America/Eirunepe", [ + ["1952-04-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1952-04-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1952-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1952-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1953" : helpers.makeTestYear("America/Eirunepe", [ + ["1953-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1953-03-01T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "1963" : helpers.makeTestYear("America/Eirunepe", [ + ["1963-12-09T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1963-12-09T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1964" : helpers.makeTestYear("America/Eirunepe", [ + ["1964-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1964-03-01T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "1965" : helpers.makeTestYear("America/Eirunepe", [ + ["1965-01-31T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1965-01-31T05:00:00+00:00", "01:00:00", "ACST", 240], + ["1965-03-31T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1965-03-31T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1965-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1965-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1966" : helpers.makeTestYear("America/Eirunepe", [ + ["1966-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1966-03-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1966-11-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1966-11-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1967" : helpers.makeTestYear("America/Eirunepe", [ + ["1967-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1967-03-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1967-11-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1967-11-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1968" : helpers.makeTestYear("America/Eirunepe", [ + ["1968-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1968-03-01T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "1985" : helpers.makeTestYear("America/Eirunepe", [ + ["1985-11-02T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1985-11-02T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1986" : helpers.makeTestYear("America/Eirunepe", [ + ["1986-03-15T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1986-03-15T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1986-10-25T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1986-10-25T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1987" : helpers.makeTestYear("America/Eirunepe", [ + ["1987-02-14T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1987-02-14T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1987-10-25T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1987-10-25T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1988" : helpers.makeTestYear("America/Eirunepe", [ + ["1988-02-07T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1988-02-07T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "1993" : helpers.makeTestYear("America/Eirunepe", [ + ["1993-10-17T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1993-10-17T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1994" : helpers.makeTestYear("America/Eirunepe", [ + ["1994-02-20T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1994-02-20T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "2008" : helpers.makeTestYear("America/Eirunepe", [ + ["2008-06-24T04:59:59+00:00", "23:59:59", "ACT", 300], + ["2008-06-24T05:00:00+00:00", "01:00:00", "AMT", 240] + ]), + + "2013" : helpers.makeTestYear("America/Eirunepe", [ + ["2013-11-10T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2013-11-10T04:00:00+00:00", "23:00:00", "ACT", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/el_salvador.js b/tests/zones/america/el_salvador.js new file mode 100644 index 00000000..4e15bb66 --- /dev/null +++ b/tests/zones/america/el_salvador.js @@ -0,0 +1,24 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/El_Salvador"] = { + "1921" : helpers.makeTestYear("America/El_Salvador", [ + ["1921-01-01T05:56:47+00:00", "23:59:59", "LMT", 21408 / 60], + ["1921-01-01T05:56:48+00:00", "23:56:48", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/El_Salvador", [ + ["1987-05-03T05:59:59+00:00", "23:59:59", "CST", 360], + ["1987-05-03T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1987-09-27T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1987-09-27T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/El_Salvador", [ + ["1988-05-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1988-05-01T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1988-09-25T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1988-09-25T05:00:00+00:00", "23:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/fortaleza.js b/tests/zones/america/fortaleza.js new file mode 100644 index 00000000..3c835c1a --- /dev/null +++ b/tests/zones/america/fortaleza.js @@ -0,0 +1,158 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Fortaleza"] = { + "1914" : helpers.makeTestYear("America/Fortaleza", [ + ["1914-01-01T02:33:59+00:00", "23:59:59", "LMT", 154], + ["1914-01-01T02:34:00+00:00", "23:34:00", "BRT", 180] + ]), + + "1931" : helpers.makeTestYear("America/Fortaleza", [ + ["1931-10-03T13:59:59+00:00", "10:59:59", "BRT", 180], + ["1931-10-03T14:00:00+00:00", "12:00:00", "BRST", 120] + ]), + + "1932" : helpers.makeTestYear("America/Fortaleza", [ + ["1932-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1932-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1932-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1932-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1933" : helpers.makeTestYear("America/Fortaleza", [ + ["1933-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1933-04-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1949" : helpers.makeTestYear("America/Fortaleza", [ + ["1949-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1949-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1950" : helpers.makeTestYear("America/Fortaleza", [ + ["1950-04-16T02:59:59+00:00", "00:59:59", "BRST", 120], + ["1950-04-16T03:00:00+00:00", "00:00:00", "BRT", 180], + ["1950-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1950-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1951" : helpers.makeTestYear("America/Fortaleza", [ + ["1951-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1951-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1951-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1951-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1952" : helpers.makeTestYear("America/Fortaleza", [ + ["1952-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1952-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1952-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1952-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1953" : helpers.makeTestYear("America/Fortaleza", [ + ["1953-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1953-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1963" : helpers.makeTestYear("America/Fortaleza", [ + ["1963-12-09T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1963-12-09T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1964" : helpers.makeTestYear("America/Fortaleza", [ + ["1964-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1964-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1965" : helpers.makeTestYear("America/Fortaleza", [ + ["1965-01-31T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-01-31T03:00:00+00:00", "01:00:00", "BRST", 120], + ["1965-03-31T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1965-03-31T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1965-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1966" : helpers.makeTestYear("America/Fortaleza", [ + ["1966-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1966-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1966-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1966-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1967" : helpers.makeTestYear("America/Fortaleza", [ + ["1967-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1967-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1967-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1967-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1968" : helpers.makeTestYear("America/Fortaleza", [ + ["1968-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1968-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1985" : helpers.makeTestYear("America/Fortaleza", [ + ["1985-11-02T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1985-11-02T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1986" : helpers.makeTestYear("America/Fortaleza", [ + ["1986-03-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1986-03-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1986-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1986-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1987" : helpers.makeTestYear("America/Fortaleza", [ + ["1987-02-14T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1987-02-14T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1987-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1987-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1988" : helpers.makeTestYear("America/Fortaleza", [ + ["1988-02-07T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1988-02-07T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1988-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1988-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Fortaleza", [ + ["1989-01-29T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1989-01-29T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Fortaleza", [ + ["1990-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1990-02-11T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1999" : helpers.makeTestYear("America/Fortaleza", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1999-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2000" : helpers.makeTestYear("America/Fortaleza", [ + ["2000-02-27T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2000-02-27T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2000-10-08T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2000-10-08T03:00:00+00:00", "01:00:00", "BRST", 120], + ["2000-10-22T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2000-10-22T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "2001" : helpers.makeTestYear("America/Fortaleza", [ + ["2001-10-14T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2001-10-14T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2002" : helpers.makeTestYear("America/Fortaleza", [ + ["2002-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2002-02-17T02:00:00+00:00", "23:00:00", "BRT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/glace_bay.js b/tests/zones/america/glace_bay.js new file mode 100644 index 00000000..b8c117a5 --- /dev/null +++ b/tests/zones/america/glace_bay.js @@ -0,0 +1,498 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Glace_Bay"] = { + "1902" : helpers.makeTestYear("America/Glace_Bay", [ + ["1902-06-15T03:59:47+00:00", "23:59:59", "LMT", 14388 / 60], + ["1902-06-15T03:59:48+00:00", "23:59:48", "AST", 240] + ]), + + "1918" : helpers.makeTestYear("America/Glace_Bay", [ + ["1918-04-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["1918-04-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1918-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1918-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1942" : helpers.makeTestYear("America/Glace_Bay", [ + ["1942-02-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["1942-02-09T06:00:00+00:00", "03:00:00", "AWT", 180] + ]), + + "1945" : helpers.makeTestYear("America/Glace_Bay", [ + ["1945-08-14T22:59:59+00:00", "19:59:59", "AWT", 180], + ["1945-08-14T23:00:00+00:00", "20:00:00", "APT", 180], + ["1945-09-30T04:59:59+00:00", "01:59:59", "APT", 180], + ["1945-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1953" : helpers.makeTestYear("America/Glace_Bay", [ + ["1953-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1953-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1953-09-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1953-09-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1972" : helpers.makeTestYear("America/Glace_Bay", [ + ["1972-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1972-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1972-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1972-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1973" : helpers.makeTestYear("America/Glace_Bay", [ + ["1973-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1973-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1973-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1973-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1974" : helpers.makeTestYear("America/Glace_Bay", [ + ["1974-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1974-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1974-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1974-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1975" : helpers.makeTestYear("America/Glace_Bay", [ + ["1975-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1975-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1975-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1975-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1976" : helpers.makeTestYear("America/Glace_Bay", [ + ["1976-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1976-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1976-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1976-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1977" : helpers.makeTestYear("America/Glace_Bay", [ + ["1977-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1977-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1977-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1977-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1978" : helpers.makeTestYear("America/Glace_Bay", [ + ["1978-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1978-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1978-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1978-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1979" : helpers.makeTestYear("America/Glace_Bay", [ + ["1979-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1979-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1979-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1979-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1980" : helpers.makeTestYear("America/Glace_Bay", [ + ["1980-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1980-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1980-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1980-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1981" : helpers.makeTestYear("America/Glace_Bay", [ + ["1981-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1981-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1981-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1981-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1982" : helpers.makeTestYear("America/Glace_Bay", [ + ["1982-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1982-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1982-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1982-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1983" : helpers.makeTestYear("America/Glace_Bay", [ + ["1983-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1983-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1983-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1983-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1984" : helpers.makeTestYear("America/Glace_Bay", [ + ["1984-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1984-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1984-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1984-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1985" : helpers.makeTestYear("America/Glace_Bay", [ + ["1985-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1985-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1985-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1985-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1986" : helpers.makeTestYear("America/Glace_Bay", [ + ["1986-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1986-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1986-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1986-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1987" : helpers.makeTestYear("America/Glace_Bay", [ + ["1987-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1987-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1987-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1987-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1988" : helpers.makeTestYear("America/Glace_Bay", [ + ["1988-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1988-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1988-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1988-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1989" : helpers.makeTestYear("America/Glace_Bay", [ + ["1989-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1989-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1989-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1989-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1990" : helpers.makeTestYear("America/Glace_Bay", [ + ["1990-04-01T05:59:59+00:00", "01:59:59", "AST", 240], + ["1990-04-01T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1990-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1990-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1991" : helpers.makeTestYear("America/Glace_Bay", [ + ["1991-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["1991-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1991-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1991-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1992" : helpers.makeTestYear("America/Glace_Bay", [ + ["1992-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1992-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1992-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1992-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1993" : helpers.makeTestYear("America/Glace_Bay", [ + ["1993-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["1993-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1993-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1993-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1994" : helpers.makeTestYear("America/Glace_Bay", [ + ["1994-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1994-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1994-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1994-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1995" : helpers.makeTestYear("America/Glace_Bay", [ + ["1995-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1995-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1995-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1995-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1996" : helpers.makeTestYear("America/Glace_Bay", [ + ["1996-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["1996-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1996-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1996-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1997" : helpers.makeTestYear("America/Glace_Bay", [ + ["1997-04-06T05:59:59+00:00", "01:59:59", "AST", 240], + ["1997-04-06T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1997-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1997-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1998" : helpers.makeTestYear("America/Glace_Bay", [ + ["1998-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1998-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1998-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1998-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1999" : helpers.makeTestYear("America/Glace_Bay", [ + ["1999-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["1999-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1999-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1999-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2000" : helpers.makeTestYear("America/Glace_Bay", [ + ["2000-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["2000-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2000-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2000-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2001" : helpers.makeTestYear("America/Glace_Bay", [ + ["2001-04-01T05:59:59+00:00", "01:59:59", "AST", 240], + ["2001-04-01T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2001-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2001-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2002" : helpers.makeTestYear("America/Glace_Bay", [ + ["2002-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["2002-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2002-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2002-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2003" : helpers.makeTestYear("America/Glace_Bay", [ + ["2003-04-06T05:59:59+00:00", "01:59:59", "AST", 240], + ["2003-04-06T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2003-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2003-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2004" : helpers.makeTestYear("America/Glace_Bay", [ + ["2004-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["2004-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2004-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2004-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2005" : helpers.makeTestYear("America/Glace_Bay", [ + ["2005-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["2005-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2005-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2005-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2006" : helpers.makeTestYear("America/Glace_Bay", [ + ["2006-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["2006-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2006-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2006-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2007" : helpers.makeTestYear("America/Glace_Bay", [ + ["2007-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2007-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2007-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2007-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2008" : helpers.makeTestYear("America/Glace_Bay", [ + ["2008-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2008-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2008-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2008-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2009" : helpers.makeTestYear("America/Glace_Bay", [ + ["2009-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2009-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2009-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2009-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2010" : helpers.makeTestYear("America/Glace_Bay", [ + ["2010-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2010-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2010-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2010-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2011" : helpers.makeTestYear("America/Glace_Bay", [ + ["2011-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2011-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2011-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2011-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2012" : helpers.makeTestYear("America/Glace_Bay", [ + ["2012-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2012-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2012-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2012-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2013" : helpers.makeTestYear("America/Glace_Bay", [ + ["2013-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2013-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2013-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2013-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2014" : helpers.makeTestYear("America/Glace_Bay", [ + ["2014-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2014-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2014-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2014-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2015" : helpers.makeTestYear("America/Glace_Bay", [ + ["2015-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2015-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2015-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2015-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2016" : helpers.makeTestYear("America/Glace_Bay", [ + ["2016-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2016-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2016-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2016-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2017" : helpers.makeTestYear("America/Glace_Bay", [ + ["2017-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2017-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2017-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2017-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2018" : helpers.makeTestYear("America/Glace_Bay", [ + ["2018-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2018-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2018-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2018-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2019" : helpers.makeTestYear("America/Glace_Bay", [ + ["2019-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2019-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2019-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2019-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2020" : helpers.makeTestYear("America/Glace_Bay", [ + ["2020-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2020-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2020-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2020-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2021" : helpers.makeTestYear("America/Glace_Bay", [ + ["2021-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2021-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2021-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2021-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2022" : helpers.makeTestYear("America/Glace_Bay", [ + ["2022-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2022-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2022-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2022-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2023" : helpers.makeTestYear("America/Glace_Bay", [ + ["2023-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2023-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2023-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2023-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2024" : helpers.makeTestYear("America/Glace_Bay", [ + ["2024-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2024-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2024-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2024-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2025" : helpers.makeTestYear("America/Glace_Bay", [ + ["2025-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2025-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2025-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2025-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2026" : helpers.makeTestYear("America/Glace_Bay", [ + ["2026-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2026-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2026-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2026-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2027" : helpers.makeTestYear("America/Glace_Bay", [ + ["2027-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2027-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2027-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2027-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2028" : helpers.makeTestYear("America/Glace_Bay", [ + ["2028-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2028-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2028-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2028-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2029" : helpers.makeTestYear("America/Glace_Bay", [ + ["2029-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2029-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2029-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2029-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2030" : helpers.makeTestYear("America/Glace_Bay", [ + ["2030-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2030-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2030-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2030-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2031" : helpers.makeTestYear("America/Glace_Bay", [ + ["2031-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2031-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2031-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2031-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2032" : helpers.makeTestYear("America/Glace_Bay", [ + ["2032-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2032-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2032-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2032-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2033" : helpers.makeTestYear("America/Glace_Bay", [ + ["2033-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2033-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2033-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2033-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2034" : helpers.makeTestYear("America/Glace_Bay", [ + ["2034-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2034-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2034-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2034-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2035" : helpers.makeTestYear("America/Glace_Bay", [ + ["2035-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2035-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2035-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2035-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2036" : helpers.makeTestYear("America/Glace_Bay", [ + ["2036-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2036-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2036-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2036-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2037" : helpers.makeTestYear("America/Glace_Bay", [ + ["2037-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2037-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2037-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2037-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/godthab.js b/tests/zones/america/godthab.js new file mode 100644 index 00000000..2f7682c0 --- /dev/null +++ b/tests/zones/america/godthab.js @@ -0,0 +1,416 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Godthab"] = { + "1916" : helpers.makeTestYear("America/Godthab", [ + ["1916-07-28T03:26:55+00:00", "23:59:59", "LMT", 12416 / 60], + ["1916-07-28T03:26:56+00:00", "00:26:56", "WGT", 180] + ]), + + "1980" : helpers.makeTestYear("America/Godthab", [ + ["1980-04-06T04:59:59+00:00", "01:59:59", "WGT", 180], + ["1980-04-06T05:00:00+00:00", "03:00:00", "WGST", 120], + ["1980-09-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1980-09-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1981" : helpers.makeTestYear("America/Godthab", [ + ["1981-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1981-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1981-09-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1981-09-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1982" : helpers.makeTestYear("America/Godthab", [ + ["1982-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1982-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1982-09-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1982-09-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1983" : helpers.makeTestYear("America/Godthab", [ + ["1983-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1983-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1983-09-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1983-09-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1984" : helpers.makeTestYear("America/Godthab", [ + ["1984-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1984-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1984-09-30T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1984-09-30T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1985" : helpers.makeTestYear("America/Godthab", [ + ["1985-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1985-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1985-09-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1985-09-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1986" : helpers.makeTestYear("America/Godthab", [ + ["1986-03-30T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1986-03-30T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1986-09-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1986-09-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1987" : helpers.makeTestYear("America/Godthab", [ + ["1987-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1987-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1987-09-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1987-09-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1988" : helpers.makeTestYear("America/Godthab", [ + ["1988-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1988-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1988-09-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1988-09-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1989" : helpers.makeTestYear("America/Godthab", [ + ["1989-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1989-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1989-09-24T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1989-09-24T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1990" : helpers.makeTestYear("America/Godthab", [ + ["1990-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1990-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1990-09-30T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1990-09-30T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1991" : helpers.makeTestYear("America/Godthab", [ + ["1991-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1991-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1991-09-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1991-09-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1992" : helpers.makeTestYear("America/Godthab", [ + ["1992-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1992-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1992-09-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1992-09-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1993" : helpers.makeTestYear("America/Godthab", [ + ["1993-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1993-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1993-09-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1993-09-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1994" : helpers.makeTestYear("America/Godthab", [ + ["1994-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1994-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1994-09-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1994-09-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1995" : helpers.makeTestYear("America/Godthab", [ + ["1995-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1995-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1995-09-24T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1995-09-24T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1996" : helpers.makeTestYear("America/Godthab", [ + ["1996-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1996-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1996-10-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1996-10-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1997" : helpers.makeTestYear("America/Godthab", [ + ["1997-03-30T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1997-03-30T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1997-10-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1997-10-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1998" : helpers.makeTestYear("America/Godthab", [ + ["1998-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1998-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1998-10-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1998-10-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "1999" : helpers.makeTestYear("America/Godthab", [ + ["1999-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["1999-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["1999-10-31T00:59:59+00:00", "22:59:59", "WGST", 120], + ["1999-10-31T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2000" : helpers.makeTestYear("America/Godthab", [ + ["2000-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2000-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2000-10-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2000-10-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2001" : helpers.makeTestYear("America/Godthab", [ + ["2001-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2001-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2001-10-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2001-10-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2002" : helpers.makeTestYear("America/Godthab", [ + ["2002-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2002-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2002-10-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2002-10-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2003" : helpers.makeTestYear("America/Godthab", [ + ["2003-03-30T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2003-03-30T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2003-10-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2003-10-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2004" : helpers.makeTestYear("America/Godthab", [ + ["2004-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2004-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2004-10-31T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2004-10-31T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2005" : helpers.makeTestYear("America/Godthab", [ + ["2005-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2005-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2005-10-30T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2005-10-30T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2006" : helpers.makeTestYear("America/Godthab", [ + ["2006-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2006-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2006-10-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2006-10-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2007" : helpers.makeTestYear("America/Godthab", [ + ["2007-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2007-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2007-10-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2007-10-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2008" : helpers.makeTestYear("America/Godthab", [ + ["2008-03-30T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2008-03-30T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2008-10-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2008-10-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2009" : helpers.makeTestYear("America/Godthab", [ + ["2009-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2009-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2009-10-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2009-10-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2010" : helpers.makeTestYear("America/Godthab", [ + ["2010-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2010-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2010-10-31T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2010-10-31T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2011" : helpers.makeTestYear("America/Godthab", [ + ["2011-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2011-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2011-10-30T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2011-10-30T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2012" : helpers.makeTestYear("America/Godthab", [ + ["2012-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2012-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2012-10-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2012-10-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2013" : helpers.makeTestYear("America/Godthab", [ + ["2013-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2013-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2013-10-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2013-10-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2014" : helpers.makeTestYear("America/Godthab", [ + ["2014-03-30T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2014-03-30T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2014-10-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2014-10-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2015" : helpers.makeTestYear("America/Godthab", [ + ["2015-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2015-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2015-10-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2015-10-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2016" : helpers.makeTestYear("America/Godthab", [ + ["2016-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2016-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2016-10-30T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2016-10-30T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2017" : helpers.makeTestYear("America/Godthab", [ + ["2017-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2017-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2017-10-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2017-10-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2018" : helpers.makeTestYear("America/Godthab", [ + ["2018-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2018-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2018-10-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2018-10-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2019" : helpers.makeTestYear("America/Godthab", [ + ["2019-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2019-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2019-10-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2019-10-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2020" : helpers.makeTestYear("America/Godthab", [ + ["2020-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2020-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2020-10-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2020-10-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2021" : helpers.makeTestYear("America/Godthab", [ + ["2021-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2021-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2021-10-31T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2021-10-31T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2022" : helpers.makeTestYear("America/Godthab", [ + ["2022-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2022-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2022-10-30T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2022-10-30T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2023" : helpers.makeTestYear("America/Godthab", [ + ["2023-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2023-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2023-10-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2023-10-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2024" : helpers.makeTestYear("America/Godthab", [ + ["2024-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2024-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2024-10-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2024-10-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2025" : helpers.makeTestYear("America/Godthab", [ + ["2025-03-30T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2025-03-30T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2025-10-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2025-10-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2026" : helpers.makeTestYear("America/Godthab", [ + ["2026-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2026-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2026-10-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2026-10-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2027" : helpers.makeTestYear("America/Godthab", [ + ["2027-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2027-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2027-10-31T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2027-10-31T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2028" : helpers.makeTestYear("America/Godthab", [ + ["2028-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2028-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2028-10-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2028-10-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2029" : helpers.makeTestYear("America/Godthab", [ + ["2029-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2029-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2029-10-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2029-10-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2030" : helpers.makeTestYear("America/Godthab", [ + ["2030-03-31T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2030-03-31T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2030-10-27T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2030-10-27T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2031" : helpers.makeTestYear("America/Godthab", [ + ["2031-03-30T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2031-03-30T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2031-10-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2031-10-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2032" : helpers.makeTestYear("America/Godthab", [ + ["2032-03-28T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2032-03-28T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2032-10-31T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2032-10-31T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2033" : helpers.makeTestYear("America/Godthab", [ + ["2033-03-27T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2033-03-27T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2033-10-30T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2033-10-30T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2034" : helpers.makeTestYear("America/Godthab", [ + ["2034-03-26T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2034-03-26T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2034-10-29T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2034-10-29T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2035" : helpers.makeTestYear("America/Godthab", [ + ["2035-03-25T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2035-03-25T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2035-10-28T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2035-10-28T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2036" : helpers.makeTestYear("America/Godthab", [ + ["2036-03-30T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2036-03-30T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2036-10-26T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2036-10-26T01:00:00+00:00", "22:00:00", "WGT", 180] + ]), + + "2037" : helpers.makeTestYear("America/Godthab", [ + ["2037-03-29T00:59:59+00:00", "21:59:59", "WGT", 180], + ["2037-03-29T01:00:00+00:00", "23:00:00", "WGST", 120], + ["2037-10-25T00:59:59+00:00", "22:59:59", "WGST", 120], + ["2037-10-25T01:00:00+00:00", "22:00:00", "WGT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/goose_bay.js b/tests/zones/america/goose_bay.js new file mode 100644 index 00000000..6d304ff9 --- /dev/null +++ b/tests/zones/america/goose_bay.js @@ -0,0 +1,717 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Goose_Bay"] = { + "1918" : helpers.makeTestYear("America/Goose_Bay", [ + ["1918-04-14T05:30:51+00:00", "01:59:59", "NST", 12652 / 60], + ["1918-04-14T05:30:52+00:00", "03:00:00", "NDT", 9052 / 60], + ["1918-10-27T04:30:51+00:00", "01:59:59", "NDT", 9052 / 60], + ["1918-10-27T04:30:52+00:00", "01:00:00", "NST", 12652 / 60] + ]), + + "1935" : helpers.makeTestYear("America/Goose_Bay", [ + ["1935-03-30T03:30:51+00:00", "23:59:59", "NST", 12652 / 60], + ["1935-03-30T03:30:52+00:00", "00:00:52", "NST", 210] + ]), + + "1936" : helpers.makeTestYear("America/Goose_Bay", [ + ["1936-05-11T03:29:59+00:00", "23:59:59", "NST", 210], + ["1936-05-11T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1936-10-05T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1936-10-05T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1937" : helpers.makeTestYear("America/Goose_Bay", [ + ["1937-05-10T03:29:59+00:00", "23:59:59", "NST", 210], + ["1937-05-10T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1937-10-04T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1937-10-04T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1938" : helpers.makeTestYear("America/Goose_Bay", [ + ["1938-05-09T03:29:59+00:00", "23:59:59", "NST", 210], + ["1938-05-09T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1938-10-03T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1938-10-03T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1939" : helpers.makeTestYear("America/Goose_Bay", [ + ["1939-05-15T03:29:59+00:00", "23:59:59", "NST", 210], + ["1939-05-15T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1939-10-02T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1939-10-02T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1940" : helpers.makeTestYear("America/Goose_Bay", [ + ["1940-05-13T03:29:59+00:00", "23:59:59", "NST", 210], + ["1940-05-13T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1940-10-07T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1940-10-07T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1941" : helpers.makeTestYear("America/Goose_Bay", [ + ["1941-05-12T03:29:59+00:00", "23:59:59", "NST", 210], + ["1941-05-12T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1941-10-06T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1941-10-06T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1942" : helpers.makeTestYear("America/Goose_Bay", [ + ["1942-05-11T03:29:59+00:00", "23:59:59", "NST", 210], + ["1942-05-11T03:30:00+00:00", "01:00:00", "NWT", 150] + ]), + + "1945" : helpers.makeTestYear("America/Goose_Bay", [ + ["1945-08-14T22:59:59+00:00", "20:29:59", "NWT", 150], + ["1945-08-14T23:00:00+00:00", "20:30:00", "NPT", 150], + ["1945-09-30T04:29:59+00:00", "01:59:59", "NPT", 150], + ["1945-09-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1946" : helpers.makeTestYear("America/Goose_Bay", [ + ["1946-05-12T05:29:59+00:00", "01:59:59", "NST", 210], + ["1946-05-12T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1946-10-06T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1946-10-06T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1947" : helpers.makeTestYear("America/Goose_Bay", [ + ["1947-05-11T05:29:59+00:00", "01:59:59", "NST", 210], + ["1947-05-11T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1947-10-05T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1947-10-05T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1948" : helpers.makeTestYear("America/Goose_Bay", [ + ["1948-05-09T05:29:59+00:00", "01:59:59", "NST", 210], + ["1948-05-09T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1948-10-03T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1948-10-03T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1949" : helpers.makeTestYear("America/Goose_Bay", [ + ["1949-05-08T05:29:59+00:00", "01:59:59", "NST", 210], + ["1949-05-08T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1949-10-02T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1949-10-02T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1950" : helpers.makeTestYear("America/Goose_Bay", [ + ["1950-05-14T05:29:59+00:00", "01:59:59", "NST", 210], + ["1950-05-14T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1950-10-08T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1950-10-08T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1951" : helpers.makeTestYear("America/Goose_Bay", [ + ["1951-04-29T05:29:59+00:00", "01:59:59", "NST", 210], + ["1951-04-29T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1951-09-30T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1951-09-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1952" : helpers.makeTestYear("America/Goose_Bay", [ + ["1952-04-27T05:29:59+00:00", "01:59:59", "NST", 210], + ["1952-04-27T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1952-09-28T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1952-09-28T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1953" : helpers.makeTestYear("America/Goose_Bay", [ + ["1953-04-26T05:29:59+00:00", "01:59:59", "NST", 210], + ["1953-04-26T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1953-09-27T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1953-09-27T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1954" : helpers.makeTestYear("America/Goose_Bay", [ + ["1954-04-25T05:29:59+00:00", "01:59:59", "NST", 210], + ["1954-04-25T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1954-09-26T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1954-09-26T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1955" : helpers.makeTestYear("America/Goose_Bay", [ + ["1955-04-24T05:29:59+00:00", "01:59:59", "NST", 210], + ["1955-04-24T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1955-09-25T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1955-09-25T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1956" : helpers.makeTestYear("America/Goose_Bay", [ + ["1956-04-29T05:29:59+00:00", "01:59:59", "NST", 210], + ["1956-04-29T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1956-09-30T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1956-09-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1957" : helpers.makeTestYear("America/Goose_Bay", [ + ["1957-04-28T05:29:59+00:00", "01:59:59", "NST", 210], + ["1957-04-28T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1957-09-29T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1957-09-29T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1958" : helpers.makeTestYear("America/Goose_Bay", [ + ["1958-04-27T05:29:59+00:00", "01:59:59", "NST", 210], + ["1958-04-27T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1958-09-28T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1958-09-28T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1959" : helpers.makeTestYear("America/Goose_Bay", [ + ["1959-04-26T05:29:59+00:00", "01:59:59", "NST", 210], + ["1959-04-26T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1959-09-27T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1959-09-27T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1960" : helpers.makeTestYear("America/Goose_Bay", [ + ["1960-04-24T05:29:59+00:00", "01:59:59", "NST", 210], + ["1960-04-24T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1960-10-30T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1960-10-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1961" : helpers.makeTestYear("America/Goose_Bay", [ + ["1961-04-30T05:29:59+00:00", "01:59:59", "NST", 210], + ["1961-04-30T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1961-10-29T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1961-10-29T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1962" : helpers.makeTestYear("America/Goose_Bay", [ + ["1962-04-29T05:29:59+00:00", "01:59:59", "NST", 210], + ["1962-04-29T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1962-10-28T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1962-10-28T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1963" : helpers.makeTestYear("America/Goose_Bay", [ + ["1963-04-28T05:29:59+00:00", "01:59:59", "NST", 210], + ["1963-04-28T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1963-10-27T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1963-10-27T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1964" : helpers.makeTestYear("America/Goose_Bay", [ + ["1964-04-26T05:29:59+00:00", "01:59:59", "NST", 210], + ["1964-04-26T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1964-10-25T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1964-10-25T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1965" : helpers.makeTestYear("America/Goose_Bay", [ + ["1965-04-25T05:29:59+00:00", "01:59:59", "NST", 210], + ["1965-04-25T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1965-10-31T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1965-10-31T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1966" : helpers.makeTestYear("America/Goose_Bay", [ + ["1966-03-15T05:29:59+00:00", "01:59:59", "NST", 210], + ["1966-03-15T05:30:00+00:00", "01:30:00", "AST", 240], + ["1966-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1966-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1966-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1966-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1967" : helpers.makeTestYear("America/Goose_Bay", [ + ["1967-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1967-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1967-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1967-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1968" : helpers.makeTestYear("America/Goose_Bay", [ + ["1968-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1968-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1968-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1968-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1969" : helpers.makeTestYear("America/Goose_Bay", [ + ["1969-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1969-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1969-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1969-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1970" : helpers.makeTestYear("America/Goose_Bay", [ + ["1970-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1970-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1970-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1970-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1971" : helpers.makeTestYear("America/Goose_Bay", [ + ["1971-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1971-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1971-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1971-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1972" : helpers.makeTestYear("America/Goose_Bay", [ + ["1972-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1972-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1972-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1972-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1973" : helpers.makeTestYear("America/Goose_Bay", [ + ["1973-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1973-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1973-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1973-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1974" : helpers.makeTestYear("America/Goose_Bay", [ + ["1974-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1974-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1974-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1974-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1975" : helpers.makeTestYear("America/Goose_Bay", [ + ["1975-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1975-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1975-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1975-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1976" : helpers.makeTestYear("America/Goose_Bay", [ + ["1976-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1976-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1976-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1976-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1977" : helpers.makeTestYear("America/Goose_Bay", [ + ["1977-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1977-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1977-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1977-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1978" : helpers.makeTestYear("America/Goose_Bay", [ + ["1978-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1978-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1978-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1978-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1979" : helpers.makeTestYear("America/Goose_Bay", [ + ["1979-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1979-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1979-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1979-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1980" : helpers.makeTestYear("America/Goose_Bay", [ + ["1980-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1980-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1980-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1980-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1981" : helpers.makeTestYear("America/Goose_Bay", [ + ["1981-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1981-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1981-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1981-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1982" : helpers.makeTestYear("America/Goose_Bay", [ + ["1982-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1982-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1982-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1982-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1983" : helpers.makeTestYear("America/Goose_Bay", [ + ["1983-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1983-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1983-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1983-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1984" : helpers.makeTestYear("America/Goose_Bay", [ + ["1984-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1984-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1984-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1984-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1985" : helpers.makeTestYear("America/Goose_Bay", [ + ["1985-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1985-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1985-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1985-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1986" : helpers.makeTestYear("America/Goose_Bay", [ + ["1986-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1986-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1986-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1986-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1987" : helpers.makeTestYear("America/Goose_Bay", [ + ["1987-04-05T04:00:59+00:00", "00:00:59", "AST", 240], + ["1987-04-05T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1987-10-25T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1987-10-25T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1988" : helpers.makeTestYear("America/Goose_Bay", [ + ["1988-04-03T04:00:59+00:00", "00:00:59", "AST", 240], + ["1988-04-03T04:01:00+00:00", "02:01:00", "ADDT", 120], + ["1988-10-30T02:00:59+00:00", "00:00:59", "ADDT", 120], + ["1988-10-30T02:01:00+00:00", "22:01:00", "AST", 240] + ]), + + "1989" : helpers.makeTestYear("America/Goose_Bay", [ + ["1989-04-02T04:00:59+00:00", "00:00:59", "AST", 240], + ["1989-04-02T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1989-10-29T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1989-10-29T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1990" : helpers.makeTestYear("America/Goose_Bay", [ + ["1990-04-01T04:00:59+00:00", "00:00:59", "AST", 240], + ["1990-04-01T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1990-10-28T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1990-10-28T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1991" : helpers.makeTestYear("America/Goose_Bay", [ + ["1991-04-07T04:00:59+00:00", "00:00:59", "AST", 240], + ["1991-04-07T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1991-10-27T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1991-10-27T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1992" : helpers.makeTestYear("America/Goose_Bay", [ + ["1992-04-05T04:00:59+00:00", "00:00:59", "AST", 240], + ["1992-04-05T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1992-10-25T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1992-10-25T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1993" : helpers.makeTestYear("America/Goose_Bay", [ + ["1993-04-04T04:00:59+00:00", "00:00:59", "AST", 240], + ["1993-04-04T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1993-10-31T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1993-10-31T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1994" : helpers.makeTestYear("America/Goose_Bay", [ + ["1994-04-03T04:00:59+00:00", "00:00:59", "AST", 240], + ["1994-04-03T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1994-10-30T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1994-10-30T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1995" : helpers.makeTestYear("America/Goose_Bay", [ + ["1995-04-02T04:00:59+00:00", "00:00:59", "AST", 240], + ["1995-04-02T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1995-10-29T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1995-10-29T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1996" : helpers.makeTestYear("America/Goose_Bay", [ + ["1996-04-07T04:00:59+00:00", "00:00:59", "AST", 240], + ["1996-04-07T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1996-10-27T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1996-10-27T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1997" : helpers.makeTestYear("America/Goose_Bay", [ + ["1997-04-06T04:00:59+00:00", "00:00:59", "AST", 240], + ["1997-04-06T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1997-10-26T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1997-10-26T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1998" : helpers.makeTestYear("America/Goose_Bay", [ + ["1998-04-05T04:00:59+00:00", "00:00:59", "AST", 240], + ["1998-04-05T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1998-10-25T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1998-10-25T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1999" : helpers.makeTestYear("America/Goose_Bay", [ + ["1999-04-04T04:00:59+00:00", "00:00:59", "AST", 240], + ["1999-04-04T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1999-10-31T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1999-10-31T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2000" : helpers.makeTestYear("America/Goose_Bay", [ + ["2000-04-02T04:00:59+00:00", "00:00:59", "AST", 240], + ["2000-04-02T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2000-10-29T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2000-10-29T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2001" : helpers.makeTestYear("America/Goose_Bay", [ + ["2001-04-01T04:00:59+00:00", "00:00:59", "AST", 240], + ["2001-04-01T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2001-10-28T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2001-10-28T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2002" : helpers.makeTestYear("America/Goose_Bay", [ + ["2002-04-07T04:00:59+00:00", "00:00:59", "AST", 240], + ["2002-04-07T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2002-10-27T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2002-10-27T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2003" : helpers.makeTestYear("America/Goose_Bay", [ + ["2003-04-06T04:00:59+00:00", "00:00:59", "AST", 240], + ["2003-04-06T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2003-10-26T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2003-10-26T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2004" : helpers.makeTestYear("America/Goose_Bay", [ + ["2004-04-04T04:00:59+00:00", "00:00:59", "AST", 240], + ["2004-04-04T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2004-10-31T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2004-10-31T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2005" : helpers.makeTestYear("America/Goose_Bay", [ + ["2005-04-03T04:00:59+00:00", "00:00:59", "AST", 240], + ["2005-04-03T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2005-10-30T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2005-10-30T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2006" : helpers.makeTestYear("America/Goose_Bay", [ + ["2006-04-02T04:00:59+00:00", "00:00:59", "AST", 240], + ["2006-04-02T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2006-10-29T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2006-10-29T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2007" : helpers.makeTestYear("America/Goose_Bay", [ + ["2007-03-11T04:00:59+00:00", "00:00:59", "AST", 240], + ["2007-03-11T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2007-11-04T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2007-11-04T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2008" : helpers.makeTestYear("America/Goose_Bay", [ + ["2008-03-09T04:00:59+00:00", "00:00:59", "AST", 240], + ["2008-03-09T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2008-11-02T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2008-11-02T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2009" : helpers.makeTestYear("America/Goose_Bay", [ + ["2009-03-08T04:00:59+00:00", "00:00:59", "AST", 240], + ["2009-03-08T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2009-11-01T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2009-11-01T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2010" : helpers.makeTestYear("America/Goose_Bay", [ + ["2010-03-14T04:00:59+00:00", "00:00:59", "AST", 240], + ["2010-03-14T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2010-11-07T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2010-11-07T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2011" : helpers.makeTestYear("America/Goose_Bay", [ + ["2011-03-13T04:00:59+00:00", "00:00:59", "AST", 240], + ["2011-03-13T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2011-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2011-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2012" : helpers.makeTestYear("America/Goose_Bay", [ + ["2012-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2012-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2012-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2012-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2013" : helpers.makeTestYear("America/Goose_Bay", [ + ["2013-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2013-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2013-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2013-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2014" : helpers.makeTestYear("America/Goose_Bay", [ + ["2014-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2014-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2014-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2014-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2015" : helpers.makeTestYear("America/Goose_Bay", [ + ["2015-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2015-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2015-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2015-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2016" : helpers.makeTestYear("America/Goose_Bay", [ + ["2016-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2016-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2016-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2016-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2017" : helpers.makeTestYear("America/Goose_Bay", [ + ["2017-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2017-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2017-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2017-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2018" : helpers.makeTestYear("America/Goose_Bay", [ + ["2018-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2018-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2018-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2018-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2019" : helpers.makeTestYear("America/Goose_Bay", [ + ["2019-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2019-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2019-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2019-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2020" : helpers.makeTestYear("America/Goose_Bay", [ + ["2020-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2020-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2020-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2020-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2021" : helpers.makeTestYear("America/Goose_Bay", [ + ["2021-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2021-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2021-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2021-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2022" : helpers.makeTestYear("America/Goose_Bay", [ + ["2022-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2022-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2022-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2022-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2023" : helpers.makeTestYear("America/Goose_Bay", [ + ["2023-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2023-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2023-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2023-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2024" : helpers.makeTestYear("America/Goose_Bay", [ + ["2024-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2024-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2024-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2024-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2025" : helpers.makeTestYear("America/Goose_Bay", [ + ["2025-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2025-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2025-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2025-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2026" : helpers.makeTestYear("America/Goose_Bay", [ + ["2026-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2026-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2026-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2026-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2027" : helpers.makeTestYear("America/Goose_Bay", [ + ["2027-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2027-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2027-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2027-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2028" : helpers.makeTestYear("America/Goose_Bay", [ + ["2028-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2028-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2028-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2028-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2029" : helpers.makeTestYear("America/Goose_Bay", [ + ["2029-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2029-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2029-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2029-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2030" : helpers.makeTestYear("America/Goose_Bay", [ + ["2030-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2030-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2030-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2030-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2031" : helpers.makeTestYear("America/Goose_Bay", [ + ["2031-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2031-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2031-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2031-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2032" : helpers.makeTestYear("America/Goose_Bay", [ + ["2032-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2032-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2032-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2032-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2033" : helpers.makeTestYear("America/Goose_Bay", [ + ["2033-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2033-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2033-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2033-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2034" : helpers.makeTestYear("America/Goose_Bay", [ + ["2034-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2034-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2034-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2034-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2035" : helpers.makeTestYear("America/Goose_Bay", [ + ["2035-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2035-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2035-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2035-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2036" : helpers.makeTestYear("America/Goose_Bay", [ + ["2036-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2036-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2036-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2036-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2037" : helpers.makeTestYear("America/Goose_Bay", [ + ["2037-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2037-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2037-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2037-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/grand_turk.js b/tests/zones/america/grand_turk.js new file mode 100644 index 00000000..b9861c9d --- /dev/null +++ b/tests/zones/america/grand_turk.js @@ -0,0 +1,423 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Grand_Turk"] = { + "1912" : helpers.makeTestYear("America/Grand_Turk", [ + ["1912-02-01T05:07:10+00:00", "23:59:59", "KMT", 18431 / 60], + ["1912-02-01T05:07:11+00:00", "00:07:11", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Grand_Turk", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Grand_Turk", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Grand_Turk", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Grand_Turk", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Grand_Turk", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Grand_Turk", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Grand_Turk", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Grand_Turk", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Grand_Turk", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Grand_Turk", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Grand_Turk", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Grand_Turk", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Grand_Turk", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Grand_Turk", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Grand_Turk", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Grand_Turk", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Grand_Turk", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Grand_Turk", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Grand_Turk", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Grand_Turk", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Grand_Turk", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("America/Grand_Turk", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Grand_Turk", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Grand_Turk", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Grand_Turk", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Grand_Turk", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Grand_Turk", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Grand_Turk", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Grand_Turk", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Grand_Turk", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Grand_Turk", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Grand_Turk", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Grand_Turk", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Grand_Turk", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Grand_Turk", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Grand_Turk", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Grand_Turk", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Grand_Turk", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Grand_Turk", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Grand_Turk", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Grand_Turk", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Grand_Turk", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Grand_Turk", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Grand_Turk", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Grand_Turk", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Grand_Turk", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Grand_Turk", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Grand_Turk", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Grand_Turk", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Grand_Turk", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Grand_Turk", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Grand_Turk", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Grand_Turk", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Grand_Turk", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Grand_Turk", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Grand_Turk", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Grand_Turk", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Grand_Turk", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Grand_Turk", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/grenada.js b/tests/zones/america/grenada.js new file mode 100644 index 00000000..96c37abb --- /dev/null +++ b/tests/zones/america/grenada.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Grenada"] = { + "1912" : helpers.makeTestYear("America/Grenada", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/guadeloupe.js b/tests/zones/america/guadeloupe.js new file mode 100644 index 00000000..9c15fa4b --- /dev/null +++ b/tests/zones/america/guadeloupe.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Guadeloupe"] = { + "1912" : helpers.makeTestYear("America/Guadeloupe", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/guatemala.js b/tests/zones/america/guatemala.js new file mode 100644 index 00000000..3513ee87 --- /dev/null +++ b/tests/zones/america/guatemala.js @@ -0,0 +1,41 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Guatemala"] = { + "1918" : helpers.makeTestYear("America/Guatemala", [ + ["1918-10-05T06:02:03+00:00", "23:59:59", "LMT", 21724 / 60], + ["1918-10-05T06:02:04+00:00", "00:02:04", "CST", 360] + ]), + + "1973" : helpers.makeTestYear("America/Guatemala", [ + ["1973-11-25T05:59:59+00:00", "23:59:59", "CST", 360], + ["1973-11-25T06:00:00+00:00", "01:00:00", "CDT", 300] + ]), + + "1974" : helpers.makeTestYear("America/Guatemala", [ + ["1974-02-24T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1974-02-24T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("America/Guatemala", [ + ["1983-05-21T05:59:59+00:00", "23:59:59", "CST", 360], + ["1983-05-21T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1983-09-22T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1983-09-22T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Guatemala", [ + ["1991-03-23T05:59:59+00:00", "23:59:59", "CST", 360], + ["1991-03-23T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1991-09-07T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1991-09-07T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Guatemala", [ + ["2006-04-30T05:59:59+00:00", "23:59:59", "CST", 360], + ["2006-04-30T06:00:00+00:00", "01:00:00", "CDT", 300], + ["2006-10-01T04:59:59+00:00", "23:59:59", "CDT", 300], + ["2006-10-01T05:00:00+00:00", "23:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/guayaquil.js b/tests/zones/america/guayaquil.js new file mode 100644 index 00000000..47eb3660 --- /dev/null +++ b/tests/zones/america/guayaquil.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Guayaquil"] = { + "1931" : helpers.makeTestYear("America/Guayaquil", [ + ["1931-01-01T05:13:59+00:00", "23:59:59", "QMT", 314], + ["1931-01-01T05:14:00+00:00", "00:14:00", "ECT", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/guyana.js b/tests/zones/america/guyana.js new file mode 100644 index 00000000..81959b71 --- /dev/null +++ b/tests/zones/america/guyana.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Guyana"] = { + "1915" : helpers.makeTestYear("America/Guyana", [ + ["1915-03-01T03:52:39+00:00", "23:59:59", "LMT", 13960 / 60], + ["1915-03-01T03:52:40+00:00", "00:07:40", "GBGT", 225] + ]), + + "1966" : helpers.makeTestYear("America/Guyana", [ + ["1966-05-26T03:44:59+00:00", "23:59:59", "GBGT", 225], + ["1966-05-26T03:45:00+00:00", "00:00:00", "GYT", 225] + ]), + + "1975" : helpers.makeTestYear("America/Guyana", [ + ["1975-07-31T03:44:59+00:00", "23:59:59", "GYT", 225], + ["1975-07-31T03:45:00+00:00", "00:45:00", "GYT", 180] + ]), + + "1991" : helpers.makeTestYear("America/Guyana", [ + ["1991-01-01T02:59:59+00:00", "23:59:59", "GYT", 180], + ["1991-01-01T03:00:00+00:00", "23:00:00", "GYT", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/halifax.js b/tests/zones/america/halifax.js new file mode 100644 index 00000000..239b1c6f --- /dev/null +++ b/tests/zones/america/halifax.js @@ -0,0 +1,806 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Halifax"] = { + "1902" : helpers.makeTestYear("America/Halifax", [ + ["1902-06-15T04:14:23+00:00", "23:59:59", "LMT", 15264 / 60], + ["1902-06-15T04:14:24+00:00", "00:14:24", "AST", 240] + ]), + + "1916" : helpers.makeTestYear("America/Halifax", [ + ["1916-04-01T03:59:59+00:00", "23:59:59", "AST", 240], + ["1916-04-01T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1916-10-01T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1916-10-01T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1918" : helpers.makeTestYear("America/Halifax", [ + ["1918-04-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["1918-04-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1918-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1918-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1920" : helpers.makeTestYear("America/Halifax", [ + ["1920-05-09T03:59:59+00:00", "23:59:59", "AST", 240], + ["1920-05-09T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1920-08-29T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1920-08-29T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1921" : helpers.makeTestYear("America/Halifax", [ + ["1921-05-06T03:59:59+00:00", "23:59:59", "AST", 240], + ["1921-05-06T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1921-09-05T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1921-09-05T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1922" : helpers.makeTestYear("America/Halifax", [ + ["1922-04-30T03:59:59+00:00", "23:59:59", "AST", 240], + ["1922-04-30T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1922-09-05T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1922-09-05T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1923" : helpers.makeTestYear("America/Halifax", [ + ["1923-05-06T03:59:59+00:00", "23:59:59", "AST", 240], + ["1923-05-06T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1923-09-04T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1923-09-04T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1924" : helpers.makeTestYear("America/Halifax", [ + ["1924-05-04T03:59:59+00:00", "23:59:59", "AST", 240], + ["1924-05-04T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1924-09-15T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1924-09-15T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1925" : helpers.makeTestYear("America/Halifax", [ + ["1925-05-03T03:59:59+00:00", "23:59:59", "AST", 240], + ["1925-05-03T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1925-09-28T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1925-09-28T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1926" : helpers.makeTestYear("America/Halifax", [ + ["1926-05-16T03:59:59+00:00", "23:59:59", "AST", 240], + ["1926-05-16T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1926-09-13T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1926-09-13T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1927" : helpers.makeTestYear("America/Halifax", [ + ["1927-05-01T03:59:59+00:00", "23:59:59", "AST", 240], + ["1927-05-01T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1927-09-26T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1927-09-26T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1928" : helpers.makeTestYear("America/Halifax", [ + ["1928-05-13T03:59:59+00:00", "23:59:59", "AST", 240], + ["1928-05-13T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1928-09-09T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1928-09-09T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1929" : helpers.makeTestYear("America/Halifax", [ + ["1929-05-12T03:59:59+00:00", "23:59:59", "AST", 240], + ["1929-05-12T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1929-09-03T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1929-09-03T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1930" : helpers.makeTestYear("America/Halifax", [ + ["1930-05-11T03:59:59+00:00", "23:59:59", "AST", 240], + ["1930-05-11T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1930-09-15T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1930-09-15T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1931" : helpers.makeTestYear("America/Halifax", [ + ["1931-05-10T03:59:59+00:00", "23:59:59", "AST", 240], + ["1931-05-10T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1931-09-28T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1931-09-28T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1932" : helpers.makeTestYear("America/Halifax", [ + ["1932-05-01T03:59:59+00:00", "23:59:59", "AST", 240], + ["1932-05-01T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1932-09-26T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1932-09-26T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1933" : helpers.makeTestYear("America/Halifax", [ + ["1933-04-30T03:59:59+00:00", "23:59:59", "AST", 240], + ["1933-04-30T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1933-10-02T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1933-10-02T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1934" : helpers.makeTestYear("America/Halifax", [ + ["1934-05-20T03:59:59+00:00", "23:59:59", "AST", 240], + ["1934-05-20T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1934-09-16T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1934-09-16T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1935" : helpers.makeTestYear("America/Halifax", [ + ["1935-06-02T03:59:59+00:00", "23:59:59", "AST", 240], + ["1935-06-02T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1935-09-30T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1935-09-30T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1936" : helpers.makeTestYear("America/Halifax", [ + ["1936-06-01T03:59:59+00:00", "23:59:59", "AST", 240], + ["1936-06-01T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1936-09-14T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1936-09-14T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1937" : helpers.makeTestYear("America/Halifax", [ + ["1937-05-02T03:59:59+00:00", "23:59:59", "AST", 240], + ["1937-05-02T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1937-09-27T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1937-09-27T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1938" : helpers.makeTestYear("America/Halifax", [ + ["1938-05-01T03:59:59+00:00", "23:59:59", "AST", 240], + ["1938-05-01T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1938-09-26T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1938-09-26T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1939" : helpers.makeTestYear("America/Halifax", [ + ["1939-05-28T03:59:59+00:00", "23:59:59", "AST", 240], + ["1939-05-28T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1939-09-25T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1939-09-25T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1940" : helpers.makeTestYear("America/Halifax", [ + ["1940-05-05T03:59:59+00:00", "23:59:59", "AST", 240], + ["1940-05-05T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1940-09-30T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1940-09-30T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1941" : helpers.makeTestYear("America/Halifax", [ + ["1941-05-04T03:59:59+00:00", "23:59:59", "AST", 240], + ["1941-05-04T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1941-09-29T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1941-09-29T03:00:00+00:00", "23:00:00", "AST", 240] + ]), + + "1942" : helpers.makeTestYear("America/Halifax", [ + ["1942-02-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["1942-02-09T06:00:00+00:00", "03:00:00", "AWT", 180] + ]), + + "1945" : helpers.makeTestYear("America/Halifax", [ + ["1945-08-14T22:59:59+00:00", "19:59:59", "AWT", 180], + ["1945-08-14T23:00:00+00:00", "20:00:00", "APT", 180], + ["1945-09-30T04:59:59+00:00", "01:59:59", "APT", 180], + ["1945-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1946" : helpers.makeTestYear("America/Halifax", [ + ["1946-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1946-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1946-09-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1946-09-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1947" : helpers.makeTestYear("America/Halifax", [ + ["1947-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1947-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1947-09-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1947-09-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1948" : helpers.makeTestYear("America/Halifax", [ + ["1948-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1948-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1948-09-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1948-09-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1949" : helpers.makeTestYear("America/Halifax", [ + ["1949-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1949-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1949-09-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1949-09-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1951" : helpers.makeTestYear("America/Halifax", [ + ["1951-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1951-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1951-09-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1951-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1952" : helpers.makeTestYear("America/Halifax", [ + ["1952-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1952-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1952-09-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1952-09-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1953" : helpers.makeTestYear("America/Halifax", [ + ["1953-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1953-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1953-09-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1953-09-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1954" : helpers.makeTestYear("America/Halifax", [ + ["1954-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1954-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1954-09-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1954-09-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1956" : helpers.makeTestYear("America/Halifax", [ + ["1956-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1956-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1956-09-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1956-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1957" : helpers.makeTestYear("America/Halifax", [ + ["1957-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1957-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1957-09-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1957-09-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1958" : helpers.makeTestYear("America/Halifax", [ + ["1958-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1958-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1958-09-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1958-09-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1959" : helpers.makeTestYear("America/Halifax", [ + ["1959-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1959-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1959-09-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1959-09-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1962" : helpers.makeTestYear("America/Halifax", [ + ["1962-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1962-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1962-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1962-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1963" : helpers.makeTestYear("America/Halifax", [ + ["1963-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1963-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1963-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1963-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1964" : helpers.makeTestYear("America/Halifax", [ + ["1964-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1964-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1964-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1964-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1965" : helpers.makeTestYear("America/Halifax", [ + ["1965-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1965-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1965-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1965-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1966" : helpers.makeTestYear("America/Halifax", [ + ["1966-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1966-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1966-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1966-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1967" : helpers.makeTestYear("America/Halifax", [ + ["1967-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1967-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1967-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1967-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1968" : helpers.makeTestYear("America/Halifax", [ + ["1968-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1968-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1968-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1968-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1969" : helpers.makeTestYear("America/Halifax", [ + ["1969-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1969-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1969-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1969-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1970" : helpers.makeTestYear("America/Halifax", [ + ["1970-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1970-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1970-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1970-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1971" : helpers.makeTestYear("America/Halifax", [ + ["1971-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1971-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1971-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1971-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1972" : helpers.makeTestYear("America/Halifax", [ + ["1972-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1972-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1972-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1972-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1973" : helpers.makeTestYear("America/Halifax", [ + ["1973-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1973-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1973-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1973-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1974" : helpers.makeTestYear("America/Halifax", [ + ["1974-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1974-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1974-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1974-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1975" : helpers.makeTestYear("America/Halifax", [ + ["1975-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1975-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1975-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1975-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1976" : helpers.makeTestYear("America/Halifax", [ + ["1976-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1976-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1976-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1976-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1977" : helpers.makeTestYear("America/Halifax", [ + ["1977-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1977-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1977-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1977-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1978" : helpers.makeTestYear("America/Halifax", [ + ["1978-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1978-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1978-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1978-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1979" : helpers.makeTestYear("America/Halifax", [ + ["1979-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1979-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1979-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1979-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1980" : helpers.makeTestYear("America/Halifax", [ + ["1980-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1980-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1980-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1980-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1981" : helpers.makeTestYear("America/Halifax", [ + ["1981-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1981-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1981-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1981-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1982" : helpers.makeTestYear("America/Halifax", [ + ["1982-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1982-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1982-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1982-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1983" : helpers.makeTestYear("America/Halifax", [ + ["1983-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1983-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1983-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1983-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1984" : helpers.makeTestYear("America/Halifax", [ + ["1984-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1984-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1984-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1984-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1985" : helpers.makeTestYear("America/Halifax", [ + ["1985-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1985-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1985-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1985-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1986" : helpers.makeTestYear("America/Halifax", [ + ["1986-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1986-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1986-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1986-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1987" : helpers.makeTestYear("America/Halifax", [ + ["1987-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1987-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1987-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1987-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1988" : helpers.makeTestYear("America/Halifax", [ + ["1988-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1988-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1988-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1988-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1989" : helpers.makeTestYear("America/Halifax", [ + ["1989-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1989-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1989-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1989-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1990" : helpers.makeTestYear("America/Halifax", [ + ["1990-04-01T05:59:59+00:00", "01:59:59", "AST", 240], + ["1990-04-01T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1990-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1990-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1991" : helpers.makeTestYear("America/Halifax", [ + ["1991-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["1991-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1991-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1991-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1992" : helpers.makeTestYear("America/Halifax", [ + ["1992-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1992-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1992-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1992-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1993" : helpers.makeTestYear("America/Halifax", [ + ["1993-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["1993-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1993-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1993-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1994" : helpers.makeTestYear("America/Halifax", [ + ["1994-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1994-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1994-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1994-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1995" : helpers.makeTestYear("America/Halifax", [ + ["1995-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1995-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1995-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1995-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1996" : helpers.makeTestYear("America/Halifax", [ + ["1996-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["1996-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1996-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1996-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1997" : helpers.makeTestYear("America/Halifax", [ + ["1997-04-06T05:59:59+00:00", "01:59:59", "AST", 240], + ["1997-04-06T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1997-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1997-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1998" : helpers.makeTestYear("America/Halifax", [ + ["1998-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1998-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1998-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1998-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1999" : helpers.makeTestYear("America/Halifax", [ + ["1999-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["1999-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1999-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1999-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2000" : helpers.makeTestYear("America/Halifax", [ + ["2000-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["2000-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2000-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2000-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2001" : helpers.makeTestYear("America/Halifax", [ + ["2001-04-01T05:59:59+00:00", "01:59:59", "AST", 240], + ["2001-04-01T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2001-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2001-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2002" : helpers.makeTestYear("America/Halifax", [ + ["2002-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["2002-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2002-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2002-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2003" : helpers.makeTestYear("America/Halifax", [ + ["2003-04-06T05:59:59+00:00", "01:59:59", "AST", 240], + ["2003-04-06T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2003-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2003-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2004" : helpers.makeTestYear("America/Halifax", [ + ["2004-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["2004-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2004-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2004-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2005" : helpers.makeTestYear("America/Halifax", [ + ["2005-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["2005-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2005-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2005-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2006" : helpers.makeTestYear("America/Halifax", [ + ["2006-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["2006-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2006-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2006-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2007" : helpers.makeTestYear("America/Halifax", [ + ["2007-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2007-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2007-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2007-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2008" : helpers.makeTestYear("America/Halifax", [ + ["2008-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2008-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2008-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2008-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2009" : helpers.makeTestYear("America/Halifax", [ + ["2009-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2009-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2009-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2009-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2010" : helpers.makeTestYear("America/Halifax", [ + ["2010-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2010-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2010-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2010-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2011" : helpers.makeTestYear("America/Halifax", [ + ["2011-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2011-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2011-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2011-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2012" : helpers.makeTestYear("America/Halifax", [ + ["2012-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2012-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2012-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2012-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2013" : helpers.makeTestYear("America/Halifax", [ + ["2013-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2013-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2013-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2013-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2014" : helpers.makeTestYear("America/Halifax", [ + ["2014-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2014-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2014-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2014-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2015" : helpers.makeTestYear("America/Halifax", [ + ["2015-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2015-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2015-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2015-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2016" : helpers.makeTestYear("America/Halifax", [ + ["2016-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2016-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2016-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2016-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2017" : helpers.makeTestYear("America/Halifax", [ + ["2017-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2017-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2017-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2017-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2018" : helpers.makeTestYear("America/Halifax", [ + ["2018-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2018-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2018-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2018-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2019" : helpers.makeTestYear("America/Halifax", [ + ["2019-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2019-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2019-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2019-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2020" : helpers.makeTestYear("America/Halifax", [ + ["2020-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2020-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2020-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2020-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2021" : helpers.makeTestYear("America/Halifax", [ + ["2021-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2021-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2021-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2021-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2022" : helpers.makeTestYear("America/Halifax", [ + ["2022-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2022-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2022-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2022-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2023" : helpers.makeTestYear("America/Halifax", [ + ["2023-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2023-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2023-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2023-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2024" : helpers.makeTestYear("America/Halifax", [ + ["2024-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2024-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2024-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2024-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2025" : helpers.makeTestYear("America/Halifax", [ + ["2025-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2025-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2025-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2025-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2026" : helpers.makeTestYear("America/Halifax", [ + ["2026-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2026-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2026-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2026-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2027" : helpers.makeTestYear("America/Halifax", [ + ["2027-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2027-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2027-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2027-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2028" : helpers.makeTestYear("America/Halifax", [ + ["2028-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2028-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2028-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2028-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2029" : helpers.makeTestYear("America/Halifax", [ + ["2029-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2029-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2029-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2029-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2030" : helpers.makeTestYear("America/Halifax", [ + ["2030-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2030-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2030-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2030-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2031" : helpers.makeTestYear("America/Halifax", [ + ["2031-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2031-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2031-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2031-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2032" : helpers.makeTestYear("America/Halifax", [ + ["2032-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2032-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2032-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2032-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2033" : helpers.makeTestYear("America/Halifax", [ + ["2033-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2033-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2033-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2033-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2034" : helpers.makeTestYear("America/Halifax", [ + ["2034-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2034-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2034-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2034-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2035" : helpers.makeTestYear("America/Halifax", [ + ["2035-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2035-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2035-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2035-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2036" : helpers.makeTestYear("America/Halifax", [ + ["2036-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2036-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2036-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2036-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2037" : helpers.makeTestYear("America/Halifax", [ + ["2037-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2037-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2037-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2037-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/havana.js b/tests/zones/america/havana.js new file mode 100644 index 00000000..1bc65daf --- /dev/null +++ b/tests/zones/america/havana.js @@ -0,0 +1,552 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Havana"] = { + "1925" : helpers.makeTestYear("America/Havana", [ + ["1925-07-19T17:29:35+00:00", "11:59:59", "HMT", 19776 / 60], + ["1925-07-19T17:29:36+00:00", "12:29:36", "CST", 300] + ]), + + "1928" : helpers.makeTestYear("America/Havana", [ + ["1928-06-10T04:59:59+00:00", "23:59:59", "CST", 300], + ["1928-06-10T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1928-10-10T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1928-10-10T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1940" : helpers.makeTestYear("America/Havana", [ + ["1940-06-02T04:59:59+00:00", "23:59:59", "CST", 300], + ["1940-06-02T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1940-09-01T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1940-09-01T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1941" : helpers.makeTestYear("America/Havana", [ + ["1941-06-01T04:59:59+00:00", "23:59:59", "CST", 300], + ["1941-06-01T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1941-09-07T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1941-09-07T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1942" : helpers.makeTestYear("America/Havana", [ + ["1942-06-07T04:59:59+00:00", "23:59:59", "CST", 300], + ["1942-06-07T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1942-09-06T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1942-09-06T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1945" : helpers.makeTestYear("America/Havana", [ + ["1945-06-03T04:59:59+00:00", "23:59:59", "CST", 300], + ["1945-06-03T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1945-09-02T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1945-09-02T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1946" : helpers.makeTestYear("America/Havana", [ + ["1946-06-02T04:59:59+00:00", "23:59:59", "CST", 300], + ["1946-06-02T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1946-09-01T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1946-09-01T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1965" : helpers.makeTestYear("America/Havana", [ + ["1965-06-01T04:59:59+00:00", "23:59:59", "CST", 300], + ["1965-06-01T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1965-09-30T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1965-09-30T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1966" : helpers.makeTestYear("America/Havana", [ + ["1966-05-29T04:59:59+00:00", "23:59:59", "CST", 300], + ["1966-05-29T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1966-10-02T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1966-10-02T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1967" : helpers.makeTestYear("America/Havana", [ + ["1967-04-08T04:59:59+00:00", "23:59:59", "CST", 300], + ["1967-04-08T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1967-09-10T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1967-09-10T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1968" : helpers.makeTestYear("America/Havana", [ + ["1968-04-14T04:59:59+00:00", "23:59:59", "CST", 300], + ["1968-04-14T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1968-09-08T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1968-09-08T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Havana", [ + ["1969-04-27T04:59:59+00:00", "23:59:59", "CST", 300], + ["1969-04-27T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1969-10-26T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1969-10-26T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Havana", [ + ["1970-04-26T04:59:59+00:00", "23:59:59", "CST", 300], + ["1970-04-26T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1970-10-25T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1970-10-25T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1971" : helpers.makeTestYear("America/Havana", [ + ["1971-04-25T04:59:59+00:00", "23:59:59", "CST", 300], + ["1971-04-25T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1971-10-31T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1971-10-31T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1972" : helpers.makeTestYear("America/Havana", [ + ["1972-04-30T04:59:59+00:00", "23:59:59", "CST", 300], + ["1972-04-30T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1972-10-08T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1972-10-08T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1973" : helpers.makeTestYear("America/Havana", [ + ["1973-04-29T04:59:59+00:00", "23:59:59", "CST", 300], + ["1973-04-29T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1973-10-08T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1973-10-08T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Havana", [ + ["1974-04-28T04:59:59+00:00", "23:59:59", "CST", 300], + ["1974-04-28T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1974-10-08T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1974-10-08T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Havana", [ + ["1975-04-27T04:59:59+00:00", "23:59:59", "CST", 300], + ["1975-04-27T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1975-10-26T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1975-10-26T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1976" : helpers.makeTestYear("America/Havana", [ + ["1976-04-25T04:59:59+00:00", "23:59:59", "CST", 300], + ["1976-04-25T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1976-10-31T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1976-10-31T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1977" : helpers.makeTestYear("America/Havana", [ + ["1977-04-24T04:59:59+00:00", "23:59:59", "CST", 300], + ["1977-04-24T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1977-10-30T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1977-10-30T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1978" : helpers.makeTestYear("America/Havana", [ + ["1978-05-07T04:59:59+00:00", "23:59:59", "CST", 300], + ["1978-05-07T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1978-10-08T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1978-10-08T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Havana", [ + ["1979-03-18T04:59:59+00:00", "23:59:59", "CST", 300], + ["1979-03-18T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1979-10-14T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1979-10-14T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Havana", [ + ["1980-03-16T04:59:59+00:00", "23:59:59", "CST", 300], + ["1980-03-16T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1980-10-12T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1980-10-12T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Havana", [ + ["1981-05-10T04:59:59+00:00", "23:59:59", "CST", 300], + ["1981-05-10T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1981-10-11T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1981-10-11T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Havana", [ + ["1982-05-09T04:59:59+00:00", "23:59:59", "CST", 300], + ["1982-05-09T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1982-10-10T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1982-10-10T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Havana", [ + ["1983-05-08T04:59:59+00:00", "23:59:59", "CST", 300], + ["1983-05-08T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1983-10-09T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1983-10-09T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Havana", [ + ["1984-05-06T04:59:59+00:00", "23:59:59", "CST", 300], + ["1984-05-06T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1984-10-14T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1984-10-14T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Havana", [ + ["1985-05-05T04:59:59+00:00", "23:59:59", "CST", 300], + ["1985-05-05T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1985-10-13T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1985-10-13T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Havana", [ + ["1986-03-16T04:59:59+00:00", "23:59:59", "CST", 300], + ["1986-03-16T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1986-10-12T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1986-10-12T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Havana", [ + ["1987-03-15T04:59:59+00:00", "23:59:59", "CST", 300], + ["1987-03-15T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1987-10-11T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1987-10-11T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Havana", [ + ["1988-03-20T04:59:59+00:00", "23:59:59", "CST", 300], + ["1988-03-20T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1988-10-09T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1988-10-09T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Havana", [ + ["1989-03-19T04:59:59+00:00", "23:59:59", "CST", 300], + ["1989-03-19T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1989-10-08T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1989-10-08T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Havana", [ + ["1990-04-01T04:59:59+00:00", "23:59:59", "CST", 300], + ["1990-04-01T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1990-10-14T03:59:59+00:00", "23:59:59", "CDT", 240], + ["1990-10-14T04:00:00+00:00", "23:00:00", "CST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Havana", [ + ["1991-04-07T04:59:59+00:00", "23:59:59", "CST", 300], + ["1991-04-07T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1991-10-13T04:59:59+00:00", "00:59:59", "CDT", 240], + ["1991-10-13T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Havana", [ + ["1992-04-05T04:59:59+00:00", "23:59:59", "CST", 300], + ["1992-04-05T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1992-10-11T04:59:59+00:00", "00:59:59", "CDT", 240], + ["1992-10-11T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Havana", [ + ["1993-04-04T04:59:59+00:00", "23:59:59", "CST", 300], + ["1993-04-04T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1993-10-10T04:59:59+00:00", "00:59:59", "CDT", 240], + ["1993-10-10T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Havana", [ + ["1994-04-03T04:59:59+00:00", "23:59:59", "CST", 300], + ["1994-04-03T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1994-10-09T04:59:59+00:00", "00:59:59", "CDT", 240], + ["1994-10-09T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Havana", [ + ["1995-04-02T04:59:59+00:00", "23:59:59", "CST", 300], + ["1995-04-02T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1995-10-08T04:59:59+00:00", "00:59:59", "CDT", 240], + ["1995-10-08T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Havana", [ + ["1996-04-07T04:59:59+00:00", "23:59:59", "CST", 300], + ["1996-04-07T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1996-10-06T04:59:59+00:00", "00:59:59", "CDT", 240], + ["1996-10-06T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Havana", [ + ["1997-04-06T04:59:59+00:00", "23:59:59", "CST", 300], + ["1997-04-06T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1997-10-12T04:59:59+00:00", "00:59:59", "CDT", 240], + ["1997-10-12T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Havana", [ + ["1998-03-29T04:59:59+00:00", "23:59:59", "CST", 300], + ["1998-03-29T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1998-10-25T04:59:59+00:00", "00:59:59", "CDT", 240], + ["1998-10-25T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Havana", [ + ["1999-03-28T04:59:59+00:00", "23:59:59", "CST", 300], + ["1999-03-28T05:00:00+00:00", "01:00:00", "CDT", 240], + ["1999-10-31T04:59:59+00:00", "00:59:59", "CDT", 240], + ["1999-10-31T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2000" : helpers.makeTestYear("America/Havana", [ + ["2000-04-02T04:59:59+00:00", "23:59:59", "CST", 300], + ["2000-04-02T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2000-10-29T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2000-10-29T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Havana", [ + ["2001-04-01T04:59:59+00:00", "23:59:59", "CST", 300], + ["2001-04-01T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2001-10-28T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2001-10-28T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Havana", [ + ["2002-04-07T04:59:59+00:00", "23:59:59", "CST", 300], + ["2002-04-07T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2002-10-27T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2002-10-27T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Havana", [ + ["2003-04-06T04:59:59+00:00", "23:59:59", "CST", 300], + ["2003-04-06T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2003-10-26T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2003-10-26T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Havana", [ + ["2004-03-28T04:59:59+00:00", "23:59:59", "CST", 300], + ["2004-03-28T05:00:00+00:00", "01:00:00", "CDT", 240] + ]), + + "2006" : helpers.makeTestYear("America/Havana", [ + ["2006-10-29T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2006-10-29T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Havana", [ + ["2007-03-11T04:59:59+00:00", "23:59:59", "CST", 300], + ["2007-03-11T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2007-10-28T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2007-10-28T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Havana", [ + ["2008-03-16T04:59:59+00:00", "23:59:59", "CST", 300], + ["2008-03-16T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2008-10-26T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2008-10-26T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Havana", [ + ["2009-03-08T04:59:59+00:00", "23:59:59", "CST", 300], + ["2009-03-08T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2009-10-25T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2009-10-25T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Havana", [ + ["2010-03-14T04:59:59+00:00", "23:59:59", "CST", 300], + ["2010-03-14T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2010-10-31T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2010-10-31T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Havana", [ + ["2011-03-20T04:59:59+00:00", "23:59:59", "CST", 300], + ["2011-03-20T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2011-11-13T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2011-11-13T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Havana", [ + ["2012-04-01T04:59:59+00:00", "23:59:59", "CST", 300], + ["2012-04-01T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2012-11-04T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2012-11-04T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Havana", [ + ["2013-03-10T04:59:59+00:00", "23:59:59", "CST", 300], + ["2013-03-10T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2013-11-03T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2013-11-03T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Havana", [ + ["2014-03-09T04:59:59+00:00", "23:59:59", "CST", 300], + ["2014-03-09T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2014-11-02T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2014-11-02T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Havana", [ + ["2015-03-08T04:59:59+00:00", "23:59:59", "CST", 300], + ["2015-03-08T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2015-11-01T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2015-11-01T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Havana", [ + ["2016-03-13T04:59:59+00:00", "23:59:59", "CST", 300], + ["2016-03-13T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2016-11-06T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2016-11-06T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Havana", [ + ["2017-03-12T04:59:59+00:00", "23:59:59", "CST", 300], + ["2017-03-12T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2017-11-05T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2017-11-05T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Havana", [ + ["2018-03-11T04:59:59+00:00", "23:59:59", "CST", 300], + ["2018-03-11T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2018-11-04T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2018-11-04T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Havana", [ + ["2019-03-10T04:59:59+00:00", "23:59:59", "CST", 300], + ["2019-03-10T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2019-11-03T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2019-11-03T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Havana", [ + ["2020-03-08T04:59:59+00:00", "23:59:59", "CST", 300], + ["2020-03-08T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2020-11-01T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2020-11-01T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Havana", [ + ["2021-03-14T04:59:59+00:00", "23:59:59", "CST", 300], + ["2021-03-14T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2021-11-07T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2021-11-07T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Havana", [ + ["2022-03-13T04:59:59+00:00", "23:59:59", "CST", 300], + ["2022-03-13T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2022-11-06T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2022-11-06T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Havana", [ + ["2023-03-12T04:59:59+00:00", "23:59:59", "CST", 300], + ["2023-03-12T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2023-11-05T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2023-11-05T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Havana", [ + ["2024-03-10T04:59:59+00:00", "23:59:59", "CST", 300], + ["2024-03-10T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2024-11-03T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2024-11-03T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Havana", [ + ["2025-03-09T04:59:59+00:00", "23:59:59", "CST", 300], + ["2025-03-09T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2025-11-02T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2025-11-02T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Havana", [ + ["2026-03-08T04:59:59+00:00", "23:59:59", "CST", 300], + ["2026-03-08T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2026-11-01T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2026-11-01T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Havana", [ + ["2027-03-14T04:59:59+00:00", "23:59:59", "CST", 300], + ["2027-03-14T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2027-11-07T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2027-11-07T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Havana", [ + ["2028-03-12T04:59:59+00:00", "23:59:59", "CST", 300], + ["2028-03-12T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2028-11-05T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2028-11-05T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Havana", [ + ["2029-03-11T04:59:59+00:00", "23:59:59", "CST", 300], + ["2029-03-11T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2029-11-04T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2029-11-04T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Havana", [ + ["2030-03-10T04:59:59+00:00", "23:59:59", "CST", 300], + ["2030-03-10T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2030-11-03T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2030-11-03T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Havana", [ + ["2031-03-09T04:59:59+00:00", "23:59:59", "CST", 300], + ["2031-03-09T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2031-11-02T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2031-11-02T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Havana", [ + ["2032-03-14T04:59:59+00:00", "23:59:59", "CST", 300], + ["2032-03-14T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2032-11-07T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2032-11-07T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Havana", [ + ["2033-03-13T04:59:59+00:00", "23:59:59", "CST", 300], + ["2033-03-13T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2033-11-06T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2033-11-06T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Havana", [ + ["2034-03-12T04:59:59+00:00", "23:59:59", "CST", 300], + ["2034-03-12T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2034-11-05T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2034-11-05T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Havana", [ + ["2035-03-11T04:59:59+00:00", "23:59:59", "CST", 300], + ["2035-03-11T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2035-11-04T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2035-11-04T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Havana", [ + ["2036-03-09T04:59:59+00:00", "23:59:59", "CST", 300], + ["2036-03-09T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2036-11-02T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2036-11-02T05:00:00+00:00", "00:00:00", "CST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Havana", [ + ["2037-03-08T04:59:59+00:00", "23:59:59", "CST", 300], + ["2037-03-08T05:00:00+00:00", "01:00:00", "CDT", 240], + ["2037-11-01T04:59:59+00:00", "00:59:59", "CDT", 240], + ["2037-11-01T05:00:00+00:00", "00:00:00", "CST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/hermosillo.js b/tests/zones/america/hermosillo.js new file mode 100644 index 00000000..5fcc9a70 --- /dev/null +++ b/tests/zones/america/hermosillo.js @@ -0,0 +1,68 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Hermosillo"] = { + "1922" : helpers.makeTestYear("America/Hermosillo", [ + ["1922-01-01T06:59:59+00:00", "23:36:07", "LMT", 26632 / 60], + ["1922-01-01T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1927" : helpers.makeTestYear("America/Hermosillo", [ + ["1927-06-11T05:59:59+00:00", "22:59:59", "MST", 420], + ["1927-06-11T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1930" : helpers.makeTestYear("America/Hermosillo", [ + ["1930-11-15T05:59:59+00:00", "23:59:59", "CST", 360], + ["1930-11-15T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1931" : helpers.makeTestYear("America/Hermosillo", [ + ["1931-05-02T05:59:59+00:00", "22:59:59", "MST", 420], + ["1931-05-02T06:00:00+00:00", "00:00:00", "CST", 360], + ["1931-10-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1931-10-01T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1932" : helpers.makeTestYear("America/Hermosillo", [ + ["1932-04-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1932-04-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Hermosillo", [ + ["1942-04-24T05:59:59+00:00", "23:59:59", "CST", 360], + ["1942-04-24T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1949" : helpers.makeTestYear("America/Hermosillo", [ + ["1949-01-14T06:59:59+00:00", "23:59:59", "MST", 420], + ["1949-01-14T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("America/Hermosillo", [ + ["1970-01-01T07:59:59+00:00", "23:59:59", "PST", 480], + ["1970-01-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/Hermosillo", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/Hermosillo", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/Hermosillo", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/indiana/indianapolis.js b/tests/zones/america/indiana/indianapolis.js new file mode 100644 index 00000000..2761ac9b --- /dev/null +++ b/tests/zones/america/indiana/indianapolis.js @@ -0,0 +1,354 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Indiana/Indianapolis"] = { + "1918" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1941" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1941-06-22T07:59:59+00:00", "01:59:59", "CST", 360], + ["1941-06-22T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1941-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1941-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1946" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1946-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1946-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1946-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1946-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1947" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1947-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1947-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1947-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1947-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1948" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1948-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1948-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1948-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1948-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1949" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1949-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1949-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1949-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1949-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1950" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1950-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1950-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1950-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1950-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1951" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1951-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1951-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1951-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1951-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1952" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1952-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1952-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1952-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1952-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1953" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1953-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1953-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1953-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1953-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1954-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1954-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1955-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1955-04-24T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1957" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1957-09-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1957-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Indiana/Indianapolis", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/indiana/knox.js b/tests/zones/america/indiana/knox.js new file mode 100644 index 00000000..6944983d --- /dev/null +++ b/tests/zones/america/indiana/knox.js @@ -0,0 +1,545 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Indiana/Knox"] = { + "1918" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1947" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1947-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1947-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1947-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1947-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1948" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1948-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1948-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1948-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1948-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1949" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1949-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1949-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1949-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1949-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1950" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1950-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1950-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1950-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1950-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1951" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1951-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1951-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1951-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1951-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1952" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1952-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1952-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1952-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1952-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1953" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1953-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1953-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1953-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1953-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1954-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1954-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1955-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1955-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1955-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1955-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1956" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1956-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1956-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1956-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1956-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1957" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1957-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1957-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1957-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1957-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1958-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1958-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1959" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1959-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1959-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1959-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1959-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1960" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1960-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1960-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1960-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1960-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1961" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1961-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1961-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1961-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1961-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1962" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1962-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1962-04-29T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1963" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1963-10-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1963-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1967" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1967-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1967-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1967-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1967-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1968" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1968-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1968-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1968-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1968-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1969" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1969-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1969-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1969-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1969-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1970" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1970-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1970-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1970-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1970-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1971" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1971-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1971-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1971-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1971-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1972" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1972-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1972-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1972-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1972-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1973" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1973-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1973-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1973-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1973-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1974" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1974-01-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1974-01-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1974-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1974-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1975" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1975-02-23T07:59:59+00:00", "01:59:59", "CST", 360], + ["1975-02-23T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1975-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1975-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1976" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1976-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1976-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1976-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1976-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1977" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1977-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1977-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1977-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1977-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1978" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1978-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1978-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1978-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1978-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1979" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1979-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1979-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1979-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1979-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1980-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1980-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1980-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1980-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1981-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1981-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1981-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1981-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1982-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1982-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1982-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1982-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1983-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1983-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1983-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1983-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1984" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1984-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1984-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1984-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1984-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1985" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1985-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1985-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1985-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1985-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1986" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1986-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1986-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1986-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1986-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1987-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1987-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1987-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1987-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1989" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1989-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1989-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1989-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1989-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1990" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1990-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1990-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1990-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1990-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Indiana/Knox", [ + ["1991-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1991-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1991-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1991-10-27T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "02:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Indiana/Knox", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/indiana/marengo.js b/tests/zones/america/indiana/marengo.js new file mode 100644 index 00000000..377c53ee --- /dev/null +++ b/tests/zones/america/indiana/marengo.js @@ -0,0 +1,365 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Indiana/Marengo"] = { + "1918" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1951" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1951-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1951-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1951-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1951-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1954-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1954-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1955-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1955-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1955-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1955-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1956" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1956-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1956-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1956-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1956-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1957" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1957-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1957-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1957-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1957-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1958-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1958-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1959" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1959-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1959-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1959-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1959-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1960" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1960-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1960-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1960-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1960-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1961" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1961-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1961-04-30T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1971" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1971-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1971-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1971-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1971-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1972" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1972-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1972-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1972-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1972-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1973" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1973-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1973-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1973-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1973-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1974-01-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-01-06T07:00:00+00:00", "02:00:00", "CDT", 300], + ["1974-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1974-10-27T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["1975-02-23T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-02-23T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Indiana/Marengo", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/indiana/petersburg.js b/tests/zones/america/indiana/petersburg.js new file mode 100644 index 00000000..0e6bbc8b --- /dev/null +++ b/tests/zones/america/indiana/petersburg.js @@ -0,0 +1,412 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Indiana/Petersburg"] = { + "1918" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1955-05-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1955-05-01T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1955-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1955-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1956" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1956-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1956-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1956-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1956-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1957" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1957-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1957-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1957-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1957-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1958-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1958-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1959" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1959-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1959-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1959-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1959-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1960" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1960-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1960-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1960-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1960-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1961" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1961-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1961-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1961-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1961-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1962" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1962-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1962-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1962-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1962-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1963" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1963-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1963-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1963-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1963-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1964" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1964-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1964-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1964-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1964-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1965" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1965-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1965-04-25T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1966" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1966-10-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1966-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1967" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1967-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1967-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1967-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1967-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1968" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1968-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1968-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1968-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1968-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1969" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1969-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1969-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1969-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1969-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1970" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1970-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1970-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1970-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1970-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1971" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1971-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1971-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1971-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1971-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1972" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1972-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1972-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1972-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1972-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1973" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1973-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1973-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1973-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1973-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1974" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1974-01-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1974-01-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1974-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1974-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1975" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1975-02-23T07:59:59+00:00", "01:59:59", "CST", 360], + ["1975-02-23T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1975-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1975-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1976" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1976-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1976-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1976-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1976-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1977" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["1977-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1977-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1977-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1977-10-30T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "02:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Indiana/Petersburg", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/indiana/tell_city.js b/tests/zones/america/indiana/tell_city.js new file mode 100644 index 00000000..a39edd79 --- /dev/null +++ b/tests/zones/america/indiana/tell_city.js @@ -0,0 +1,358 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Indiana/Tell_City"] = { + "1918" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1946" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1946-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1946-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1946-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1946-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1953" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1953-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1953-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1953-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1953-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1954-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1954-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1955-05-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1955-05-01T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1955-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1955-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1956" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1956-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1956-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1956-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1956-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1957" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1957-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1957-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1957-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1957-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1958-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1958-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1959" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1959-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1959-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1959-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1959-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1960" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1960-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1960-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1960-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1960-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1961" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1961-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1961-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1961-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1961-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1962" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1962-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1962-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1962-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1962-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1963" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1963-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1963-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1963-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1963-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1964" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1964-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1964-04-26T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "02:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Indiana/Tell_City", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/indiana/vevay.js b/tests/zones/america/indiana/vevay.js new file mode 100644 index 00000000..ca4c5d32 --- /dev/null +++ b/tests/zones/america/indiana/vevay.js @@ -0,0 +1,288 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Indiana/Vevay"] = { + "1918" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1971" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["1971-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1971-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1971-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1971-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1972" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["1972-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1972-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1972-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1972-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Indiana/Vevay", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/indiana/vincennes.js b/tests/zones/america/indiana/vincennes.js new file mode 100644 index 00000000..6dbe4f93 --- /dev/null +++ b/tests/zones/america/indiana/vincennes.js @@ -0,0 +1,358 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Indiana/Vincennes"] = { + "1918" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1946" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1946-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1946-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1946-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1946-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1953" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1953-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1953-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1953-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1953-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1954-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1954-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1955-05-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1955-05-01T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1955-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1955-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1956" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1956-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1956-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1956-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1956-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1957" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1957-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1957-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1957-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1957-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1958-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1958-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1959" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1959-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1959-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1959-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1959-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1960" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1960-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1960-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1960-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1960-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1961" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1961-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1961-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1961-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1961-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1962" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1962-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1962-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1962-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1962-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1963" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1963-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1963-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1963-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1963-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1964" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1964-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1964-04-26T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "02:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Indiana/Vincennes", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/indiana/winamac.js b/tests/zones/america/indiana/winamac.js new file mode 100644 index 00000000..525b3c29 --- /dev/null +++ b/tests/zones/america/indiana/winamac.js @@ -0,0 +1,379 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Indiana/Winamac"] = { + "1918" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1946" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1946-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1946-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1946-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1946-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1947" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1947-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1947-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1947-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1947-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1948" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1948-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1948-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1948-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1948-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1949" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1949-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1949-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1949-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1949-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1950" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1950-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1950-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1950-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1950-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1951" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1951-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1951-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1951-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1951-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1952" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1952-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1952-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1952-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1952-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1953" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1953-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1953-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1953-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1953-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1954-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1954-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1955-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1955-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1955-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1955-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1956" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1956-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1956-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1956-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1956-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1957" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1957-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1957-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1957-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1957-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1958-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1958-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1959" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1959-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1959-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1959-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1959-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1960" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1960-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1960-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1960-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1960-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1961" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1961-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1961-04-30T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "02:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "04:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Indiana/Winamac", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/inuvik.js b/tests/zones/america/inuvik.js new file mode 100644 index 00000000..b57cfb59 --- /dev/null +++ b/tests/zones/america/inuvik.js @@ -0,0 +1,431 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Inuvik"] = { + "1952" : helpers.makeTestYear("America/Inuvik", [ + ["1952-12-31T23:59:59+00:00", "23:59:59", "zzz", 0] + ]), + + "1953" : helpers.makeTestYear("America/Inuvik", [ + ["1953-01-01T00:00:00+00:00", "16:00:00", "PST", 480] + ]), + + "1965" : helpers.makeTestYear("America/Inuvik", [ + ["1965-04-25T07:59:59+00:00", "23:59:59", "PST", 480], + ["1965-04-25T08:00:00+00:00", "02:00:00", "PDDT", 360], + ["1965-10-31T07:59:59+00:00", "01:59:59", "PDDT", 360], + ["1965-10-31T08:00:00+00:00", "00:00:00", "PST", 480] + ]), + + "1979" : helpers.makeTestYear("America/Inuvik", [ + ["1979-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1979-04-29T10:00:00+00:00", "03:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("America/Inuvik", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("America/Inuvik", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("America/Inuvik", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("America/Inuvik", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("America/Inuvik", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("America/Inuvik", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("America/Inuvik", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("America/Inuvik", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("America/Inuvik", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("America/Inuvik", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("America/Inuvik", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("America/Inuvik", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("America/Inuvik", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1993" : helpers.makeTestYear("America/Inuvik", [ + ["1993-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1993-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1993-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1993-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1994" : helpers.makeTestYear("America/Inuvik", [ + ["1994-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1994-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1994-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1994-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1995" : helpers.makeTestYear("America/Inuvik", [ + ["1995-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1995-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1995-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1995-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/Inuvik", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/Inuvik", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/Inuvik", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Inuvik", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/Inuvik", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/Inuvik", [ + ["2001-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Inuvik", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Inuvik", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Inuvik", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Inuvik", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Inuvik", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Inuvik", [ + ["2007-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Inuvik", [ + ["2008-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Inuvik", [ + ["2009-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Inuvik", [ + ["2010-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("America/Inuvik", [ + ["2011-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("America/Inuvik", [ + ["2012-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("America/Inuvik", [ + ["2013-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("America/Inuvik", [ + ["2014-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("America/Inuvik", [ + ["2015-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("America/Inuvik", [ + ["2016-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("America/Inuvik", [ + ["2017-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("America/Inuvik", [ + ["2018-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("America/Inuvik", [ + ["2019-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("America/Inuvik", [ + ["2020-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("America/Inuvik", [ + ["2021-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("America/Inuvik", [ + ["2022-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("America/Inuvik", [ + ["2023-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("America/Inuvik", [ + ["2024-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("America/Inuvik", [ + ["2025-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("America/Inuvik", [ + ["2026-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("America/Inuvik", [ + ["2027-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("America/Inuvik", [ + ["2028-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("America/Inuvik", [ + ["2029-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("America/Inuvik", [ + ["2030-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("America/Inuvik", [ + ["2031-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("America/Inuvik", [ + ["2032-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("America/Inuvik", [ + ["2033-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("America/Inuvik", [ + ["2034-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("America/Inuvik", [ + ["2035-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("America/Inuvik", [ + ["2036-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("America/Inuvik", [ + ["2037-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/iqaluit.js b/tests/zones/america/iqaluit.js new file mode 100644 index 00000000..d023d236 --- /dev/null +++ b/tests/zones/america/iqaluit.js @@ -0,0 +1,430 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Iqaluit"] = { + "1942" : helpers.makeTestYear("America/Iqaluit", [ + ["1942-07-31T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1942-08-01T00:00:00+00:00", "20:00:00", "EWT", 240] + ]), + + "1945" : helpers.makeTestYear("America/Iqaluit", [ + ["1945-08-14T22:59:59+00:00", "18:59:59", "EWT", 240], + ["1945-08-14T23:00:00+00:00", "19:00:00", "EPT", 240], + ["1945-09-30T05:59:59+00:00", "01:59:59", "EPT", 240], + ["1945-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1965" : helpers.makeTestYear("America/Iqaluit", [ + ["1965-04-25T04:59:59+00:00", "23:59:59", "EST", 300], + ["1965-04-25T05:00:00+00:00", "02:00:00", "EDDT", 180], + ["1965-10-31T04:59:59+00:00", "01:59:59", "EDDT", 180], + ["1965-10-31T05:00:00+00:00", "00:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Iqaluit", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Iqaluit", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Iqaluit", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Iqaluit", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Iqaluit", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Iqaluit", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Iqaluit", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Iqaluit", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Iqaluit", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Iqaluit", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Iqaluit", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Iqaluit", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Iqaluit", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Iqaluit", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Iqaluit", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Iqaluit", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Iqaluit", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Iqaluit", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Iqaluit", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Iqaluit", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Iqaluit", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Iqaluit", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Iqaluit", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Iqaluit", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Iqaluit", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Iqaluit", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Iqaluit", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Iqaluit", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Iqaluit", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Iqaluit", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Iqaluit", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Iqaluit", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Iqaluit", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Iqaluit", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Iqaluit", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Iqaluit", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Iqaluit", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Iqaluit", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Iqaluit", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Iqaluit", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Iqaluit", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Iqaluit", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Iqaluit", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Iqaluit", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Iqaluit", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Iqaluit", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Iqaluit", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Iqaluit", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Iqaluit", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Iqaluit", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Iqaluit", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Iqaluit", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Iqaluit", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Iqaluit", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Iqaluit", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Iqaluit", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Iqaluit", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Iqaluit", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/jamaica.js b/tests/zones/america/jamaica.js new file mode 100644 index 00000000..76193d29 --- /dev/null +++ b/tests/zones/america/jamaica.js @@ -0,0 +1,80 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Jamaica"] = { + "1912" : helpers.makeTestYear("America/Jamaica", [ + ["1912-02-01T05:07:10+00:00", "23:59:59", "KMT", 18431 / 60], + ["1912-02-01T05:07:11+00:00", "00:07:11", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Jamaica", [ + ["1974-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1974-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1974-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Jamaica", [ + ["1975-02-23T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-02-23T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("America/Jamaica", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("America/Jamaica", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("America/Jamaica", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Jamaica", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Jamaica", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Jamaica", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Jamaica", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Jamaica", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/juneau.js b/tests/zones/america/juneau.js new file mode 100644 index 00000000..24d66b7e --- /dev/null +++ b/tests/zones/america/juneau.js @@ -0,0 +1,502 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Juneau"] = { + "1942" : helpers.makeTestYear("America/Juneau", [ + ["1942-02-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["1942-02-09T10:00:00+00:00", "03:00:00", "PWT", 420] + ]), + + "1945" : helpers.makeTestYear("America/Juneau", [ + ["1945-08-14T22:59:59+00:00", "15:59:59", "PWT", 420], + ["1945-08-14T23:00:00+00:00", "16:00:00", "PPT", 420], + ["1945-09-30T08:59:59+00:00", "01:59:59", "PPT", 420], + ["1945-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1969" : helpers.makeTestYear("America/Juneau", [ + ["1969-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1969-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1969-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1969-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("America/Juneau", [ + ["1970-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1970-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1970-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1970-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1971" : helpers.makeTestYear("America/Juneau", [ + ["1971-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1971-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1971-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1971-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1972" : helpers.makeTestYear("America/Juneau", [ + ["1972-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1972-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1972-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1972-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1973" : helpers.makeTestYear("America/Juneau", [ + ["1973-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1973-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1973-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1973-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1974" : helpers.makeTestYear("America/Juneau", [ + ["1974-01-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1974-01-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1974-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1974-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1975" : helpers.makeTestYear("America/Juneau", [ + ["1975-02-23T09:59:59+00:00", "01:59:59", "PST", 480], + ["1975-02-23T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1975-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1975-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1976" : helpers.makeTestYear("America/Juneau", [ + ["1976-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1976-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1976-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1976-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1977" : helpers.makeTestYear("America/Juneau", [ + ["1977-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1977-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1977-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1977-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1978" : helpers.makeTestYear("America/Juneau", [ + ["1978-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1978-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1978-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1978-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1979" : helpers.makeTestYear("America/Juneau", [ + ["1979-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1979-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1979-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1979-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("America/Juneau", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "02:00:00", "YDT", 480], + ["1980-10-26T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1980-10-26T10:00:00+00:00", "02:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("America/Juneau", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("America/Juneau", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("America/Juneau", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "00:00:00", "YST", 540], + ["1983-11-30T08:59:59+00:00", "23:59:59", "YST", 540], + ["1983-11-30T09:00:00+00:00", "00:00:00", "AKST", 540] + ]), + + "1984" : helpers.makeTestYear("America/Juneau", [ + ["1984-04-29T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1984-04-29T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1984-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1984-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1985" : helpers.makeTestYear("America/Juneau", [ + ["1985-04-28T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1985-04-28T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1985-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1985-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1986" : helpers.makeTestYear("America/Juneau", [ + ["1986-04-27T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1986-04-27T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1986-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1986-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1987" : helpers.makeTestYear("America/Juneau", [ + ["1987-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1987-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1987-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1987-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1988" : helpers.makeTestYear("America/Juneau", [ + ["1988-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1988-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1988-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1988-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1989" : helpers.makeTestYear("America/Juneau", [ + ["1989-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1989-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1989-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1989-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1990" : helpers.makeTestYear("America/Juneau", [ + ["1990-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1990-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1990-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1990-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1991" : helpers.makeTestYear("America/Juneau", [ + ["1991-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1991-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1991-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1991-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1992" : helpers.makeTestYear("America/Juneau", [ + ["1992-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1992-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1992-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1992-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1993" : helpers.makeTestYear("America/Juneau", [ + ["1993-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1993-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1993-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1993-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1994" : helpers.makeTestYear("America/Juneau", [ + ["1994-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1994-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1994-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1994-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1995" : helpers.makeTestYear("America/Juneau", [ + ["1995-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1995-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1995-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1995-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1996" : helpers.makeTestYear("America/Juneau", [ + ["1996-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1996-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1996-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1996-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1997" : helpers.makeTestYear("America/Juneau", [ + ["1997-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1997-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1997-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1997-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1998" : helpers.makeTestYear("America/Juneau", [ + ["1998-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1998-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1998-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1998-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1999" : helpers.makeTestYear("America/Juneau", [ + ["1999-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1999-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1999-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1999-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2000" : helpers.makeTestYear("America/Juneau", [ + ["2000-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2000-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2000-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2000-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2001" : helpers.makeTestYear("America/Juneau", [ + ["2001-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2001-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2001-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2001-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2002" : helpers.makeTestYear("America/Juneau", [ + ["2002-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2002-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2002-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2002-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2003" : helpers.makeTestYear("America/Juneau", [ + ["2003-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2003-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2003-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2003-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2004" : helpers.makeTestYear("America/Juneau", [ + ["2004-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2004-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2004-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2004-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2005" : helpers.makeTestYear("America/Juneau", [ + ["2005-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2005-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2005-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2005-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2006" : helpers.makeTestYear("America/Juneau", [ + ["2006-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2006-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2006-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2006-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2007" : helpers.makeTestYear("America/Juneau", [ + ["2007-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2007-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2007-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2007-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2008" : helpers.makeTestYear("America/Juneau", [ + ["2008-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2008-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2008-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2008-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2009" : helpers.makeTestYear("America/Juneau", [ + ["2009-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2009-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2009-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2009-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2010" : helpers.makeTestYear("America/Juneau", [ + ["2010-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2010-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2010-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2010-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2011" : helpers.makeTestYear("America/Juneau", [ + ["2011-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2011-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2011-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2011-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2012" : helpers.makeTestYear("America/Juneau", [ + ["2012-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2012-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2012-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2012-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2013" : helpers.makeTestYear("America/Juneau", [ + ["2013-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2013-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2013-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2013-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2014" : helpers.makeTestYear("America/Juneau", [ + ["2014-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2014-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2014-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2014-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2015" : helpers.makeTestYear("America/Juneau", [ + ["2015-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2015-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2015-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2015-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2016" : helpers.makeTestYear("America/Juneau", [ + ["2016-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2016-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2016-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2016-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2017" : helpers.makeTestYear("America/Juneau", [ + ["2017-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2017-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2017-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2017-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2018" : helpers.makeTestYear("America/Juneau", [ + ["2018-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2018-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2018-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2018-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2019" : helpers.makeTestYear("America/Juneau", [ + ["2019-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2019-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2019-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2019-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2020" : helpers.makeTestYear("America/Juneau", [ + ["2020-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2020-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2020-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2020-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2021" : helpers.makeTestYear("America/Juneau", [ + ["2021-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2021-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2021-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2021-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2022" : helpers.makeTestYear("America/Juneau", [ + ["2022-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2022-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2022-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2022-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2023" : helpers.makeTestYear("America/Juneau", [ + ["2023-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2023-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2023-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2023-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2024" : helpers.makeTestYear("America/Juneau", [ + ["2024-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2024-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2024-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2024-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2025" : helpers.makeTestYear("America/Juneau", [ + ["2025-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2025-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2025-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2025-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2026" : helpers.makeTestYear("America/Juneau", [ + ["2026-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2026-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2026-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2026-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2027" : helpers.makeTestYear("America/Juneau", [ + ["2027-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2027-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2027-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2027-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2028" : helpers.makeTestYear("America/Juneau", [ + ["2028-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2028-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2028-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2028-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2029" : helpers.makeTestYear("America/Juneau", [ + ["2029-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2029-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2029-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2029-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2030" : helpers.makeTestYear("America/Juneau", [ + ["2030-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2030-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2030-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2030-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2031" : helpers.makeTestYear("America/Juneau", [ + ["2031-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2031-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2031-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2031-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2032" : helpers.makeTestYear("America/Juneau", [ + ["2032-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2032-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2032-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2032-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2033" : helpers.makeTestYear("America/Juneau", [ + ["2033-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2033-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2033-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2033-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2034" : helpers.makeTestYear("America/Juneau", [ + ["2034-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2034-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2034-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2034-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2035" : helpers.makeTestYear("America/Juneau", [ + ["2035-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2035-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2035-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2035-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2036" : helpers.makeTestYear("America/Juneau", [ + ["2036-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2036-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2036-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2036-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2037" : helpers.makeTestYear("America/Juneau", [ + ["2037-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2037-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2037-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2037-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/kentucky/louisville.js b/tests/zones/america/kentucky/louisville.js new file mode 100644 index 00000000..0e1f0bd5 --- /dev/null +++ b/tests/zones/america/kentucky/louisville.js @@ -0,0 +1,629 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Kentucky/Louisville"] = { + "1918" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1921" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1921-05-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1921-05-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1921-09-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1921-09-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1941" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1941-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1941-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1941-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1941-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1946" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1946-01-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1946-01-01T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1946-06-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1946-06-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1947" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1947-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1947-04-27T08:00:00+00:00", "03:00:00", "CDT", 300] + ]), + + "1950" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1950-09-24T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1950-09-24T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1951" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1951-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1951-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1951-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1951-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1952" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1952-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1952-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1952-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1952-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1953" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1953-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1953-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1953-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1953-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1954-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1954-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1955-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1955-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1955-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1955-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1956" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1956-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1956-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1956-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1956-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1957" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1957-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1957-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1957-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1957-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1958-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1958-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1959" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1959-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1959-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1959-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1959-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1960" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1960-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1960-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1960-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1960-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1961" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1961-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1961-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1961-07-23T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1961-07-23T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "1968" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1968-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1968-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1968-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1968-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1971" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1971-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1971-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1971-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1971-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1972" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1972-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1972-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1972-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1972-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1973" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1973-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1973-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1973-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1973-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1974-01-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-01-06T07:00:00+00:00", "02:00:00", "CDT", 300], + ["1974-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1974-10-27T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1975-02-23T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-02-23T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Kentucky/Louisville", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/kentucky/monticello.js b/tests/zones/america/kentucky/monticello.js new file mode 100644 index 00000000..40d5125e --- /dev/null +++ b/tests/zones/america/kentucky/monticello.js @@ -0,0 +1,521 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/Kentucky/Monticello"] = { + "1918" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1968" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1968-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1968-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1968-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1968-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1969" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1969-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1969-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1969-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1969-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1970" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1970-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1970-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1970-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1970-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1971" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1971-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1971-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1971-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1971-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1972" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1972-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1972-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1972-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1972-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1973" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1973-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1973-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1973-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1973-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1974" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1974-01-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1974-01-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1974-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1974-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1975" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1975-02-23T07:59:59+00:00", "01:59:59", "CST", 360], + ["1975-02-23T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1975-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1975-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1976" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1976-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1976-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1976-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1976-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1977" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1977-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1977-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1977-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1977-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1978" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1978-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1978-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1978-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1978-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1979" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1979-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1979-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1979-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1979-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1980-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1980-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1980-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1980-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1981-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1981-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1981-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1981-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1982-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1982-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1982-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1982-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1983-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1983-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1983-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1983-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1984" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1984-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1984-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1984-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1984-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1985" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1985-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1985-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1985-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1985-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1986" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1986-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1986-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1986-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1986-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1987-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1987-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1987-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1987-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1989" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1989-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1989-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1989-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1989-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1990" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1990-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1990-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1990-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1990-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1991-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1991-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1991-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1991-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1992-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1992-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1992-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1992-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1993-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1993-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1993-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1993-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1994" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1994-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1994-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1994-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1994-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1995" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1995-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1995-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1995-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1995-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Kentucky/Monticello", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/la_paz.js b/tests/zones/america/la_paz.js new file mode 100644 index 00000000..9f095bfa --- /dev/null +++ b/tests/zones/america/la_paz.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/La_Paz"] = { + "1931" : helpers.makeTestYear("America/La_Paz", [ + ["1931-10-15T04:32:35+00:00", "23:59:59", "CMT", 16356 / 60], + ["1931-10-15T04:32:36+00:00", "01:00:00", "BOST", 12756 / 60] + ]), + + "1932" : helpers.makeTestYear("America/La_Paz", [ + ["1932-03-21T03:32:35+00:00", "23:59:59", "BOST", 12756 / 60], + ["1932-03-21T03:32:36+00:00", "23:32:36", "BOT", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/lima.js b/tests/zones/america/lima.js new file mode 100644 index 00000000..222eb3f7 --- /dev/null +++ b/tests/zones/america/lima.js @@ -0,0 +1,59 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Lima"] = { + "1908" : helpers.makeTestYear("America/Lima", [ + ["1908-07-28T05:08:35+00:00", "23:59:59", "LMT", 18516 / 60], + ["1908-07-28T05:08:36+00:00", "00:08:36", "PET", 300] + ]), + + "1938" : helpers.makeTestYear("America/Lima", [ + ["1938-01-01T04:59:59+00:00", "23:59:59", "PET", 300], + ["1938-01-01T05:00:00+00:00", "01:00:00", "PEST", 240], + ["1938-04-01T03:59:59+00:00", "23:59:59", "PEST", 240], + ["1938-04-01T04:00:00+00:00", "23:00:00", "PET", 300], + ["1938-09-25T04:59:59+00:00", "23:59:59", "PET", 300], + ["1938-09-25T05:00:00+00:00", "01:00:00", "PEST", 240] + ]), + + "1939" : helpers.makeTestYear("America/Lima", [ + ["1939-03-26T03:59:59+00:00", "23:59:59", "PEST", 240], + ["1939-03-26T04:00:00+00:00", "23:00:00", "PET", 300], + ["1939-09-24T04:59:59+00:00", "23:59:59", "PET", 300], + ["1939-09-24T05:00:00+00:00", "01:00:00", "PEST", 240] + ]), + + "1940" : helpers.makeTestYear("America/Lima", [ + ["1940-03-24T03:59:59+00:00", "23:59:59", "PEST", 240], + ["1940-03-24T04:00:00+00:00", "23:00:00", "PET", 300] + ]), + + "1986" : helpers.makeTestYear("America/Lima", [ + ["1986-01-01T04:59:59+00:00", "23:59:59", "PET", 300], + ["1986-01-01T05:00:00+00:00", "01:00:00", "PEST", 240], + ["1986-04-01T03:59:59+00:00", "23:59:59", "PEST", 240], + ["1986-04-01T04:00:00+00:00", "23:00:00", "PET", 300] + ]), + + "1987" : helpers.makeTestYear("America/Lima", [ + ["1987-01-01T04:59:59+00:00", "23:59:59", "PET", 300], + ["1987-01-01T05:00:00+00:00", "01:00:00", "PEST", 240], + ["1987-04-01T03:59:59+00:00", "23:59:59", "PEST", 240], + ["1987-04-01T04:00:00+00:00", "23:00:00", "PET", 300] + ]), + + "1990" : helpers.makeTestYear("America/Lima", [ + ["1990-01-01T04:59:59+00:00", "23:59:59", "PET", 300], + ["1990-01-01T05:00:00+00:00", "01:00:00", "PEST", 240], + ["1990-04-01T03:59:59+00:00", "23:59:59", "PEST", 240], + ["1990-04-01T04:00:00+00:00", "23:00:00", "PET", 300] + ]), + + "1994" : helpers.makeTestYear("America/Lima", [ + ["1994-01-01T04:59:59+00:00", "23:59:59", "PET", 300], + ["1994-01-01T05:00:00+00:00", "01:00:00", "PEST", 240], + ["1994-04-01T03:59:59+00:00", "23:59:59", "PEST", 240], + ["1994-04-01T04:00:00+00:00", "23:00:00", "PET", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/los_angeles.js b/tests/zones/america/los_angeles.js new file mode 100644 index 00000000..281ae3cf --- /dev/null +++ b/tests/zones/america/los_angeles.js @@ -0,0 +1,657 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Los_Angeles"] = { + "1918" : helpers.makeTestYear("America/Los_Angeles", [ + ["1918-03-31T09:59:59+00:00", "01:59:59", "PST", 480], + ["1918-03-31T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1918-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1918-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1919" : helpers.makeTestYear("America/Los_Angeles", [ + ["1919-03-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1919-03-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1919-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1919-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1942" : helpers.makeTestYear("America/Los_Angeles", [ + ["1942-02-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["1942-02-09T10:00:00+00:00", "03:00:00", "PWT", 420] + ]), + + "1945" : helpers.makeTestYear("America/Los_Angeles", [ + ["1945-08-14T22:59:59+00:00", "15:59:59", "PWT", 420], + ["1945-08-14T23:00:00+00:00", "16:00:00", "PPT", 420], + ["1945-09-30T08:59:59+00:00", "01:59:59", "PPT", 420], + ["1945-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1948" : helpers.makeTestYear("America/Los_Angeles", [ + ["1948-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["1948-03-14T10:00:00+00:00", "03:00:00", "PDT", 420] + ]), + + "1949" : helpers.makeTestYear("America/Los_Angeles", [ + ["1949-01-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1949-01-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1950" : helpers.makeTestYear("America/Los_Angeles", [ + ["1950-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1950-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1950-09-24T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1950-09-24T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1951" : helpers.makeTestYear("America/Los_Angeles", [ + ["1951-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1951-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1951-09-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1951-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1952" : helpers.makeTestYear("America/Los_Angeles", [ + ["1952-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1952-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1952-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1952-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1953" : helpers.makeTestYear("America/Los_Angeles", [ + ["1953-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1953-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1953-09-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1953-09-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1954" : helpers.makeTestYear("America/Los_Angeles", [ + ["1954-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1954-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1954-09-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1954-09-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1955" : helpers.makeTestYear("America/Los_Angeles", [ + ["1955-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1955-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1955-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1955-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1956" : helpers.makeTestYear("America/Los_Angeles", [ + ["1956-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1956-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1956-09-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1956-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1957" : helpers.makeTestYear("America/Los_Angeles", [ + ["1957-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1957-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1957-09-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1957-09-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1958" : helpers.makeTestYear("America/Los_Angeles", [ + ["1958-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1958-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1958-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1958-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1959" : helpers.makeTestYear("America/Los_Angeles", [ + ["1959-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1959-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1959-09-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1959-09-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1960" : helpers.makeTestYear("America/Los_Angeles", [ + ["1960-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1960-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1960-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1960-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1961" : helpers.makeTestYear("America/Los_Angeles", [ + ["1961-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1961-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1961-09-24T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1961-09-24T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1962" : helpers.makeTestYear("America/Los_Angeles", [ + ["1962-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1962-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1962-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1962-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1963" : helpers.makeTestYear("America/Los_Angeles", [ + ["1963-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1963-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1963-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1963-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1964" : helpers.makeTestYear("America/Los_Angeles", [ + ["1964-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1964-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1964-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1964-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1965" : helpers.makeTestYear("America/Los_Angeles", [ + ["1965-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1965-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1965-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1965-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1966" : helpers.makeTestYear("America/Los_Angeles", [ + ["1966-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1966-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1966-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1966-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1967" : helpers.makeTestYear("America/Los_Angeles", [ + ["1967-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1967-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1967-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1967-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1968" : helpers.makeTestYear("America/Los_Angeles", [ + ["1968-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1968-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1968-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1968-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1969" : helpers.makeTestYear("America/Los_Angeles", [ + ["1969-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1969-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1969-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1969-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("America/Los_Angeles", [ + ["1970-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1970-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1970-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1970-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1971" : helpers.makeTestYear("America/Los_Angeles", [ + ["1971-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1971-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1971-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1971-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1972" : helpers.makeTestYear("America/Los_Angeles", [ + ["1972-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1972-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1972-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1972-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1973" : helpers.makeTestYear("America/Los_Angeles", [ + ["1973-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1973-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1973-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1973-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1974" : helpers.makeTestYear("America/Los_Angeles", [ + ["1974-01-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1974-01-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1974-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1974-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1975" : helpers.makeTestYear("America/Los_Angeles", [ + ["1975-02-23T09:59:59+00:00", "01:59:59", "PST", 480], + ["1975-02-23T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1975-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1975-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1976" : helpers.makeTestYear("America/Los_Angeles", [ + ["1976-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1976-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1976-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1976-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1977" : helpers.makeTestYear("America/Los_Angeles", [ + ["1977-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1977-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1977-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1977-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1978" : helpers.makeTestYear("America/Los_Angeles", [ + ["1978-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1978-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1978-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1978-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1979" : helpers.makeTestYear("America/Los_Angeles", [ + ["1979-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1979-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1979-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1979-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("America/Los_Angeles", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1980-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1980-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("America/Los_Angeles", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("America/Los_Angeles", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("America/Los_Angeles", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1984" : helpers.makeTestYear("America/Los_Angeles", [ + ["1984-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1984-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1984-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1984-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1985" : helpers.makeTestYear("America/Los_Angeles", [ + ["1985-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1985-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1985-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1985-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1986" : helpers.makeTestYear("America/Los_Angeles", [ + ["1986-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1986-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1986-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1986-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1987" : helpers.makeTestYear("America/Los_Angeles", [ + ["1987-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1987-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1987-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1987-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1988" : helpers.makeTestYear("America/Los_Angeles", [ + ["1988-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1988-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1988-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1988-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1989" : helpers.makeTestYear("America/Los_Angeles", [ + ["1989-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1989-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1989-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1989-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1990" : helpers.makeTestYear("America/Los_Angeles", [ + ["1990-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["1990-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1990-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1990-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1991" : helpers.makeTestYear("America/Los_Angeles", [ + ["1991-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1991-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1991-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1991-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1992" : helpers.makeTestYear("America/Los_Angeles", [ + ["1992-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1992-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1992-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1992-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1993" : helpers.makeTestYear("America/Los_Angeles", [ + ["1993-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1993-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1993-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1993-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1994" : helpers.makeTestYear("America/Los_Angeles", [ + ["1994-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1994-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1994-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1994-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1995" : helpers.makeTestYear("America/Los_Angeles", [ + ["1995-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1995-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1995-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1995-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1996" : helpers.makeTestYear("America/Los_Angeles", [ + ["1996-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1996-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1996-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1996-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1997" : helpers.makeTestYear("America/Los_Angeles", [ + ["1997-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1997-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1997-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1997-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1998" : helpers.makeTestYear("America/Los_Angeles", [ + ["1998-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1998-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1998-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1998-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1999" : helpers.makeTestYear("America/Los_Angeles", [ + ["1999-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1999-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1999-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1999-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2000" : helpers.makeTestYear("America/Los_Angeles", [ + ["2000-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2000-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2000-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2000-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2001" : helpers.makeTestYear("America/Los_Angeles", [ + ["2001-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2001-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2001-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2001-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2002" : helpers.makeTestYear("America/Los_Angeles", [ + ["2002-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2002-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2002-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2002-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2003" : helpers.makeTestYear("America/Los_Angeles", [ + ["2003-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2003-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2003-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2003-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2004" : helpers.makeTestYear("America/Los_Angeles", [ + ["2004-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2004-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2004-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2004-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2005" : helpers.makeTestYear("America/Los_Angeles", [ + ["2005-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2005-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2005-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2005-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2006" : helpers.makeTestYear("America/Los_Angeles", [ + ["2006-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2006-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2006-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2006-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2007" : helpers.makeTestYear("America/Los_Angeles", [ + ["2007-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2007-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2007-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2007-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2008" : helpers.makeTestYear("America/Los_Angeles", [ + ["2008-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2008-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2008-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2008-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2009" : helpers.makeTestYear("America/Los_Angeles", [ + ["2009-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2009-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2009-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2009-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2010" : helpers.makeTestYear("America/Los_Angeles", [ + ["2010-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2010-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2010-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2010-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2011" : helpers.makeTestYear("America/Los_Angeles", [ + ["2011-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2011-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2011-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2011-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2012" : helpers.makeTestYear("America/Los_Angeles", [ + ["2012-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2012-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2012-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2012-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2013" : helpers.makeTestYear("America/Los_Angeles", [ + ["2013-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2013-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2013-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2013-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2014" : helpers.makeTestYear("America/Los_Angeles", [ + ["2014-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2014-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2014-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2014-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2015" : helpers.makeTestYear("America/Los_Angeles", [ + ["2015-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2015-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2015-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2015-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2016" : helpers.makeTestYear("America/Los_Angeles", [ + ["2016-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2016-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2016-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2016-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2017" : helpers.makeTestYear("America/Los_Angeles", [ + ["2017-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2017-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2017-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2017-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2018" : helpers.makeTestYear("America/Los_Angeles", [ + ["2018-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2018-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2018-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2018-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2019" : helpers.makeTestYear("America/Los_Angeles", [ + ["2019-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2019-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2019-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2019-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2020" : helpers.makeTestYear("America/Los_Angeles", [ + ["2020-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2020-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2020-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2020-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2021" : helpers.makeTestYear("America/Los_Angeles", [ + ["2021-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2021-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2021-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2021-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2022" : helpers.makeTestYear("America/Los_Angeles", [ + ["2022-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2022-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2022-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2022-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2023" : helpers.makeTestYear("America/Los_Angeles", [ + ["2023-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2023-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2023-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2023-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2024" : helpers.makeTestYear("America/Los_Angeles", [ + ["2024-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2024-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2024-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2024-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2025" : helpers.makeTestYear("America/Los_Angeles", [ + ["2025-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2025-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2025-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2025-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2026" : helpers.makeTestYear("America/Los_Angeles", [ + ["2026-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2026-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2026-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2026-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2027" : helpers.makeTestYear("America/Los_Angeles", [ + ["2027-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2027-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2027-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2027-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2028" : helpers.makeTestYear("America/Los_Angeles", [ + ["2028-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2028-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2028-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2028-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2029" : helpers.makeTestYear("America/Los_Angeles", [ + ["2029-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2029-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2029-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2029-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2030" : helpers.makeTestYear("America/Los_Angeles", [ + ["2030-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2030-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2030-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2030-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2031" : helpers.makeTestYear("America/Los_Angeles", [ + ["2031-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2031-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2031-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2031-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2032" : helpers.makeTestYear("America/Los_Angeles", [ + ["2032-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2032-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2032-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2032-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2033" : helpers.makeTestYear("America/Los_Angeles", [ + ["2033-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2033-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2033-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2033-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2034" : helpers.makeTestYear("America/Los_Angeles", [ + ["2034-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2034-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2034-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2034-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2035" : helpers.makeTestYear("America/Los_Angeles", [ + ["2035-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2035-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2035-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2035-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2036" : helpers.makeTestYear("America/Los_Angeles", [ + ["2036-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2036-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2036-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2036-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2037" : helpers.makeTestYear("America/Los_Angeles", [ + ["2037-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2037-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2037-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2037-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/maceio.js b/tests/zones/america/maceio.js new file mode 100644 index 00000000..e44cadef --- /dev/null +++ b/tests/zones/america/maceio.js @@ -0,0 +1,168 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Maceio"] = { + "1914" : helpers.makeTestYear("America/Maceio", [ + ["1914-01-01T02:22:51+00:00", "23:59:59", "LMT", 8572 / 60], + ["1914-01-01T02:22:52+00:00", "23:22:52", "BRT", 180] + ]), + + "1931" : helpers.makeTestYear("America/Maceio", [ + ["1931-10-03T13:59:59+00:00", "10:59:59", "BRT", 180], + ["1931-10-03T14:00:00+00:00", "12:00:00", "BRST", 120] + ]), + + "1932" : helpers.makeTestYear("America/Maceio", [ + ["1932-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1932-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1932-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1932-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1933" : helpers.makeTestYear("America/Maceio", [ + ["1933-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1933-04-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1949" : helpers.makeTestYear("America/Maceio", [ + ["1949-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1949-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1950" : helpers.makeTestYear("America/Maceio", [ + ["1950-04-16T02:59:59+00:00", "00:59:59", "BRST", 120], + ["1950-04-16T03:00:00+00:00", "00:00:00", "BRT", 180], + ["1950-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1950-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1951" : helpers.makeTestYear("America/Maceio", [ + ["1951-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1951-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1951-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1951-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1952" : helpers.makeTestYear("America/Maceio", [ + ["1952-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1952-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1952-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1952-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1953" : helpers.makeTestYear("America/Maceio", [ + ["1953-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1953-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1963" : helpers.makeTestYear("America/Maceio", [ + ["1963-12-09T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1963-12-09T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1964" : helpers.makeTestYear("America/Maceio", [ + ["1964-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1964-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1965" : helpers.makeTestYear("America/Maceio", [ + ["1965-01-31T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-01-31T03:00:00+00:00", "01:00:00", "BRST", 120], + ["1965-03-31T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1965-03-31T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1965-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1966" : helpers.makeTestYear("America/Maceio", [ + ["1966-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1966-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1966-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1966-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1967" : helpers.makeTestYear("America/Maceio", [ + ["1967-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1967-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1967-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1967-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1968" : helpers.makeTestYear("America/Maceio", [ + ["1968-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1968-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1985" : helpers.makeTestYear("America/Maceio", [ + ["1985-11-02T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1985-11-02T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1986" : helpers.makeTestYear("America/Maceio", [ + ["1986-03-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1986-03-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1986-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1986-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1987" : helpers.makeTestYear("America/Maceio", [ + ["1987-02-14T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1987-02-14T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1987-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1987-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1988" : helpers.makeTestYear("America/Maceio", [ + ["1988-02-07T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1988-02-07T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1988-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1988-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Maceio", [ + ["1989-01-29T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1989-01-29T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Maceio", [ + ["1990-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1990-02-11T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1995" : helpers.makeTestYear("America/Maceio", [ + ["1995-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1995-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1996" : helpers.makeTestYear("America/Maceio", [ + ["1996-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1996-02-11T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1999" : helpers.makeTestYear("America/Maceio", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1999-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2000" : helpers.makeTestYear("America/Maceio", [ + ["2000-02-27T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2000-02-27T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2000-10-08T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2000-10-08T03:00:00+00:00", "01:00:00", "BRST", 120], + ["2000-10-22T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2000-10-22T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "2001" : helpers.makeTestYear("America/Maceio", [ + ["2001-10-14T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2001-10-14T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2002" : helpers.makeTestYear("America/Maceio", [ + ["2002-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2002-02-17T02:00:00+00:00", "23:00:00", "BRT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/managua.js b/tests/zones/america/managua.js new file mode 100644 index 00000000..04c7bc9e --- /dev/null +++ b/tests/zones/america/managua.js @@ -0,0 +1,65 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Managua"] = { + "1934" : helpers.makeTestYear("America/Managua", [ + ["1934-06-23T05:45:11+00:00", "23:59:59", "MMT", 20712 / 60], + ["1934-06-23T05:45:12+00:00", "23:45:12", "CST", 360] + ]), + + "1973" : helpers.makeTestYear("America/Managua", [ + ["1973-05-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1973-05-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Managua", [ + ["1975-02-16T04:59:59+00:00", "23:59:59", "EST", 300], + ["1975-02-16T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1979" : helpers.makeTestYear("America/Managua", [ + ["1979-03-18T05:59:59+00:00", "23:59:59", "CST", 360], + ["1979-03-18T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1979-06-25T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1979-06-25T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Managua", [ + ["1980-03-16T05:59:59+00:00", "23:59:59", "CST", 360], + ["1980-03-16T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1980-06-23T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1980-06-23T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("America/Managua", [ + ["1992-01-01T09:59:59+00:00", "03:59:59", "CST", 360], + ["1992-01-01T10:00:00+00:00", "05:00:00", "EST", 300], + ["1992-09-24T04:59:59+00:00", "23:59:59", "EST", 300], + ["1992-09-24T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("America/Managua", [ + ["1993-01-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1993-01-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Managua", [ + ["1997-01-01T04:59:59+00:00", "23:59:59", "EST", 300], + ["1997-01-01T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Managua", [ + ["2005-04-10T05:59:59+00:00", "23:59:59", "CST", 360], + ["2005-04-10T06:00:00+00:00", "01:00:00", "CDT", 300], + ["2005-10-02T04:59:59+00:00", "23:59:59", "CDT", 300], + ["2005-10-02T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Managua", [ + ["2006-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-01T05:59:59+00:00", "00:59:59", "CDT", 300], + ["2006-10-01T06:00:00+00:00", "00:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/manaus.js b/tests/zones/america/manaus.js new file mode 100644 index 00000000..b59b3d7b --- /dev/null +++ b/tests/zones/america/manaus.js @@ -0,0 +1,130 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Manaus"] = { + "1914" : helpers.makeTestYear("America/Manaus", [ + ["1914-01-01T04:00:03+00:00", "23:59:59", "LMT", 14404 / 60], + ["1914-01-01T04:00:04+00:00", "00:00:04", "AMT", 240] + ]), + + "1931" : helpers.makeTestYear("America/Manaus", [ + ["1931-10-03T14:59:59+00:00", "10:59:59", "AMT", 240], + ["1931-10-03T15:00:00+00:00", "12:00:00", "AMST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Manaus", [ + ["1932-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1932-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1932-10-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1932-10-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Manaus", [ + ["1933-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1933-04-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1949" : helpers.makeTestYear("America/Manaus", [ + ["1949-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1949-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1950" : helpers.makeTestYear("America/Manaus", [ + ["1950-04-16T03:59:59+00:00", "00:59:59", "AMST", 180], + ["1950-04-16T04:00:00+00:00", "00:00:00", "AMT", 240], + ["1950-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1950-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1951" : helpers.makeTestYear("America/Manaus", [ + ["1951-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1951-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1951-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1951-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1952" : helpers.makeTestYear("America/Manaus", [ + ["1952-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1952-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1952-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1952-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1953" : helpers.makeTestYear("America/Manaus", [ + ["1953-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1953-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1963" : helpers.makeTestYear("America/Manaus", [ + ["1963-12-09T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1963-12-09T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Manaus", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1965" : helpers.makeTestYear("America/Manaus", [ + ["1965-01-31T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-01-31T04:00:00+00:00", "01:00:00", "AMST", 180], + ["1965-03-31T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1965-03-31T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1965-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Manaus", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1966-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1966-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Manaus", [ + ["1967-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1967-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1967-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1967-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Manaus", [ + ["1968-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1968-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1985" : helpers.makeTestYear("America/Manaus", [ + ["1985-11-02T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1985-11-02T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1986" : helpers.makeTestYear("America/Manaus", [ + ["1986-03-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1986-03-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1986-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1986-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1987" : helpers.makeTestYear("America/Manaus", [ + ["1987-02-14T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1987-02-14T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1987-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1987-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1988" : helpers.makeTestYear("America/Manaus", [ + ["1988-02-07T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1988-02-07T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1993" : helpers.makeTestYear("America/Manaus", [ + ["1993-10-17T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1993-10-17T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1994" : helpers.makeTestYear("America/Manaus", [ + ["1994-02-20T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1994-02-20T03:00:00+00:00", "23:00:00", "AMT", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/martinique.js b/tests/zones/america/martinique.js new file mode 100644 index 00000000..7586d29e --- /dev/null +++ b/tests/zones/america/martinique.js @@ -0,0 +1,17 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Martinique"] = { + "1911" : helpers.makeTestYear("America/Martinique", [ + ["1911-05-01T04:04:19+00:00", "23:59:59", "FFMT", 14660 / 60], + ["1911-05-01T04:04:20+00:00", "00:04:20", "AST", 240] + ]), + + "1980" : helpers.makeTestYear("America/Martinique", [ + ["1980-04-06T03:59:59+00:00", "23:59:59", "AST", 240], + ["1980-04-06T04:00:00+00:00", "01:00:00", "ADT", 180], + ["1980-09-28T02:59:59+00:00", "23:59:59", "ADT", 180], + ["1980-09-28T03:00:00+00:00", "23:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/matamoros.js b/tests/zones/america/matamoros.js new file mode 100644 index 00000000..dc098d0c --- /dev/null +++ b/tests/zones/america/matamoros.js @@ -0,0 +1,311 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Matamoros"] = { + "1922" : helpers.makeTestYear("America/Matamoros", [ + ["1922-01-01T05:59:59+00:00", "23:19:59", "LMT", 400], + ["1922-01-01T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Matamoros", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Matamoros", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Matamoros", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Matamoros", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Matamoros", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Matamoros", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Matamoros", [ + ["2001-05-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-05-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Matamoros", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Matamoros", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Matamoros", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Matamoros", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Matamoros", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Matamoros", [ + ["2007-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Matamoros", [ + ["2008-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Matamoros", [ + ["2009-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Matamoros", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Matamoros", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Matamoros", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Matamoros", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Matamoros", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Matamoros", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Matamoros", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Matamoros", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Matamoros", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Matamoros", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Matamoros", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Matamoros", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Matamoros", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Matamoros", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Matamoros", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Matamoros", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Matamoros", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Matamoros", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Matamoros", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Matamoros", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Matamoros", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Matamoros", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Matamoros", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Matamoros", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Matamoros", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Matamoros", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Matamoros", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Matamoros", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/mazatlan.js b/tests/zones/america/mazatlan.js new file mode 100644 index 00000000..b3598b32 --- /dev/null +++ b/tests/zones/america/mazatlan.js @@ -0,0 +1,341 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Mazatlan"] = { + "1922" : helpers.makeTestYear("America/Mazatlan", [ + ["1922-01-01T06:59:59+00:00", "23:54:19", "LMT", 25540 / 60], + ["1922-01-01T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1927" : helpers.makeTestYear("America/Mazatlan", [ + ["1927-06-11T05:59:59+00:00", "22:59:59", "MST", 420], + ["1927-06-11T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1930" : helpers.makeTestYear("America/Mazatlan", [ + ["1930-11-15T05:59:59+00:00", "23:59:59", "CST", 360], + ["1930-11-15T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1931" : helpers.makeTestYear("America/Mazatlan", [ + ["1931-05-02T05:59:59+00:00", "22:59:59", "MST", 420], + ["1931-05-02T06:00:00+00:00", "00:00:00", "CST", 360], + ["1931-10-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1931-10-01T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1932" : helpers.makeTestYear("America/Mazatlan", [ + ["1932-04-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1932-04-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Mazatlan", [ + ["1942-04-24T05:59:59+00:00", "23:59:59", "CST", 360], + ["1942-04-24T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1949" : helpers.makeTestYear("America/Mazatlan", [ + ["1949-01-14T06:59:59+00:00", "23:59:59", "MST", 420], + ["1949-01-14T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("America/Mazatlan", [ + ["1970-01-01T07:59:59+00:00", "23:59:59", "PST", 480], + ["1970-01-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/Mazatlan", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/Mazatlan", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/Mazatlan", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Mazatlan", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/Mazatlan", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/Mazatlan", [ + ["2001-05-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-05-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-09-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Mazatlan", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Mazatlan", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Mazatlan", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Mazatlan", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Mazatlan", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Mazatlan", [ + ["2007-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Mazatlan", [ + ["2008-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Mazatlan", [ + ["2009-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Mazatlan", [ + ["2010-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("America/Mazatlan", [ + ["2011-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("America/Mazatlan", [ + ["2012-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("America/Mazatlan", [ + ["2013-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("America/Mazatlan", [ + ["2014-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("America/Mazatlan", [ + ["2015-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("America/Mazatlan", [ + ["2016-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("America/Mazatlan", [ + ["2017-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("America/Mazatlan", [ + ["2018-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("America/Mazatlan", [ + ["2019-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("America/Mazatlan", [ + ["2020-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("America/Mazatlan", [ + ["2021-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("America/Mazatlan", [ + ["2022-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("America/Mazatlan", [ + ["2023-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("America/Mazatlan", [ + ["2024-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("America/Mazatlan", [ + ["2025-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("America/Mazatlan", [ + ["2026-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("America/Mazatlan", [ + ["2027-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("America/Mazatlan", [ + ["2028-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("America/Mazatlan", [ + ["2029-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("America/Mazatlan", [ + ["2030-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("America/Mazatlan", [ + ["2031-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("America/Mazatlan", [ + ["2032-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("America/Mazatlan", [ + ["2033-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("America/Mazatlan", [ + ["2034-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("America/Mazatlan", [ + ["2035-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("America/Mazatlan", [ + ["2036-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("America/Mazatlan", [ + ["2037-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/menominee.js b/tests/zones/america/menominee.js new file mode 100644 index 00000000..f31ad3ff --- /dev/null +++ b/tests/zones/america/menominee.js @@ -0,0 +1,505 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Menominee"] = { + "1918" : helpers.makeTestYear("America/Menominee", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("America/Menominee", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Menominee", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Menominee", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1946" : helpers.makeTestYear("America/Menominee", [ + ["1946-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1946-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1946-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1946-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1966" : helpers.makeTestYear("America/Menominee", [ + ["1966-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1966-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1966-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1966-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1969" : helpers.makeTestYear("America/Menominee", [ + ["1969-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1969-04-27T08:00:00+00:00", "03:00:00", "EST", 300] + ]), + + "1973" : helpers.makeTestYear("America/Menominee", [ + ["1973-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1973-04-29T07:00:00+00:00", "02:00:00", "CDT", 300], + ["1973-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1973-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1974" : helpers.makeTestYear("America/Menominee", [ + ["1974-01-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1974-01-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1974-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1974-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1975" : helpers.makeTestYear("America/Menominee", [ + ["1975-02-23T07:59:59+00:00", "01:59:59", "CST", 360], + ["1975-02-23T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1975-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1975-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1976" : helpers.makeTestYear("America/Menominee", [ + ["1976-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1976-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1976-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1976-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1977" : helpers.makeTestYear("America/Menominee", [ + ["1977-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1977-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1977-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1977-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1978" : helpers.makeTestYear("America/Menominee", [ + ["1978-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1978-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1978-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1978-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1979" : helpers.makeTestYear("America/Menominee", [ + ["1979-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1979-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1979-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1979-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Menominee", [ + ["1980-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1980-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1980-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1980-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Menominee", [ + ["1981-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1981-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1981-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1981-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("America/Menominee", [ + ["1982-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1982-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1982-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1982-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("America/Menominee", [ + ["1983-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1983-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1983-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1983-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1984" : helpers.makeTestYear("America/Menominee", [ + ["1984-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1984-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1984-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1984-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1985" : helpers.makeTestYear("America/Menominee", [ + ["1985-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1985-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1985-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1985-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1986" : helpers.makeTestYear("America/Menominee", [ + ["1986-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1986-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1986-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1986-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/Menominee", [ + ["1987-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1987-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1987-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1987-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Menominee", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1989" : helpers.makeTestYear("America/Menominee", [ + ["1989-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1989-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1989-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1989-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1990" : helpers.makeTestYear("America/Menominee", [ + ["1990-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1990-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1990-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1990-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Menominee", [ + ["1991-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1991-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1991-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1991-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("America/Menominee", [ + ["1992-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1992-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1992-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1992-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("America/Menominee", [ + ["1993-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1993-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1993-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1993-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1994" : helpers.makeTestYear("America/Menominee", [ + ["1994-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1994-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1994-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1994-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1995" : helpers.makeTestYear("America/Menominee", [ + ["1995-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1995-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1995-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1995-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Menominee", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Menominee", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Menominee", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Menominee", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Menominee", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Menominee", [ + ["2001-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Menominee", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Menominee", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Menominee", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Menominee", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Menominee", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Menominee", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Menominee", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Menominee", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Menominee", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Menominee", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Menominee", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Menominee", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Menominee", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Menominee", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Menominee", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Menominee", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Menominee", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Menominee", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Menominee", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Menominee", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Menominee", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Menominee", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Menominee", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Menominee", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Menominee", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Menominee", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Menominee", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Menominee", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Menominee", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Menominee", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Menominee", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Menominee", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Menominee", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Menominee", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Menominee", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Menominee", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/merida.js b/tests/zones/america/merida.js new file mode 100644 index 00000000..b811dcc0 --- /dev/null +++ b/tests/zones/america/merida.js @@ -0,0 +1,314 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Merida"] = { + "1922" : helpers.makeTestYear("America/Merida", [ + ["1922-01-01T05:59:59+00:00", "00:01:31", "LMT", 21508 / 60], + ["1922-01-01T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Merida", [ + ["1981-12-23T05:59:59+00:00", "23:59:59", "CST", 360], + ["1981-12-23T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Merida", [ + ["1982-12-02T04:59:59+00:00", "23:59:59", "EST", 300], + ["1982-12-02T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Merida", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Merida", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Merida", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Merida", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Merida", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Merida", [ + ["2001-05-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-05-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Merida", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Merida", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Merida", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Merida", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Merida", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Merida", [ + ["2007-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Merida", [ + ["2008-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Merida", [ + ["2009-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Merida", [ + ["2010-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Merida", [ + ["2011-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Merida", [ + ["2012-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Merida", [ + ["2013-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Merida", [ + ["2014-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Merida", [ + ["2015-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Merida", [ + ["2016-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Merida", [ + ["2017-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Merida", [ + ["2018-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Merida", [ + ["2019-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Merida", [ + ["2020-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Merida", [ + ["2021-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Merida", [ + ["2022-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Merida", [ + ["2023-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Merida", [ + ["2024-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Merida", [ + ["2025-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Merida", [ + ["2026-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Merida", [ + ["2027-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Merida", [ + ["2028-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Merida", [ + ["2029-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Merida", [ + ["2030-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Merida", [ + ["2031-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Merida", [ + ["2032-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Merida", [ + ["2033-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Merida", [ + ["2034-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Merida", [ + ["2035-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Merida", [ + ["2036-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Merida", [ + ["2037-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/metlakatla.js b/tests/zones/america/metlakatla.js new file mode 100644 index 00000000..8519628f --- /dev/null +++ b/tests/zones/america/metlakatla.js @@ -0,0 +1,122 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Metlakatla"] = { + "1942" : helpers.makeTestYear("America/Metlakatla", [ + ["1942-02-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["1942-02-09T10:00:00+00:00", "03:00:00", "PWT", 420] + ]), + + "1945" : helpers.makeTestYear("America/Metlakatla", [ + ["1945-08-14T22:59:59+00:00", "15:59:59", "PWT", 420], + ["1945-08-14T23:00:00+00:00", "16:00:00", "PPT", 420], + ["1945-09-30T08:59:59+00:00", "01:59:59", "PPT", 420], + ["1945-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1969" : helpers.makeTestYear("America/Metlakatla", [ + ["1969-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1969-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1969-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1969-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("America/Metlakatla", [ + ["1970-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1970-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1970-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1970-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1971" : helpers.makeTestYear("America/Metlakatla", [ + ["1971-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1971-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1971-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1971-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1972" : helpers.makeTestYear("America/Metlakatla", [ + ["1972-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1972-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1972-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1972-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1973" : helpers.makeTestYear("America/Metlakatla", [ + ["1973-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1973-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1973-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1973-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1974" : helpers.makeTestYear("America/Metlakatla", [ + ["1974-01-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1974-01-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1974-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1974-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1975" : helpers.makeTestYear("America/Metlakatla", [ + ["1975-02-23T09:59:59+00:00", "01:59:59", "PST", 480], + ["1975-02-23T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1975-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1975-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1976" : helpers.makeTestYear("America/Metlakatla", [ + ["1976-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1976-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1976-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1976-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1977" : helpers.makeTestYear("America/Metlakatla", [ + ["1977-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1977-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1977-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1977-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1978" : helpers.makeTestYear("America/Metlakatla", [ + ["1978-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1978-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1978-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1978-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1979" : helpers.makeTestYear("America/Metlakatla", [ + ["1979-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1979-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1979-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1979-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("America/Metlakatla", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1980-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1980-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("America/Metlakatla", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("America/Metlakatla", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("America/Metlakatla", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "01:00:00", "MeST", 480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/mexico_city.js b/tests/zones/america/mexico_city.js new file mode 100644 index 00000000..fb67f1c0 --- /dev/null +++ b/tests/zones/america/mexico_city.js @@ -0,0 +1,360 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Mexico_City"] = { + "1922" : helpers.makeTestYear("America/Mexico_City", [ + ["1922-01-01T06:59:59+00:00", "00:23:23", "LMT", 23796 / 60], + ["1922-01-01T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1927" : helpers.makeTestYear("America/Mexico_City", [ + ["1927-06-11T05:59:59+00:00", "22:59:59", "MST", 420], + ["1927-06-11T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1930" : helpers.makeTestYear("America/Mexico_City", [ + ["1930-11-15T05:59:59+00:00", "23:59:59", "CST", 360], + ["1930-11-15T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1931" : helpers.makeTestYear("America/Mexico_City", [ + ["1931-05-02T05:59:59+00:00", "22:59:59", "MST", 420], + ["1931-05-02T06:00:00+00:00", "00:00:00", "CST", 360], + ["1931-10-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1931-10-01T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1932" : helpers.makeTestYear("America/Mexico_City", [ + ["1932-04-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1932-04-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1939" : helpers.makeTestYear("America/Mexico_City", [ + ["1939-02-05T05:59:59+00:00", "23:59:59", "CST", 360], + ["1939-02-05T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1939-06-25T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1939-06-25T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1940" : helpers.makeTestYear("America/Mexico_City", [ + ["1940-12-09T05:59:59+00:00", "23:59:59", "CST", 360], + ["1940-12-09T06:00:00+00:00", "01:00:00", "CDT", 300] + ]), + + "1941" : helpers.makeTestYear("America/Mexico_City", [ + ["1941-04-01T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1941-04-01T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1943" : helpers.makeTestYear("America/Mexico_City", [ + ["1943-12-16T05:59:59+00:00", "23:59:59", "CST", 360], + ["1943-12-16T06:00:00+00:00", "01:00:00", "CWT", 300] + ]), + + "1944" : helpers.makeTestYear("America/Mexico_City", [ + ["1944-05-01T04:59:59+00:00", "23:59:59", "CWT", 300], + ["1944-05-01T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1950" : helpers.makeTestYear("America/Mexico_City", [ + ["1950-02-12T05:59:59+00:00", "23:59:59", "CST", 360], + ["1950-02-12T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1950-07-30T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1950-07-30T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Mexico_City", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Mexico_City", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Mexico_City", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Mexico_City", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Mexico_City", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Mexico_City", [ + ["2001-05-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-05-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Mexico_City", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Mexico_City", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Mexico_City", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Mexico_City", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Mexico_City", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Mexico_City", [ + ["2007-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Mexico_City", [ + ["2008-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Mexico_City", [ + ["2009-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Mexico_City", [ + ["2010-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Mexico_City", [ + ["2011-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Mexico_City", [ + ["2012-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Mexico_City", [ + ["2013-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Mexico_City", [ + ["2014-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Mexico_City", [ + ["2015-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Mexico_City", [ + ["2016-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Mexico_City", [ + ["2017-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Mexico_City", [ + ["2018-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Mexico_City", [ + ["2019-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Mexico_City", [ + ["2020-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Mexico_City", [ + ["2021-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Mexico_City", [ + ["2022-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Mexico_City", [ + ["2023-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Mexico_City", [ + ["2024-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Mexico_City", [ + ["2025-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Mexico_City", [ + ["2026-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Mexico_City", [ + ["2027-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Mexico_City", [ + ["2028-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Mexico_City", [ + ["2029-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Mexico_City", [ + ["2030-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Mexico_City", [ + ["2031-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Mexico_City", [ + ["2032-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Mexico_City", [ + ["2033-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Mexico_City", [ + ["2034-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Mexico_City", [ + ["2035-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Mexico_City", [ + ["2036-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Mexico_City", [ + ["2037-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/miquelon.js b/tests/zones/america/miquelon.js new file mode 100644 index 00000000..74d91ad4 --- /dev/null +++ b/tests/zones/america/miquelon.js @@ -0,0 +1,372 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Miquelon"] = { + "1911" : helpers.makeTestYear("America/Miquelon", [ + ["1911-05-15T03:44:39+00:00", "23:59:59", "LMT", 13480 / 60], + ["1911-05-15T03:44:40+00:00", "23:44:40", "AST", 240] + ]), + + "1980" : helpers.makeTestYear("America/Miquelon", [ + ["1980-05-01T03:59:59+00:00", "23:59:59", "AST", 240], + ["1980-05-01T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1987" : helpers.makeTestYear("America/Miquelon", [ + ["1987-04-05T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1987-04-05T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1987-10-25T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1987-10-25T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1988" : helpers.makeTestYear("America/Miquelon", [ + ["1988-04-03T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1988-04-03T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1988-10-30T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1988-10-30T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1989" : helpers.makeTestYear("America/Miquelon", [ + ["1989-04-02T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1989-04-02T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1989-10-29T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1989-10-29T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1990" : helpers.makeTestYear("America/Miquelon", [ + ["1990-04-01T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1990-04-01T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1990-10-28T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1990-10-28T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1991" : helpers.makeTestYear("America/Miquelon", [ + ["1991-04-07T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1991-04-07T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1991-10-27T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1991-10-27T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1992" : helpers.makeTestYear("America/Miquelon", [ + ["1992-04-05T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1992-04-05T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1992-10-25T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1992-10-25T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1993" : helpers.makeTestYear("America/Miquelon", [ + ["1993-04-04T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1993-04-04T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1993-10-31T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1993-10-31T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1994" : helpers.makeTestYear("America/Miquelon", [ + ["1994-04-03T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1994-04-03T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1994-10-30T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1994-10-30T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1995" : helpers.makeTestYear("America/Miquelon", [ + ["1995-04-02T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1995-04-02T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1995-10-29T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1995-10-29T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1996" : helpers.makeTestYear("America/Miquelon", [ + ["1996-04-07T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1996-04-07T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1996-10-27T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1996-10-27T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1997" : helpers.makeTestYear("America/Miquelon", [ + ["1997-04-06T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1997-04-06T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1997-10-26T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1997-10-26T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1998" : helpers.makeTestYear("America/Miquelon", [ + ["1998-04-05T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1998-04-05T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1998-10-25T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1998-10-25T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "1999" : helpers.makeTestYear("America/Miquelon", [ + ["1999-04-04T04:59:59+00:00", "01:59:59", "PMST", 180], + ["1999-04-04T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["1999-10-31T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["1999-10-31T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Miquelon", [ + ["2000-04-02T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2000-04-02T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2000-10-29T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2000-10-29T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2001" : helpers.makeTestYear("America/Miquelon", [ + ["2001-04-01T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2001-04-01T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2001-10-28T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2001-10-28T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2002" : helpers.makeTestYear("America/Miquelon", [ + ["2002-04-07T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2002-04-07T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2002-10-27T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2002-10-27T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2003" : helpers.makeTestYear("America/Miquelon", [ + ["2003-04-06T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2003-04-06T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2003-10-26T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2003-10-26T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2004" : helpers.makeTestYear("America/Miquelon", [ + ["2004-04-04T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2004-04-04T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2004-10-31T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2004-10-31T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2005" : helpers.makeTestYear("America/Miquelon", [ + ["2005-04-03T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2005-04-03T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2005-10-30T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2005-10-30T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2006" : helpers.makeTestYear("America/Miquelon", [ + ["2006-04-02T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2006-04-02T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2006-10-29T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2006-10-29T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2007" : helpers.makeTestYear("America/Miquelon", [ + ["2007-03-11T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2007-03-11T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2007-11-04T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2007-11-04T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2008" : helpers.makeTestYear("America/Miquelon", [ + ["2008-03-09T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2008-03-09T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2008-11-02T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2008-11-02T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2009" : helpers.makeTestYear("America/Miquelon", [ + ["2009-03-08T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2009-03-08T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2009-11-01T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2009-11-01T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2010" : helpers.makeTestYear("America/Miquelon", [ + ["2010-03-14T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2010-03-14T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2010-11-07T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2010-11-07T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2011" : helpers.makeTestYear("America/Miquelon", [ + ["2011-03-13T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2011-03-13T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2011-11-06T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2011-11-06T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2012" : helpers.makeTestYear("America/Miquelon", [ + ["2012-03-11T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2012-03-11T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2012-11-04T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2012-11-04T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2013" : helpers.makeTestYear("America/Miquelon", [ + ["2013-03-10T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2013-03-10T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2013-11-03T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2013-11-03T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2014" : helpers.makeTestYear("America/Miquelon", [ + ["2014-03-09T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2014-03-09T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2014-11-02T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2014-11-02T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2015" : helpers.makeTestYear("America/Miquelon", [ + ["2015-03-08T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2015-03-08T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2015-11-01T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2015-11-01T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2016" : helpers.makeTestYear("America/Miquelon", [ + ["2016-03-13T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2016-03-13T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2016-11-06T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2016-11-06T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2017" : helpers.makeTestYear("America/Miquelon", [ + ["2017-03-12T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2017-03-12T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2017-11-05T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2017-11-05T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2018" : helpers.makeTestYear("America/Miquelon", [ + ["2018-03-11T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2018-03-11T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2018-11-04T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2018-11-04T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2019" : helpers.makeTestYear("America/Miquelon", [ + ["2019-03-10T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2019-03-10T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2019-11-03T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2019-11-03T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2020" : helpers.makeTestYear("America/Miquelon", [ + ["2020-03-08T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2020-03-08T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2020-11-01T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2020-11-01T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2021" : helpers.makeTestYear("America/Miquelon", [ + ["2021-03-14T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2021-03-14T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2021-11-07T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2021-11-07T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2022" : helpers.makeTestYear("America/Miquelon", [ + ["2022-03-13T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2022-03-13T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2022-11-06T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2022-11-06T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2023" : helpers.makeTestYear("America/Miquelon", [ + ["2023-03-12T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2023-03-12T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2023-11-05T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2023-11-05T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2024" : helpers.makeTestYear("America/Miquelon", [ + ["2024-03-10T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2024-03-10T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2024-11-03T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2024-11-03T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2025" : helpers.makeTestYear("America/Miquelon", [ + ["2025-03-09T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2025-03-09T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2025-11-02T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2025-11-02T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2026" : helpers.makeTestYear("America/Miquelon", [ + ["2026-03-08T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2026-03-08T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2026-11-01T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2026-11-01T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2027" : helpers.makeTestYear("America/Miquelon", [ + ["2027-03-14T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2027-03-14T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2027-11-07T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2027-11-07T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2028" : helpers.makeTestYear("America/Miquelon", [ + ["2028-03-12T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2028-03-12T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2028-11-05T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2028-11-05T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2029" : helpers.makeTestYear("America/Miquelon", [ + ["2029-03-11T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2029-03-11T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2029-11-04T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2029-11-04T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2030" : helpers.makeTestYear("America/Miquelon", [ + ["2030-03-10T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2030-03-10T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2030-11-03T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2030-11-03T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2031" : helpers.makeTestYear("America/Miquelon", [ + ["2031-03-09T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2031-03-09T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2031-11-02T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2031-11-02T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2032" : helpers.makeTestYear("America/Miquelon", [ + ["2032-03-14T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2032-03-14T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2032-11-07T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2032-11-07T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2033" : helpers.makeTestYear("America/Miquelon", [ + ["2033-03-13T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2033-03-13T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2033-11-06T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2033-11-06T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2034" : helpers.makeTestYear("America/Miquelon", [ + ["2034-03-12T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2034-03-12T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2034-11-05T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2034-11-05T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2035" : helpers.makeTestYear("America/Miquelon", [ + ["2035-03-11T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2035-03-11T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2035-11-04T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2035-11-04T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2036" : helpers.makeTestYear("America/Miquelon", [ + ["2036-03-09T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2036-03-09T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2036-11-02T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2036-11-02T04:00:00+00:00", "01:00:00", "PMST", 180] + ]), + + "2037" : helpers.makeTestYear("America/Miquelon", [ + ["2037-03-08T04:59:59+00:00", "01:59:59", "PMST", 180], + ["2037-03-08T05:00:00+00:00", "03:00:00", "PMDT", 120], + ["2037-11-01T03:59:59+00:00", "01:59:59", "PMDT", 120], + ["2037-11-01T04:00:00+00:00", "01:00:00", "PMST", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/moncton.js b/tests/zones/america/moncton.js new file mode 100644 index 00000000..3cd5c731 --- /dev/null +++ b/tests/zones/america/moncton.js @@ -0,0 +1,729 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Moncton"] = { + "1902" : helpers.makeTestYear("America/Moncton", [ + ["1902-06-15T04:59:59+00:00", "23:59:59", "EST", 300], + ["1902-06-15T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1918" : helpers.makeTestYear("America/Moncton", [ + ["1918-04-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["1918-04-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1918-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1918-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1933" : helpers.makeTestYear("America/Moncton", [ + ["1933-06-11T04:59:59+00:00", "00:59:59", "AST", 240], + ["1933-06-11T05:00:00+00:00", "02:00:00", "ADT", 180], + ["1933-09-10T03:59:59+00:00", "00:59:59", "ADT", 180], + ["1933-09-10T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1934" : helpers.makeTestYear("America/Moncton", [ + ["1934-06-10T04:59:59+00:00", "00:59:59", "AST", 240], + ["1934-06-10T05:00:00+00:00", "02:00:00", "ADT", 180], + ["1934-09-09T03:59:59+00:00", "00:59:59", "ADT", 180], + ["1934-09-09T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1935" : helpers.makeTestYear("America/Moncton", [ + ["1935-06-09T04:59:59+00:00", "00:59:59", "AST", 240], + ["1935-06-09T05:00:00+00:00", "02:00:00", "ADT", 180], + ["1935-09-08T03:59:59+00:00", "00:59:59", "ADT", 180], + ["1935-09-08T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1936" : helpers.makeTestYear("America/Moncton", [ + ["1936-06-07T04:59:59+00:00", "00:59:59", "AST", 240], + ["1936-06-07T05:00:00+00:00", "02:00:00", "ADT", 180], + ["1936-09-06T03:59:59+00:00", "00:59:59", "ADT", 180], + ["1936-09-06T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1937" : helpers.makeTestYear("America/Moncton", [ + ["1937-06-06T04:59:59+00:00", "00:59:59", "AST", 240], + ["1937-06-06T05:00:00+00:00", "02:00:00", "ADT", 180], + ["1937-09-05T03:59:59+00:00", "00:59:59", "ADT", 180], + ["1937-09-05T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1938" : helpers.makeTestYear("America/Moncton", [ + ["1938-06-05T04:59:59+00:00", "00:59:59", "AST", 240], + ["1938-06-05T05:00:00+00:00", "02:00:00", "ADT", 180], + ["1938-09-04T03:59:59+00:00", "00:59:59", "ADT", 180], + ["1938-09-04T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1939" : helpers.makeTestYear("America/Moncton", [ + ["1939-05-27T04:59:59+00:00", "00:59:59", "AST", 240], + ["1939-05-27T05:00:00+00:00", "02:00:00", "ADT", 180], + ["1939-09-23T03:59:59+00:00", "00:59:59", "ADT", 180], + ["1939-09-23T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1940" : helpers.makeTestYear("America/Moncton", [ + ["1940-05-19T04:59:59+00:00", "00:59:59", "AST", 240], + ["1940-05-19T05:00:00+00:00", "02:00:00", "ADT", 180], + ["1940-09-21T03:59:59+00:00", "00:59:59", "ADT", 180], + ["1940-09-21T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1941" : helpers.makeTestYear("America/Moncton", [ + ["1941-05-04T04:59:59+00:00", "00:59:59", "AST", 240], + ["1941-05-04T05:00:00+00:00", "02:00:00", "ADT", 180], + ["1941-09-27T03:59:59+00:00", "00:59:59", "ADT", 180], + ["1941-09-27T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1942" : helpers.makeTestYear("America/Moncton", [ + ["1942-02-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["1942-02-09T06:00:00+00:00", "03:00:00", "AWT", 180] + ]), + + "1945" : helpers.makeTestYear("America/Moncton", [ + ["1945-08-14T22:59:59+00:00", "19:59:59", "AWT", 180], + ["1945-08-14T23:00:00+00:00", "20:00:00", "APT", 180], + ["1945-09-30T04:59:59+00:00", "01:59:59", "APT", 180], + ["1945-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1946" : helpers.makeTestYear("America/Moncton", [ + ["1946-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1946-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1946-09-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1946-09-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1947" : helpers.makeTestYear("America/Moncton", [ + ["1947-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1947-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1947-09-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1947-09-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1948" : helpers.makeTestYear("America/Moncton", [ + ["1948-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1948-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1948-09-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1948-09-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1949" : helpers.makeTestYear("America/Moncton", [ + ["1949-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1949-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1949-09-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1949-09-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1950" : helpers.makeTestYear("America/Moncton", [ + ["1950-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1950-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1950-09-24T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1950-09-24T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1951" : helpers.makeTestYear("America/Moncton", [ + ["1951-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1951-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1951-09-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1951-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1952" : helpers.makeTestYear("America/Moncton", [ + ["1952-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1952-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1952-09-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1952-09-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1953" : helpers.makeTestYear("America/Moncton", [ + ["1953-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1953-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1953-09-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1953-09-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1954" : helpers.makeTestYear("America/Moncton", [ + ["1954-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1954-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1954-09-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1954-09-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1955" : helpers.makeTestYear("America/Moncton", [ + ["1955-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1955-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1955-09-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1955-09-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1956" : helpers.makeTestYear("America/Moncton", [ + ["1956-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1956-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1956-09-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1956-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1957" : helpers.makeTestYear("America/Moncton", [ + ["1957-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1957-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1957-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1957-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1958" : helpers.makeTestYear("America/Moncton", [ + ["1958-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1958-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1958-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1958-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1959" : helpers.makeTestYear("America/Moncton", [ + ["1959-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1959-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1959-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1959-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1960" : helpers.makeTestYear("America/Moncton", [ + ["1960-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1960-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1960-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1960-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1961" : helpers.makeTestYear("America/Moncton", [ + ["1961-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1961-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1961-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1961-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1962" : helpers.makeTestYear("America/Moncton", [ + ["1962-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1962-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1962-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1962-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1963" : helpers.makeTestYear("America/Moncton", [ + ["1963-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1963-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1963-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1963-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1964" : helpers.makeTestYear("America/Moncton", [ + ["1964-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1964-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1964-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1964-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1965" : helpers.makeTestYear("America/Moncton", [ + ["1965-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1965-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1965-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1965-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1966" : helpers.makeTestYear("America/Moncton", [ + ["1966-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1966-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1966-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1966-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1967" : helpers.makeTestYear("America/Moncton", [ + ["1967-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1967-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1967-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1967-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1968" : helpers.makeTestYear("America/Moncton", [ + ["1968-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1968-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1968-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1968-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1969" : helpers.makeTestYear("America/Moncton", [ + ["1969-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1969-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1969-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1969-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1970" : helpers.makeTestYear("America/Moncton", [ + ["1970-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1970-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1970-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1970-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1971" : helpers.makeTestYear("America/Moncton", [ + ["1971-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1971-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1971-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1971-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1972" : helpers.makeTestYear("America/Moncton", [ + ["1972-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1972-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1972-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1972-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1974" : helpers.makeTestYear("America/Moncton", [ + ["1974-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1974-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1974-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1974-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1975" : helpers.makeTestYear("America/Moncton", [ + ["1975-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1975-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1975-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1975-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1976" : helpers.makeTestYear("America/Moncton", [ + ["1976-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1976-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1976-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1976-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1977" : helpers.makeTestYear("America/Moncton", [ + ["1977-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1977-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1977-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1977-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1978" : helpers.makeTestYear("America/Moncton", [ + ["1978-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1978-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1978-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1978-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1979" : helpers.makeTestYear("America/Moncton", [ + ["1979-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1979-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1979-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1979-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1980" : helpers.makeTestYear("America/Moncton", [ + ["1980-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1980-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1980-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1980-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1981" : helpers.makeTestYear("America/Moncton", [ + ["1981-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1981-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1981-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1981-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1982" : helpers.makeTestYear("America/Moncton", [ + ["1982-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1982-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1982-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1982-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1983" : helpers.makeTestYear("America/Moncton", [ + ["1983-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1983-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1983-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1983-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1984" : helpers.makeTestYear("America/Moncton", [ + ["1984-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1984-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1984-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1984-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1985" : helpers.makeTestYear("America/Moncton", [ + ["1985-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1985-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1985-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1985-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1986" : helpers.makeTestYear("America/Moncton", [ + ["1986-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1986-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1986-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1986-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1987" : helpers.makeTestYear("America/Moncton", [ + ["1987-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1987-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1987-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1987-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1988" : helpers.makeTestYear("America/Moncton", [ + ["1988-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1988-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1988-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1988-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1989" : helpers.makeTestYear("America/Moncton", [ + ["1989-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1989-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1989-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1989-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1990" : helpers.makeTestYear("America/Moncton", [ + ["1990-04-01T05:59:59+00:00", "01:59:59", "AST", 240], + ["1990-04-01T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1990-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1990-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1991" : helpers.makeTestYear("America/Moncton", [ + ["1991-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["1991-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1991-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1991-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1992" : helpers.makeTestYear("America/Moncton", [ + ["1992-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1992-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1992-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1992-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1993" : helpers.makeTestYear("America/Moncton", [ + ["1993-04-04T04:00:59+00:00", "00:00:59", "AST", 240], + ["1993-04-04T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1993-10-31T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1993-10-31T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1994" : helpers.makeTestYear("America/Moncton", [ + ["1994-04-03T04:00:59+00:00", "00:00:59", "AST", 240], + ["1994-04-03T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1994-10-30T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1994-10-30T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1995" : helpers.makeTestYear("America/Moncton", [ + ["1995-04-02T04:00:59+00:00", "00:00:59", "AST", 240], + ["1995-04-02T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1995-10-29T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1995-10-29T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1996" : helpers.makeTestYear("America/Moncton", [ + ["1996-04-07T04:00:59+00:00", "00:00:59", "AST", 240], + ["1996-04-07T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1996-10-27T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1996-10-27T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1997" : helpers.makeTestYear("America/Moncton", [ + ["1997-04-06T04:00:59+00:00", "00:00:59", "AST", 240], + ["1997-04-06T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1997-10-26T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1997-10-26T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1998" : helpers.makeTestYear("America/Moncton", [ + ["1998-04-05T04:00:59+00:00", "00:00:59", "AST", 240], + ["1998-04-05T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1998-10-25T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1998-10-25T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "1999" : helpers.makeTestYear("America/Moncton", [ + ["1999-04-04T04:00:59+00:00", "00:00:59", "AST", 240], + ["1999-04-04T04:01:00+00:00", "01:01:00", "ADT", 180], + ["1999-10-31T03:00:59+00:00", "00:00:59", "ADT", 180], + ["1999-10-31T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2000" : helpers.makeTestYear("America/Moncton", [ + ["2000-04-02T04:00:59+00:00", "00:00:59", "AST", 240], + ["2000-04-02T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2000-10-29T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2000-10-29T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2001" : helpers.makeTestYear("America/Moncton", [ + ["2001-04-01T04:00:59+00:00", "00:00:59", "AST", 240], + ["2001-04-01T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2001-10-28T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2001-10-28T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2002" : helpers.makeTestYear("America/Moncton", [ + ["2002-04-07T04:00:59+00:00", "00:00:59", "AST", 240], + ["2002-04-07T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2002-10-27T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2002-10-27T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2003" : helpers.makeTestYear("America/Moncton", [ + ["2003-04-06T04:00:59+00:00", "00:00:59", "AST", 240], + ["2003-04-06T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2003-10-26T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2003-10-26T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2004" : helpers.makeTestYear("America/Moncton", [ + ["2004-04-04T04:00:59+00:00", "00:00:59", "AST", 240], + ["2004-04-04T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2004-10-31T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2004-10-31T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2005" : helpers.makeTestYear("America/Moncton", [ + ["2005-04-03T04:00:59+00:00", "00:00:59", "AST", 240], + ["2005-04-03T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2005-10-30T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2005-10-30T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2006" : helpers.makeTestYear("America/Moncton", [ + ["2006-04-02T04:00:59+00:00", "00:00:59", "AST", 240], + ["2006-04-02T04:01:00+00:00", "01:01:00", "ADT", 180], + ["2006-10-29T03:00:59+00:00", "00:00:59", "ADT", 180], + ["2006-10-29T03:01:00+00:00", "23:01:00", "AST", 240] + ]), + + "2007" : helpers.makeTestYear("America/Moncton", [ + ["2007-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2007-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2007-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2007-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2008" : helpers.makeTestYear("America/Moncton", [ + ["2008-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2008-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2008-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2008-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2009" : helpers.makeTestYear("America/Moncton", [ + ["2009-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2009-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2009-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2009-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2010" : helpers.makeTestYear("America/Moncton", [ + ["2010-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2010-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2010-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2010-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2011" : helpers.makeTestYear("America/Moncton", [ + ["2011-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2011-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2011-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2011-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2012" : helpers.makeTestYear("America/Moncton", [ + ["2012-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2012-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2012-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2012-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2013" : helpers.makeTestYear("America/Moncton", [ + ["2013-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2013-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2013-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2013-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2014" : helpers.makeTestYear("America/Moncton", [ + ["2014-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2014-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2014-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2014-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2015" : helpers.makeTestYear("America/Moncton", [ + ["2015-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2015-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2015-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2015-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2016" : helpers.makeTestYear("America/Moncton", [ + ["2016-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2016-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2016-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2016-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2017" : helpers.makeTestYear("America/Moncton", [ + ["2017-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2017-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2017-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2017-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2018" : helpers.makeTestYear("America/Moncton", [ + ["2018-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2018-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2018-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2018-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2019" : helpers.makeTestYear("America/Moncton", [ + ["2019-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2019-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2019-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2019-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2020" : helpers.makeTestYear("America/Moncton", [ + ["2020-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2020-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2020-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2020-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2021" : helpers.makeTestYear("America/Moncton", [ + ["2021-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2021-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2021-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2021-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2022" : helpers.makeTestYear("America/Moncton", [ + ["2022-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2022-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2022-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2022-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2023" : helpers.makeTestYear("America/Moncton", [ + ["2023-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2023-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2023-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2023-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2024" : helpers.makeTestYear("America/Moncton", [ + ["2024-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2024-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2024-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2024-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2025" : helpers.makeTestYear("America/Moncton", [ + ["2025-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2025-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2025-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2025-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2026" : helpers.makeTestYear("America/Moncton", [ + ["2026-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2026-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2026-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2026-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2027" : helpers.makeTestYear("America/Moncton", [ + ["2027-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2027-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2027-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2027-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2028" : helpers.makeTestYear("America/Moncton", [ + ["2028-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2028-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2028-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2028-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2029" : helpers.makeTestYear("America/Moncton", [ + ["2029-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2029-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2029-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2029-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2030" : helpers.makeTestYear("America/Moncton", [ + ["2030-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2030-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2030-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2030-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2031" : helpers.makeTestYear("America/Moncton", [ + ["2031-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2031-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2031-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2031-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2032" : helpers.makeTestYear("America/Moncton", [ + ["2032-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2032-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2032-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2032-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2033" : helpers.makeTestYear("America/Moncton", [ + ["2033-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2033-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2033-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2033-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2034" : helpers.makeTestYear("America/Moncton", [ + ["2034-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2034-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2034-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2034-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2035" : helpers.makeTestYear("America/Moncton", [ + ["2035-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2035-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2035-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2035-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2036" : helpers.makeTestYear("America/Moncton", [ + ["2036-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2036-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2036-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2036-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2037" : helpers.makeTestYear("America/Moncton", [ + ["2037-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2037-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2037-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2037-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/monterrey.js b/tests/zones/america/monterrey.js new file mode 100644 index 00000000..cf43bf47 --- /dev/null +++ b/tests/zones/america/monterrey.js @@ -0,0 +1,311 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Monterrey"] = { + "1922" : helpers.makeTestYear("America/Monterrey", [ + ["1922-01-01T05:59:59+00:00", "23:18:43", "LMT", 24076 / 60], + ["1922-01-01T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Monterrey", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Monterrey", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Monterrey", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Monterrey", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Monterrey", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Monterrey", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Monterrey", [ + ["2001-05-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-05-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Monterrey", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Monterrey", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Monterrey", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Monterrey", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Monterrey", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Monterrey", [ + ["2007-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Monterrey", [ + ["2008-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Monterrey", [ + ["2009-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Monterrey", [ + ["2010-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Monterrey", [ + ["2011-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Monterrey", [ + ["2012-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Monterrey", [ + ["2013-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Monterrey", [ + ["2014-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Monterrey", [ + ["2015-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Monterrey", [ + ["2016-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Monterrey", [ + ["2017-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Monterrey", [ + ["2018-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Monterrey", [ + ["2019-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Monterrey", [ + ["2020-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Monterrey", [ + ["2021-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Monterrey", [ + ["2022-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Monterrey", [ + ["2023-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Monterrey", [ + ["2024-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Monterrey", [ + ["2025-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Monterrey", [ + ["2026-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Monterrey", [ + ["2027-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Monterrey", [ + ["2028-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Monterrey", [ + ["2029-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Monterrey", [ + ["2030-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Monterrey", [ + ["2031-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Monterrey", [ + ["2032-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Monterrey", [ + ["2033-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Monterrey", [ + ["2034-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Monterrey", [ + ["2035-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Monterrey", [ + ["2036-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Monterrey", [ + ["2037-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/montevideo.js b/tests/zones/america/montevideo.js new file mode 100644 index 00000000..0bbc0ad5 --- /dev/null +++ b/tests/zones/america/montevideo.js @@ -0,0 +1,483 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Montevideo"] = { + "1920" : helpers.makeTestYear("America/Montevideo", [ + ["1920-05-01T03:44:43+00:00", "23:59:59", "MMT", 13484 / 60], + ["1920-05-01T03:44:44+00:00", "00:14:44", "UYT", 210] + ]), + + "1923" : helpers.makeTestYear("America/Montevideo", [ + ["1923-10-02T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1923-10-02T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1924" : helpers.makeTestYear("America/Montevideo", [ + ["1924-04-01T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1924-04-01T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1924-10-01T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1924-10-01T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1925" : helpers.makeTestYear("America/Montevideo", [ + ["1925-04-01T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1925-04-01T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1925-10-01T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1925-10-01T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1926" : helpers.makeTestYear("America/Montevideo", [ + ["1926-04-01T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1926-04-01T03:00:00+00:00", "23:30:00", "UYT", 210] + ]), + + "1933" : helpers.makeTestYear("America/Montevideo", [ + ["1933-10-29T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1933-10-29T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1934" : helpers.makeTestYear("America/Montevideo", [ + ["1934-04-01T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1934-04-01T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1934-10-28T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1934-10-28T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1935" : helpers.makeTestYear("America/Montevideo", [ + ["1935-03-31T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1935-03-31T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1935-10-27T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1935-10-27T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1936" : helpers.makeTestYear("America/Montevideo", [ + ["1936-03-29T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1936-03-29T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1936-11-01T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1936-11-01T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1937" : helpers.makeTestYear("America/Montevideo", [ + ["1937-03-28T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1937-03-28T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1937-10-31T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1937-10-31T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1938" : helpers.makeTestYear("America/Montevideo", [ + ["1938-03-27T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1938-03-27T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1938-10-30T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1938-10-30T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1939" : helpers.makeTestYear("America/Montevideo", [ + ["1939-03-26T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1939-03-26T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1939-10-29T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1939-10-29T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1940" : helpers.makeTestYear("America/Montevideo", [ + ["1940-03-31T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1940-03-31T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1940-10-27T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1940-10-27T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1941" : helpers.makeTestYear("America/Montevideo", [ + ["1941-03-30T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1941-03-30T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1941-08-01T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1941-08-01T03:30:00+00:00", "00:30:00", "UYHST", 180] + ]), + + "1942" : helpers.makeTestYear("America/Montevideo", [ + ["1942-01-01T02:59:59+00:00", "23:59:59", "UYHST", 180], + ["1942-01-01T03:00:00+00:00", "23:30:00", "UYT", 210], + ["1942-12-14T03:29:59+00:00", "23:59:59", "UYT", 210], + ["1942-12-14T03:30:00+00:00", "01:30:00", "UYST", 120] + ]), + + "1943" : helpers.makeTestYear("America/Montevideo", [ + ["1943-03-14T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1943-03-14T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1959" : helpers.makeTestYear("America/Montevideo", [ + ["1959-05-24T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1959-05-24T03:00:00+00:00", "01:00:00", "UYST", 120], + ["1959-11-15T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1959-11-15T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1960" : helpers.makeTestYear("America/Montevideo", [ + ["1960-01-17T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1960-01-17T03:00:00+00:00", "01:00:00", "UYST", 120], + ["1960-03-06T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1960-03-06T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1965" : helpers.makeTestYear("America/Montevideo", [ + ["1965-04-04T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1965-04-04T03:00:00+00:00", "01:00:00", "UYST", 120], + ["1965-09-26T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1965-09-26T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1966" : helpers.makeTestYear("America/Montevideo", [ + ["1966-04-03T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1966-04-03T03:00:00+00:00", "01:00:00", "UYST", 120], + ["1966-10-31T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1966-10-31T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1967" : helpers.makeTestYear("America/Montevideo", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1967-04-02T03:00:00+00:00", "01:00:00", "UYST", 120], + ["1967-10-31T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1967-10-31T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1968" : helpers.makeTestYear("America/Montevideo", [ + ["1968-05-27T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1968-05-27T03:00:00+00:00", "00:30:00", "UYHST", 150], + ["1968-12-02T02:29:59+00:00", "23:59:59", "UYHST", 150], + ["1968-12-02T02:30:00+00:00", "23:30:00", "UYT", 180] + ]), + + "1969" : helpers.makeTestYear("America/Montevideo", [ + ["1969-05-27T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1969-05-27T03:00:00+00:00", "00:30:00", "UYHST", 150], + ["1969-12-02T02:29:59+00:00", "23:59:59", "UYHST", 150], + ["1969-12-02T02:30:00+00:00", "23:30:00", "UYT", 180] + ]), + + "1970" : helpers.makeTestYear("America/Montevideo", [ + ["1970-05-27T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1970-05-27T03:00:00+00:00", "00:30:00", "UYHST", 150], + ["1970-12-02T02:29:59+00:00", "23:59:59", "UYHST", 150], + ["1970-12-02T02:30:00+00:00", "23:30:00", "UYT", 180] + ]), + + "1972" : helpers.makeTestYear("America/Montevideo", [ + ["1972-04-24T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1972-04-24T03:00:00+00:00", "01:00:00", "UYST", 120], + ["1972-08-15T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1972-08-15T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1974" : helpers.makeTestYear("America/Montevideo", [ + ["1974-03-10T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1974-03-10T03:00:00+00:00", "00:30:00", "UYHST", 150], + ["1974-12-22T02:29:59+00:00", "23:59:59", "UYHST", 150], + ["1974-12-22T02:30:00+00:00", "00:30:00", "UYST", 120] + ]), + + "1976" : helpers.makeTestYear("America/Montevideo", [ + ["1976-10-01T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1976-10-01T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1977" : helpers.makeTestYear("America/Montevideo", [ + ["1977-12-04T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1977-12-04T03:00:00+00:00", "01:00:00", "UYST", 120] + ]), + + "1978" : helpers.makeTestYear("America/Montevideo", [ + ["1978-04-01T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1978-04-01T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1979" : helpers.makeTestYear("America/Montevideo", [ + ["1979-10-01T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1979-10-01T03:00:00+00:00", "01:00:00", "UYST", 120] + ]), + + "1980" : helpers.makeTestYear("America/Montevideo", [ + ["1980-05-01T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1980-05-01T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "1987" : helpers.makeTestYear("America/Montevideo", [ + ["1987-12-14T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1987-12-14T03:00:00+00:00", "01:00:00", "UYST", 120] + ]), + + "1988" : helpers.makeTestYear("America/Montevideo", [ + ["1988-03-14T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1988-03-14T02:00:00+00:00", "23:00:00", "UYT", 180], + ["1988-12-11T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1988-12-11T03:00:00+00:00", "01:00:00", "UYST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Montevideo", [ + ["1989-03-12T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1989-03-12T02:00:00+00:00", "23:00:00", "UYT", 180], + ["1989-10-29T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1989-10-29T03:00:00+00:00", "01:00:00", "UYST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Montevideo", [ + ["1990-03-04T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1990-03-04T02:00:00+00:00", "23:00:00", "UYT", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "UYST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Montevideo", [ + ["1991-03-03T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1991-03-03T02:00:00+00:00", "23:00:00", "UYT", 180], + ["1991-10-27T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1991-10-27T03:00:00+00:00", "01:00:00", "UYST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Montevideo", [ + ["1992-03-01T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1992-03-01T02:00:00+00:00", "23:00:00", "UYT", 180], + ["1992-10-18T02:59:59+00:00", "23:59:59", "UYT", 180], + ["1992-10-18T03:00:00+00:00", "01:00:00", "UYST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Montevideo", [ + ["1993-02-28T01:59:59+00:00", "23:59:59", "UYST", 120], + ["1993-02-28T02:00:00+00:00", "23:00:00", "UYT", 180] + ]), + + "2004" : helpers.makeTestYear("America/Montevideo", [ + ["2004-09-19T02:59:59+00:00", "23:59:59", "UYT", 180], + ["2004-09-19T03:00:00+00:00", "01:00:00", "UYST", 120] + ]), + + "2005" : helpers.makeTestYear("America/Montevideo", [ + ["2005-03-27T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2005-03-27T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2005-10-09T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2005-10-09T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2006" : helpers.makeTestYear("America/Montevideo", [ + ["2006-03-12T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2006-03-12T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2006-10-01T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2006-10-01T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2007" : helpers.makeTestYear("America/Montevideo", [ + ["2007-03-11T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2007-03-11T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2007-10-07T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2007-10-07T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Montevideo", [ + ["2008-03-09T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2008-03-09T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2008-10-05T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2008-10-05T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2009" : helpers.makeTestYear("America/Montevideo", [ + ["2009-03-08T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2009-03-08T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2009-10-04T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2009-10-04T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2010" : helpers.makeTestYear("America/Montevideo", [ + ["2010-03-14T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2010-03-14T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2010-10-03T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2010-10-03T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2011" : helpers.makeTestYear("America/Montevideo", [ + ["2011-03-13T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2011-03-13T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2011-10-02T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2011-10-02T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2012" : helpers.makeTestYear("America/Montevideo", [ + ["2012-03-11T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2012-03-11T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2012-10-07T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2012-10-07T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2013" : helpers.makeTestYear("America/Montevideo", [ + ["2013-03-10T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2013-03-10T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2013-10-06T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2013-10-06T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2014" : helpers.makeTestYear("America/Montevideo", [ + ["2014-03-09T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2014-03-09T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2014-10-05T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2014-10-05T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2015" : helpers.makeTestYear("America/Montevideo", [ + ["2015-03-08T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2015-03-08T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2015-10-04T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2015-10-04T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2016" : helpers.makeTestYear("America/Montevideo", [ + ["2016-03-13T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2016-03-13T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2016-10-02T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2016-10-02T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2017" : helpers.makeTestYear("America/Montevideo", [ + ["2017-03-12T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2017-03-12T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2017-10-01T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2017-10-01T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2018" : helpers.makeTestYear("America/Montevideo", [ + ["2018-03-11T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2018-03-11T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2018-10-07T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2018-10-07T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2019" : helpers.makeTestYear("America/Montevideo", [ + ["2019-03-10T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2019-03-10T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2019-10-06T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2019-10-06T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2020" : helpers.makeTestYear("America/Montevideo", [ + ["2020-03-08T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2020-03-08T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2020-10-04T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2020-10-04T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2021" : helpers.makeTestYear("America/Montevideo", [ + ["2021-03-14T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2021-03-14T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2021-10-03T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2021-10-03T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2022" : helpers.makeTestYear("America/Montevideo", [ + ["2022-03-13T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2022-03-13T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2022-10-02T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2022-10-02T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2023" : helpers.makeTestYear("America/Montevideo", [ + ["2023-03-12T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2023-03-12T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2023-10-01T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2023-10-01T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2024" : helpers.makeTestYear("America/Montevideo", [ + ["2024-03-10T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2024-03-10T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2024-10-06T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2024-10-06T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2025" : helpers.makeTestYear("America/Montevideo", [ + ["2025-03-09T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2025-03-09T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2025-10-05T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2025-10-05T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2026" : helpers.makeTestYear("America/Montevideo", [ + ["2026-03-08T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2026-03-08T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2026-10-04T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2026-10-04T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2027" : helpers.makeTestYear("America/Montevideo", [ + ["2027-03-14T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2027-03-14T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2027-10-03T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2027-10-03T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2028" : helpers.makeTestYear("America/Montevideo", [ + ["2028-03-12T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2028-03-12T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2028-10-01T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2028-10-01T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2029" : helpers.makeTestYear("America/Montevideo", [ + ["2029-03-11T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2029-03-11T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2029-10-07T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2029-10-07T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2030" : helpers.makeTestYear("America/Montevideo", [ + ["2030-03-10T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2030-03-10T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2030-10-06T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2030-10-06T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2031" : helpers.makeTestYear("America/Montevideo", [ + ["2031-03-09T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2031-03-09T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2031-10-05T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2031-10-05T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2032" : helpers.makeTestYear("America/Montevideo", [ + ["2032-03-14T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2032-03-14T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2032-10-03T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2032-10-03T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2033" : helpers.makeTestYear("America/Montevideo", [ + ["2033-03-13T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2033-03-13T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2033-10-02T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2033-10-02T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2034" : helpers.makeTestYear("America/Montevideo", [ + ["2034-03-12T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2034-03-12T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2034-10-01T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2034-10-01T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2035" : helpers.makeTestYear("America/Montevideo", [ + ["2035-03-11T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2035-03-11T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2035-10-07T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2035-10-07T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2036" : helpers.makeTestYear("America/Montevideo", [ + ["2036-03-09T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2036-03-09T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2036-10-05T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2036-10-05T05:00:00+00:00", "03:00:00", "UYST", 120] + ]), + + "2037" : helpers.makeTestYear("America/Montevideo", [ + ["2037-03-08T03:59:59+00:00", "01:59:59", "UYST", 120], + ["2037-03-08T04:00:00+00:00", "01:00:00", "UYT", 180], + ["2037-10-04T04:59:59+00:00", "01:59:59", "UYT", 180], + ["2037-10-04T05:00:00+00:00", "03:00:00", "UYST", 120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/montreal.js b/tests/zones/america/montreal.js new file mode 100644 index 00000000..381e4332 --- /dev/null +++ b/tests/zones/america/montreal.js @@ -0,0 +1,820 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Montreal"] = { + "1917" : helpers.makeTestYear("America/Montreal", [ + ["1917-03-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1917-03-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1917-04-24T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1917-04-24T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1918" : helpers.makeTestYear("America/Montreal", [ + ["1918-04-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["1918-04-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1918-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1918-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1919" : helpers.makeTestYear("America/Montreal", [ + ["1919-03-31T07:29:59+00:00", "02:29:59", "EST", 300], + ["1919-03-31T07:30:00+00:00", "03:30:00", "EDT", 240], + ["1919-10-25T06:29:59+00:00", "02:29:59", "EDT", 240], + ["1919-10-25T06:30:00+00:00", "01:30:00", "EST", 300] + ]), + + "1920" : helpers.makeTestYear("America/Montreal", [ + ["1920-05-02T07:29:59+00:00", "02:29:59", "EST", 300], + ["1920-05-02T07:30:00+00:00", "03:30:00", "EDT", 240], + ["1920-10-03T06:29:59+00:00", "02:29:59", "EDT", 240], + ["1920-10-03T06:30:00+00:00", "01:30:00", "EST", 300] + ]), + + "1921" : helpers.makeTestYear("America/Montreal", [ + ["1921-05-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1921-05-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1921-10-02T06:29:59+00:00", "02:29:59", "EDT", 240], + ["1921-10-02T06:30:00+00:00", "01:30:00", "EST", 300] + ]), + + "1922" : helpers.makeTestYear("America/Montreal", [ + ["1922-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1922-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1922-10-01T06:29:59+00:00", "02:29:59", "EDT", 240], + ["1922-10-01T06:30:00+00:00", "01:30:00", "EST", 300] + ]), + + "1924" : helpers.makeTestYear("America/Montreal", [ + ["1924-05-17T06:59:59+00:00", "01:59:59", "EST", 300], + ["1924-05-17T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1924-09-28T06:29:59+00:00", "02:29:59", "EDT", 240], + ["1924-09-28T06:30:00+00:00", "01:30:00", "EST", 300] + ]), + + "1925" : helpers.makeTestYear("America/Montreal", [ + ["1925-05-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1925-05-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1925-09-27T06:29:59+00:00", "02:29:59", "EDT", 240], + ["1925-09-27T06:30:00+00:00", "01:30:00", "EST", 300] + ]), + + "1926" : helpers.makeTestYear("America/Montreal", [ + ["1926-05-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1926-05-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1926-09-26T06:29:59+00:00", "02:29:59", "EDT", 240], + ["1926-09-26T06:30:00+00:00", "01:30:00", "EST", 300] + ]), + + "1927" : helpers.makeTestYear("America/Montreal", [ + ["1927-05-01T04:59:59+00:00", "23:59:59", "EST", 300], + ["1927-05-01T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1927-09-25T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1927-09-25T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1928" : helpers.makeTestYear("America/Montreal", [ + ["1928-04-29T04:59:59+00:00", "23:59:59", "EST", 300], + ["1928-04-29T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1928-09-30T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1928-09-30T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1929" : helpers.makeTestYear("America/Montreal", [ + ["1929-04-28T04:59:59+00:00", "23:59:59", "EST", 300], + ["1929-04-28T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1929-09-29T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1929-09-29T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1930" : helpers.makeTestYear("America/Montreal", [ + ["1930-04-27T04:59:59+00:00", "23:59:59", "EST", 300], + ["1930-04-27T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1930-09-28T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1930-09-28T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1931" : helpers.makeTestYear("America/Montreal", [ + ["1931-04-26T04:59:59+00:00", "23:59:59", "EST", 300], + ["1931-04-26T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1931-09-27T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1931-09-27T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1932" : helpers.makeTestYear("America/Montreal", [ + ["1932-05-01T04:59:59+00:00", "23:59:59", "EST", 300], + ["1932-05-01T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1932-09-25T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1932-09-25T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1933" : helpers.makeTestYear("America/Montreal", [ + ["1933-04-30T04:59:59+00:00", "23:59:59", "EST", 300], + ["1933-04-30T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1933-10-01T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1933-10-01T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1934" : helpers.makeTestYear("America/Montreal", [ + ["1934-04-29T04:59:59+00:00", "23:59:59", "EST", 300], + ["1934-04-29T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1934-09-30T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1934-09-30T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1935" : helpers.makeTestYear("America/Montreal", [ + ["1935-04-28T04:59:59+00:00", "23:59:59", "EST", 300], + ["1935-04-28T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1935-09-29T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1935-09-29T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1936" : helpers.makeTestYear("America/Montreal", [ + ["1936-04-26T04:59:59+00:00", "23:59:59", "EST", 300], + ["1936-04-26T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1936-09-27T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1936-09-27T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1937" : helpers.makeTestYear("America/Montreal", [ + ["1937-04-25T04:59:59+00:00", "23:59:59", "EST", 300], + ["1937-04-25T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1937-09-26T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1937-09-26T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1938" : helpers.makeTestYear("America/Montreal", [ + ["1938-04-24T04:59:59+00:00", "23:59:59", "EST", 300], + ["1938-04-24T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1938-09-25T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1938-09-25T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1939" : helpers.makeTestYear("America/Montreal", [ + ["1939-04-30T04:59:59+00:00", "23:59:59", "EST", 300], + ["1939-04-30T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1939-09-24T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1939-09-24T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1940" : helpers.makeTestYear("America/Montreal", [ + ["1940-04-28T04:59:59+00:00", "23:59:59", "EST", 300], + ["1940-04-28T05:00:00+00:00", "01:00:00", "EDT", 240] + ]), + + "1942" : helpers.makeTestYear("America/Montreal", [ + ["1942-02-09T06:59:59+00:00", "02:59:59", "EDT", 240], + ["1942-02-09T07:00:00+00:00", "03:00:00", "EWT", 240] + ]), + + "1945" : helpers.makeTestYear("America/Montreal", [ + ["1945-08-14T22:59:59+00:00", "18:59:59", "EWT", 240], + ["1945-08-14T23:00:00+00:00", "19:00:00", "EPT", 240], + ["1945-09-30T05:59:59+00:00", "01:59:59", "EPT", 240], + ["1945-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1946" : helpers.makeTestYear("America/Montreal", [ + ["1946-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1946-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1946-09-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1946-09-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1947" : helpers.makeTestYear("America/Montreal", [ + ["1947-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1947-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1947-09-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1947-09-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1948" : helpers.makeTestYear("America/Montreal", [ + ["1948-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1948-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1948-09-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1948-09-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1949" : helpers.makeTestYear("America/Montreal", [ + ["1949-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1949-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1949-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1949-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1950" : helpers.makeTestYear("America/Montreal", [ + ["1950-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1950-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1950-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1950-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1951" : helpers.makeTestYear("America/Montreal", [ + ["1951-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1951-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1951-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1951-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1952" : helpers.makeTestYear("America/Montreal", [ + ["1952-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1952-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1952-09-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1952-09-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1953" : helpers.makeTestYear("America/Montreal", [ + ["1953-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1953-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1953-09-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1953-09-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1954" : helpers.makeTestYear("America/Montreal", [ + ["1954-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1954-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1954-09-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1954-09-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1955" : helpers.makeTestYear("America/Montreal", [ + ["1955-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1955-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1955-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1955-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1956" : helpers.makeTestYear("America/Montreal", [ + ["1956-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1956-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1956-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1956-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1957" : helpers.makeTestYear("America/Montreal", [ + ["1957-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1957-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1957-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1957-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1958" : helpers.makeTestYear("America/Montreal", [ + ["1958-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1958-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1958-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1958-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1959" : helpers.makeTestYear("America/Montreal", [ + ["1959-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1959-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1959-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1959-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1960" : helpers.makeTestYear("America/Montreal", [ + ["1960-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1960-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1960-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1960-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1961" : helpers.makeTestYear("America/Montreal", [ + ["1961-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1961-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1961-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1961-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1962" : helpers.makeTestYear("America/Montreal", [ + ["1962-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1962-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1962-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1962-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1963" : helpers.makeTestYear("America/Montreal", [ + ["1963-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1963-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1963-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1963-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1964" : helpers.makeTestYear("America/Montreal", [ + ["1964-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1964-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1964-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1964-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1965" : helpers.makeTestYear("America/Montreal", [ + ["1965-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1965-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1965-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1965-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1966" : helpers.makeTestYear("America/Montreal", [ + ["1966-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1966-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1966-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1966-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1967" : helpers.makeTestYear("America/Montreal", [ + ["1967-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1967-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1967-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1967-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1968" : helpers.makeTestYear("America/Montreal", [ + ["1968-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1968-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1968-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1968-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Montreal", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Montreal", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1971" : helpers.makeTestYear("America/Montreal", [ + ["1971-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1971-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1971-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1971-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1972" : helpers.makeTestYear("America/Montreal", [ + ["1972-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1972-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1972-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1972-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1973" : helpers.makeTestYear("America/Montreal", [ + ["1973-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1973-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1973-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1973-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Montreal", [ + ["1974-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1974-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1974-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Montreal", [ + ["1975-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("America/Montreal", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("America/Montreal", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("America/Montreal", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Montreal", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Montreal", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Montreal", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Montreal", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Montreal", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Montreal", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Montreal", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Montreal", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Montreal", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Montreal", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Montreal", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Montreal", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Montreal", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Montreal", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Montreal", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Montreal", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Montreal", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Montreal", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Montreal", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Montreal", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Montreal", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("America/Montreal", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Montreal", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Montreal", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Montreal", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Montreal", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Montreal", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Montreal", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Montreal", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Montreal", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Montreal", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Montreal", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Montreal", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Montreal", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Montreal", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Montreal", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Montreal", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Montreal", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Montreal", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Montreal", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Montreal", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Montreal", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Montreal", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Montreal", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Montreal", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Montreal", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Montreal", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Montreal", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Montreal", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Montreal", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Montreal", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Montreal", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Montreal", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Montreal", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Montreal", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Montreal", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Montreal", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Montreal", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Montreal", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/montserrat.js b/tests/zones/america/montserrat.js new file mode 100644 index 00000000..9ffd883d --- /dev/null +++ b/tests/zones/america/montserrat.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Montserrat"] = { + "1912" : helpers.makeTestYear("America/Montserrat", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/nassau.js b/tests/zones/america/nassau.js new file mode 100644 index 00000000..082a71b6 --- /dev/null +++ b/tests/zones/america/nassau.js @@ -0,0 +1,528 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Nassau"] = { + "1912" : helpers.makeTestYear("America/Nassau", [ + ["1912-03-02T05:09:29+00:00", "23:59:59", "LMT", 18570 / 60], + ["1912-03-02T05:09:30+00:00", "00:09:30", "EST", 300] + ]), + + "1964" : helpers.makeTestYear("America/Nassau", [ + ["1964-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1964-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1964-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1964-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1965" : helpers.makeTestYear("America/Nassau", [ + ["1965-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1965-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1965-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1965-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1966" : helpers.makeTestYear("America/Nassau", [ + ["1966-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1966-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1966-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1966-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1967" : helpers.makeTestYear("America/Nassau", [ + ["1967-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1967-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1967-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1967-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1968" : helpers.makeTestYear("America/Nassau", [ + ["1968-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1968-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1968-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1968-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Nassau", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Nassau", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1971" : helpers.makeTestYear("America/Nassau", [ + ["1971-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1971-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1971-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1971-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1972" : helpers.makeTestYear("America/Nassau", [ + ["1972-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1972-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1972-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1972-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1973" : helpers.makeTestYear("America/Nassau", [ + ["1973-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1973-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1973-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1973-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Nassau", [ + ["1974-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1974-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1974-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Nassau", [ + ["1975-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("America/Nassau", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("America/Nassau", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("America/Nassau", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Nassau", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Nassau", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Nassau", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Nassau", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Nassau", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Nassau", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Nassau", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Nassau", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Nassau", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Nassau", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Nassau", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Nassau", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Nassau", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Nassau", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Nassau", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Nassau", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Nassau", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Nassau", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Nassau", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Nassau", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Nassau", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("America/Nassau", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Nassau", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Nassau", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Nassau", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Nassau", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Nassau", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Nassau", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Nassau", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Nassau", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Nassau", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Nassau", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Nassau", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Nassau", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Nassau", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Nassau", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Nassau", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Nassau", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Nassau", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Nassau", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Nassau", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Nassau", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Nassau", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Nassau", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Nassau", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Nassau", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Nassau", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Nassau", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Nassau", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Nassau", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Nassau", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Nassau", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Nassau", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Nassau", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Nassau", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Nassau", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Nassau", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Nassau", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Nassau", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/new_york.js b/tests/zones/america/new_york.js new file mode 100644 index 00000000..d17e826c --- /dev/null +++ b/tests/zones/america/new_york.js @@ -0,0 +1,829 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/New_York"] = { + "1918" : helpers.makeTestYear("America/New_York", [ + ["1918-03-31T06:59:59+00:00", "01:59:59", "EST", 300], + ["1918-03-31T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1918-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1918-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1919" : helpers.makeTestYear("America/New_York", [ + ["1919-03-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1919-03-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1919-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1919-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1920" : helpers.makeTestYear("America/New_York", [ + ["1920-03-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1920-03-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1920-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1920-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1921" : helpers.makeTestYear("America/New_York", [ + ["1921-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1921-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1921-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1921-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1922" : helpers.makeTestYear("America/New_York", [ + ["1922-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1922-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1922-09-24T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1922-09-24T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1923" : helpers.makeTestYear("America/New_York", [ + ["1923-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1923-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1923-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1923-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1924" : helpers.makeTestYear("America/New_York", [ + ["1924-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1924-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1924-09-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1924-09-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1925" : helpers.makeTestYear("America/New_York", [ + ["1925-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1925-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1925-09-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1925-09-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1926" : helpers.makeTestYear("America/New_York", [ + ["1926-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1926-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1926-09-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1926-09-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1927" : helpers.makeTestYear("America/New_York", [ + ["1927-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1927-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1927-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1927-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1928" : helpers.makeTestYear("America/New_York", [ + ["1928-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1928-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1928-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1928-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1929" : helpers.makeTestYear("America/New_York", [ + ["1929-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1929-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1929-09-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1929-09-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1930" : helpers.makeTestYear("America/New_York", [ + ["1930-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1930-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1930-09-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1930-09-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1931" : helpers.makeTestYear("America/New_York", [ + ["1931-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1931-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1931-09-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1931-09-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1932" : helpers.makeTestYear("America/New_York", [ + ["1932-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1932-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1932-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1932-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1933" : helpers.makeTestYear("America/New_York", [ + ["1933-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1933-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1933-09-24T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1933-09-24T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1934" : helpers.makeTestYear("America/New_York", [ + ["1934-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1934-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1934-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1934-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1935" : helpers.makeTestYear("America/New_York", [ + ["1935-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1935-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1935-09-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1935-09-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1936" : helpers.makeTestYear("America/New_York", [ + ["1936-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1936-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1936-09-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1936-09-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1937" : helpers.makeTestYear("America/New_York", [ + ["1937-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1937-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1937-09-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1937-09-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1938" : helpers.makeTestYear("America/New_York", [ + ["1938-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1938-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1938-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1938-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1939" : helpers.makeTestYear("America/New_York", [ + ["1939-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1939-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1939-09-24T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1939-09-24T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1940" : helpers.makeTestYear("America/New_York", [ + ["1940-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1940-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1940-09-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1940-09-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1941" : helpers.makeTestYear("America/New_York", [ + ["1941-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1941-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1941-09-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1941-09-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1942" : helpers.makeTestYear("America/New_York", [ + ["1942-02-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["1942-02-09T07:00:00+00:00", "03:00:00", "EWT", 240] + ]), + + "1945" : helpers.makeTestYear("America/New_York", [ + ["1945-08-14T22:59:59+00:00", "18:59:59", "EWT", 240], + ["1945-08-14T23:00:00+00:00", "19:00:00", "EPT", 240], + ["1945-09-30T05:59:59+00:00", "01:59:59", "EPT", 240], + ["1945-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1946" : helpers.makeTestYear("America/New_York", [ + ["1946-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1946-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1946-09-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1946-09-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1947" : helpers.makeTestYear("America/New_York", [ + ["1947-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1947-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1947-09-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1947-09-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1948" : helpers.makeTestYear("America/New_York", [ + ["1948-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1948-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1948-09-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1948-09-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1949" : helpers.makeTestYear("America/New_York", [ + ["1949-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1949-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1949-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1949-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1950" : helpers.makeTestYear("America/New_York", [ + ["1950-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1950-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1950-09-24T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1950-09-24T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1951" : helpers.makeTestYear("America/New_York", [ + ["1951-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1951-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1951-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1951-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1952" : helpers.makeTestYear("America/New_York", [ + ["1952-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1952-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1952-09-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1952-09-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1953" : helpers.makeTestYear("America/New_York", [ + ["1953-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1953-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1953-09-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1953-09-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1954" : helpers.makeTestYear("America/New_York", [ + ["1954-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1954-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1954-09-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1954-09-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1955" : helpers.makeTestYear("America/New_York", [ + ["1955-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1955-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1955-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1955-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1956" : helpers.makeTestYear("America/New_York", [ + ["1956-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1956-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1956-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1956-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1957" : helpers.makeTestYear("America/New_York", [ + ["1957-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1957-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1957-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1957-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1958" : helpers.makeTestYear("America/New_York", [ + ["1958-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1958-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1958-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1958-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1959" : helpers.makeTestYear("America/New_York", [ + ["1959-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1959-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1959-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1959-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1960" : helpers.makeTestYear("America/New_York", [ + ["1960-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1960-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1960-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1960-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1961" : helpers.makeTestYear("America/New_York", [ + ["1961-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1961-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1961-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1961-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1962" : helpers.makeTestYear("America/New_York", [ + ["1962-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1962-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1962-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1962-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1963" : helpers.makeTestYear("America/New_York", [ + ["1963-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1963-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1963-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1963-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1964" : helpers.makeTestYear("America/New_York", [ + ["1964-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1964-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1964-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1964-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1965" : helpers.makeTestYear("America/New_York", [ + ["1965-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1965-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1965-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1965-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1966" : helpers.makeTestYear("America/New_York", [ + ["1966-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1966-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1966-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1966-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1967" : helpers.makeTestYear("America/New_York", [ + ["1967-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1967-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1967-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1967-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1968" : helpers.makeTestYear("America/New_York", [ + ["1968-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1968-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1968-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1968-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/New_York", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/New_York", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1971" : helpers.makeTestYear("America/New_York", [ + ["1971-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1971-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1971-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1971-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1972" : helpers.makeTestYear("America/New_York", [ + ["1972-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1972-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1972-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1972-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1973" : helpers.makeTestYear("America/New_York", [ + ["1973-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1973-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1973-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1973-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/New_York", [ + ["1974-01-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-01-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1974-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1974-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/New_York", [ + ["1975-02-23T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-02-23T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("America/New_York", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("America/New_York", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("America/New_York", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/New_York", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/New_York", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/New_York", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/New_York", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/New_York", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/New_York", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/New_York", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/New_York", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/New_York", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/New_York", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/New_York", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/New_York", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/New_York", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/New_York", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/New_York", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/New_York", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/New_York", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/New_York", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/New_York", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/New_York", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/New_York", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("America/New_York", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/New_York", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/New_York", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/New_York", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/New_York", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/New_York", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/New_York", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/New_York", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/New_York", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/New_York", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/New_York", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/New_York", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/New_York", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/New_York", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/New_York", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/New_York", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/New_York", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/New_York", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/New_York", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/New_York", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/New_York", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/New_York", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/New_York", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/New_York", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/New_York", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/New_York", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/New_York", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/New_York", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/New_York", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/New_York", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/New_York", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/New_York", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/New_York", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/New_York", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/New_York", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/New_York", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/New_York", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/New_York", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/nipigon.js b/tests/zones/america/nipigon.js new file mode 100644 index 00000000..079f8754 --- /dev/null +++ b/tests/zones/america/nipigon.js @@ -0,0 +1,477 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Nipigon"] = { + "1918" : helpers.makeTestYear("America/Nipigon", [ + ["1918-04-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["1918-04-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1918-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1918-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1940" : helpers.makeTestYear("America/Nipigon", [ + ["1940-09-29T04:59:59+00:00", "23:59:59", "EST", 300], + ["1940-09-29T05:00:00+00:00", "01:00:00", "EDT", 240] + ]), + + "1942" : helpers.makeTestYear("America/Nipigon", [ + ["1942-02-09T06:59:59+00:00", "02:59:59", "EDT", 240], + ["1942-02-09T07:00:00+00:00", "03:00:00", "EWT", 240] + ]), + + "1945" : helpers.makeTestYear("America/Nipigon", [ + ["1945-08-14T22:59:59+00:00", "18:59:59", "EWT", 240], + ["1945-08-14T23:00:00+00:00", "19:00:00", "EPT", 240], + ["1945-09-30T05:59:59+00:00", "01:59:59", "EPT", 240], + ["1945-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Nipigon", [ + ["1974-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1974-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1974-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Nipigon", [ + ["1975-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("America/Nipigon", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("America/Nipigon", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("America/Nipigon", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Nipigon", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Nipigon", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Nipigon", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Nipigon", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Nipigon", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Nipigon", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Nipigon", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Nipigon", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Nipigon", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Nipigon", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Nipigon", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Nipigon", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Nipigon", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Nipigon", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Nipigon", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Nipigon", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Nipigon", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Nipigon", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Nipigon", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Nipigon", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Nipigon", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("America/Nipigon", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Nipigon", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Nipigon", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Nipigon", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Nipigon", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Nipigon", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Nipigon", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Nipigon", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Nipigon", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Nipigon", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Nipigon", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Nipigon", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Nipigon", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Nipigon", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Nipigon", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Nipigon", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Nipigon", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Nipigon", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Nipigon", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Nipigon", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Nipigon", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Nipigon", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Nipigon", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Nipigon", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Nipigon", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Nipigon", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Nipigon", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Nipigon", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Nipigon", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Nipigon", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Nipigon", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Nipigon", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Nipigon", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Nipigon", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Nipigon", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Nipigon", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Nipigon", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Nipigon", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/nome.js b/tests/zones/america/nome.js new file mode 100644 index 00000000..490adec6 --- /dev/null +++ b/tests/zones/america/nome.js @@ -0,0 +1,507 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Nome"] = { + "1942" : helpers.makeTestYear("America/Nome", [ + ["1942-02-09T12:59:59+00:00", "01:59:59", "NST", 660], + ["1942-02-09T13:00:00+00:00", "03:00:00", "NWT", 600] + ]), + + "1945" : helpers.makeTestYear("America/Nome", [ + ["1945-08-14T22:59:59+00:00", "12:59:59", "NWT", 600], + ["1945-08-14T23:00:00+00:00", "13:00:00", "NPT", 600], + ["1945-09-30T11:59:59+00:00", "01:59:59", "NPT", 600], + ["1945-09-30T12:00:00+00:00", "01:00:00", "NST", 660] + ]), + + "1967" : helpers.makeTestYear("America/Nome", [ + ["1967-04-01T10:59:59+00:00", "23:59:59", "NST", 660], + ["1967-04-01T11:00:00+00:00", "00:00:00", "BST", 660] + ]), + + "1969" : helpers.makeTestYear("America/Nome", [ + ["1969-04-27T12:59:59+00:00", "01:59:59", "BST", 660], + ["1969-04-27T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1969-10-26T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1969-10-26T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1970" : helpers.makeTestYear("America/Nome", [ + ["1970-04-26T12:59:59+00:00", "01:59:59", "BST", 660], + ["1970-04-26T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1970-10-25T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1970-10-25T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1971" : helpers.makeTestYear("America/Nome", [ + ["1971-04-25T12:59:59+00:00", "01:59:59", "BST", 660], + ["1971-04-25T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1971-10-31T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1971-10-31T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1972" : helpers.makeTestYear("America/Nome", [ + ["1972-04-30T12:59:59+00:00", "01:59:59", "BST", 660], + ["1972-04-30T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1972-10-29T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1972-10-29T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1973" : helpers.makeTestYear("America/Nome", [ + ["1973-04-29T12:59:59+00:00", "01:59:59", "BST", 660], + ["1973-04-29T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1973-10-28T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1973-10-28T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1974" : helpers.makeTestYear("America/Nome", [ + ["1974-01-06T12:59:59+00:00", "01:59:59", "BST", 660], + ["1974-01-06T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1974-10-27T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1974-10-27T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1975" : helpers.makeTestYear("America/Nome", [ + ["1975-02-23T12:59:59+00:00", "01:59:59", "BST", 660], + ["1975-02-23T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1975-10-26T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1975-10-26T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1976" : helpers.makeTestYear("America/Nome", [ + ["1976-04-25T12:59:59+00:00", "01:59:59", "BST", 660], + ["1976-04-25T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1976-10-31T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1976-10-31T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1977" : helpers.makeTestYear("America/Nome", [ + ["1977-04-24T12:59:59+00:00", "01:59:59", "BST", 660], + ["1977-04-24T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1977-10-30T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1977-10-30T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1978" : helpers.makeTestYear("America/Nome", [ + ["1978-04-30T12:59:59+00:00", "01:59:59", "BST", 660], + ["1978-04-30T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1978-10-29T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1978-10-29T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1979" : helpers.makeTestYear("America/Nome", [ + ["1979-04-29T12:59:59+00:00", "01:59:59", "BST", 660], + ["1979-04-29T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1979-10-28T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1979-10-28T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1980" : helpers.makeTestYear("America/Nome", [ + ["1980-04-27T12:59:59+00:00", "01:59:59", "BST", 660], + ["1980-04-27T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1980-10-26T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1980-10-26T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1981" : helpers.makeTestYear("America/Nome", [ + ["1981-04-26T12:59:59+00:00", "01:59:59", "BST", 660], + ["1981-04-26T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1981-10-25T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1981-10-25T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1982" : helpers.makeTestYear("America/Nome", [ + ["1982-04-25T12:59:59+00:00", "01:59:59", "BST", 660], + ["1982-04-25T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1982-10-31T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1982-10-31T12:00:00+00:00", "01:00:00", "BST", 660] + ]), + + "1983" : helpers.makeTestYear("America/Nome", [ + ["1983-04-24T12:59:59+00:00", "01:59:59", "BST", 660], + ["1983-04-24T13:00:00+00:00", "03:00:00", "BDT", 600], + ["1983-10-30T11:59:59+00:00", "01:59:59", "BDT", 600], + ["1983-10-30T12:00:00+00:00", "03:00:00", "YST", 540], + ["1983-11-30T08:59:59+00:00", "23:59:59", "YST", 540], + ["1983-11-30T09:00:00+00:00", "00:00:00", "AKST", 540] + ]), + + "1984" : helpers.makeTestYear("America/Nome", [ + ["1984-04-29T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1984-04-29T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1984-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1984-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1985" : helpers.makeTestYear("America/Nome", [ + ["1985-04-28T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1985-04-28T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1985-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1985-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1986" : helpers.makeTestYear("America/Nome", [ + ["1986-04-27T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1986-04-27T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1986-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1986-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1987" : helpers.makeTestYear("America/Nome", [ + ["1987-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1987-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1987-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1987-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1988" : helpers.makeTestYear("America/Nome", [ + ["1988-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1988-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1988-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1988-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1989" : helpers.makeTestYear("America/Nome", [ + ["1989-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1989-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1989-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1989-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1990" : helpers.makeTestYear("America/Nome", [ + ["1990-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1990-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1990-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1990-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1991" : helpers.makeTestYear("America/Nome", [ + ["1991-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1991-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1991-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1991-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1992" : helpers.makeTestYear("America/Nome", [ + ["1992-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1992-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1992-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1992-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1993" : helpers.makeTestYear("America/Nome", [ + ["1993-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1993-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1993-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1993-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1994" : helpers.makeTestYear("America/Nome", [ + ["1994-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1994-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1994-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1994-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1995" : helpers.makeTestYear("America/Nome", [ + ["1995-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1995-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1995-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1995-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1996" : helpers.makeTestYear("America/Nome", [ + ["1996-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1996-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1996-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1996-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1997" : helpers.makeTestYear("America/Nome", [ + ["1997-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1997-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1997-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1997-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1998" : helpers.makeTestYear("America/Nome", [ + ["1998-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1998-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1998-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1998-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1999" : helpers.makeTestYear("America/Nome", [ + ["1999-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1999-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1999-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1999-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2000" : helpers.makeTestYear("America/Nome", [ + ["2000-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2000-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2000-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2000-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2001" : helpers.makeTestYear("America/Nome", [ + ["2001-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2001-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2001-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2001-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2002" : helpers.makeTestYear("America/Nome", [ + ["2002-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2002-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2002-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2002-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2003" : helpers.makeTestYear("America/Nome", [ + ["2003-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2003-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2003-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2003-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2004" : helpers.makeTestYear("America/Nome", [ + ["2004-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2004-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2004-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2004-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2005" : helpers.makeTestYear("America/Nome", [ + ["2005-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2005-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2005-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2005-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2006" : helpers.makeTestYear("America/Nome", [ + ["2006-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2006-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2006-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2006-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2007" : helpers.makeTestYear("America/Nome", [ + ["2007-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2007-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2007-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2007-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2008" : helpers.makeTestYear("America/Nome", [ + ["2008-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2008-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2008-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2008-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2009" : helpers.makeTestYear("America/Nome", [ + ["2009-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2009-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2009-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2009-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2010" : helpers.makeTestYear("America/Nome", [ + ["2010-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2010-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2010-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2010-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2011" : helpers.makeTestYear("America/Nome", [ + ["2011-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2011-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2011-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2011-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2012" : helpers.makeTestYear("America/Nome", [ + ["2012-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2012-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2012-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2012-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2013" : helpers.makeTestYear("America/Nome", [ + ["2013-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2013-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2013-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2013-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2014" : helpers.makeTestYear("America/Nome", [ + ["2014-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2014-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2014-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2014-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2015" : helpers.makeTestYear("America/Nome", [ + ["2015-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2015-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2015-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2015-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2016" : helpers.makeTestYear("America/Nome", [ + ["2016-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2016-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2016-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2016-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2017" : helpers.makeTestYear("America/Nome", [ + ["2017-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2017-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2017-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2017-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2018" : helpers.makeTestYear("America/Nome", [ + ["2018-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2018-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2018-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2018-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2019" : helpers.makeTestYear("America/Nome", [ + ["2019-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2019-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2019-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2019-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2020" : helpers.makeTestYear("America/Nome", [ + ["2020-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2020-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2020-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2020-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2021" : helpers.makeTestYear("America/Nome", [ + ["2021-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2021-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2021-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2021-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2022" : helpers.makeTestYear("America/Nome", [ + ["2022-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2022-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2022-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2022-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2023" : helpers.makeTestYear("America/Nome", [ + ["2023-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2023-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2023-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2023-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2024" : helpers.makeTestYear("America/Nome", [ + ["2024-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2024-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2024-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2024-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2025" : helpers.makeTestYear("America/Nome", [ + ["2025-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2025-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2025-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2025-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2026" : helpers.makeTestYear("America/Nome", [ + ["2026-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2026-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2026-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2026-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2027" : helpers.makeTestYear("America/Nome", [ + ["2027-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2027-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2027-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2027-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2028" : helpers.makeTestYear("America/Nome", [ + ["2028-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2028-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2028-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2028-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2029" : helpers.makeTestYear("America/Nome", [ + ["2029-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2029-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2029-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2029-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2030" : helpers.makeTestYear("America/Nome", [ + ["2030-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2030-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2030-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2030-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2031" : helpers.makeTestYear("America/Nome", [ + ["2031-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2031-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2031-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2031-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2032" : helpers.makeTestYear("America/Nome", [ + ["2032-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2032-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2032-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2032-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2033" : helpers.makeTestYear("America/Nome", [ + ["2033-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2033-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2033-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2033-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2034" : helpers.makeTestYear("America/Nome", [ + ["2034-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2034-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2034-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2034-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2035" : helpers.makeTestYear("America/Nome", [ + ["2035-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2035-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2035-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2035-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2036" : helpers.makeTestYear("America/Nome", [ + ["2036-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2036-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2036-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2036-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2037" : helpers.makeTestYear("America/Nome", [ + ["2037-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2037-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2037-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2037-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/noronha.js b/tests/zones/america/noronha.js new file mode 100644 index 00000000..ebbcb75c --- /dev/null +++ b/tests/zones/america/noronha.js @@ -0,0 +1,158 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Noronha"] = { + "1914" : helpers.makeTestYear("America/Noronha", [ + ["1914-01-01T02:09:39+00:00", "23:59:59", "LMT", 7780 / 60], + ["1914-01-01T02:09:40+00:00", "00:09:40", "FNT", 120] + ]), + + "1931" : helpers.makeTestYear("America/Noronha", [ + ["1931-10-03T12:59:59+00:00", "10:59:59", "FNT", 120], + ["1931-10-03T13:00:00+00:00", "12:00:00", "FNST", 60] + ]), + + "1932" : helpers.makeTestYear("America/Noronha", [ + ["1932-04-01T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1932-04-01T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1932-10-03T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1932-10-03T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1933" : helpers.makeTestYear("America/Noronha", [ + ["1933-04-01T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1933-04-01T01:00:00+00:00", "23:00:00", "FNT", 120] + ]), + + "1949" : helpers.makeTestYear("America/Noronha", [ + ["1949-12-01T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1949-12-01T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1950" : helpers.makeTestYear("America/Noronha", [ + ["1950-04-16T01:59:59+00:00", "00:59:59", "FNST", 60], + ["1950-04-16T02:00:00+00:00", "00:00:00", "FNT", 120], + ["1950-12-01T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1950-12-01T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1951" : helpers.makeTestYear("America/Noronha", [ + ["1951-04-01T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1951-04-01T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1951-12-01T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1951-12-01T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1952" : helpers.makeTestYear("America/Noronha", [ + ["1952-04-01T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1952-04-01T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1952-12-01T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1952-12-01T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1953" : helpers.makeTestYear("America/Noronha", [ + ["1953-03-01T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1953-03-01T01:00:00+00:00", "23:00:00", "FNT", 120] + ]), + + "1963" : helpers.makeTestYear("America/Noronha", [ + ["1963-12-09T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1963-12-09T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1964" : helpers.makeTestYear("America/Noronha", [ + ["1964-03-01T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1964-03-01T01:00:00+00:00", "23:00:00", "FNT", 120] + ]), + + "1965" : helpers.makeTestYear("America/Noronha", [ + ["1965-01-31T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1965-01-31T02:00:00+00:00", "01:00:00", "FNST", 60], + ["1965-03-31T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1965-03-31T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1965-12-01T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1965-12-01T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1966" : helpers.makeTestYear("America/Noronha", [ + ["1966-03-01T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1966-03-01T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1966-11-01T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1966-11-01T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1967" : helpers.makeTestYear("America/Noronha", [ + ["1967-03-01T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1967-03-01T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1967-11-01T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1967-11-01T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1968" : helpers.makeTestYear("America/Noronha", [ + ["1968-03-01T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1968-03-01T01:00:00+00:00", "23:00:00", "FNT", 120] + ]), + + "1985" : helpers.makeTestYear("America/Noronha", [ + ["1985-11-02T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1985-11-02T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1986" : helpers.makeTestYear("America/Noronha", [ + ["1986-03-15T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1986-03-15T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1986-10-25T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1986-10-25T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1987" : helpers.makeTestYear("America/Noronha", [ + ["1987-02-14T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1987-02-14T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1987-10-25T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1987-10-25T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1988" : helpers.makeTestYear("America/Noronha", [ + ["1988-02-07T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1988-02-07T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1988-10-16T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1988-10-16T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1989" : helpers.makeTestYear("America/Noronha", [ + ["1989-01-29T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1989-01-29T01:00:00+00:00", "23:00:00", "FNT", 120], + ["1989-10-15T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1989-10-15T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "1990" : helpers.makeTestYear("America/Noronha", [ + ["1990-02-11T00:59:59+00:00", "23:59:59", "FNST", 60], + ["1990-02-11T01:00:00+00:00", "23:00:00", "FNT", 120] + ]), + + "1999" : helpers.makeTestYear("America/Noronha", [ + ["1999-10-03T01:59:59+00:00", "23:59:59", "FNT", 120], + ["1999-10-03T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "2000" : helpers.makeTestYear("America/Noronha", [ + ["2000-02-27T00:59:59+00:00", "23:59:59", "FNST", 60], + ["2000-02-27T01:00:00+00:00", "23:00:00", "FNT", 120], + ["2000-10-08T01:59:59+00:00", "23:59:59", "FNT", 120], + ["2000-10-08T02:00:00+00:00", "01:00:00", "FNST", 60], + ["2000-10-15T00:59:59+00:00", "23:59:59", "FNST", 60], + ["2000-10-15T01:00:00+00:00", "23:00:00", "FNT", 120] + ]), + + "2001" : helpers.makeTestYear("America/Noronha", [ + ["2001-10-14T01:59:59+00:00", "23:59:59", "FNT", 120], + ["2001-10-14T02:00:00+00:00", "01:00:00", "FNST", 60] + ]), + + "2002" : helpers.makeTestYear("America/Noronha", [ + ["2002-02-17T00:59:59+00:00", "23:59:59", "FNST", 60], + ["2002-02-17T01:00:00+00:00", "23:00:00", "FNT", 120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/north_dakota/beulah.js b/tests/zones/america/north_dakota/beulah.js new file mode 100644 index 00000000..110425b9 --- /dev/null +++ b/tests/zones/america/north_dakota/beulah.js @@ -0,0 +1,528 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/North_Dakota/Beulah"] = { + "1918" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1918-03-31T08:59:59+00:00", "01:59:59", "MST", 420], + ["1918-03-31T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1918-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1918-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1919" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1919-03-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1919-03-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1919-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1919-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1967" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1967-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1967-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1967-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1967-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1968" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1968-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1968-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1968-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1968-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1969" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1969-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1969-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1969-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1969-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1970" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1970-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1970-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1970-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1970-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1971" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1971-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1971-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1971-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1971-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1972" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1972-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1972-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1972-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1972-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1973" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1973-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1973-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1973-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1973-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1974" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1974-01-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1974-01-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1974-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1974-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1975" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1975-02-23T08:59:59+00:00", "01:59:59", "MST", 420], + ["1975-02-23T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1975-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1975-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1976" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1976-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1976-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1976-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1976-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1977" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1977-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1977-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1977-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1977-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1978" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1978-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1978-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1978-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1978-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1979" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1979-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1979-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1979-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1979-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1993" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1993-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1993-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1993-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1993-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1994" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1994-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1994-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1994-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1994-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1995" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1995-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1995-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1995-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1995-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2001-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2007-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2008-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2009-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2010-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-11-07T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/North_Dakota/Beulah", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/north_dakota/center.js b/tests/zones/america/north_dakota/center.js new file mode 100644 index 00000000..cdc49dd2 --- /dev/null +++ b/tests/zones/america/north_dakota/center.js @@ -0,0 +1,528 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/North_Dakota/Center"] = { + "1918" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1918-03-31T08:59:59+00:00", "01:59:59", "MST", 420], + ["1918-03-31T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1918-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1918-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1919" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1919-03-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1919-03-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1919-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1919-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1967" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1967-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1967-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1967-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1967-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1968" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1968-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1968-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1968-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1968-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1969" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1969-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1969-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1969-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1969-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1970" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1970-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1970-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1970-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1970-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1971" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1971-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1971-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1971-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1971-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1972" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1972-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1972-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1972-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1972-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1973" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1973-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1973-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1973-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1973-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1974" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1974-01-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1974-01-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1974-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1974-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1975" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1975-02-23T08:59:59+00:00", "01:59:59", "MST", 420], + ["1975-02-23T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1975-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1975-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1976" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1976-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1976-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1976-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1976-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1977" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1977-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1977-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1977-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1977-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1978" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1978-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1978-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1978-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1978-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1979" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1979-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1979-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1979-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1979-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1993-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1993-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1993-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1993-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1994" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1994-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1994-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1994-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1994-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1995" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1995-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1995-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1995-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1995-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2001-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/North_Dakota/Center", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/north_dakota/new_salem.js b/tests/zones/america/north_dakota/new_salem.js new file mode 100644 index 00000000..e073d3dd --- /dev/null +++ b/tests/zones/america/north_dakota/new_salem.js @@ -0,0 +1,528 @@ +"use strict"; + +var helpers = require("../../../../tests/helpers/helpers"); + +exports["America/North_Dakota/New_Salem"] = { + "1918" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1918-03-31T08:59:59+00:00", "01:59:59", "MST", 420], + ["1918-03-31T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1918-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1918-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1919" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1919-03-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1919-03-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1919-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1919-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1967" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1967-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1967-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1967-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1967-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1968" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1968-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1968-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1968-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1968-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1969" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1969-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1969-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1969-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1969-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1970" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1970-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1970-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1970-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1970-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1971" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1971-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1971-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1971-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1971-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1972" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1972-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1972-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1972-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1972-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1973" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1973-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1973-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1973-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1973-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1974" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1974-01-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1974-01-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1974-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1974-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1975" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1975-02-23T08:59:59+00:00", "01:59:59", "MST", 420], + ["1975-02-23T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1975-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1975-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1976" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1976-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1976-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1976-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1976-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1977" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1977-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1977-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1977-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1977-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1978" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1978-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1978-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1978-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1978-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1979" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1979-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1979-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1979-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1979-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1993" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1993-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1993-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1993-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1993-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1994" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1994-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1994-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1994-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1994-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1995" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1995-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1995-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1995-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1995-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2001-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/North_Dakota/New_Salem", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/ojinaga.js b/tests/zones/america/ojinaga.js new file mode 100644 index 00000000..2fed1040 --- /dev/null +++ b/tests/zones/america/ojinaga.js @@ -0,0 +1,326 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Ojinaga"] = { + "1922" : helpers.makeTestYear("America/Ojinaga", [ + ["1922-01-01T06:59:59+00:00", "00:02:19", "LMT", 25060 / 60], + ["1922-01-01T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1927" : helpers.makeTestYear("America/Ojinaga", [ + ["1927-06-11T05:59:59+00:00", "22:59:59", "MST", 420], + ["1927-06-11T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1930" : helpers.makeTestYear("America/Ojinaga", [ + ["1930-11-15T05:59:59+00:00", "23:59:59", "CST", 360], + ["1930-11-15T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1931" : helpers.makeTestYear("America/Ojinaga", [ + ["1931-05-02T05:59:59+00:00", "22:59:59", "MST", 420], + ["1931-05-02T06:00:00+00:00", "00:00:00", "CST", 360], + ["1931-10-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1931-10-01T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1932" : helpers.makeTestYear("America/Ojinaga", [ + ["1932-04-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1932-04-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Ojinaga", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Ojinaga", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Ojinaga", [ + ["1998-04-05T08:59:59+00:00", "02:59:59", "CST", 360], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Ojinaga", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/Ojinaga", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/Ojinaga", [ + ["2001-05-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-05-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-09-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Ojinaga", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Ojinaga", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Ojinaga", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Ojinaga", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Ojinaga", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Ojinaga", [ + ["2007-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Ojinaga", [ + ["2008-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Ojinaga", [ + ["2009-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Ojinaga", [ + ["2010-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("America/Ojinaga", [ + ["2011-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("America/Ojinaga", [ + ["2012-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("America/Ojinaga", [ + ["2013-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("America/Ojinaga", [ + ["2014-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("America/Ojinaga", [ + ["2015-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("America/Ojinaga", [ + ["2016-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("America/Ojinaga", [ + ["2017-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("America/Ojinaga", [ + ["2018-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("America/Ojinaga", [ + ["2019-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("America/Ojinaga", [ + ["2020-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("America/Ojinaga", [ + ["2021-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("America/Ojinaga", [ + ["2022-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("America/Ojinaga", [ + ["2023-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("America/Ojinaga", [ + ["2024-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("America/Ojinaga", [ + ["2025-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("America/Ojinaga", [ + ["2026-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("America/Ojinaga", [ + ["2027-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("America/Ojinaga", [ + ["2028-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("America/Ojinaga", [ + ["2029-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("America/Ojinaga", [ + ["2030-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("America/Ojinaga", [ + ["2031-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("America/Ojinaga", [ + ["2032-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("America/Ojinaga", [ + ["2033-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("America/Ojinaga", [ + ["2034-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("America/Ojinaga", [ + ["2035-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("America/Ojinaga", [ + ["2036-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("America/Ojinaga", [ + ["2037-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/panama.js b/tests/zones/america/panama.js new file mode 100644 index 00000000..8dab1db3 --- /dev/null +++ b/tests/zones/america/panama.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Panama"] = { + "1908" : helpers.makeTestYear("America/Panama", [ + ["1908-04-22T05:19:35+00:00", "23:59:59", "CMT", 19176 / 60], + ["1908-04-22T05:19:36+00:00", "00:19:36", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/pangnirtung.js b/tests/zones/america/pangnirtung.js new file mode 100644 index 00000000..1eff0c8e --- /dev/null +++ b/tests/zones/america/pangnirtung.js @@ -0,0 +1,438 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Pangnirtung"] = { + "1920" : helpers.makeTestYear("America/Pangnirtung", [ + ["1920-12-31T23:59:59+00:00", "23:59:59", "zzz", 0] + ]), + + "1921" : helpers.makeTestYear("America/Pangnirtung", [ + ["1921-01-01T00:00:00+00:00", "20:00:00", "AST", 240] + ]), + + "1942" : helpers.makeTestYear("America/Pangnirtung", [ + ["1942-02-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["1942-02-09T06:00:00+00:00", "03:00:00", "AWT", 180] + ]), + + "1945" : helpers.makeTestYear("America/Pangnirtung", [ + ["1945-08-14T22:59:59+00:00", "19:59:59", "AWT", 180], + ["1945-08-14T23:00:00+00:00", "20:00:00", "APT", 180], + ["1945-09-30T04:59:59+00:00", "01:59:59", "APT", 180], + ["1945-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1965" : helpers.makeTestYear("America/Pangnirtung", [ + ["1965-04-25T03:59:59+00:00", "23:59:59", "AST", 240], + ["1965-04-25T04:00:00+00:00", "02:00:00", "ADDT", 120], + ["1965-10-31T03:59:59+00:00", "01:59:59", "ADDT", 120], + ["1965-10-31T04:00:00+00:00", "00:00:00", "AST", 240] + ]), + + "1980" : helpers.makeTestYear("America/Pangnirtung", [ + ["1980-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1980-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1980-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1980-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1981" : helpers.makeTestYear("America/Pangnirtung", [ + ["1981-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1981-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1981-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1981-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1982" : helpers.makeTestYear("America/Pangnirtung", [ + ["1982-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1982-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1982-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1982-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1983" : helpers.makeTestYear("America/Pangnirtung", [ + ["1983-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1983-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1983-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1983-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1984" : helpers.makeTestYear("America/Pangnirtung", [ + ["1984-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1984-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1984-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1984-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1985" : helpers.makeTestYear("America/Pangnirtung", [ + ["1985-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1985-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1985-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1985-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1986" : helpers.makeTestYear("America/Pangnirtung", [ + ["1986-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1986-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1986-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1986-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1987" : helpers.makeTestYear("America/Pangnirtung", [ + ["1987-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1987-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1987-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1987-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1988" : helpers.makeTestYear("America/Pangnirtung", [ + ["1988-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1988-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1988-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1988-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1989" : helpers.makeTestYear("America/Pangnirtung", [ + ["1989-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1989-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1989-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1989-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1990" : helpers.makeTestYear("America/Pangnirtung", [ + ["1990-04-01T05:59:59+00:00", "01:59:59", "AST", 240], + ["1990-04-01T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1990-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1990-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1991" : helpers.makeTestYear("America/Pangnirtung", [ + ["1991-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["1991-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1991-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1991-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1992" : helpers.makeTestYear("America/Pangnirtung", [ + ["1992-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1992-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1992-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1992-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1993" : helpers.makeTestYear("America/Pangnirtung", [ + ["1993-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["1993-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1993-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1993-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1994" : helpers.makeTestYear("America/Pangnirtung", [ + ["1994-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1994-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1994-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1994-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1995" : helpers.makeTestYear("America/Pangnirtung", [ + ["1995-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1995-04-02T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Pangnirtung", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Pangnirtung", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Pangnirtung", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Pangnirtung", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Pangnirtung", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Pangnirtung", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Pangnirtung", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Pangnirtung", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Pangnirtung", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Pangnirtung", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Pangnirtung", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Pangnirtung", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Pangnirtung", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Pangnirtung", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Pangnirtung", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Pangnirtung", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Pangnirtung", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Pangnirtung", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Pangnirtung", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Pangnirtung", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Pangnirtung", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Pangnirtung", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Pangnirtung", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Pangnirtung", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Pangnirtung", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Pangnirtung", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Pangnirtung", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Pangnirtung", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Pangnirtung", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Pangnirtung", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Pangnirtung", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Pangnirtung", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Pangnirtung", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Pangnirtung", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Pangnirtung", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Pangnirtung", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Pangnirtung", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Pangnirtung", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Pangnirtung", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Pangnirtung", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Pangnirtung", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Pangnirtung", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/paramaribo.js b/tests/zones/america/paramaribo.js new file mode 100644 index 00000000..46a3e345 --- /dev/null +++ b/tests/zones/america/paramaribo.js @@ -0,0 +1,30 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Paramaribo"] = { + "1911" : helpers.makeTestYear("America/Paramaribo", [ + ["1911-01-01T03:40:39+00:00", "23:59:59", "LMT", 13240 / 60], + ["1911-01-01T03:40:40+00:00", "23:59:48", "PMT", 13252 / 60] + ]), + + "1935" : helpers.makeTestYear("America/Paramaribo", [ + ["1935-01-01T03:40:51+00:00", "23:59:59", "PMT", 13252 / 60], + ["1935-01-01T03:40:52+00:00", "00:00:16", "PMT", 13236 / 60] + ]), + + "1945" : helpers.makeTestYear("America/Paramaribo", [ + ["1945-10-01T03:40:35+00:00", "23:59:59", "PMT", 13236 / 60], + ["1945-10-01T03:40:36+00:00", "00:10:36", "NEGT", 210] + ]), + + "1975" : helpers.makeTestYear("America/Paramaribo", [ + ["1975-11-20T03:29:59+00:00", "23:59:59", "NEGT", 210], + ["1975-11-20T03:30:00+00:00", "00:00:00", "SRT", 210] + ]), + + "1984" : helpers.makeTestYear("America/Paramaribo", [ + ["1984-10-01T03:29:59+00:00", "23:59:59", "SRT", 210], + ["1984-10-01T03:30:00+00:00", "00:30:00", "SRT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/phoenix.js b/tests/zones/america/phoenix.js new file mode 100644 index 00000000..2beab8a0 --- /dev/null +++ b/tests/zones/america/phoenix.js @@ -0,0 +1,40 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Phoenix"] = { + "1918" : helpers.makeTestYear("America/Phoenix", [ + ["1918-03-31T08:59:59+00:00", "01:59:59", "MST", 420], + ["1918-03-31T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1918-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1918-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1919" : helpers.makeTestYear("America/Phoenix", [ + ["1919-03-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1919-03-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1919-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1919-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/Phoenix", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1944" : helpers.makeTestYear("America/Phoenix", [ + ["1944-01-01T06:00:59+00:00", "00:00:59", "MWT", 360], + ["1944-01-01T06:01:00+00:00", "23:01:00", "MST", 420], + ["1944-04-01T07:00:59+00:00", "00:00:59", "MST", 420], + ["1944-04-01T07:01:00+00:00", "01:01:00", "MWT", 360], + ["1944-10-01T06:00:59+00:00", "00:00:59", "MWT", 360], + ["1944-10-01T06:01:00+00:00", "23:01:00", "MST", 420] + ]), + + "1967" : helpers.makeTestYear("America/Phoenix", [ + ["1967-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1967-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1967-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1967-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/port-au-prince.js b/tests/zones/america/port-au-prince.js new file mode 100644 index 00000000..1b97c98f --- /dev/null +++ b/tests/zones/america/port-au-prince.js @@ -0,0 +1,311 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Port-au-Prince"] = { + "1917" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1917-01-24T16:48:59+00:00", "11:59:59", "PPMT", 289], + ["1917-01-24T16:49:00+00:00", "11:49:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1983-05-08T04:59:59+00:00", "23:59:59", "EST", 300], + ["1983-05-08T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1983-10-30T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1983-10-30T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1984-04-29T04:59:59+00:00", "23:59:59", "EST", 300], + ["1984-04-29T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1984-10-28T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1984-10-28T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1985-04-28T04:59:59+00:00", "23:59:59", "EST", 300], + ["1985-04-28T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1985-10-27T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1985-10-27T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1986-04-27T04:59:59+00:00", "23:59:59", "EST", 300], + ["1986-04-27T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1986-10-26T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1986-10-26T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1987-04-26T04:59:59+00:00", "23:59:59", "EST", 300], + ["1987-04-26T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1987-10-25T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1987-10-25T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1988-04-03T05:59:59+00:00", "00:59:59", "EST", 300], + ["1988-04-03T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1989-04-02T05:59:59+00:00", "00:59:59", "EST", 300], + ["1989-04-02T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1990-04-01T05:59:59+00:00", "00:59:59", "EST", 300], + ["1990-04-01T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1991-04-07T05:59:59+00:00", "00:59:59", "EST", 300], + ["1991-04-07T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1992-04-05T05:59:59+00:00", "00:59:59", "EST", 300], + ["1992-04-05T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1993-04-04T05:59:59+00:00", "00:59:59", "EST", 300], + ["1993-04-04T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1994-04-03T05:59:59+00:00", "00:59:59", "EST", 300], + ["1994-04-03T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1995-04-02T05:59:59+00:00", "00:59:59", "EST", 300], + ["1995-04-02T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1996-04-07T05:59:59+00:00", "00:59:59", "EST", 300], + ["1996-04-07T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Port-au-Prince", [ + ["1997-04-06T05:59:59+00:00", "00:59:59", "EST", 300], + ["1997-04-06T06:00:00+00:00", "02:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2005-04-03T04:59:59+00:00", "23:59:59", "EST", 300], + ["2005-04-03T05:00:00+00:00", "01:00:00", "EDT", 240], + ["2005-10-30T03:59:59+00:00", "23:59:59", "EDT", 240], + ["2005-10-30T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2006-04-02T04:59:59+00:00", "23:59:59", "EST", 300], + ["2006-04-02T05:00:00+00:00", "01:00:00", "EDT", 240], + ["2006-10-29T03:59:59+00:00", "23:59:59", "EDT", 240], + ["2006-10-29T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Port-au-Prince", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/port_of_spain.js b/tests/zones/america/port_of_spain.js new file mode 100644 index 00000000..90918519 --- /dev/null +++ b/tests/zones/america/port_of_spain.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Port_of_Spain"] = { + "1912" : helpers.makeTestYear("America/Port_of_Spain", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/porto_velho.js b/tests/zones/america/porto_velho.js new file mode 100644 index 00000000..0c3149b7 --- /dev/null +++ b/tests/zones/america/porto_velho.js @@ -0,0 +1,120 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Porto_Velho"] = { + "1914" : helpers.makeTestYear("America/Porto_Velho", [ + ["1914-01-01T04:15:35+00:00", "23:59:59", "LMT", 15336 / 60], + ["1914-01-01T04:15:36+00:00", "00:15:36", "AMT", 240] + ]), + + "1931" : helpers.makeTestYear("America/Porto_Velho", [ + ["1931-10-03T14:59:59+00:00", "10:59:59", "AMT", 240], + ["1931-10-03T15:00:00+00:00", "12:00:00", "AMST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Porto_Velho", [ + ["1932-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1932-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1932-10-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1932-10-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Porto_Velho", [ + ["1933-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1933-04-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1949" : helpers.makeTestYear("America/Porto_Velho", [ + ["1949-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1949-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1950" : helpers.makeTestYear("America/Porto_Velho", [ + ["1950-04-16T03:59:59+00:00", "00:59:59", "AMST", 180], + ["1950-04-16T04:00:00+00:00", "00:00:00", "AMT", 240], + ["1950-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1950-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1951" : helpers.makeTestYear("America/Porto_Velho", [ + ["1951-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1951-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1951-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1951-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1952" : helpers.makeTestYear("America/Porto_Velho", [ + ["1952-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1952-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1952-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1952-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1953" : helpers.makeTestYear("America/Porto_Velho", [ + ["1953-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1953-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1963" : helpers.makeTestYear("America/Porto_Velho", [ + ["1963-12-09T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1963-12-09T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Porto_Velho", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1965" : helpers.makeTestYear("America/Porto_Velho", [ + ["1965-01-31T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-01-31T04:00:00+00:00", "01:00:00", "AMST", 180], + ["1965-03-31T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1965-03-31T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1965-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Porto_Velho", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1966-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1966-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Porto_Velho", [ + ["1967-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1967-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1967-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1967-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Porto_Velho", [ + ["1968-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1968-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1985" : helpers.makeTestYear("America/Porto_Velho", [ + ["1985-11-02T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1985-11-02T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1986" : helpers.makeTestYear("America/Porto_Velho", [ + ["1986-03-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1986-03-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1986-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1986-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1987" : helpers.makeTestYear("America/Porto_Velho", [ + ["1987-02-14T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1987-02-14T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1987-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1987-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1988" : helpers.makeTestYear("America/Porto_Velho", [ + ["1988-02-07T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1988-02-07T03:00:00+00:00", "23:00:00", "AMT", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/puerto_rico.js b/tests/zones/america/puerto_rico.js new file mode 100644 index 00000000..038a780a --- /dev/null +++ b/tests/zones/america/puerto_rico.js @@ -0,0 +1,17 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Puerto_Rico"] = { + "1942" : helpers.makeTestYear("America/Puerto_Rico", [ + ["1942-05-03T03:59:59+00:00", "23:59:59", "AST", 240], + ["1942-05-03T04:00:00+00:00", "01:00:00", "AWT", 180] + ]), + + "1945" : helpers.makeTestYear("America/Puerto_Rico", [ + ["1945-08-14T22:59:59+00:00", "19:59:59", "AWT", 180], + ["1945-08-14T23:00:00+00:00", "20:00:00", "APT", 180], + ["1945-09-30T04:59:59+00:00", "01:59:59", "APT", 180], + ["1945-09-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/rainy_river.js b/tests/zones/america/rainy_river.js new file mode 100644 index 00000000..faac54ea --- /dev/null +++ b/tests/zones/america/rainy_river.js @@ -0,0 +1,477 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Rainy_River"] = { + "1918" : helpers.makeTestYear("America/Rainy_River", [ + ["1918-04-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-04-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1940" : helpers.makeTestYear("America/Rainy_River", [ + ["1940-09-29T05:59:59+00:00", "23:59:59", "CST", 360], + ["1940-09-29T06:00:00+00:00", "01:00:00", "CDT", 300] + ]), + + "1942" : helpers.makeTestYear("America/Rainy_River", [ + ["1942-02-09T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Rainy_River", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1974" : helpers.makeTestYear("America/Rainy_River", [ + ["1974-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1974-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1974-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1974-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1975" : helpers.makeTestYear("America/Rainy_River", [ + ["1975-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1975-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1975-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1975-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1976" : helpers.makeTestYear("America/Rainy_River", [ + ["1976-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1976-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1976-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1976-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1977" : helpers.makeTestYear("America/Rainy_River", [ + ["1977-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1977-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1977-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1977-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1978" : helpers.makeTestYear("America/Rainy_River", [ + ["1978-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1978-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1978-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1978-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1979" : helpers.makeTestYear("America/Rainy_River", [ + ["1979-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1979-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1979-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1979-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Rainy_River", [ + ["1980-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1980-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1980-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1980-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Rainy_River", [ + ["1981-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1981-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1981-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1981-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("America/Rainy_River", [ + ["1982-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1982-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1982-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1982-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("America/Rainy_River", [ + ["1983-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1983-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1983-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1983-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1984" : helpers.makeTestYear("America/Rainy_River", [ + ["1984-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1984-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1984-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1984-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1985" : helpers.makeTestYear("America/Rainy_River", [ + ["1985-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1985-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1985-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1985-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1986" : helpers.makeTestYear("America/Rainy_River", [ + ["1986-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1986-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1986-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1986-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/Rainy_River", [ + ["1987-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1987-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1987-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1987-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Rainy_River", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1989" : helpers.makeTestYear("America/Rainy_River", [ + ["1989-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1989-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1989-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1989-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1990" : helpers.makeTestYear("America/Rainy_River", [ + ["1990-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1990-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1990-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1990-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Rainy_River", [ + ["1991-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1991-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1991-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1991-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("America/Rainy_River", [ + ["1992-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1992-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1992-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1992-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("America/Rainy_River", [ + ["1993-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1993-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1993-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1993-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1994" : helpers.makeTestYear("America/Rainy_River", [ + ["1994-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1994-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1994-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1994-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1995" : helpers.makeTestYear("America/Rainy_River", [ + ["1995-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1995-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1995-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1995-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Rainy_River", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Rainy_River", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Rainy_River", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Rainy_River", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Rainy_River", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Rainy_River", [ + ["2001-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Rainy_River", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Rainy_River", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Rainy_River", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Rainy_River", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Rainy_River", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Rainy_River", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Rainy_River", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Rainy_River", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Rainy_River", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Rainy_River", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Rainy_River", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Rainy_River", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Rainy_River", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Rainy_River", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Rainy_River", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Rainy_River", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Rainy_River", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Rainy_River", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Rainy_River", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Rainy_River", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Rainy_River", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Rainy_River", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Rainy_River", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Rainy_River", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Rainy_River", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Rainy_River", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Rainy_River", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Rainy_River", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Rainy_River", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Rainy_River", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Rainy_River", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Rainy_River", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Rainy_River", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Rainy_River", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Rainy_River", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Rainy_River", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/rankin_inlet.js b/tests/zones/america/rankin_inlet.js new file mode 100644 index 00000000..6713c667 --- /dev/null +++ b/tests/zones/america/rankin_inlet.js @@ -0,0 +1,426 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Rankin_Inlet"] = { + "1956" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1956-12-31T23:59:59+00:00", "23:59:59", "zzz", 0] + ]), + + "1957" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1957-01-01T00:00:00+00:00", "18:00:00", "CST", 360] + ]), + + "1965" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1965-04-25T05:59:59+00:00", "23:59:59", "CST", 360], + ["1965-04-25T06:00:00+00:00", "02:00:00", "CDDT", 240], + ["1965-10-31T05:59:59+00:00", "01:59:59", "CDDT", 240], + ["1965-10-31T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1980-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1980-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1980-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1980-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1981-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1981-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1981-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1981-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1982-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1982-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1982-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1982-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1983-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1983-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1983-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1983-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1984" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1984-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1984-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1984-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1984-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1985" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1985-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1985-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1985-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1985-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1986" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1986-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1986-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1986-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1986-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1987-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1987-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1987-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1987-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1989" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1989-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1989-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1989-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1989-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1990" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1990-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1990-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1990-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1990-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1991-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1991-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1991-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1991-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1992-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1992-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1992-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1992-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1993-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1993-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1993-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1993-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1994" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1994-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1994-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1994-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1994-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1995" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1995-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1995-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1995-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1995-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2001-04-01T07:59:59+00:00", "02:59:59", "EST", 300], + ["2001-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Rankin_Inlet", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/recife.js b/tests/zones/america/recife.js new file mode 100644 index 00000000..f3880cff --- /dev/null +++ b/tests/zones/america/recife.js @@ -0,0 +1,158 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Recife"] = { + "1914" : helpers.makeTestYear("America/Recife", [ + ["1914-01-01T02:19:35+00:00", "23:59:59", "LMT", 8376 / 60], + ["1914-01-01T02:19:36+00:00", "23:19:36", "BRT", 180] + ]), + + "1931" : helpers.makeTestYear("America/Recife", [ + ["1931-10-03T13:59:59+00:00", "10:59:59", "BRT", 180], + ["1931-10-03T14:00:00+00:00", "12:00:00", "BRST", 120] + ]), + + "1932" : helpers.makeTestYear("America/Recife", [ + ["1932-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1932-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1932-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1932-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1933" : helpers.makeTestYear("America/Recife", [ + ["1933-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1933-04-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1949" : helpers.makeTestYear("America/Recife", [ + ["1949-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1949-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1950" : helpers.makeTestYear("America/Recife", [ + ["1950-04-16T02:59:59+00:00", "00:59:59", "BRST", 120], + ["1950-04-16T03:00:00+00:00", "00:00:00", "BRT", 180], + ["1950-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1950-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1951" : helpers.makeTestYear("America/Recife", [ + ["1951-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1951-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1951-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1951-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1952" : helpers.makeTestYear("America/Recife", [ + ["1952-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1952-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1952-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1952-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1953" : helpers.makeTestYear("America/Recife", [ + ["1953-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1953-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1963" : helpers.makeTestYear("America/Recife", [ + ["1963-12-09T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1963-12-09T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1964" : helpers.makeTestYear("America/Recife", [ + ["1964-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1964-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1965" : helpers.makeTestYear("America/Recife", [ + ["1965-01-31T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-01-31T03:00:00+00:00", "01:00:00", "BRST", 120], + ["1965-03-31T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1965-03-31T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1965-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1966" : helpers.makeTestYear("America/Recife", [ + ["1966-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1966-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1966-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1966-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1967" : helpers.makeTestYear("America/Recife", [ + ["1967-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1967-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1967-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1967-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1968" : helpers.makeTestYear("America/Recife", [ + ["1968-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1968-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1985" : helpers.makeTestYear("America/Recife", [ + ["1985-11-02T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1985-11-02T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1986" : helpers.makeTestYear("America/Recife", [ + ["1986-03-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1986-03-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1986-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1986-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1987" : helpers.makeTestYear("America/Recife", [ + ["1987-02-14T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1987-02-14T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1987-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1987-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1988" : helpers.makeTestYear("America/Recife", [ + ["1988-02-07T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1988-02-07T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1988-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1988-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Recife", [ + ["1989-01-29T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1989-01-29T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Recife", [ + ["1990-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1990-02-11T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1999" : helpers.makeTestYear("America/Recife", [ + ["1999-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1999-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2000" : helpers.makeTestYear("America/Recife", [ + ["2000-02-27T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2000-02-27T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2000-10-08T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2000-10-08T03:00:00+00:00", "01:00:00", "BRST", 120], + ["2000-10-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2000-10-15T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "2001" : helpers.makeTestYear("America/Recife", [ + ["2001-10-14T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2001-10-14T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2002" : helpers.makeTestYear("America/Recife", [ + ["2002-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2002-02-17T02:00:00+00:00", "23:00:00", "BRT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/regina.js b/tests/zones/america/regina.js new file mode 100644 index 00000000..1976aea0 --- /dev/null +++ b/tests/zones/america/regina.js @@ -0,0 +1,195 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Regina"] = { + "1905" : helpers.makeTestYear("America/Regina", [ + ["1905-09-01T06:58:35+00:00", "23:59:59", "LMT", 25116 / 60], + ["1905-09-01T06:58:36+00:00", "23:58:36", "MST", 420] + ]), + + "1918" : helpers.makeTestYear("America/Regina", [ + ["1918-04-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["1918-04-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1918-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1918-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1930" : helpers.makeTestYear("America/Regina", [ + ["1930-05-04T06:59:59+00:00", "23:59:59", "MST", 420], + ["1930-05-04T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1930-10-05T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1930-10-05T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1931" : helpers.makeTestYear("America/Regina", [ + ["1931-05-03T06:59:59+00:00", "23:59:59", "MST", 420], + ["1931-05-03T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1931-10-04T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1931-10-04T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1932" : helpers.makeTestYear("America/Regina", [ + ["1932-05-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1932-05-01T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1932-10-02T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1932-10-02T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1933" : helpers.makeTestYear("America/Regina", [ + ["1933-05-07T06:59:59+00:00", "23:59:59", "MST", 420], + ["1933-05-07T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1933-10-01T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1933-10-01T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1934" : helpers.makeTestYear("America/Regina", [ + ["1934-05-06T06:59:59+00:00", "23:59:59", "MST", 420], + ["1934-05-06T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1934-10-07T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1934-10-07T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1937" : helpers.makeTestYear("America/Regina", [ + ["1937-04-11T06:59:59+00:00", "23:59:59", "MST", 420], + ["1937-04-11T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1937-10-10T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1937-10-10T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1938" : helpers.makeTestYear("America/Regina", [ + ["1938-04-10T06:59:59+00:00", "23:59:59", "MST", 420], + ["1938-04-10T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1938-10-02T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1938-10-02T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1939" : helpers.makeTestYear("America/Regina", [ + ["1939-04-09T06:59:59+00:00", "23:59:59", "MST", 420], + ["1939-04-09T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1939-10-08T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1939-10-08T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1940" : helpers.makeTestYear("America/Regina", [ + ["1940-04-14T06:59:59+00:00", "23:59:59", "MST", 420], + ["1940-04-14T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1940-10-13T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1940-10-13T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1941" : helpers.makeTestYear("America/Regina", [ + ["1941-04-13T06:59:59+00:00", "23:59:59", "MST", 420], + ["1941-04-13T07:00:00+00:00", "01:00:00", "MDT", 360], + ["1941-10-12T05:59:59+00:00", "23:59:59", "MDT", 360], + ["1941-10-12T06:00:00+00:00", "23:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/Regina", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/Regina", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1946" : helpers.makeTestYear("America/Regina", [ + ["1946-04-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["1946-04-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1946-10-13T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1946-10-13T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1947" : helpers.makeTestYear("America/Regina", [ + ["1947-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1947-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1947-09-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1947-09-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1948" : helpers.makeTestYear("America/Regina", [ + ["1948-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1948-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1948-09-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1948-09-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1949" : helpers.makeTestYear("America/Regina", [ + ["1949-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1949-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1949-09-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1949-09-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1950" : helpers.makeTestYear("America/Regina", [ + ["1950-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1950-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1950-09-24T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1950-09-24T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1951" : helpers.makeTestYear("America/Regina", [ + ["1951-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1951-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1951-09-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1951-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1952" : helpers.makeTestYear("America/Regina", [ + ["1952-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1952-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1952-09-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1952-09-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1953" : helpers.makeTestYear("America/Regina", [ + ["1953-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1953-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1953-09-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1953-09-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1954" : helpers.makeTestYear("America/Regina", [ + ["1954-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1954-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1954-09-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1954-09-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1955" : helpers.makeTestYear("America/Regina", [ + ["1955-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1955-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1955-09-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1955-09-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1956" : helpers.makeTestYear("America/Regina", [ + ["1956-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1956-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1956-09-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1956-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1957" : helpers.makeTestYear("America/Regina", [ + ["1957-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1957-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1957-09-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1957-09-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1959" : helpers.makeTestYear("America/Regina", [ + ["1959-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1959-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1959-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1959-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1960" : helpers.makeTestYear("America/Regina", [ + ["1960-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1960-04-24T09:00:00+00:00", "03:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/resolute.js b/tests/zones/america/resolute.js new file mode 100644 index 00000000..be8fb656 --- /dev/null +++ b/tests/zones/america/resolute.js @@ -0,0 +1,423 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Resolute"] = { + "1947" : helpers.makeTestYear("America/Resolute", [ + ["1947-08-30T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1947-08-31T00:00:00+00:00", "18:00:00", "CST", 360] + ]), + + "1965" : helpers.makeTestYear("America/Resolute", [ + ["1965-04-25T05:59:59+00:00", "23:59:59", "CST", 360], + ["1965-04-25T06:00:00+00:00", "02:00:00", "CDDT", 240], + ["1965-10-31T05:59:59+00:00", "01:59:59", "CDDT", 240], + ["1965-10-31T06:00:00+00:00", "00:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Resolute", [ + ["1980-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1980-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1980-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1980-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Resolute", [ + ["1981-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1981-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1981-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1981-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("America/Resolute", [ + ["1982-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1982-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1982-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1982-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("America/Resolute", [ + ["1983-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1983-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1983-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1983-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1984" : helpers.makeTestYear("America/Resolute", [ + ["1984-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1984-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1984-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1984-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1985" : helpers.makeTestYear("America/Resolute", [ + ["1985-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1985-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1985-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1985-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1986" : helpers.makeTestYear("America/Resolute", [ + ["1986-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1986-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1986-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1986-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/Resolute", [ + ["1987-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1987-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1987-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1987-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Resolute", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1989" : helpers.makeTestYear("America/Resolute", [ + ["1989-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1989-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1989-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1989-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1990" : helpers.makeTestYear("America/Resolute", [ + ["1990-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1990-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1990-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1990-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Resolute", [ + ["1991-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1991-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1991-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1991-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("America/Resolute", [ + ["1992-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1992-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1992-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1992-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("America/Resolute", [ + ["1993-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1993-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1993-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1993-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1994" : helpers.makeTestYear("America/Resolute", [ + ["1994-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1994-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1994-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1994-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1995" : helpers.makeTestYear("America/Resolute", [ + ["1995-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1995-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1995-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1995-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Resolute", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Resolute", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Resolute", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Resolute", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Resolute", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Resolute", [ + ["2001-04-01T07:59:59+00:00", "02:59:59", "EST", 300], + ["2001-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Resolute", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Resolute", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Resolute", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Resolute", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Resolute", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "02:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Resolute", [ + ["2007-03-11T07:59:59+00:00", "02:59:59", "EST", 300], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Resolute", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Resolute", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Resolute", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Resolute", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Resolute", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Resolute", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Resolute", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Resolute", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Resolute", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Resolute", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Resolute", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Resolute", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Resolute", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Resolute", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Resolute", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Resolute", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Resolute", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Resolute", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Resolute", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Resolute", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Resolute", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Resolute", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Resolute", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Resolute", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Resolute", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Resolute", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Resolute", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Resolute", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Resolute", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Resolute", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/rio_branco.js b/tests/zones/america/rio_branco.js new file mode 100644 index 00000000..e86b98bc --- /dev/null +++ b/tests/zones/america/rio_branco.js @@ -0,0 +1,130 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Rio_Branco"] = { + "1914" : helpers.makeTestYear("America/Rio_Branco", [ + ["1914-01-01T04:31:11+00:00", "23:59:59", "LMT", 16272 / 60], + ["1914-01-01T04:31:12+00:00", "23:31:12", "ACT", 300] + ]), + + "1931" : helpers.makeTestYear("America/Rio_Branco", [ + ["1931-10-03T15:59:59+00:00", "10:59:59", "ACT", 300], + ["1931-10-03T16:00:00+00:00", "12:00:00", "ACST", 240] + ]), + + "1932" : helpers.makeTestYear("America/Rio_Branco", [ + ["1932-04-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1932-04-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1932-10-03T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1932-10-03T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1933" : helpers.makeTestYear("America/Rio_Branco", [ + ["1933-04-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1933-04-01T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "1949" : helpers.makeTestYear("America/Rio_Branco", [ + ["1949-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1949-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1950" : helpers.makeTestYear("America/Rio_Branco", [ + ["1950-04-16T04:59:59+00:00", "00:59:59", "ACST", 240], + ["1950-04-16T05:00:00+00:00", "00:00:00", "ACT", 300], + ["1950-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1950-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1951" : helpers.makeTestYear("America/Rio_Branco", [ + ["1951-04-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1951-04-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1951-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1951-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1952" : helpers.makeTestYear("America/Rio_Branco", [ + ["1952-04-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1952-04-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1952-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1952-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1953" : helpers.makeTestYear("America/Rio_Branco", [ + ["1953-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1953-03-01T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "1963" : helpers.makeTestYear("America/Rio_Branco", [ + ["1963-12-09T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1963-12-09T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1964" : helpers.makeTestYear("America/Rio_Branco", [ + ["1964-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1964-03-01T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "1965" : helpers.makeTestYear("America/Rio_Branco", [ + ["1965-01-31T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1965-01-31T05:00:00+00:00", "01:00:00", "ACST", 240], + ["1965-03-31T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1965-03-31T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1965-12-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1965-12-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1966" : helpers.makeTestYear("America/Rio_Branco", [ + ["1966-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1966-03-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1966-11-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1966-11-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1967" : helpers.makeTestYear("America/Rio_Branco", [ + ["1967-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1967-03-01T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1967-11-01T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1967-11-01T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1968" : helpers.makeTestYear("America/Rio_Branco", [ + ["1968-03-01T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1968-03-01T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "1985" : helpers.makeTestYear("America/Rio_Branco", [ + ["1985-11-02T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1985-11-02T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1986" : helpers.makeTestYear("America/Rio_Branco", [ + ["1986-03-15T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1986-03-15T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1986-10-25T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1986-10-25T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1987" : helpers.makeTestYear("America/Rio_Branco", [ + ["1987-02-14T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1987-02-14T04:00:00+00:00", "23:00:00", "ACT", 300], + ["1987-10-25T04:59:59+00:00", "23:59:59", "ACT", 300], + ["1987-10-25T05:00:00+00:00", "01:00:00", "ACST", 240] + ]), + + "1988" : helpers.makeTestYear("America/Rio_Branco", [ + ["1988-02-07T03:59:59+00:00", "23:59:59", "ACST", 240], + ["1988-02-07T04:00:00+00:00", "23:00:00", "ACT", 300] + ]), + + "2008" : helpers.makeTestYear("America/Rio_Branco", [ + ["2008-06-24T04:59:59+00:00", "23:59:59", "ACT", 300], + ["2008-06-24T05:00:00+00:00", "01:00:00", "AMT", 240] + ]), + + "2013" : helpers.makeTestYear("America/Rio_Branco", [ + ["2013-11-10T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2013-11-10T04:00:00+00:00", "23:00:00", "ACT", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/santa_isabel.js b/tests/zones/america/santa_isabel.js new file mode 100644 index 00000000..106ce34e --- /dev/null +++ b/tests/zones/america/santa_isabel.js @@ -0,0 +1,537 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Santa_Isabel"] = { + "1922" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1922-01-01T07:59:59+00:00", "00:20:31", "LMT", 27568 / 60], + ["1922-01-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1924" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1924-01-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1924-01-01T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1927" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1927-06-11T06:59:59+00:00", "22:59:59", "PST", 480], + ["1927-06-11T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1930" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1930-11-15T06:59:59+00:00", "23:59:59", "MST", 420], + ["1930-11-15T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1931" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1931-04-01T07:59:59+00:00", "23:59:59", "PST", 480], + ["1931-04-01T08:00:00+00:00", "01:00:00", "PDT", 420], + ["1931-09-30T06:59:59+00:00", "23:59:59", "PDT", 420], + ["1931-09-30T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1942" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1942-04-24T07:59:59+00:00", "23:59:59", "PST", 480], + ["1942-04-24T08:00:00+00:00", "01:00:00", "PWT", 420] + ]), + + "1945" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1945-08-14T22:59:59+00:00", "15:59:59", "PWT", 420], + ["1945-08-14T23:00:00+00:00", "16:00:00", "PPT", 420], + ["1945-11-12T06:59:59+00:00", "23:59:59", "PPT", 420], + ["1945-11-12T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1948" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1948-04-05T07:59:59+00:00", "23:59:59", "PST", 480], + ["1948-04-05T08:00:00+00:00", "01:00:00", "PDT", 420] + ]), + + "1949" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1949-01-14T06:59:59+00:00", "23:59:59", "PDT", 420], + ["1949-01-14T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1954" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1954-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1954-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1954-09-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1954-09-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1955" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1955-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1955-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1955-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1955-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1956" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1956-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1956-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1956-09-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1956-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1957" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1957-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1957-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1957-09-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1957-09-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1958" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1958-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1958-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1958-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1958-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1959" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1959-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1959-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1959-09-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1959-09-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1960" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1960-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1960-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1960-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1960-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1976" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1976-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1976-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1976-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1976-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1977" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1977-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1977-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1977-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1977-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1978" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1978-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1978-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1978-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1978-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1979" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1979-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1979-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1979-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1979-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1980-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1980-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1984" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1984-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1984-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1984-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1984-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1985" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1985-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1985-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1985-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1985-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1986" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1986-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1986-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1986-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1986-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1987" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1987-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1987-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1987-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1987-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1988" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1988-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1988-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1988-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1988-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1989" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1989-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1989-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1989-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1989-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1990" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1990-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["1990-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1990-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1990-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1991" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1991-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1991-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1991-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1991-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1992" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1992-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1992-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1992-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1992-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1993" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1993-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1993-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1993-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1993-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1994" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1994-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1994-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1994-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1994-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1995" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1995-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1995-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1995-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1995-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1996" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1996-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1996-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1996-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1996-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1997" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1997-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1997-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1997-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1997-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1998" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1998-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1998-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1998-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1998-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1999" : helpers.makeTestYear("America/Santa_Isabel", [ + ["1999-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1999-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1999-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1999-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2000" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2000-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2000-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2000-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2000-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2001" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2001-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2001-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2001-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2001-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2002" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2002-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2002-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2002-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2002-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2003" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2003-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2003-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2003-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2003-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2004" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2004-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2004-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2004-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2004-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2005" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2005-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2005-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2005-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2005-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2006" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2006-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2006-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2006-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2006-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2007" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2007-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2007-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2007-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2007-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2008" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2008-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2008-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2008-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2008-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2009" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2009-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["2009-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2009-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2009-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2010" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2010-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2010-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2010-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2010-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2011" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2011-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2011-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2011-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2011-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2012" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2012-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2012-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2012-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2012-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2013" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2013-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2013-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2013-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2013-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2014" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2014-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2014-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2014-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2014-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2015" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2015-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["2015-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2015-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2015-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2016" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2016-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2016-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2016-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2016-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2017" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2017-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2017-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2017-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2017-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2018" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2018-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2018-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2018-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2018-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2019" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2019-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2019-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2019-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2019-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2020" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2020-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["2020-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2020-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2020-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2021" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2021-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2021-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2021-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2021-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2022" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2022-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2022-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2022-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2022-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2023" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2023-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2023-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2023-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2023-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2024" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2024-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2024-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2024-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2024-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2025" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2025-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2025-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2025-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2025-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2026" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2026-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["2026-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2026-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2026-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2027" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2027-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2027-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2027-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2027-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2028" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2028-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2028-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2028-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2028-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2029" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2029-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2029-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2029-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2029-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2030" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2030-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2030-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2030-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2030-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2031" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2031-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2031-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2031-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2031-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2032" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2032-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2032-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2032-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2032-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2033" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2033-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2033-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2033-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2033-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2034" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2034-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2034-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2034-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2034-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2035" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2035-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2035-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2035-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2035-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2036" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2036-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2036-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2036-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2036-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2037" : helpers.makeTestYear("America/Santa_Isabel", [ + ["2037-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["2037-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2037-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2037-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/santarem.js b/tests/zones/america/santarem.js new file mode 100644 index 00000000..c2e14c69 --- /dev/null +++ b/tests/zones/america/santarem.js @@ -0,0 +1,125 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Santarem"] = { + "1914" : helpers.makeTestYear("America/Santarem", [ + ["1914-01-01T03:38:47+00:00", "23:59:59", "LMT", 13128 / 60], + ["1914-01-01T03:38:48+00:00", "23:38:48", "AMT", 240] + ]), + + "1931" : helpers.makeTestYear("America/Santarem", [ + ["1931-10-03T14:59:59+00:00", "10:59:59", "AMT", 240], + ["1931-10-03T15:00:00+00:00", "12:00:00", "AMST", 180] + ]), + + "1932" : helpers.makeTestYear("America/Santarem", [ + ["1932-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1932-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1932-10-03T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1932-10-03T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1933" : helpers.makeTestYear("America/Santarem", [ + ["1933-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1933-04-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1949" : helpers.makeTestYear("America/Santarem", [ + ["1949-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1949-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1950" : helpers.makeTestYear("America/Santarem", [ + ["1950-04-16T03:59:59+00:00", "00:59:59", "AMST", 180], + ["1950-04-16T04:00:00+00:00", "00:00:00", "AMT", 240], + ["1950-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1950-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1951" : helpers.makeTestYear("America/Santarem", [ + ["1951-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1951-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1951-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1951-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1952" : helpers.makeTestYear("America/Santarem", [ + ["1952-04-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1952-04-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1952-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1952-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1953" : helpers.makeTestYear("America/Santarem", [ + ["1953-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1953-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1963" : helpers.makeTestYear("America/Santarem", [ + ["1963-12-09T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1963-12-09T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1964" : helpers.makeTestYear("America/Santarem", [ + ["1964-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1964-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1965" : helpers.makeTestYear("America/Santarem", [ + ["1965-01-31T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-01-31T04:00:00+00:00", "01:00:00", "AMST", 180], + ["1965-03-31T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1965-03-31T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1965-12-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1965-12-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1966" : helpers.makeTestYear("America/Santarem", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1966-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1966-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1967" : helpers.makeTestYear("America/Santarem", [ + ["1967-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1967-03-01T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1967-11-01T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1967-11-01T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1968" : helpers.makeTestYear("America/Santarem", [ + ["1968-03-01T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1968-03-01T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "1985" : helpers.makeTestYear("America/Santarem", [ + ["1985-11-02T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1985-11-02T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1986" : helpers.makeTestYear("America/Santarem", [ + ["1986-03-15T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1986-03-15T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1986-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1986-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1987" : helpers.makeTestYear("America/Santarem", [ + ["1987-02-14T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1987-02-14T03:00:00+00:00", "23:00:00", "AMT", 240], + ["1987-10-25T03:59:59+00:00", "23:59:59", "AMT", 240], + ["1987-10-25T04:00:00+00:00", "01:00:00", "AMST", 180] + ]), + + "1988" : helpers.makeTestYear("America/Santarem", [ + ["1988-02-07T02:59:59+00:00", "23:59:59", "AMST", 180], + ["1988-02-07T03:00:00+00:00", "23:00:00", "AMT", 240] + ]), + + "2008" : helpers.makeTestYear("America/Santarem", [ + ["2008-06-24T03:59:59+00:00", "23:59:59", "AMT", 240], + ["2008-06-24T04:00:00+00:00", "01:00:00", "BRT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/santiago.js b/tests/zones/america/santiago.js new file mode 100644 index 00000000..c458b820 --- /dev/null +++ b/tests/zones/america/santiago.js @@ -0,0 +1,570 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Santiago"] = { + "1910" : helpers.makeTestYear("America/Santiago", [ + ["1910-01-01T04:42:45+00:00", "23:59:59", "SMT", 16966 / 60], + ["1910-01-01T04:42:46+00:00", "23:42:46", "CLT", 300] + ]), + + "1916" : helpers.makeTestYear("America/Santiago", [ + ["1916-07-01T04:59:59+00:00", "23:59:59", "CLT", 300], + ["1916-07-01T05:00:00+00:00", "00:17:14", "SMT", 16966 / 60] + ]), + + "1918" : helpers.makeTestYear("America/Santiago", [ + ["1918-09-01T04:42:45+00:00", "23:59:59", "SMT", 16966 / 60], + ["1918-09-01T04:42:46+00:00", "00:42:46", "CLT", 240] + ]), + + "1919" : helpers.makeTestYear("America/Santiago", [ + ["1919-07-01T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1919-07-01T04:00:00+00:00", "23:17:14", "SMT", 16966 / 60] + ]), + + "1927" : helpers.makeTestYear("America/Santiago", [ + ["1927-09-01T04:42:45+00:00", "23:59:59", "SMT", 16966 / 60], + ["1927-09-01T04:42:46+00:00", "00:42:46", "CLST", 240] + ]), + + "1928" : helpers.makeTestYear("America/Santiago", [ + ["1928-04-01T03:59:59+00:00", "23:59:59", "CLST", 240], + ["1928-04-01T04:00:00+00:00", "23:00:00", "CLT", 300], + ["1928-09-01T04:59:59+00:00", "23:59:59", "CLT", 300], + ["1928-09-01T05:00:00+00:00", "01:00:00", "CLST", 240] + ]), + + "1929" : helpers.makeTestYear("America/Santiago", [ + ["1929-04-01T03:59:59+00:00", "23:59:59", "CLST", 240], + ["1929-04-01T04:00:00+00:00", "23:00:00", "CLT", 300], + ["1929-09-01T04:59:59+00:00", "23:59:59", "CLT", 300], + ["1929-09-01T05:00:00+00:00", "01:00:00", "CLST", 240] + ]), + + "1930" : helpers.makeTestYear("America/Santiago", [ + ["1930-04-01T03:59:59+00:00", "23:59:59", "CLST", 240], + ["1930-04-01T04:00:00+00:00", "23:00:00", "CLT", 300], + ["1930-09-01T04:59:59+00:00", "23:59:59", "CLT", 300], + ["1930-09-01T05:00:00+00:00", "01:00:00", "CLST", 240] + ]), + + "1931" : helpers.makeTestYear("America/Santiago", [ + ["1931-04-01T03:59:59+00:00", "23:59:59", "CLST", 240], + ["1931-04-01T04:00:00+00:00", "23:00:00", "CLT", 300], + ["1931-09-01T04:59:59+00:00", "23:59:59", "CLT", 300], + ["1931-09-01T05:00:00+00:00", "01:00:00", "CLST", 240] + ]), + + "1932" : helpers.makeTestYear("America/Santiago", [ + ["1932-04-01T03:59:59+00:00", "23:59:59", "CLST", 240], + ["1932-04-01T04:00:00+00:00", "23:00:00", "CLT", 300], + ["1932-09-01T04:59:59+00:00", "23:59:59", "CLT", 300], + ["1932-09-01T05:00:00+00:00", "01:00:00", "CLST", 240] + ]), + + "1942" : helpers.makeTestYear("America/Santiago", [ + ["1942-06-01T03:59:59+00:00", "23:59:59", "CLST", 240], + ["1942-06-01T04:00:00+00:00", "23:00:00", "CLT", 300], + ["1942-08-01T04:59:59+00:00", "23:59:59", "CLT", 300], + ["1942-08-01T05:00:00+00:00", "01:00:00", "CLST", 240] + ]), + + "1946" : helpers.makeTestYear("America/Santiago", [ + ["1946-09-01T02:59:59+00:00", "22:59:59", "CLST", 240], + ["1946-09-01T03:00:00+00:00", "22:00:00", "CLT", 300] + ]), + + "1947" : helpers.makeTestYear("America/Santiago", [ + ["1947-05-22T04:59:59+00:00", "23:59:59", "CLT", 300], + ["1947-05-22T05:00:00+00:00", "01:00:00", "CLT", 240] + ]), + + "1968" : helpers.makeTestYear("America/Santiago", [ + ["1968-11-03T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1968-11-03T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1969" : helpers.makeTestYear("America/Santiago", [ + ["1969-03-30T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1969-03-30T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1969-11-23T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1969-11-23T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1970" : helpers.makeTestYear("America/Santiago", [ + ["1970-03-29T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1970-03-29T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1970-10-11T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1970-10-11T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1971" : helpers.makeTestYear("America/Santiago", [ + ["1971-03-14T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1971-03-14T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1971-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1971-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1972" : helpers.makeTestYear("America/Santiago", [ + ["1972-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1972-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1972-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1972-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1973" : helpers.makeTestYear("America/Santiago", [ + ["1973-03-11T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1973-03-11T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1973-09-30T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1973-09-30T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1974" : helpers.makeTestYear("America/Santiago", [ + ["1974-03-10T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1974-03-10T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1974-10-13T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1974-10-13T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1975" : helpers.makeTestYear("America/Santiago", [ + ["1975-03-09T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1975-03-09T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1975-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1975-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1976" : helpers.makeTestYear("America/Santiago", [ + ["1976-03-14T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1976-03-14T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1976-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1976-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1977" : helpers.makeTestYear("America/Santiago", [ + ["1977-03-13T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1977-03-13T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1977-10-09T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1977-10-09T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1978" : helpers.makeTestYear("America/Santiago", [ + ["1978-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1978-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1978-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1978-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1979" : helpers.makeTestYear("America/Santiago", [ + ["1979-03-11T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1979-03-11T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1979-10-14T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1979-10-14T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1980" : helpers.makeTestYear("America/Santiago", [ + ["1980-03-09T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1980-03-09T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1980-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1980-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1981" : helpers.makeTestYear("America/Santiago", [ + ["1981-03-15T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1981-03-15T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1981-10-11T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1981-10-11T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1982" : helpers.makeTestYear("America/Santiago", [ + ["1982-03-14T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1982-03-14T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1982-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1982-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1983" : helpers.makeTestYear("America/Santiago", [ + ["1983-03-13T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1983-03-13T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1983-10-09T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1983-10-09T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1984" : helpers.makeTestYear("America/Santiago", [ + ["1984-03-11T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1984-03-11T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1984-10-14T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1984-10-14T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1985" : helpers.makeTestYear("America/Santiago", [ + ["1985-03-10T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1985-03-10T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1985-10-13T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1985-10-13T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1986" : helpers.makeTestYear("America/Santiago", [ + ["1986-03-09T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1986-03-09T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1986-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1986-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1987" : helpers.makeTestYear("America/Santiago", [ + ["1987-04-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1987-04-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1987-10-11T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1987-10-11T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1988" : helpers.makeTestYear("America/Santiago", [ + ["1988-03-13T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1988-03-13T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1988-10-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1988-10-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1989" : helpers.makeTestYear("America/Santiago", [ + ["1989-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1989-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1989-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1989-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1990" : helpers.makeTestYear("America/Santiago", [ + ["1990-03-18T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1990-03-18T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1990-09-16T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1990-09-16T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1991" : helpers.makeTestYear("America/Santiago", [ + ["1991-03-10T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1991-03-10T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1991-10-13T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1991-10-13T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1992" : helpers.makeTestYear("America/Santiago", [ + ["1992-03-15T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1992-03-15T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1992-10-11T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1992-10-11T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1993" : helpers.makeTestYear("America/Santiago", [ + ["1993-03-14T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1993-03-14T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1993-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1993-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1994" : helpers.makeTestYear("America/Santiago", [ + ["1994-03-13T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1994-03-13T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1994-10-09T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1994-10-09T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1995" : helpers.makeTestYear("America/Santiago", [ + ["1995-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1995-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1995-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1995-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1996" : helpers.makeTestYear("America/Santiago", [ + ["1996-03-10T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1996-03-10T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1996-10-13T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1996-10-13T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1997" : helpers.makeTestYear("America/Santiago", [ + ["1997-03-30T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1997-03-30T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1997-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1997-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1998" : helpers.makeTestYear("America/Santiago", [ + ["1998-03-15T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1998-03-15T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1998-09-27T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1998-09-27T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1999" : helpers.makeTestYear("America/Santiago", [ + ["1999-04-04T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1999-04-04T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1999-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1999-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2000" : helpers.makeTestYear("America/Santiago", [ + ["2000-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2000-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2000-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2000-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2001" : helpers.makeTestYear("America/Santiago", [ + ["2001-03-11T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2001-03-11T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2001-10-14T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2001-10-14T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2002" : helpers.makeTestYear("America/Santiago", [ + ["2002-03-10T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2002-03-10T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2002-10-13T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2002-10-13T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2003" : helpers.makeTestYear("America/Santiago", [ + ["2003-03-09T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2003-03-09T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2003-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2003-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2004" : helpers.makeTestYear("America/Santiago", [ + ["2004-03-14T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2004-03-14T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2004-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2004-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2005" : helpers.makeTestYear("America/Santiago", [ + ["2005-03-13T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2005-03-13T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2005-10-09T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2005-10-09T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2006" : helpers.makeTestYear("America/Santiago", [ + ["2006-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2006-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2006-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2006-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2007" : helpers.makeTestYear("America/Santiago", [ + ["2007-03-11T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2007-03-11T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2007-10-14T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2007-10-14T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2008" : helpers.makeTestYear("America/Santiago", [ + ["2008-03-30T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2008-03-30T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2008-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2008-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2009" : helpers.makeTestYear("America/Santiago", [ + ["2009-03-15T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2009-03-15T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2009-10-11T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2009-10-11T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2010" : helpers.makeTestYear("America/Santiago", [ + ["2010-04-04T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2010-04-04T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2010-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2010-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2011" : helpers.makeTestYear("America/Santiago", [ + ["2011-05-08T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2011-05-08T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2011-08-21T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2011-08-21T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2012" : helpers.makeTestYear("America/Santiago", [ + ["2012-04-29T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2012-04-29T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2012-09-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2012-09-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2013" : helpers.makeTestYear("America/Santiago", [ + ["2013-04-28T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2013-04-28T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2013-09-08T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2013-09-08T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2014" : helpers.makeTestYear("America/Santiago", [ + ["2014-04-27T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2014-04-27T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2014-09-07T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2014-09-07T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2015" : helpers.makeTestYear("America/Santiago", [ + ["2015-04-26T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2015-04-26T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2015-09-06T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2015-09-06T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2016" : helpers.makeTestYear("America/Santiago", [ + ["2016-04-24T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2016-04-24T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2016-09-04T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2016-09-04T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2017" : helpers.makeTestYear("America/Santiago", [ + ["2017-04-23T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2017-04-23T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2017-09-03T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2017-09-03T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2018" : helpers.makeTestYear("America/Santiago", [ + ["2018-04-29T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2018-04-29T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2018-09-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2018-09-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2019" : helpers.makeTestYear("America/Santiago", [ + ["2019-04-28T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2019-04-28T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2019-09-08T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2019-09-08T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2020" : helpers.makeTestYear("America/Santiago", [ + ["2020-04-26T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2020-04-26T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2020-09-06T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2020-09-06T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2021" : helpers.makeTestYear("America/Santiago", [ + ["2021-04-25T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2021-04-25T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2021-09-05T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2021-09-05T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2022" : helpers.makeTestYear("America/Santiago", [ + ["2022-04-24T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2022-04-24T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2022-09-04T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2022-09-04T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2023" : helpers.makeTestYear("America/Santiago", [ + ["2023-04-23T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2023-04-23T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2023-09-03T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2023-09-03T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2024" : helpers.makeTestYear("America/Santiago", [ + ["2024-04-28T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2024-04-28T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2024-09-08T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2024-09-08T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2025" : helpers.makeTestYear("America/Santiago", [ + ["2025-04-27T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2025-04-27T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2025-09-07T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2025-09-07T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2026" : helpers.makeTestYear("America/Santiago", [ + ["2026-04-26T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2026-04-26T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2026-09-06T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2026-09-06T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2027" : helpers.makeTestYear("America/Santiago", [ + ["2027-04-25T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2027-04-25T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2027-09-05T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2027-09-05T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2028" : helpers.makeTestYear("America/Santiago", [ + ["2028-04-23T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2028-04-23T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2028-09-03T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2028-09-03T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2029" : helpers.makeTestYear("America/Santiago", [ + ["2029-04-29T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2029-04-29T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2029-09-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2029-09-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2030" : helpers.makeTestYear("America/Santiago", [ + ["2030-04-28T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2030-04-28T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2030-09-08T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2030-09-08T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2031" : helpers.makeTestYear("America/Santiago", [ + ["2031-04-27T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2031-04-27T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2031-09-07T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2031-09-07T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2032" : helpers.makeTestYear("America/Santiago", [ + ["2032-04-25T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2032-04-25T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2032-09-05T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2032-09-05T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2033" : helpers.makeTestYear("America/Santiago", [ + ["2033-04-24T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2033-04-24T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2033-09-04T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2033-09-04T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2034" : helpers.makeTestYear("America/Santiago", [ + ["2034-04-23T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2034-04-23T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2034-09-03T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2034-09-03T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2035" : helpers.makeTestYear("America/Santiago", [ + ["2035-04-29T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2035-04-29T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2035-09-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2035-09-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2036" : helpers.makeTestYear("America/Santiago", [ + ["2036-04-27T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2036-04-27T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2036-09-07T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2036-09-07T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2037" : helpers.makeTestYear("America/Santiago", [ + ["2037-04-26T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2037-04-26T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2037-09-06T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2037-09-06T04:00:00+00:00", "01:00:00", "CLST", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/santo_domingo.js b/tests/zones/america/santo_domingo.js new file mode 100644 index 00000000..816d4ca5 --- /dev/null +++ b/tests/zones/america/santo_domingo.js @@ -0,0 +1,67 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Santo_Domingo"] = { + "1933" : helpers.makeTestYear("America/Santo_Domingo", [ + ["1933-04-01T16:39:59+00:00", "11:59:59", "SDMT", 280], + ["1933-04-01T16:40:00+00:00", "11:40:00", "EST", 300] + ]), + + "1966" : helpers.makeTestYear("America/Santo_Domingo", [ + ["1966-10-30T04:59:59+00:00", "23:59:59", "EST", 300], + ["1966-10-30T05:00:00+00:00", "01:00:00", "EDT", 240] + ]), + + "1967" : helpers.makeTestYear("America/Santo_Domingo", [ + ["1967-02-28T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1967-02-28T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Santo_Domingo", [ + ["1969-10-26T04:59:59+00:00", "23:59:59", "EST", 300], + ["1969-10-26T05:00:00+00:00", "00:30:00", "EHDT", 270] + ]), + + "1970" : helpers.makeTestYear("America/Santo_Domingo", [ + ["1970-02-21T04:29:59+00:00", "23:59:59", "EHDT", 270], + ["1970-02-21T04:30:00+00:00", "23:30:00", "EST", 300], + ["1970-10-25T04:59:59+00:00", "23:59:59", "EST", 300], + ["1970-10-25T05:00:00+00:00", "00:30:00", "EHDT", 270] + ]), + + "1971" : helpers.makeTestYear("America/Santo_Domingo", [ + ["1971-01-20T04:29:59+00:00", "23:59:59", "EHDT", 270], + ["1971-01-20T04:30:00+00:00", "23:30:00", "EST", 300], + ["1971-10-31T04:59:59+00:00", "23:59:59", "EST", 300], + ["1971-10-31T05:00:00+00:00", "00:30:00", "EHDT", 270] + ]), + + "1972" : helpers.makeTestYear("America/Santo_Domingo", [ + ["1972-01-21T04:29:59+00:00", "23:59:59", "EHDT", 270], + ["1972-01-21T04:30:00+00:00", "23:30:00", "EST", 300], + ["1972-10-29T04:59:59+00:00", "23:59:59", "EST", 300], + ["1972-10-29T05:00:00+00:00", "00:30:00", "EHDT", 270] + ]), + + "1973" : helpers.makeTestYear("America/Santo_Domingo", [ + ["1973-01-21T04:29:59+00:00", "23:59:59", "EHDT", 270], + ["1973-01-21T04:30:00+00:00", "23:30:00", "EST", 300], + ["1973-10-28T04:59:59+00:00", "23:59:59", "EST", 300], + ["1973-10-28T05:00:00+00:00", "00:30:00", "EHDT", 270] + ]), + + "1974" : helpers.makeTestYear("America/Santo_Domingo", [ + ["1974-01-21T04:29:59+00:00", "23:59:59", "EHDT", 270], + ["1974-01-21T04:30:00+00:00", "23:30:00", "EST", 300], + ["1974-10-27T04:59:59+00:00", "23:59:59", "EST", 300], + ["1974-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2000" : helpers.makeTestYear("America/Santo_Domingo", [ + ["2000-10-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300], + ["2000-12-03T05:59:59+00:00", "00:59:59", "EST", 300], + ["2000-12-03T06:00:00+00:00", "02:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/sao_paulo.js b/tests/zones/america/sao_paulo.js new file mode 100644 index 00000000..3d07eebd --- /dev/null +++ b/tests/zones/america/sao_paulo.js @@ -0,0 +1,465 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Sao_Paulo"] = { + "1914" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1914-01-01T03:06:27+00:00", "23:59:59", "LMT", 11188 / 60], + ["1914-01-01T03:06:28+00:00", "00:06:28", "BRT", 180] + ]), + + "1931" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1931-10-03T13:59:59+00:00", "10:59:59", "BRT", 180], + ["1931-10-03T14:00:00+00:00", "12:00:00", "BRST", 120] + ]), + + "1932" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1932-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1932-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1932-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1932-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1933" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1933-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1933-04-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1949" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1949-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1949-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1950" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1950-04-16T02:59:59+00:00", "00:59:59", "BRST", 120], + ["1950-04-16T03:00:00+00:00", "00:00:00", "BRT", 180], + ["1950-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1950-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1951" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1951-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1951-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1951-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1951-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1952" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1952-04-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1952-04-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1952-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1952-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1953" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1953-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1953-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1963" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1963-10-23T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1963-10-23T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1964" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1964-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1964-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1965" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1965-01-31T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-01-31T03:00:00+00:00", "01:00:00", "BRST", 120], + ["1965-03-31T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1965-03-31T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1965-12-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1965-12-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1966" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1966-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1966-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1966-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1966-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1967" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1967-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1967-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1967-11-01T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1967-11-01T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1968" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1968-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1968-03-01T02:00:00+00:00", "23:00:00", "BRT", 180] + ]), + + "1985" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1985-11-02T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1985-11-02T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1986" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1986-03-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1986-03-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1986-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1986-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1987" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1987-02-14T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1987-02-14T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1987-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1987-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1988" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1988-02-07T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1988-02-07T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1988-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1988-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1989" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1989-01-29T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1989-01-29T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1989-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1989-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1990" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1990-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1990-02-11T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1990-10-21T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1990-10-21T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1991" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1991-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1991-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1991-10-20T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1991-10-20T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1992" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1992-02-09T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1992-02-09T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1992-10-25T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1992-10-25T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1993" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1993-01-31T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1993-01-31T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1993-10-17T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1993-10-17T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1994" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1994-02-20T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1994-02-20T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1994-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1994-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1995" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1995-02-19T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1995-02-19T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1995-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1995-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1996" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1996-02-11T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1996-02-11T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1996-10-06T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1996-10-06T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1997" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1997-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1997-02-16T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1997-10-06T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1997-10-06T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1998" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1998-03-01T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1998-03-01T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1998-10-11T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1998-10-11T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "1999" : helpers.makeTestYear("America/Sao_Paulo", [ + ["1999-02-21T01:59:59+00:00", "23:59:59", "BRST", 120], + ["1999-02-21T02:00:00+00:00", "23:00:00", "BRT", 180], + ["1999-10-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["1999-10-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2000" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2000-02-27T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2000-02-27T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2000-10-08T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2000-10-08T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2001" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2001-02-18T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2001-02-18T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2001-10-14T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2001-10-14T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2002" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2002-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2002-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2002-11-03T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2002-11-03T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2003" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2003-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2003-02-16T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2003-10-19T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2003-10-19T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2004" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2004-02-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2004-02-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2004-11-02T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2004-11-02T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2005" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2005-02-20T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2005-02-20T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2005-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2005-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2006" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2006-02-19T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2006-02-19T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2006-11-05T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2006-11-05T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2007" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2007-02-25T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2007-02-25T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2007-10-14T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2007-10-14T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2008" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2008-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2008-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2008-10-19T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2008-10-19T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2009" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2009-02-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2009-02-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2009-10-18T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2009-10-18T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2010" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2010-02-21T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2010-02-21T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2010-10-17T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2010-10-17T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2011" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2011-02-20T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2011-02-20T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2011-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2011-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2012" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2012-02-26T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2012-02-26T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2012-10-21T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2012-10-21T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2013" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2013-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2013-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2013-10-20T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2013-10-20T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2014" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2014-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2014-02-16T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2014-10-19T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2014-10-19T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2015" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2015-02-22T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2015-02-22T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2015-10-18T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2015-10-18T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2016" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2016-02-21T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2016-02-21T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2016-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2016-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2017" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2017-02-19T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2017-02-19T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2017-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2017-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2018" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2018-02-18T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2018-02-18T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2018-10-21T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2018-10-21T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2019" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2019-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2019-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2019-10-20T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2019-10-20T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2020" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2020-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2020-02-16T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2020-10-18T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2020-10-18T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2021" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2021-02-21T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2021-02-21T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2021-10-17T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2021-10-17T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2022" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2022-02-20T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2022-02-20T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2022-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2022-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2023" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2023-02-26T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2023-02-26T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2023-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2023-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2024" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2024-02-18T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2024-02-18T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2024-10-20T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2024-10-20T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2025" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2025-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2025-02-16T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2025-10-19T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2025-10-19T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2026" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2026-02-22T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2026-02-22T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2026-10-18T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2026-10-18T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2027" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2027-02-21T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2027-02-21T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2027-10-17T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2027-10-17T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2028" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2028-02-20T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2028-02-20T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2028-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2028-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2029" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2029-02-18T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2029-02-18T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2029-10-21T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2029-10-21T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2030" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2030-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2030-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2030-10-20T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2030-10-20T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2031" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2031-02-16T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2031-02-16T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2031-10-19T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2031-10-19T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2032" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2032-02-15T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2032-02-15T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2032-10-17T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2032-10-17T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2033" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2033-02-20T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2033-02-20T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2033-10-16T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2033-10-16T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2034" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2034-02-26T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2034-02-26T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2034-10-15T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2034-10-15T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2035" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2035-02-18T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2035-02-18T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2035-10-21T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2035-10-21T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2036" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2036-02-17T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2036-02-17T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2036-10-19T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2036-10-19T03:00:00+00:00", "01:00:00", "BRST", 120] + ]), + + "2037" : helpers.makeTestYear("America/Sao_Paulo", [ + ["2037-02-22T01:59:59+00:00", "23:59:59", "BRST", 120], + ["2037-02-22T02:00:00+00:00", "23:00:00", "BRT", 180], + ["2037-10-18T02:59:59+00:00", "23:59:59", "BRT", 180], + ["2037-10-18T03:00:00+00:00", "01:00:00", "BRST", 120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/scoresbysund.js b/tests/zones/america/scoresbysund.js new file mode 100644 index 00000000..b20169f9 --- /dev/null +++ b/tests/zones/america/scoresbysund.js @@ -0,0 +1,416 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Scoresbysund"] = { + "1916" : helpers.makeTestYear("America/Scoresbysund", [ + ["1916-07-28T01:27:51+00:00", "23:59:59", "LMT", 5272 / 60], + ["1916-07-28T01:27:52+00:00", "23:27:52", "CGT", 120] + ]), + + "1980" : helpers.makeTestYear("America/Scoresbysund", [ + ["1980-04-06T03:59:59+00:00", "01:59:59", "CGT", 120], + ["1980-04-06T04:00:00+00:00", "03:00:00", "CGST", 60], + ["1980-09-28T03:59:59+00:00", "02:59:59", "CGST", 60], + ["1980-09-28T04:00:00+00:00", "02:00:00", "CGT", 120] + ]), + + "1981" : helpers.makeTestYear("America/Scoresbysund", [ + ["1981-03-29T01:59:59+00:00", "23:59:59", "CGT", 120], + ["1981-03-29T02:00:00+00:00", "02:00:00", "EGST", 0], + ["1981-09-27T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1981-09-27T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1982" : helpers.makeTestYear("America/Scoresbysund", [ + ["1982-03-28T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1982-03-28T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1982-09-26T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1982-09-26T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1983" : helpers.makeTestYear("America/Scoresbysund", [ + ["1983-03-27T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1983-03-27T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1983-09-25T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1983-09-25T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1984" : helpers.makeTestYear("America/Scoresbysund", [ + ["1984-03-25T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1984-03-25T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1984-09-30T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1984-09-30T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1985" : helpers.makeTestYear("America/Scoresbysund", [ + ["1985-03-31T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1985-03-31T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1985-09-29T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1985-09-29T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1986" : helpers.makeTestYear("America/Scoresbysund", [ + ["1986-03-30T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1986-03-30T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1986-09-28T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1986-09-28T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1987" : helpers.makeTestYear("America/Scoresbysund", [ + ["1987-03-29T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1987-03-29T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1987-09-27T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1987-09-27T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1988" : helpers.makeTestYear("America/Scoresbysund", [ + ["1988-03-27T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1988-03-27T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1988-09-25T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1988-09-25T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1989" : helpers.makeTestYear("America/Scoresbysund", [ + ["1989-03-26T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1989-03-26T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1989-09-24T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1989-09-24T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1990" : helpers.makeTestYear("America/Scoresbysund", [ + ["1990-03-25T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1990-03-25T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1990-09-30T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1990-09-30T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1991" : helpers.makeTestYear("America/Scoresbysund", [ + ["1991-03-31T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1991-03-31T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1991-09-29T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1991-09-29T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1992" : helpers.makeTestYear("America/Scoresbysund", [ + ["1992-03-29T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1992-03-29T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1992-09-27T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1992-09-27T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1993" : helpers.makeTestYear("America/Scoresbysund", [ + ["1993-03-28T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1993-03-28T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1993-09-26T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1993-09-26T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1994" : helpers.makeTestYear("America/Scoresbysund", [ + ["1994-03-27T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1994-03-27T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1994-09-25T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1994-09-25T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1995" : helpers.makeTestYear("America/Scoresbysund", [ + ["1995-03-26T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1995-03-26T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1995-09-24T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1995-09-24T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1996" : helpers.makeTestYear("America/Scoresbysund", [ + ["1996-03-31T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1996-03-31T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1996-10-27T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1996-10-27T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1997" : helpers.makeTestYear("America/Scoresbysund", [ + ["1997-03-30T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1997-03-30T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1997-10-26T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1997-10-26T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1998" : helpers.makeTestYear("America/Scoresbysund", [ + ["1998-03-29T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1998-03-29T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1998-10-25T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1998-10-25T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "1999" : helpers.makeTestYear("America/Scoresbysund", [ + ["1999-03-28T00:59:59+00:00", "23:59:59", "EGT", 60], + ["1999-03-28T01:00:00+00:00", "01:00:00", "EGST", 0], + ["1999-10-31T00:59:59+00:00", "00:59:59", "EGST", 0], + ["1999-10-31T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2000" : helpers.makeTestYear("America/Scoresbysund", [ + ["2000-03-26T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2000-03-26T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2000-10-29T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2000-10-29T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2001" : helpers.makeTestYear("America/Scoresbysund", [ + ["2001-03-25T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2001-03-25T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2001-10-28T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2001-10-28T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2002" : helpers.makeTestYear("America/Scoresbysund", [ + ["2002-03-31T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2002-03-31T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2002-10-27T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2002-10-27T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2003" : helpers.makeTestYear("America/Scoresbysund", [ + ["2003-03-30T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2003-03-30T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2003-10-26T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2003-10-26T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2004" : helpers.makeTestYear("America/Scoresbysund", [ + ["2004-03-28T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2004-03-28T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2004-10-31T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2004-10-31T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2005" : helpers.makeTestYear("America/Scoresbysund", [ + ["2005-03-27T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2005-03-27T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2005-10-30T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2005-10-30T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2006" : helpers.makeTestYear("America/Scoresbysund", [ + ["2006-03-26T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2006-03-26T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2006-10-29T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2006-10-29T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2007" : helpers.makeTestYear("America/Scoresbysund", [ + ["2007-03-25T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2007-03-25T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2007-10-28T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2007-10-28T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2008" : helpers.makeTestYear("America/Scoresbysund", [ + ["2008-03-30T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2008-03-30T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2008-10-26T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2008-10-26T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2009" : helpers.makeTestYear("America/Scoresbysund", [ + ["2009-03-29T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2009-03-29T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2009-10-25T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2009-10-25T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2010" : helpers.makeTestYear("America/Scoresbysund", [ + ["2010-03-28T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2010-03-28T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2010-10-31T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2010-10-31T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2011" : helpers.makeTestYear("America/Scoresbysund", [ + ["2011-03-27T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2011-03-27T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2011-10-30T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2011-10-30T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2012" : helpers.makeTestYear("America/Scoresbysund", [ + ["2012-03-25T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2012-03-25T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2012-10-28T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2012-10-28T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2013" : helpers.makeTestYear("America/Scoresbysund", [ + ["2013-03-31T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2013-03-31T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2013-10-27T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2013-10-27T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2014" : helpers.makeTestYear("America/Scoresbysund", [ + ["2014-03-30T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2014-03-30T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2014-10-26T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2014-10-26T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2015" : helpers.makeTestYear("America/Scoresbysund", [ + ["2015-03-29T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2015-03-29T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2015-10-25T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2015-10-25T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2016" : helpers.makeTestYear("America/Scoresbysund", [ + ["2016-03-27T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2016-03-27T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2016-10-30T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2016-10-30T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2017" : helpers.makeTestYear("America/Scoresbysund", [ + ["2017-03-26T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2017-03-26T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2017-10-29T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2017-10-29T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2018" : helpers.makeTestYear("America/Scoresbysund", [ + ["2018-03-25T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2018-03-25T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2018-10-28T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2018-10-28T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2019" : helpers.makeTestYear("America/Scoresbysund", [ + ["2019-03-31T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2019-03-31T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2019-10-27T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2019-10-27T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2020" : helpers.makeTestYear("America/Scoresbysund", [ + ["2020-03-29T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2020-03-29T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2020-10-25T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2020-10-25T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2021" : helpers.makeTestYear("America/Scoresbysund", [ + ["2021-03-28T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2021-03-28T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2021-10-31T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2021-10-31T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2022" : helpers.makeTestYear("America/Scoresbysund", [ + ["2022-03-27T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2022-03-27T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2022-10-30T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2022-10-30T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2023" : helpers.makeTestYear("America/Scoresbysund", [ + ["2023-03-26T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2023-03-26T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2023-10-29T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2023-10-29T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2024" : helpers.makeTestYear("America/Scoresbysund", [ + ["2024-03-31T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2024-03-31T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2024-10-27T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2024-10-27T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2025" : helpers.makeTestYear("America/Scoresbysund", [ + ["2025-03-30T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2025-03-30T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2025-10-26T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2025-10-26T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2026" : helpers.makeTestYear("America/Scoresbysund", [ + ["2026-03-29T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2026-03-29T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2026-10-25T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2026-10-25T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2027" : helpers.makeTestYear("America/Scoresbysund", [ + ["2027-03-28T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2027-03-28T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2027-10-31T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2027-10-31T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2028" : helpers.makeTestYear("America/Scoresbysund", [ + ["2028-03-26T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2028-03-26T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2028-10-29T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2028-10-29T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2029" : helpers.makeTestYear("America/Scoresbysund", [ + ["2029-03-25T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2029-03-25T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2029-10-28T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2029-10-28T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2030" : helpers.makeTestYear("America/Scoresbysund", [ + ["2030-03-31T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2030-03-31T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2030-10-27T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2030-10-27T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2031" : helpers.makeTestYear("America/Scoresbysund", [ + ["2031-03-30T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2031-03-30T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2031-10-26T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2031-10-26T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2032" : helpers.makeTestYear("America/Scoresbysund", [ + ["2032-03-28T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2032-03-28T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2032-10-31T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2032-10-31T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2033" : helpers.makeTestYear("America/Scoresbysund", [ + ["2033-03-27T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2033-03-27T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2033-10-30T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2033-10-30T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2034" : helpers.makeTestYear("America/Scoresbysund", [ + ["2034-03-26T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2034-03-26T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2034-10-29T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2034-10-29T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2035" : helpers.makeTestYear("America/Scoresbysund", [ + ["2035-03-25T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2035-03-25T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2035-10-28T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2035-10-28T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2036" : helpers.makeTestYear("America/Scoresbysund", [ + ["2036-03-30T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2036-03-30T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2036-10-26T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2036-10-26T01:00:00+00:00", "00:00:00", "EGT", 60] + ]), + + "2037" : helpers.makeTestYear("America/Scoresbysund", [ + ["2037-03-29T00:59:59+00:00", "23:59:59", "EGT", 60], + ["2037-03-29T01:00:00+00:00", "01:00:00", "EGST", 0], + ["2037-10-25T00:59:59+00:00", "00:59:59", "EGST", 0], + ["2037-10-25T01:00:00+00:00", "00:00:00", "EGT", 60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/sitka.js b/tests/zones/america/sitka.js new file mode 100644 index 00000000..95625a46 --- /dev/null +++ b/tests/zones/america/sitka.js @@ -0,0 +1,502 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Sitka"] = { + "1942" : helpers.makeTestYear("America/Sitka", [ + ["1942-02-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["1942-02-09T10:00:00+00:00", "03:00:00", "PWT", 420] + ]), + + "1945" : helpers.makeTestYear("America/Sitka", [ + ["1945-08-14T22:59:59+00:00", "15:59:59", "PWT", 420], + ["1945-08-14T23:00:00+00:00", "16:00:00", "PPT", 420], + ["1945-09-30T08:59:59+00:00", "01:59:59", "PPT", 420], + ["1945-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1969" : helpers.makeTestYear("America/Sitka", [ + ["1969-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1969-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1969-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1969-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("America/Sitka", [ + ["1970-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1970-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1970-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1970-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1971" : helpers.makeTestYear("America/Sitka", [ + ["1971-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1971-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1971-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1971-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1972" : helpers.makeTestYear("America/Sitka", [ + ["1972-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1972-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1972-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1972-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1973" : helpers.makeTestYear("America/Sitka", [ + ["1973-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1973-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1973-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1973-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1974" : helpers.makeTestYear("America/Sitka", [ + ["1974-01-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1974-01-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1974-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1974-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1975" : helpers.makeTestYear("America/Sitka", [ + ["1975-02-23T09:59:59+00:00", "01:59:59", "PST", 480], + ["1975-02-23T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1975-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1975-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1976" : helpers.makeTestYear("America/Sitka", [ + ["1976-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1976-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1976-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1976-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1977" : helpers.makeTestYear("America/Sitka", [ + ["1977-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1977-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1977-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1977-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1978" : helpers.makeTestYear("America/Sitka", [ + ["1978-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1978-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1978-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1978-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1979" : helpers.makeTestYear("America/Sitka", [ + ["1979-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1979-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1979-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1979-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("America/Sitka", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1980-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1980-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("America/Sitka", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("America/Sitka", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("America/Sitka", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "00:00:00", "YST", 540], + ["1983-11-30T08:59:59+00:00", "23:59:59", "YST", 540], + ["1983-11-30T09:00:00+00:00", "00:00:00", "AKST", 540] + ]), + + "1984" : helpers.makeTestYear("America/Sitka", [ + ["1984-04-29T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1984-04-29T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1984-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1984-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1985" : helpers.makeTestYear("America/Sitka", [ + ["1985-04-28T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1985-04-28T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1985-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1985-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1986" : helpers.makeTestYear("America/Sitka", [ + ["1986-04-27T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1986-04-27T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1986-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1986-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1987" : helpers.makeTestYear("America/Sitka", [ + ["1987-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1987-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1987-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1987-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1988" : helpers.makeTestYear("America/Sitka", [ + ["1988-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1988-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1988-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1988-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1989" : helpers.makeTestYear("America/Sitka", [ + ["1989-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1989-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1989-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1989-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1990" : helpers.makeTestYear("America/Sitka", [ + ["1990-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1990-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1990-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1990-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1991" : helpers.makeTestYear("America/Sitka", [ + ["1991-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1991-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1991-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1991-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1992" : helpers.makeTestYear("America/Sitka", [ + ["1992-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1992-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1992-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1992-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1993" : helpers.makeTestYear("America/Sitka", [ + ["1993-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1993-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1993-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1993-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1994" : helpers.makeTestYear("America/Sitka", [ + ["1994-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1994-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1994-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1994-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1995" : helpers.makeTestYear("America/Sitka", [ + ["1995-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1995-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1995-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1995-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1996" : helpers.makeTestYear("America/Sitka", [ + ["1996-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1996-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1996-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1996-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1997" : helpers.makeTestYear("America/Sitka", [ + ["1997-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1997-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1997-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1997-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1998" : helpers.makeTestYear("America/Sitka", [ + ["1998-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1998-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1998-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1998-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1999" : helpers.makeTestYear("America/Sitka", [ + ["1999-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1999-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1999-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1999-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2000" : helpers.makeTestYear("America/Sitka", [ + ["2000-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2000-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2000-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2000-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2001" : helpers.makeTestYear("America/Sitka", [ + ["2001-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2001-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2001-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2001-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2002" : helpers.makeTestYear("America/Sitka", [ + ["2002-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2002-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2002-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2002-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2003" : helpers.makeTestYear("America/Sitka", [ + ["2003-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2003-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2003-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2003-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2004" : helpers.makeTestYear("America/Sitka", [ + ["2004-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2004-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2004-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2004-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2005" : helpers.makeTestYear("America/Sitka", [ + ["2005-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2005-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2005-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2005-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2006" : helpers.makeTestYear("America/Sitka", [ + ["2006-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2006-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2006-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2006-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2007" : helpers.makeTestYear("America/Sitka", [ + ["2007-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2007-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2007-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2007-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2008" : helpers.makeTestYear("America/Sitka", [ + ["2008-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2008-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2008-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2008-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2009" : helpers.makeTestYear("America/Sitka", [ + ["2009-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2009-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2009-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2009-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2010" : helpers.makeTestYear("America/Sitka", [ + ["2010-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2010-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2010-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2010-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2011" : helpers.makeTestYear("America/Sitka", [ + ["2011-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2011-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2011-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2011-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2012" : helpers.makeTestYear("America/Sitka", [ + ["2012-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2012-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2012-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2012-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2013" : helpers.makeTestYear("America/Sitka", [ + ["2013-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2013-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2013-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2013-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2014" : helpers.makeTestYear("America/Sitka", [ + ["2014-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2014-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2014-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2014-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2015" : helpers.makeTestYear("America/Sitka", [ + ["2015-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2015-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2015-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2015-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2016" : helpers.makeTestYear("America/Sitka", [ + ["2016-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2016-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2016-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2016-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2017" : helpers.makeTestYear("America/Sitka", [ + ["2017-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2017-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2017-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2017-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2018" : helpers.makeTestYear("America/Sitka", [ + ["2018-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2018-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2018-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2018-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2019" : helpers.makeTestYear("America/Sitka", [ + ["2019-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2019-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2019-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2019-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2020" : helpers.makeTestYear("America/Sitka", [ + ["2020-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2020-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2020-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2020-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2021" : helpers.makeTestYear("America/Sitka", [ + ["2021-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2021-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2021-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2021-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2022" : helpers.makeTestYear("America/Sitka", [ + ["2022-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2022-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2022-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2022-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2023" : helpers.makeTestYear("America/Sitka", [ + ["2023-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2023-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2023-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2023-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2024" : helpers.makeTestYear("America/Sitka", [ + ["2024-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2024-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2024-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2024-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2025" : helpers.makeTestYear("America/Sitka", [ + ["2025-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2025-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2025-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2025-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2026" : helpers.makeTestYear("America/Sitka", [ + ["2026-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2026-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2026-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2026-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2027" : helpers.makeTestYear("America/Sitka", [ + ["2027-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2027-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2027-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2027-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2028" : helpers.makeTestYear("America/Sitka", [ + ["2028-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2028-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2028-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2028-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2029" : helpers.makeTestYear("America/Sitka", [ + ["2029-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2029-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2029-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2029-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2030" : helpers.makeTestYear("America/Sitka", [ + ["2030-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2030-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2030-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2030-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2031" : helpers.makeTestYear("America/Sitka", [ + ["2031-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2031-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2031-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2031-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2032" : helpers.makeTestYear("America/Sitka", [ + ["2032-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2032-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2032-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2032-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2033" : helpers.makeTestYear("America/Sitka", [ + ["2033-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2033-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2033-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2033-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2034" : helpers.makeTestYear("America/Sitka", [ + ["2034-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2034-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2034-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2034-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2035" : helpers.makeTestYear("America/Sitka", [ + ["2035-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2035-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2035-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2035-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2036" : helpers.makeTestYear("America/Sitka", [ + ["2036-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2036-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2036-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2036-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2037" : helpers.makeTestYear("America/Sitka", [ + ["2037-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2037-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2037-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2037-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/st_johns.js b/tests/zones/america/st_johns.js new file mode 100644 index 00000000..285821d8 --- /dev/null +++ b/tests/zones/america/st_johns.js @@ -0,0 +1,838 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/St_Johns"] = { + "1917" : helpers.makeTestYear("America/St_Johns", [ + ["1917-04-08T05:30:51+00:00", "01:59:59", "NST", 12652 / 60], + ["1917-04-08T05:30:52+00:00", "03:00:00", "NDT", 9052 / 60], + ["1917-09-17T04:30:51+00:00", "01:59:59", "NDT", 9052 / 60], + ["1917-09-17T04:30:52+00:00", "01:00:00", "NST", 12652 / 60] + ]), + + "1918" : helpers.makeTestYear("America/St_Johns", [ + ["1918-04-14T05:30:51+00:00", "01:59:59", "NST", 12652 / 60], + ["1918-04-14T05:30:52+00:00", "03:00:00", "NDT", 9052 / 60], + ["1918-10-27T04:30:51+00:00", "01:59:59", "NDT", 9052 / 60], + ["1918-10-27T04:30:52+00:00", "01:00:00", "NST", 12652 / 60] + ]), + + "1919" : helpers.makeTestYear("America/St_Johns", [ + ["1919-05-06T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1919-05-06T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1919-08-13T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1919-08-13T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1920" : helpers.makeTestYear("America/St_Johns", [ + ["1920-05-03T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1920-05-03T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1920-11-01T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1920-11-01T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1921" : helpers.makeTestYear("America/St_Johns", [ + ["1921-05-02T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1921-05-02T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1921-10-31T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1921-10-31T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1922" : helpers.makeTestYear("America/St_Johns", [ + ["1922-05-08T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1922-05-08T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1922-10-30T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1922-10-30T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1923" : helpers.makeTestYear("America/St_Johns", [ + ["1923-05-07T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1923-05-07T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1923-10-29T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1923-10-29T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1924" : helpers.makeTestYear("America/St_Johns", [ + ["1924-05-05T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1924-05-05T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1924-10-27T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1924-10-27T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1925" : helpers.makeTestYear("America/St_Johns", [ + ["1925-05-04T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1925-05-04T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1925-10-26T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1925-10-26T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1926" : helpers.makeTestYear("America/St_Johns", [ + ["1926-05-03T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1926-05-03T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1926-11-01T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1926-11-01T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1927" : helpers.makeTestYear("America/St_Johns", [ + ["1927-05-02T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1927-05-02T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1927-10-31T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1927-10-31T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1928" : helpers.makeTestYear("America/St_Johns", [ + ["1928-05-07T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1928-05-07T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1928-10-29T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1928-10-29T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1929" : helpers.makeTestYear("America/St_Johns", [ + ["1929-05-06T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1929-05-06T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1929-10-28T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1929-10-28T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1930" : helpers.makeTestYear("America/St_Johns", [ + ["1930-05-05T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1930-05-05T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1930-10-27T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1930-10-27T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1931" : helpers.makeTestYear("America/St_Johns", [ + ["1931-05-04T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1931-05-04T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1931-10-26T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1931-10-26T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1932" : helpers.makeTestYear("America/St_Johns", [ + ["1932-05-02T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1932-05-02T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1932-10-31T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1932-10-31T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1933" : helpers.makeTestYear("America/St_Johns", [ + ["1933-05-08T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1933-05-08T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1933-10-30T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1933-10-30T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1934" : helpers.makeTestYear("America/St_Johns", [ + ["1934-05-07T02:30:51+00:00", "22:59:59", "NST", 12652 / 60], + ["1934-05-07T02:30:52+00:00", "00:00:00", "NDT", 9052 / 60], + ["1934-10-29T01:30:51+00:00", "22:59:59", "NDT", 9052 / 60], + ["1934-10-29T01:30:52+00:00", "22:00:00", "NST", 12652 / 60] + ]), + + "1935" : helpers.makeTestYear("America/St_Johns", [ + ["1935-03-30T03:30:51+00:00", "23:59:59", "NST", 12652 / 60], + ["1935-03-30T03:30:52+00:00", "00:00:52", "NST", 210], + ["1935-05-06T02:29:59+00:00", "22:59:59", "NST", 210], + ["1935-05-06T02:30:00+00:00", "00:00:00", "NDT", 150], + ["1935-10-28T01:29:59+00:00", "22:59:59", "NDT", 150], + ["1935-10-28T01:30:00+00:00", "22:00:00", "NST", 210] + ]), + + "1936" : helpers.makeTestYear("America/St_Johns", [ + ["1936-05-11T03:29:59+00:00", "23:59:59", "NST", 210], + ["1936-05-11T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1936-10-05T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1936-10-05T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1937" : helpers.makeTestYear("America/St_Johns", [ + ["1937-05-10T03:29:59+00:00", "23:59:59", "NST", 210], + ["1937-05-10T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1937-10-04T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1937-10-04T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1938" : helpers.makeTestYear("America/St_Johns", [ + ["1938-05-09T03:29:59+00:00", "23:59:59", "NST", 210], + ["1938-05-09T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1938-10-03T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1938-10-03T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1939" : helpers.makeTestYear("America/St_Johns", [ + ["1939-05-15T03:29:59+00:00", "23:59:59", "NST", 210], + ["1939-05-15T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1939-10-02T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1939-10-02T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1940" : helpers.makeTestYear("America/St_Johns", [ + ["1940-05-13T03:29:59+00:00", "23:59:59", "NST", 210], + ["1940-05-13T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1940-10-07T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1940-10-07T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1941" : helpers.makeTestYear("America/St_Johns", [ + ["1941-05-12T03:29:59+00:00", "23:59:59", "NST", 210], + ["1941-05-12T03:30:00+00:00", "01:00:00", "NDT", 150], + ["1941-10-06T02:29:59+00:00", "23:59:59", "NDT", 150], + ["1941-10-06T02:30:00+00:00", "23:00:00", "NST", 210] + ]), + + "1942" : helpers.makeTestYear("America/St_Johns", [ + ["1942-05-11T03:29:59+00:00", "23:59:59", "NST", 210], + ["1942-05-11T03:30:00+00:00", "01:00:00", "NWT", 150] + ]), + + "1945" : helpers.makeTestYear("America/St_Johns", [ + ["1945-08-14T22:59:59+00:00", "20:29:59", "NWT", 150], + ["1945-08-14T23:00:00+00:00", "20:30:00", "NPT", 150], + ["1945-09-30T04:29:59+00:00", "01:59:59", "NPT", 150], + ["1945-09-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1946" : helpers.makeTestYear("America/St_Johns", [ + ["1946-05-12T05:29:59+00:00", "01:59:59", "NST", 210], + ["1946-05-12T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1946-10-06T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1946-10-06T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1947" : helpers.makeTestYear("America/St_Johns", [ + ["1947-05-11T05:29:59+00:00", "01:59:59", "NST", 210], + ["1947-05-11T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1947-10-05T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1947-10-05T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1948" : helpers.makeTestYear("America/St_Johns", [ + ["1948-05-09T05:29:59+00:00", "01:59:59", "NST", 210], + ["1948-05-09T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1948-10-03T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1948-10-03T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1949" : helpers.makeTestYear("America/St_Johns", [ + ["1949-05-08T05:29:59+00:00", "01:59:59", "NST", 210], + ["1949-05-08T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1949-10-02T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1949-10-02T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1950" : helpers.makeTestYear("America/St_Johns", [ + ["1950-05-14T05:29:59+00:00", "01:59:59", "NST", 210], + ["1950-05-14T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1950-10-08T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1950-10-08T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1951" : helpers.makeTestYear("America/St_Johns", [ + ["1951-04-29T05:29:59+00:00", "01:59:59", "NST", 210], + ["1951-04-29T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1951-09-30T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1951-09-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1952" : helpers.makeTestYear("America/St_Johns", [ + ["1952-04-27T05:29:59+00:00", "01:59:59", "NST", 210], + ["1952-04-27T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1952-09-28T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1952-09-28T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1953" : helpers.makeTestYear("America/St_Johns", [ + ["1953-04-26T05:29:59+00:00", "01:59:59", "NST", 210], + ["1953-04-26T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1953-09-27T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1953-09-27T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1954" : helpers.makeTestYear("America/St_Johns", [ + ["1954-04-25T05:29:59+00:00", "01:59:59", "NST", 210], + ["1954-04-25T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1954-09-26T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1954-09-26T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1955" : helpers.makeTestYear("America/St_Johns", [ + ["1955-04-24T05:29:59+00:00", "01:59:59", "NST", 210], + ["1955-04-24T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1955-09-25T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1955-09-25T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1956" : helpers.makeTestYear("America/St_Johns", [ + ["1956-04-29T05:29:59+00:00", "01:59:59", "NST", 210], + ["1956-04-29T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1956-09-30T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1956-09-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1957" : helpers.makeTestYear("America/St_Johns", [ + ["1957-04-28T05:29:59+00:00", "01:59:59", "NST", 210], + ["1957-04-28T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1957-09-29T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1957-09-29T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1958" : helpers.makeTestYear("America/St_Johns", [ + ["1958-04-27T05:29:59+00:00", "01:59:59", "NST", 210], + ["1958-04-27T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1958-09-28T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1958-09-28T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1959" : helpers.makeTestYear("America/St_Johns", [ + ["1959-04-26T05:29:59+00:00", "01:59:59", "NST", 210], + ["1959-04-26T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1959-09-27T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1959-09-27T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1960" : helpers.makeTestYear("America/St_Johns", [ + ["1960-04-24T05:29:59+00:00", "01:59:59", "NST", 210], + ["1960-04-24T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1960-10-30T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1960-10-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1961" : helpers.makeTestYear("America/St_Johns", [ + ["1961-04-30T05:29:59+00:00", "01:59:59", "NST", 210], + ["1961-04-30T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1961-10-29T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1961-10-29T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1962" : helpers.makeTestYear("America/St_Johns", [ + ["1962-04-29T05:29:59+00:00", "01:59:59", "NST", 210], + ["1962-04-29T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1962-10-28T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1962-10-28T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1963" : helpers.makeTestYear("America/St_Johns", [ + ["1963-04-28T05:29:59+00:00", "01:59:59", "NST", 210], + ["1963-04-28T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1963-10-27T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1963-10-27T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1964" : helpers.makeTestYear("America/St_Johns", [ + ["1964-04-26T05:29:59+00:00", "01:59:59", "NST", 210], + ["1964-04-26T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1964-10-25T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1964-10-25T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1965" : helpers.makeTestYear("America/St_Johns", [ + ["1965-04-25T05:29:59+00:00", "01:59:59", "NST", 210], + ["1965-04-25T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1965-10-31T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1965-10-31T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1966" : helpers.makeTestYear("America/St_Johns", [ + ["1966-04-24T05:29:59+00:00", "01:59:59", "NST", 210], + ["1966-04-24T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1966-10-30T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1966-10-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1967" : helpers.makeTestYear("America/St_Johns", [ + ["1967-04-30T05:29:59+00:00", "01:59:59", "NST", 210], + ["1967-04-30T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1967-10-29T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1967-10-29T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1968" : helpers.makeTestYear("America/St_Johns", [ + ["1968-04-28T05:29:59+00:00", "01:59:59", "NST", 210], + ["1968-04-28T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1968-10-27T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1968-10-27T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1969" : helpers.makeTestYear("America/St_Johns", [ + ["1969-04-27T05:29:59+00:00", "01:59:59", "NST", 210], + ["1969-04-27T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1969-10-26T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1969-10-26T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1970" : helpers.makeTestYear("America/St_Johns", [ + ["1970-04-26T05:29:59+00:00", "01:59:59", "NST", 210], + ["1970-04-26T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1970-10-25T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1970-10-25T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1971" : helpers.makeTestYear("America/St_Johns", [ + ["1971-04-25T05:29:59+00:00", "01:59:59", "NST", 210], + ["1971-04-25T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1971-10-31T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1971-10-31T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1972" : helpers.makeTestYear("America/St_Johns", [ + ["1972-04-30T05:29:59+00:00", "01:59:59", "NST", 210], + ["1972-04-30T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1972-10-29T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1972-10-29T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1973" : helpers.makeTestYear("America/St_Johns", [ + ["1973-04-29T05:29:59+00:00", "01:59:59", "NST", 210], + ["1973-04-29T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1973-10-28T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1973-10-28T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1974" : helpers.makeTestYear("America/St_Johns", [ + ["1974-04-28T05:29:59+00:00", "01:59:59", "NST", 210], + ["1974-04-28T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1974-10-27T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1974-10-27T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1975" : helpers.makeTestYear("America/St_Johns", [ + ["1975-04-27T05:29:59+00:00", "01:59:59", "NST", 210], + ["1975-04-27T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1975-10-26T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1975-10-26T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1976" : helpers.makeTestYear("America/St_Johns", [ + ["1976-04-25T05:29:59+00:00", "01:59:59", "NST", 210], + ["1976-04-25T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1976-10-31T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1976-10-31T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1977" : helpers.makeTestYear("America/St_Johns", [ + ["1977-04-24T05:29:59+00:00", "01:59:59", "NST", 210], + ["1977-04-24T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1977-10-30T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1977-10-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1978" : helpers.makeTestYear("America/St_Johns", [ + ["1978-04-30T05:29:59+00:00", "01:59:59", "NST", 210], + ["1978-04-30T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1978-10-29T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1978-10-29T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1979" : helpers.makeTestYear("America/St_Johns", [ + ["1979-04-29T05:29:59+00:00", "01:59:59", "NST", 210], + ["1979-04-29T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1979-10-28T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1979-10-28T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1980" : helpers.makeTestYear("America/St_Johns", [ + ["1980-04-27T05:29:59+00:00", "01:59:59", "NST", 210], + ["1980-04-27T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1980-10-26T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1980-10-26T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1981" : helpers.makeTestYear("America/St_Johns", [ + ["1981-04-26T05:29:59+00:00", "01:59:59", "NST", 210], + ["1981-04-26T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1981-10-25T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1981-10-25T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1982" : helpers.makeTestYear("America/St_Johns", [ + ["1982-04-25T05:29:59+00:00", "01:59:59", "NST", 210], + ["1982-04-25T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1982-10-31T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1982-10-31T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1983" : helpers.makeTestYear("America/St_Johns", [ + ["1983-04-24T05:29:59+00:00", "01:59:59", "NST", 210], + ["1983-04-24T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1983-10-30T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1983-10-30T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1984" : helpers.makeTestYear("America/St_Johns", [ + ["1984-04-29T05:29:59+00:00", "01:59:59", "NST", 210], + ["1984-04-29T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1984-10-28T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1984-10-28T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1985" : helpers.makeTestYear("America/St_Johns", [ + ["1985-04-28T05:29:59+00:00", "01:59:59", "NST", 210], + ["1985-04-28T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1985-10-27T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1985-10-27T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1986" : helpers.makeTestYear("America/St_Johns", [ + ["1986-04-27T05:29:59+00:00", "01:59:59", "NST", 210], + ["1986-04-27T05:30:00+00:00", "03:00:00", "NDT", 150], + ["1986-10-26T04:29:59+00:00", "01:59:59", "NDT", 150], + ["1986-10-26T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "1987" : helpers.makeTestYear("America/St_Johns", [ + ["1987-04-05T03:30:59+00:00", "00:00:59", "NST", 210], + ["1987-04-05T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1987-10-25T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1987-10-25T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1988" : helpers.makeTestYear("America/St_Johns", [ + ["1988-04-03T03:30:59+00:00", "00:00:59", "NST", 210], + ["1988-04-03T03:31:00+00:00", "02:01:00", "NDDT", 90], + ["1988-10-30T01:30:59+00:00", "00:00:59", "NDDT", 90], + ["1988-10-30T01:31:00+00:00", "22:01:00", "NST", 210] + ]), + + "1989" : helpers.makeTestYear("America/St_Johns", [ + ["1989-04-02T03:30:59+00:00", "00:00:59", "NST", 210], + ["1989-04-02T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1989-10-29T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1989-10-29T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1990" : helpers.makeTestYear("America/St_Johns", [ + ["1990-04-01T03:30:59+00:00", "00:00:59", "NST", 210], + ["1990-04-01T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1990-10-28T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1990-10-28T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1991" : helpers.makeTestYear("America/St_Johns", [ + ["1991-04-07T03:30:59+00:00", "00:00:59", "NST", 210], + ["1991-04-07T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1991-10-27T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1991-10-27T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1992" : helpers.makeTestYear("America/St_Johns", [ + ["1992-04-05T03:30:59+00:00", "00:00:59", "NST", 210], + ["1992-04-05T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1992-10-25T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1992-10-25T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1993" : helpers.makeTestYear("America/St_Johns", [ + ["1993-04-04T03:30:59+00:00", "00:00:59", "NST", 210], + ["1993-04-04T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1993-10-31T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1993-10-31T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1994" : helpers.makeTestYear("America/St_Johns", [ + ["1994-04-03T03:30:59+00:00", "00:00:59", "NST", 210], + ["1994-04-03T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1994-10-30T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1994-10-30T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1995" : helpers.makeTestYear("America/St_Johns", [ + ["1995-04-02T03:30:59+00:00", "00:00:59", "NST", 210], + ["1995-04-02T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1995-10-29T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1995-10-29T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1996" : helpers.makeTestYear("America/St_Johns", [ + ["1996-04-07T03:30:59+00:00", "00:00:59", "NST", 210], + ["1996-04-07T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1996-10-27T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1996-10-27T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1997" : helpers.makeTestYear("America/St_Johns", [ + ["1997-04-06T03:30:59+00:00", "00:00:59", "NST", 210], + ["1997-04-06T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1997-10-26T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1997-10-26T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1998" : helpers.makeTestYear("America/St_Johns", [ + ["1998-04-05T03:30:59+00:00", "00:00:59", "NST", 210], + ["1998-04-05T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1998-10-25T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1998-10-25T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "1999" : helpers.makeTestYear("America/St_Johns", [ + ["1999-04-04T03:30:59+00:00", "00:00:59", "NST", 210], + ["1999-04-04T03:31:00+00:00", "01:01:00", "NDT", 150], + ["1999-10-31T02:30:59+00:00", "00:00:59", "NDT", 150], + ["1999-10-31T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2000" : helpers.makeTestYear("America/St_Johns", [ + ["2000-04-02T03:30:59+00:00", "00:00:59", "NST", 210], + ["2000-04-02T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2000-10-29T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2000-10-29T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2001" : helpers.makeTestYear("America/St_Johns", [ + ["2001-04-01T03:30:59+00:00", "00:00:59", "NST", 210], + ["2001-04-01T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2001-10-28T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2001-10-28T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2002" : helpers.makeTestYear("America/St_Johns", [ + ["2002-04-07T03:30:59+00:00", "00:00:59", "NST", 210], + ["2002-04-07T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2002-10-27T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2002-10-27T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2003" : helpers.makeTestYear("America/St_Johns", [ + ["2003-04-06T03:30:59+00:00", "00:00:59", "NST", 210], + ["2003-04-06T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2003-10-26T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2003-10-26T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2004" : helpers.makeTestYear("America/St_Johns", [ + ["2004-04-04T03:30:59+00:00", "00:00:59", "NST", 210], + ["2004-04-04T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2004-10-31T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2004-10-31T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2005" : helpers.makeTestYear("America/St_Johns", [ + ["2005-04-03T03:30:59+00:00", "00:00:59", "NST", 210], + ["2005-04-03T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2005-10-30T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2005-10-30T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2006" : helpers.makeTestYear("America/St_Johns", [ + ["2006-04-02T03:30:59+00:00", "00:00:59", "NST", 210], + ["2006-04-02T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2006-10-29T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2006-10-29T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2007" : helpers.makeTestYear("America/St_Johns", [ + ["2007-03-11T03:30:59+00:00", "00:00:59", "NST", 210], + ["2007-03-11T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2007-11-04T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2007-11-04T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2008" : helpers.makeTestYear("America/St_Johns", [ + ["2008-03-09T03:30:59+00:00", "00:00:59", "NST", 210], + ["2008-03-09T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2008-11-02T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2008-11-02T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2009" : helpers.makeTestYear("America/St_Johns", [ + ["2009-03-08T03:30:59+00:00", "00:00:59", "NST", 210], + ["2009-03-08T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2009-11-01T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2009-11-01T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2010" : helpers.makeTestYear("America/St_Johns", [ + ["2010-03-14T03:30:59+00:00", "00:00:59", "NST", 210], + ["2010-03-14T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2010-11-07T02:30:59+00:00", "00:00:59", "NDT", 150], + ["2010-11-07T02:31:00+00:00", "23:01:00", "NST", 210] + ]), + + "2011" : helpers.makeTestYear("America/St_Johns", [ + ["2011-03-13T03:30:59+00:00", "00:00:59", "NST", 210], + ["2011-03-13T03:31:00+00:00", "01:01:00", "NDT", 150], + ["2011-11-06T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2011-11-06T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2012" : helpers.makeTestYear("America/St_Johns", [ + ["2012-03-11T05:29:59+00:00", "01:59:59", "NST", 210], + ["2012-03-11T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2012-11-04T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2012-11-04T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2013" : helpers.makeTestYear("America/St_Johns", [ + ["2013-03-10T05:29:59+00:00", "01:59:59", "NST", 210], + ["2013-03-10T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2013-11-03T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2013-11-03T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2014" : helpers.makeTestYear("America/St_Johns", [ + ["2014-03-09T05:29:59+00:00", "01:59:59", "NST", 210], + ["2014-03-09T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2014-11-02T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2014-11-02T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2015" : helpers.makeTestYear("America/St_Johns", [ + ["2015-03-08T05:29:59+00:00", "01:59:59", "NST", 210], + ["2015-03-08T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2015-11-01T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2015-11-01T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2016" : helpers.makeTestYear("America/St_Johns", [ + ["2016-03-13T05:29:59+00:00", "01:59:59", "NST", 210], + ["2016-03-13T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2016-11-06T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2016-11-06T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2017" : helpers.makeTestYear("America/St_Johns", [ + ["2017-03-12T05:29:59+00:00", "01:59:59", "NST", 210], + ["2017-03-12T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2017-11-05T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2017-11-05T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2018" : helpers.makeTestYear("America/St_Johns", [ + ["2018-03-11T05:29:59+00:00", "01:59:59", "NST", 210], + ["2018-03-11T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2018-11-04T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2018-11-04T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2019" : helpers.makeTestYear("America/St_Johns", [ + ["2019-03-10T05:29:59+00:00", "01:59:59", "NST", 210], + ["2019-03-10T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2019-11-03T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2019-11-03T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2020" : helpers.makeTestYear("America/St_Johns", [ + ["2020-03-08T05:29:59+00:00", "01:59:59", "NST", 210], + ["2020-03-08T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2020-11-01T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2020-11-01T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2021" : helpers.makeTestYear("America/St_Johns", [ + ["2021-03-14T05:29:59+00:00", "01:59:59", "NST", 210], + ["2021-03-14T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2021-11-07T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2021-11-07T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2022" : helpers.makeTestYear("America/St_Johns", [ + ["2022-03-13T05:29:59+00:00", "01:59:59", "NST", 210], + ["2022-03-13T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2022-11-06T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2022-11-06T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2023" : helpers.makeTestYear("America/St_Johns", [ + ["2023-03-12T05:29:59+00:00", "01:59:59", "NST", 210], + ["2023-03-12T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2023-11-05T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2023-11-05T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2024" : helpers.makeTestYear("America/St_Johns", [ + ["2024-03-10T05:29:59+00:00", "01:59:59", "NST", 210], + ["2024-03-10T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2024-11-03T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2024-11-03T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2025" : helpers.makeTestYear("America/St_Johns", [ + ["2025-03-09T05:29:59+00:00", "01:59:59", "NST", 210], + ["2025-03-09T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2025-11-02T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2025-11-02T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2026" : helpers.makeTestYear("America/St_Johns", [ + ["2026-03-08T05:29:59+00:00", "01:59:59", "NST", 210], + ["2026-03-08T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2026-11-01T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2026-11-01T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2027" : helpers.makeTestYear("America/St_Johns", [ + ["2027-03-14T05:29:59+00:00", "01:59:59", "NST", 210], + ["2027-03-14T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2027-11-07T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2027-11-07T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2028" : helpers.makeTestYear("America/St_Johns", [ + ["2028-03-12T05:29:59+00:00", "01:59:59", "NST", 210], + ["2028-03-12T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2028-11-05T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2028-11-05T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2029" : helpers.makeTestYear("America/St_Johns", [ + ["2029-03-11T05:29:59+00:00", "01:59:59", "NST", 210], + ["2029-03-11T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2029-11-04T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2029-11-04T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2030" : helpers.makeTestYear("America/St_Johns", [ + ["2030-03-10T05:29:59+00:00", "01:59:59", "NST", 210], + ["2030-03-10T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2030-11-03T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2030-11-03T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2031" : helpers.makeTestYear("America/St_Johns", [ + ["2031-03-09T05:29:59+00:00", "01:59:59", "NST", 210], + ["2031-03-09T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2031-11-02T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2031-11-02T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2032" : helpers.makeTestYear("America/St_Johns", [ + ["2032-03-14T05:29:59+00:00", "01:59:59", "NST", 210], + ["2032-03-14T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2032-11-07T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2032-11-07T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2033" : helpers.makeTestYear("America/St_Johns", [ + ["2033-03-13T05:29:59+00:00", "01:59:59", "NST", 210], + ["2033-03-13T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2033-11-06T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2033-11-06T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2034" : helpers.makeTestYear("America/St_Johns", [ + ["2034-03-12T05:29:59+00:00", "01:59:59", "NST", 210], + ["2034-03-12T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2034-11-05T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2034-11-05T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2035" : helpers.makeTestYear("America/St_Johns", [ + ["2035-03-11T05:29:59+00:00", "01:59:59", "NST", 210], + ["2035-03-11T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2035-11-04T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2035-11-04T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2036" : helpers.makeTestYear("America/St_Johns", [ + ["2036-03-09T05:29:59+00:00", "01:59:59", "NST", 210], + ["2036-03-09T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2036-11-02T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2036-11-02T04:30:00+00:00", "01:00:00", "NST", 210] + ]), + + "2037" : helpers.makeTestYear("America/St_Johns", [ + ["2037-03-08T05:29:59+00:00", "01:59:59", "NST", 210], + ["2037-03-08T05:30:00+00:00", "03:00:00", "NDT", 150], + ["2037-11-01T04:29:59+00:00", "01:59:59", "NDT", 150], + ["2037-11-01T04:30:00+00:00", "01:00:00", "NST", 210] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/st_kitts.js b/tests/zones/america/st_kitts.js new file mode 100644 index 00000000..cfd720df --- /dev/null +++ b/tests/zones/america/st_kitts.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/St_Kitts"] = { + "1912" : helpers.makeTestYear("America/St_Kitts", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/st_lucia.js b/tests/zones/america/st_lucia.js new file mode 100644 index 00000000..6d3250f4 --- /dev/null +++ b/tests/zones/america/st_lucia.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/St_Lucia"] = { + "1912" : helpers.makeTestYear("America/St_Lucia", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/st_thomas.js b/tests/zones/america/st_thomas.js new file mode 100644 index 00000000..3c85fc9d --- /dev/null +++ b/tests/zones/america/st_thomas.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/St_Thomas"] = { + "1912" : helpers.makeTestYear("America/St_Thomas", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/st_vincent.js b/tests/zones/america/st_vincent.js new file mode 100644 index 00000000..1f8eb808 --- /dev/null +++ b/tests/zones/america/st_vincent.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/St_Vincent"] = { + "1912" : helpers.makeTestYear("America/St_Vincent", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/swift_current.js b/tests/zones/america/swift_current.js new file mode 100644 index 00000000..23591678 --- /dev/null +++ b/tests/zones/america/swift_current.js @@ -0,0 +1,90 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Swift_Current"] = { + "1905" : helpers.makeTestYear("America/Swift_Current", [ + ["1905-09-01T07:11:19+00:00", "23:59:59", "LMT", 25880 / 60], + ["1905-09-01T07:11:20+00:00", "00:11:20", "MST", 420] + ]), + + "1918" : helpers.makeTestYear("America/Swift_Current", [ + ["1918-04-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["1918-04-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1918-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1918-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/Swift_Current", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/Swift_Current", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1946" : helpers.makeTestYear("America/Swift_Current", [ + ["1946-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1946-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1946-10-13T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1946-10-13T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1947" : helpers.makeTestYear("America/Swift_Current", [ + ["1947-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1947-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1947-09-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1947-09-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1948" : helpers.makeTestYear("America/Swift_Current", [ + ["1948-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1948-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1948-09-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1948-09-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1949" : helpers.makeTestYear("America/Swift_Current", [ + ["1949-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1949-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1949-09-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1949-09-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1957" : helpers.makeTestYear("America/Swift_Current", [ + ["1957-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1957-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1957-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1957-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1959" : helpers.makeTestYear("America/Swift_Current", [ + ["1959-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1959-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1959-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1959-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1960" : helpers.makeTestYear("America/Swift_Current", [ + ["1960-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1960-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1960-09-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1960-09-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1961" : helpers.makeTestYear("America/Swift_Current", [ + ["1961-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1961-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1961-09-24T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1961-09-24T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1972" : helpers.makeTestYear("America/Swift_Current", [ + ["1972-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1972-04-30T09:00:00+00:00", "03:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/tegucigalpa.js b/tests/zones/america/tegucigalpa.js new file mode 100644 index 00000000..c5e67656 --- /dev/null +++ b/tests/zones/america/tegucigalpa.js @@ -0,0 +1,31 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Tegucigalpa"] = { + "1921" : helpers.makeTestYear("America/Tegucigalpa", [ + ["1921-04-01T05:48:51+00:00", "23:59:59", "LMT", 20932 / 60], + ["1921-04-01T05:48:52+00:00", "23:48:52", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/Tegucigalpa", [ + ["1987-05-03T05:59:59+00:00", "23:59:59", "CST", 360], + ["1987-05-03T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1987-09-27T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1987-09-27T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Tegucigalpa", [ + ["1988-05-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1988-05-01T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1988-09-25T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1988-09-25T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Tegucigalpa", [ + ["2006-05-07T05:59:59+00:00", "23:59:59", "CST", 360], + ["2006-05-07T06:00:00+00:00", "01:00:00", "CDT", 300], + ["2006-08-07T04:59:59+00:00", "23:59:59", "CDT", 300], + ["2006-08-07T05:00:00+00:00", "23:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/thule.js b/tests/zones/america/thule.js new file mode 100644 index 00000000..f6096f24 --- /dev/null +++ b/tests/zones/america/thule.js @@ -0,0 +1,339 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Thule"] = { + "1916" : helpers.makeTestYear("America/Thule", [ + ["1916-07-28T04:35:07+00:00", "23:59:59", "LMT", 16508 / 60], + ["1916-07-28T04:35:08+00:00", "00:35:08", "AST", 240] + ]), + + "1991" : helpers.makeTestYear("America/Thule", [ + ["1991-03-31T05:59:59+00:00", "01:59:59", "AST", 240], + ["1991-03-31T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1991-09-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1991-09-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1992" : helpers.makeTestYear("America/Thule", [ + ["1992-03-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1992-03-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1992-09-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1992-09-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1993" : helpers.makeTestYear("America/Thule", [ + ["1993-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["1993-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1993-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1993-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1994" : helpers.makeTestYear("America/Thule", [ + ["1994-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1994-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1994-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1994-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1995" : helpers.makeTestYear("America/Thule", [ + ["1995-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1995-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1995-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1995-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1996" : helpers.makeTestYear("America/Thule", [ + ["1996-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["1996-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1996-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1996-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1997" : helpers.makeTestYear("America/Thule", [ + ["1997-04-06T05:59:59+00:00", "01:59:59", "AST", 240], + ["1997-04-06T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1997-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1997-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1998" : helpers.makeTestYear("America/Thule", [ + ["1998-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1998-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1998-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1998-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1999" : helpers.makeTestYear("America/Thule", [ + ["1999-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["1999-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1999-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1999-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2000" : helpers.makeTestYear("America/Thule", [ + ["2000-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["2000-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2000-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2000-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2001" : helpers.makeTestYear("America/Thule", [ + ["2001-04-01T05:59:59+00:00", "01:59:59", "AST", 240], + ["2001-04-01T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2001-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2001-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2002" : helpers.makeTestYear("America/Thule", [ + ["2002-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["2002-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2002-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2002-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2003" : helpers.makeTestYear("America/Thule", [ + ["2003-04-06T05:59:59+00:00", "01:59:59", "AST", 240], + ["2003-04-06T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2003-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2003-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2004" : helpers.makeTestYear("America/Thule", [ + ["2004-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["2004-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2004-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2004-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2005" : helpers.makeTestYear("America/Thule", [ + ["2005-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["2005-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2005-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2005-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2006" : helpers.makeTestYear("America/Thule", [ + ["2006-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["2006-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2006-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2006-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2007" : helpers.makeTestYear("America/Thule", [ + ["2007-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2007-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2007-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2007-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2008" : helpers.makeTestYear("America/Thule", [ + ["2008-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2008-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2008-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2008-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2009" : helpers.makeTestYear("America/Thule", [ + ["2009-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2009-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2009-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2009-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2010" : helpers.makeTestYear("America/Thule", [ + ["2010-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2010-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2010-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2010-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2011" : helpers.makeTestYear("America/Thule", [ + ["2011-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2011-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2011-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2011-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2012" : helpers.makeTestYear("America/Thule", [ + ["2012-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2012-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2012-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2012-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2013" : helpers.makeTestYear("America/Thule", [ + ["2013-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2013-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2013-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2013-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2014" : helpers.makeTestYear("America/Thule", [ + ["2014-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2014-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2014-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2014-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2015" : helpers.makeTestYear("America/Thule", [ + ["2015-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2015-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2015-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2015-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2016" : helpers.makeTestYear("America/Thule", [ + ["2016-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2016-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2016-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2016-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2017" : helpers.makeTestYear("America/Thule", [ + ["2017-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2017-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2017-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2017-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2018" : helpers.makeTestYear("America/Thule", [ + ["2018-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2018-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2018-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2018-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2019" : helpers.makeTestYear("America/Thule", [ + ["2019-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2019-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2019-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2019-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2020" : helpers.makeTestYear("America/Thule", [ + ["2020-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2020-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2020-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2020-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2021" : helpers.makeTestYear("America/Thule", [ + ["2021-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2021-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2021-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2021-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2022" : helpers.makeTestYear("America/Thule", [ + ["2022-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2022-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2022-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2022-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2023" : helpers.makeTestYear("America/Thule", [ + ["2023-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2023-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2023-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2023-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2024" : helpers.makeTestYear("America/Thule", [ + ["2024-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2024-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2024-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2024-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2025" : helpers.makeTestYear("America/Thule", [ + ["2025-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2025-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2025-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2025-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2026" : helpers.makeTestYear("America/Thule", [ + ["2026-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2026-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2026-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2026-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2027" : helpers.makeTestYear("America/Thule", [ + ["2027-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2027-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2027-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2027-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2028" : helpers.makeTestYear("America/Thule", [ + ["2028-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2028-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2028-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2028-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2029" : helpers.makeTestYear("America/Thule", [ + ["2029-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2029-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2029-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2029-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2030" : helpers.makeTestYear("America/Thule", [ + ["2030-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2030-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2030-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2030-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2031" : helpers.makeTestYear("America/Thule", [ + ["2031-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2031-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2031-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2031-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2032" : helpers.makeTestYear("America/Thule", [ + ["2032-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2032-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2032-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2032-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2033" : helpers.makeTestYear("America/Thule", [ + ["2033-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2033-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2033-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2033-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2034" : helpers.makeTestYear("America/Thule", [ + ["2034-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2034-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2034-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2034-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2035" : helpers.makeTestYear("America/Thule", [ + ["2035-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2035-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2035-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2035-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2036" : helpers.makeTestYear("America/Thule", [ + ["2036-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2036-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2036-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2036-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2037" : helpers.makeTestYear("America/Thule", [ + ["2037-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2037-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2037-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2037-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/thunder_bay.js b/tests/zones/america/thunder_bay.js new file mode 100644 index 00000000..eacb0237 --- /dev/null +++ b/tests/zones/america/thunder_bay.js @@ -0,0 +1,491 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Thunder_Bay"] = { + "1910" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1910-01-01T05:59:59+00:00", "23:59:59", "CST", 360], + ["1910-01-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1942" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1942-02-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["1942-02-09T07:00:00+00:00", "03:00:00", "EWT", 240] + ]), + + "1945" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1945-08-14T22:59:59+00:00", "18:59:59", "EWT", 240], + ["1945-08-14T23:00:00+00:00", "19:00:00", "EPT", 240], + ["1945-09-30T05:59:59+00:00", "01:59:59", "EPT", 240], + ["1945-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1971" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1971-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1971-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1971-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1971-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1972" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1972-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1972-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1972-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1972-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1974-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1974-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1974-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1975-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Thunder_Bay", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Thunder_Bay", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/tijuana.js b/tests/zones/america/tijuana.js new file mode 100644 index 00000000..5df65b20 --- /dev/null +++ b/tests/zones/america/tijuana.js @@ -0,0 +1,537 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Tijuana"] = { + "1922" : helpers.makeTestYear("America/Tijuana", [ + ["1922-01-01T07:59:59+00:00", "00:11:55", "LMT", 28084 / 60], + ["1922-01-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1924" : helpers.makeTestYear("America/Tijuana", [ + ["1924-01-01T06:59:59+00:00", "23:59:59", "MST", 420], + ["1924-01-01T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1927" : helpers.makeTestYear("America/Tijuana", [ + ["1927-06-11T06:59:59+00:00", "22:59:59", "PST", 480], + ["1927-06-11T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1930" : helpers.makeTestYear("America/Tijuana", [ + ["1930-11-15T06:59:59+00:00", "23:59:59", "MST", 420], + ["1930-11-15T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1931" : helpers.makeTestYear("America/Tijuana", [ + ["1931-04-01T07:59:59+00:00", "23:59:59", "PST", 480], + ["1931-04-01T08:00:00+00:00", "01:00:00", "PDT", 420], + ["1931-09-30T06:59:59+00:00", "23:59:59", "PDT", 420], + ["1931-09-30T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1942" : helpers.makeTestYear("America/Tijuana", [ + ["1942-04-24T07:59:59+00:00", "23:59:59", "PST", 480], + ["1942-04-24T08:00:00+00:00", "01:00:00", "PWT", 420] + ]), + + "1945" : helpers.makeTestYear("America/Tijuana", [ + ["1945-08-14T22:59:59+00:00", "15:59:59", "PWT", 420], + ["1945-08-14T23:00:00+00:00", "16:00:00", "PPT", 420], + ["1945-11-12T06:59:59+00:00", "23:59:59", "PPT", 420], + ["1945-11-12T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1948" : helpers.makeTestYear("America/Tijuana", [ + ["1948-04-05T07:59:59+00:00", "23:59:59", "PST", 480], + ["1948-04-05T08:00:00+00:00", "01:00:00", "PDT", 420] + ]), + + "1949" : helpers.makeTestYear("America/Tijuana", [ + ["1949-01-14T06:59:59+00:00", "23:59:59", "PDT", 420], + ["1949-01-14T07:00:00+00:00", "23:00:00", "PST", 480] + ]), + + "1954" : helpers.makeTestYear("America/Tijuana", [ + ["1954-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1954-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1954-09-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1954-09-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1955" : helpers.makeTestYear("America/Tijuana", [ + ["1955-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1955-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1955-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1955-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1956" : helpers.makeTestYear("America/Tijuana", [ + ["1956-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1956-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1956-09-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1956-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1957" : helpers.makeTestYear("America/Tijuana", [ + ["1957-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1957-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1957-09-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1957-09-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1958" : helpers.makeTestYear("America/Tijuana", [ + ["1958-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1958-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1958-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1958-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1959" : helpers.makeTestYear("America/Tijuana", [ + ["1959-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1959-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1959-09-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1959-09-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1960" : helpers.makeTestYear("America/Tijuana", [ + ["1960-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1960-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1960-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1960-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1976" : helpers.makeTestYear("America/Tijuana", [ + ["1976-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1976-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1976-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1976-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1977" : helpers.makeTestYear("America/Tijuana", [ + ["1977-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1977-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1977-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1977-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1978" : helpers.makeTestYear("America/Tijuana", [ + ["1978-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1978-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1978-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1978-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1979" : helpers.makeTestYear("America/Tijuana", [ + ["1979-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1979-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1979-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1979-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("America/Tijuana", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1980-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1980-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("America/Tijuana", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("America/Tijuana", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("America/Tijuana", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1984" : helpers.makeTestYear("America/Tijuana", [ + ["1984-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1984-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1984-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1984-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1985" : helpers.makeTestYear("America/Tijuana", [ + ["1985-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1985-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1985-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1985-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1986" : helpers.makeTestYear("America/Tijuana", [ + ["1986-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1986-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1986-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1986-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1987" : helpers.makeTestYear("America/Tijuana", [ + ["1987-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1987-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1987-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1987-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1988" : helpers.makeTestYear("America/Tijuana", [ + ["1988-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1988-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1988-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1988-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1989" : helpers.makeTestYear("America/Tijuana", [ + ["1989-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1989-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1989-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1989-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1990" : helpers.makeTestYear("America/Tijuana", [ + ["1990-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["1990-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1990-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1990-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1991" : helpers.makeTestYear("America/Tijuana", [ + ["1991-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1991-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1991-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1991-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1992" : helpers.makeTestYear("America/Tijuana", [ + ["1992-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1992-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1992-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1992-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1993" : helpers.makeTestYear("America/Tijuana", [ + ["1993-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1993-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1993-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1993-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1994" : helpers.makeTestYear("America/Tijuana", [ + ["1994-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1994-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1994-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1994-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1995" : helpers.makeTestYear("America/Tijuana", [ + ["1995-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1995-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1995-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1995-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1996" : helpers.makeTestYear("America/Tijuana", [ + ["1996-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1996-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1996-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1996-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1997" : helpers.makeTestYear("America/Tijuana", [ + ["1997-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1997-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1997-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1997-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1998" : helpers.makeTestYear("America/Tijuana", [ + ["1998-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1998-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1998-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1998-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1999" : helpers.makeTestYear("America/Tijuana", [ + ["1999-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1999-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1999-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1999-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2000" : helpers.makeTestYear("America/Tijuana", [ + ["2000-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2000-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2000-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2000-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2001" : helpers.makeTestYear("America/Tijuana", [ + ["2001-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2001-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2001-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2001-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2002" : helpers.makeTestYear("America/Tijuana", [ + ["2002-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2002-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2002-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2002-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2003" : helpers.makeTestYear("America/Tijuana", [ + ["2003-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2003-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2003-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2003-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2004" : helpers.makeTestYear("America/Tijuana", [ + ["2004-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2004-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2004-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2004-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2005" : helpers.makeTestYear("America/Tijuana", [ + ["2005-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2005-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2005-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2005-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2006" : helpers.makeTestYear("America/Tijuana", [ + ["2006-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2006-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2006-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2006-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2007" : helpers.makeTestYear("America/Tijuana", [ + ["2007-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2007-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2007-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2007-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2008" : helpers.makeTestYear("America/Tijuana", [ + ["2008-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2008-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2008-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2008-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2009" : helpers.makeTestYear("America/Tijuana", [ + ["2009-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["2009-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2009-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2009-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2010" : helpers.makeTestYear("America/Tijuana", [ + ["2010-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2010-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2010-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2010-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2011" : helpers.makeTestYear("America/Tijuana", [ + ["2011-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2011-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2011-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2011-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2012" : helpers.makeTestYear("America/Tijuana", [ + ["2012-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2012-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2012-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2012-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2013" : helpers.makeTestYear("America/Tijuana", [ + ["2013-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2013-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2013-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2013-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2014" : helpers.makeTestYear("America/Tijuana", [ + ["2014-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2014-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2014-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2014-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2015" : helpers.makeTestYear("America/Tijuana", [ + ["2015-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2015-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2015-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2015-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2016" : helpers.makeTestYear("America/Tijuana", [ + ["2016-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2016-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2016-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2016-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2017" : helpers.makeTestYear("America/Tijuana", [ + ["2017-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2017-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2017-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2017-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2018" : helpers.makeTestYear("America/Tijuana", [ + ["2018-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2018-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2018-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2018-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2019" : helpers.makeTestYear("America/Tijuana", [ + ["2019-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2019-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2019-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2019-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2020" : helpers.makeTestYear("America/Tijuana", [ + ["2020-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2020-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2020-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2020-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2021" : helpers.makeTestYear("America/Tijuana", [ + ["2021-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2021-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2021-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2021-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2022" : helpers.makeTestYear("America/Tijuana", [ + ["2022-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2022-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2022-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2022-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2023" : helpers.makeTestYear("America/Tijuana", [ + ["2023-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2023-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2023-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2023-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2024" : helpers.makeTestYear("America/Tijuana", [ + ["2024-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2024-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2024-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2024-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2025" : helpers.makeTestYear("America/Tijuana", [ + ["2025-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2025-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2025-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2025-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2026" : helpers.makeTestYear("America/Tijuana", [ + ["2026-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2026-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2026-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2026-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2027" : helpers.makeTestYear("America/Tijuana", [ + ["2027-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2027-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2027-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2027-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2028" : helpers.makeTestYear("America/Tijuana", [ + ["2028-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2028-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2028-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2028-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2029" : helpers.makeTestYear("America/Tijuana", [ + ["2029-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2029-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2029-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2029-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2030" : helpers.makeTestYear("America/Tijuana", [ + ["2030-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2030-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2030-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2030-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2031" : helpers.makeTestYear("America/Tijuana", [ + ["2031-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2031-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2031-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2031-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2032" : helpers.makeTestYear("America/Tijuana", [ + ["2032-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2032-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2032-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2032-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2033" : helpers.makeTestYear("America/Tijuana", [ + ["2033-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2033-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2033-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2033-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2034" : helpers.makeTestYear("America/Tijuana", [ + ["2034-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2034-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2034-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2034-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2035" : helpers.makeTestYear("America/Tijuana", [ + ["2035-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2035-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2035-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2035-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2036" : helpers.makeTestYear("America/Tijuana", [ + ["2036-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2036-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2036-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2036-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2037" : helpers.makeTestYear("America/Tijuana", [ + ["2037-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2037-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2037-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2037-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/toronto.js b/tests/zones/america/toronto.js new file mode 100644 index 00000000..a37de4ff --- /dev/null +++ b/tests/zones/america/toronto.js @@ -0,0 +1,820 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Toronto"] = { + "1918" : helpers.makeTestYear("America/Toronto", [ + ["1918-04-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["1918-04-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1918-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1918-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1919" : helpers.makeTestYear("America/Toronto", [ + ["1919-03-31T04:29:59+00:00", "23:29:59", "EST", 300], + ["1919-03-31T04:30:00+00:00", "00:30:00", "EDT", 240], + ["1919-10-26T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1919-10-26T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1920" : helpers.makeTestYear("America/Toronto", [ + ["1920-05-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1920-05-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1920-09-26T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1920-09-26T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1921" : helpers.makeTestYear("America/Toronto", [ + ["1921-05-15T06:59:59+00:00", "01:59:59", "EST", 300], + ["1921-05-15T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1921-09-15T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1921-09-15T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1922" : helpers.makeTestYear("America/Toronto", [ + ["1922-05-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["1922-05-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1922-09-17T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1922-09-17T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1923" : helpers.makeTestYear("America/Toronto", [ + ["1923-05-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["1923-05-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1923-09-16T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1923-09-16T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1924" : helpers.makeTestYear("America/Toronto", [ + ["1924-05-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1924-05-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1924-09-21T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1924-09-21T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1925" : helpers.makeTestYear("America/Toronto", [ + ["1925-05-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1925-05-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1925-09-20T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1925-09-20T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1926" : helpers.makeTestYear("America/Toronto", [ + ["1926-05-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1926-05-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1926-09-19T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1926-09-19T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1927" : helpers.makeTestYear("America/Toronto", [ + ["1927-05-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1927-05-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1927-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1927-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1928" : helpers.makeTestYear("America/Toronto", [ + ["1928-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1928-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1928-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1928-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1929" : helpers.makeTestYear("America/Toronto", [ + ["1929-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1929-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1929-09-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1929-09-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1930" : helpers.makeTestYear("America/Toronto", [ + ["1930-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1930-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1930-09-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1930-09-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1931" : helpers.makeTestYear("America/Toronto", [ + ["1931-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1931-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1931-09-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1931-09-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1932" : helpers.makeTestYear("America/Toronto", [ + ["1932-05-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1932-05-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1932-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1932-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1933" : helpers.makeTestYear("America/Toronto", [ + ["1933-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1933-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1933-10-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1933-10-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1934" : helpers.makeTestYear("America/Toronto", [ + ["1934-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1934-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1934-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1934-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1935" : helpers.makeTestYear("America/Toronto", [ + ["1935-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1935-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1935-09-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1935-09-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1936" : helpers.makeTestYear("America/Toronto", [ + ["1936-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1936-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1936-09-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1936-09-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1937" : helpers.makeTestYear("America/Toronto", [ + ["1937-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1937-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1937-09-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1937-09-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1938" : helpers.makeTestYear("America/Toronto", [ + ["1938-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1938-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1938-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1938-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1939" : helpers.makeTestYear("America/Toronto", [ + ["1939-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1939-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1939-09-24T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1939-09-24T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1940" : helpers.makeTestYear("America/Toronto", [ + ["1940-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1940-04-28T07:00:00+00:00", "03:00:00", "EDT", 240] + ]), + + "1942" : helpers.makeTestYear("America/Toronto", [ + ["1942-02-09T06:59:59+00:00", "02:59:59", "EDT", 240], + ["1942-02-09T07:00:00+00:00", "03:00:00", "EWT", 240] + ]), + + "1945" : helpers.makeTestYear("America/Toronto", [ + ["1945-08-14T22:59:59+00:00", "18:59:59", "EWT", 240], + ["1945-08-14T23:00:00+00:00", "19:00:00", "EPT", 240], + ["1945-09-30T05:59:59+00:00", "01:59:59", "EPT", 240], + ["1945-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1946" : helpers.makeTestYear("America/Toronto", [ + ["1946-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1946-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1946-09-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1946-09-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1947" : helpers.makeTestYear("America/Toronto", [ + ["1947-04-27T04:59:59+00:00", "23:59:59", "EST", 300], + ["1947-04-27T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1947-09-28T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1947-09-28T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1948" : helpers.makeTestYear("America/Toronto", [ + ["1948-04-25T04:59:59+00:00", "23:59:59", "EST", 300], + ["1948-04-25T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1948-09-26T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1948-09-26T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1949" : helpers.makeTestYear("America/Toronto", [ + ["1949-04-24T04:59:59+00:00", "23:59:59", "EST", 300], + ["1949-04-24T05:00:00+00:00", "01:00:00", "EDT", 240], + ["1949-11-27T03:59:59+00:00", "23:59:59", "EDT", 240], + ["1949-11-27T04:00:00+00:00", "23:00:00", "EST", 300] + ]), + + "1950" : helpers.makeTestYear("America/Toronto", [ + ["1950-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1950-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1950-11-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1950-11-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1951" : helpers.makeTestYear("America/Toronto", [ + ["1951-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1951-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1951-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1951-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1952" : helpers.makeTestYear("America/Toronto", [ + ["1952-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1952-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1952-09-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1952-09-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1953" : helpers.makeTestYear("America/Toronto", [ + ["1953-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1953-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1953-09-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1953-09-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1954" : helpers.makeTestYear("America/Toronto", [ + ["1954-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1954-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1954-09-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1954-09-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1955" : helpers.makeTestYear("America/Toronto", [ + ["1955-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1955-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1955-09-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1955-09-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1956" : helpers.makeTestYear("America/Toronto", [ + ["1956-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1956-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1956-09-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1956-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1957" : helpers.makeTestYear("America/Toronto", [ + ["1957-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1957-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1957-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1957-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1958" : helpers.makeTestYear("America/Toronto", [ + ["1958-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1958-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1958-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1958-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1959" : helpers.makeTestYear("America/Toronto", [ + ["1959-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1959-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1959-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1959-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1960" : helpers.makeTestYear("America/Toronto", [ + ["1960-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1960-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1960-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1960-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1961" : helpers.makeTestYear("America/Toronto", [ + ["1961-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1961-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1961-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1961-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1962" : helpers.makeTestYear("America/Toronto", [ + ["1962-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1962-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1962-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1962-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1963" : helpers.makeTestYear("America/Toronto", [ + ["1963-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1963-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1963-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1963-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1964" : helpers.makeTestYear("America/Toronto", [ + ["1964-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1964-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1964-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1964-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1965" : helpers.makeTestYear("America/Toronto", [ + ["1965-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1965-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1965-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1965-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1966" : helpers.makeTestYear("America/Toronto", [ + ["1966-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1966-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1966-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1966-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1967" : helpers.makeTestYear("America/Toronto", [ + ["1967-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1967-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1967-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1967-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1968" : helpers.makeTestYear("America/Toronto", [ + ["1968-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1968-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1968-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1968-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("America/Toronto", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("America/Toronto", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1971" : helpers.makeTestYear("America/Toronto", [ + ["1971-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1971-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1971-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1971-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1972" : helpers.makeTestYear("America/Toronto", [ + ["1972-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1972-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1972-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1972-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1973" : helpers.makeTestYear("America/Toronto", [ + ["1973-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1973-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1973-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1973-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("America/Toronto", [ + ["1974-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1974-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1974-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("America/Toronto", [ + ["1975-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("America/Toronto", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("America/Toronto", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("America/Toronto", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("America/Toronto", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("America/Toronto", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("America/Toronto", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("America/Toronto", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("America/Toronto", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("America/Toronto", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("America/Toronto", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("America/Toronto", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("America/Toronto", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("America/Toronto", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("America/Toronto", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("America/Toronto", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("America/Toronto", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("America/Toronto", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("America/Toronto", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("America/Toronto", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("America/Toronto", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("America/Toronto", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("America/Toronto", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("America/Toronto", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("America/Toronto", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("America/Toronto", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("America/Toronto", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("America/Toronto", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("America/Toronto", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("America/Toronto", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("America/Toronto", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("America/Toronto", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("America/Toronto", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("America/Toronto", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("America/Toronto", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("America/Toronto", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("America/Toronto", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("America/Toronto", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("America/Toronto", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("America/Toronto", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("America/Toronto", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("America/Toronto", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("America/Toronto", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("America/Toronto", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("America/Toronto", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("America/Toronto", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("America/Toronto", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("America/Toronto", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("America/Toronto", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("America/Toronto", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("America/Toronto", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("America/Toronto", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("America/Toronto", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("America/Toronto", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("America/Toronto", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("America/Toronto", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("America/Toronto", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("America/Toronto", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("America/Toronto", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("America/Toronto", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("America/Toronto", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("America/Toronto", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("America/Toronto", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/tortola.js b/tests/zones/america/tortola.js new file mode 100644 index 00000000..7bbf8bf8 --- /dev/null +++ b/tests/zones/america/tortola.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Tortola"] = { + "1912" : helpers.makeTestYear("America/Tortola", [ + ["1912-03-02T04:06:03+00:00", "23:59:59", "LMT", 14764 / 60], + ["1912-03-02T04:06:04+00:00", "00:06:04", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/vancouver.js b/tests/zones/america/vancouver.js new file mode 100644 index 00000000..51fca3da --- /dev/null +++ b/tests/zones/america/vancouver.js @@ -0,0 +1,668 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Vancouver"] = { + "1918" : helpers.makeTestYear("America/Vancouver", [ + ["1918-04-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["1918-04-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1918-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1918-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1942" : helpers.makeTestYear("America/Vancouver", [ + ["1942-02-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["1942-02-09T10:00:00+00:00", "03:00:00", "PWT", 420] + ]), + + "1945" : helpers.makeTestYear("America/Vancouver", [ + ["1945-08-14T22:59:59+00:00", "15:59:59", "PWT", 420], + ["1945-08-14T23:00:00+00:00", "16:00:00", "PPT", 420], + ["1945-09-30T08:59:59+00:00", "01:59:59", "PPT", 420], + ["1945-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1946" : helpers.makeTestYear("America/Vancouver", [ + ["1946-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1946-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1946-10-13T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1946-10-13T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1947" : helpers.makeTestYear("America/Vancouver", [ + ["1947-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1947-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1947-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1947-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1948" : helpers.makeTestYear("America/Vancouver", [ + ["1948-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1948-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1948-09-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1948-09-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1949" : helpers.makeTestYear("America/Vancouver", [ + ["1949-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1949-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1949-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1949-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1950" : helpers.makeTestYear("America/Vancouver", [ + ["1950-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1950-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1950-09-24T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1950-09-24T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1951" : helpers.makeTestYear("America/Vancouver", [ + ["1951-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1951-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1951-09-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1951-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1952" : helpers.makeTestYear("America/Vancouver", [ + ["1952-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1952-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1952-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1952-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1953" : helpers.makeTestYear("America/Vancouver", [ + ["1953-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1953-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1953-09-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1953-09-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1954" : helpers.makeTestYear("America/Vancouver", [ + ["1954-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1954-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1954-09-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1954-09-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1955" : helpers.makeTestYear("America/Vancouver", [ + ["1955-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1955-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1955-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1955-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1956" : helpers.makeTestYear("America/Vancouver", [ + ["1956-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1956-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1956-09-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1956-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1957" : helpers.makeTestYear("America/Vancouver", [ + ["1957-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1957-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1957-09-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1957-09-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1958" : helpers.makeTestYear("America/Vancouver", [ + ["1958-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1958-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1958-09-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1958-09-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1959" : helpers.makeTestYear("America/Vancouver", [ + ["1959-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1959-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1959-09-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1959-09-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1960" : helpers.makeTestYear("America/Vancouver", [ + ["1960-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1960-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1960-09-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1960-09-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1961" : helpers.makeTestYear("America/Vancouver", [ + ["1961-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1961-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1961-09-24T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1961-09-24T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1962" : helpers.makeTestYear("America/Vancouver", [ + ["1962-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1962-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1962-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1962-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1963" : helpers.makeTestYear("America/Vancouver", [ + ["1963-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1963-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1963-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1963-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1964" : helpers.makeTestYear("America/Vancouver", [ + ["1964-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1964-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1964-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1964-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1965" : helpers.makeTestYear("America/Vancouver", [ + ["1965-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1965-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1965-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1965-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1966" : helpers.makeTestYear("America/Vancouver", [ + ["1966-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1966-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1966-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1966-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1967" : helpers.makeTestYear("America/Vancouver", [ + ["1967-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1967-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1967-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1967-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1968" : helpers.makeTestYear("America/Vancouver", [ + ["1968-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1968-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1968-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1968-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1969" : helpers.makeTestYear("America/Vancouver", [ + ["1969-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1969-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1969-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1969-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("America/Vancouver", [ + ["1970-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1970-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1970-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1970-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1971" : helpers.makeTestYear("America/Vancouver", [ + ["1971-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1971-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1971-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1971-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1972" : helpers.makeTestYear("America/Vancouver", [ + ["1972-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1972-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1972-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1972-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1973" : helpers.makeTestYear("America/Vancouver", [ + ["1973-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1973-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1973-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1973-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1974" : helpers.makeTestYear("America/Vancouver", [ + ["1974-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1974-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1974-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1974-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1975" : helpers.makeTestYear("America/Vancouver", [ + ["1975-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1975-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1975-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1975-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1976" : helpers.makeTestYear("America/Vancouver", [ + ["1976-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1976-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1976-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1976-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1977" : helpers.makeTestYear("America/Vancouver", [ + ["1977-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1977-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1977-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1977-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1978" : helpers.makeTestYear("America/Vancouver", [ + ["1978-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1978-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1978-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1978-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1979" : helpers.makeTestYear("America/Vancouver", [ + ["1979-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1979-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1979-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1979-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("America/Vancouver", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1980-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1980-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("America/Vancouver", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("America/Vancouver", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("America/Vancouver", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1984" : helpers.makeTestYear("America/Vancouver", [ + ["1984-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1984-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1984-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1984-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1985" : helpers.makeTestYear("America/Vancouver", [ + ["1985-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1985-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1985-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1985-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1986" : helpers.makeTestYear("America/Vancouver", [ + ["1986-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1986-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1986-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1986-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1987" : helpers.makeTestYear("America/Vancouver", [ + ["1987-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1987-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1987-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1987-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1988" : helpers.makeTestYear("America/Vancouver", [ + ["1988-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1988-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1988-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1988-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1989" : helpers.makeTestYear("America/Vancouver", [ + ["1989-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1989-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1989-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1989-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1990" : helpers.makeTestYear("America/Vancouver", [ + ["1990-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["1990-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1990-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1990-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1991" : helpers.makeTestYear("America/Vancouver", [ + ["1991-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1991-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1991-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1991-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1992" : helpers.makeTestYear("America/Vancouver", [ + ["1992-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1992-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1992-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1992-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1993" : helpers.makeTestYear("America/Vancouver", [ + ["1993-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1993-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1993-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1993-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1994" : helpers.makeTestYear("America/Vancouver", [ + ["1994-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1994-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1994-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1994-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1995" : helpers.makeTestYear("America/Vancouver", [ + ["1995-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1995-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1995-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1995-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1996" : helpers.makeTestYear("America/Vancouver", [ + ["1996-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1996-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1996-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1996-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1997" : helpers.makeTestYear("America/Vancouver", [ + ["1997-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1997-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1997-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1997-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1998" : helpers.makeTestYear("America/Vancouver", [ + ["1998-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1998-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1998-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1998-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1999" : helpers.makeTestYear("America/Vancouver", [ + ["1999-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1999-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1999-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1999-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2000" : helpers.makeTestYear("America/Vancouver", [ + ["2000-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2000-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2000-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2000-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2001" : helpers.makeTestYear("America/Vancouver", [ + ["2001-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2001-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2001-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2001-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2002" : helpers.makeTestYear("America/Vancouver", [ + ["2002-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2002-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2002-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2002-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2003" : helpers.makeTestYear("America/Vancouver", [ + ["2003-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2003-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2003-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2003-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2004" : helpers.makeTestYear("America/Vancouver", [ + ["2004-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2004-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2004-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2004-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2005" : helpers.makeTestYear("America/Vancouver", [ + ["2005-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2005-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2005-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2005-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2006" : helpers.makeTestYear("America/Vancouver", [ + ["2006-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2006-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2006-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2006-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2007" : helpers.makeTestYear("America/Vancouver", [ + ["2007-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2007-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2007-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2007-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2008" : helpers.makeTestYear("America/Vancouver", [ + ["2008-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2008-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2008-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2008-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2009" : helpers.makeTestYear("America/Vancouver", [ + ["2009-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2009-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2009-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2009-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2010" : helpers.makeTestYear("America/Vancouver", [ + ["2010-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2010-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2010-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2010-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2011" : helpers.makeTestYear("America/Vancouver", [ + ["2011-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2011-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2011-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2011-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2012" : helpers.makeTestYear("America/Vancouver", [ + ["2012-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2012-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2012-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2012-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2013" : helpers.makeTestYear("America/Vancouver", [ + ["2013-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2013-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2013-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2013-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2014" : helpers.makeTestYear("America/Vancouver", [ + ["2014-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2014-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2014-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2014-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2015" : helpers.makeTestYear("America/Vancouver", [ + ["2015-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2015-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2015-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2015-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2016" : helpers.makeTestYear("America/Vancouver", [ + ["2016-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2016-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2016-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2016-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2017" : helpers.makeTestYear("America/Vancouver", [ + ["2017-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2017-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2017-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2017-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2018" : helpers.makeTestYear("America/Vancouver", [ + ["2018-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2018-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2018-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2018-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2019" : helpers.makeTestYear("America/Vancouver", [ + ["2019-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2019-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2019-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2019-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2020" : helpers.makeTestYear("America/Vancouver", [ + ["2020-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2020-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2020-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2020-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2021" : helpers.makeTestYear("America/Vancouver", [ + ["2021-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2021-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2021-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2021-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2022" : helpers.makeTestYear("America/Vancouver", [ + ["2022-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2022-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2022-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2022-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2023" : helpers.makeTestYear("America/Vancouver", [ + ["2023-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2023-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2023-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2023-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2024" : helpers.makeTestYear("America/Vancouver", [ + ["2024-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2024-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2024-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2024-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2025" : helpers.makeTestYear("America/Vancouver", [ + ["2025-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2025-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2025-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2025-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2026" : helpers.makeTestYear("America/Vancouver", [ + ["2026-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2026-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2026-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2026-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2027" : helpers.makeTestYear("America/Vancouver", [ + ["2027-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2027-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2027-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2027-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2028" : helpers.makeTestYear("America/Vancouver", [ + ["2028-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2028-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2028-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2028-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2029" : helpers.makeTestYear("America/Vancouver", [ + ["2029-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2029-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2029-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2029-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2030" : helpers.makeTestYear("America/Vancouver", [ + ["2030-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2030-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2030-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2030-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2031" : helpers.makeTestYear("America/Vancouver", [ + ["2031-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2031-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2031-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2031-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2032" : helpers.makeTestYear("America/Vancouver", [ + ["2032-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2032-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2032-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2032-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2033" : helpers.makeTestYear("America/Vancouver", [ + ["2033-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2033-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2033-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2033-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2034" : helpers.makeTestYear("America/Vancouver", [ + ["2034-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2034-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2034-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2034-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2035" : helpers.makeTestYear("America/Vancouver", [ + ["2035-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2035-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2035-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2035-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2036" : helpers.makeTestYear("America/Vancouver", [ + ["2036-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2036-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2036-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2036-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2037" : helpers.makeTestYear("America/Vancouver", [ + ["2037-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2037-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2037-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2037-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/whitehorse.js b/tests/zones/america/whitehorse.js new file mode 100644 index 00000000..f5a1ed95 --- /dev/null +++ b/tests/zones/america/whitehorse.js @@ -0,0 +1,449 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Whitehorse"] = { + "1918" : helpers.makeTestYear("America/Whitehorse", [ + ["1918-04-14T10:59:59+00:00", "01:59:59", "YST", 540], + ["1918-04-14T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1918-10-27T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1918-10-27T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1919" : helpers.makeTestYear("America/Whitehorse", [ + ["1919-05-25T10:59:59+00:00", "01:59:59", "YST", 540], + ["1919-05-25T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1919-11-01T07:59:59+00:00", "23:59:59", "YDT", 480], + ["1919-11-01T08:00:00+00:00", "23:00:00", "YST", 540] + ]), + + "1942" : helpers.makeTestYear("America/Whitehorse", [ + ["1942-02-09T10:59:59+00:00", "01:59:59", "YST", 540], + ["1942-02-09T11:00:00+00:00", "03:00:00", "YWT", 480] + ]), + + "1945" : helpers.makeTestYear("America/Whitehorse", [ + ["1945-08-14T22:59:59+00:00", "14:59:59", "YWT", 480], + ["1945-08-14T23:00:00+00:00", "15:00:00", "YPT", 480], + ["1945-09-30T09:59:59+00:00", "01:59:59", "YPT", 480], + ["1945-09-30T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1965" : helpers.makeTestYear("America/Whitehorse", [ + ["1965-04-25T08:59:59+00:00", "23:59:59", "YST", 540], + ["1965-04-25T09:00:00+00:00", "02:00:00", "YDDT", 420], + ["1965-10-31T08:59:59+00:00", "01:59:59", "YDDT", 420], + ["1965-10-31T09:00:00+00:00", "00:00:00", "YST", 540] + ]), + + "1966" : helpers.makeTestYear("America/Whitehorse", [ + ["1966-07-01T10:59:59+00:00", "01:59:59", "YST", 540], + ["1966-07-01T11:00:00+00:00", "03:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("America/Whitehorse", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1980-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1980-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("America/Whitehorse", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("America/Whitehorse", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("America/Whitehorse", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1984" : helpers.makeTestYear("America/Whitehorse", [ + ["1984-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1984-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1984-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1984-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1985" : helpers.makeTestYear("America/Whitehorse", [ + ["1985-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1985-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1985-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1985-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1986" : helpers.makeTestYear("America/Whitehorse", [ + ["1986-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1986-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1986-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1986-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1987" : helpers.makeTestYear("America/Whitehorse", [ + ["1987-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1987-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1987-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1987-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1988" : helpers.makeTestYear("America/Whitehorse", [ + ["1988-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1988-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1988-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1988-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1989" : helpers.makeTestYear("America/Whitehorse", [ + ["1989-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1989-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1989-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1989-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1990" : helpers.makeTestYear("America/Whitehorse", [ + ["1990-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["1990-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1990-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1990-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1991" : helpers.makeTestYear("America/Whitehorse", [ + ["1991-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1991-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1991-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1991-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1992" : helpers.makeTestYear("America/Whitehorse", [ + ["1992-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1992-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1992-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1992-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1993" : helpers.makeTestYear("America/Whitehorse", [ + ["1993-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1993-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1993-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1993-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1994" : helpers.makeTestYear("America/Whitehorse", [ + ["1994-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1994-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1994-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1994-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1995" : helpers.makeTestYear("America/Whitehorse", [ + ["1995-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1995-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1995-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1995-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1996" : helpers.makeTestYear("America/Whitehorse", [ + ["1996-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1996-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1996-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1996-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1997" : helpers.makeTestYear("America/Whitehorse", [ + ["1997-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1997-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1997-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1997-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1998" : helpers.makeTestYear("America/Whitehorse", [ + ["1998-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1998-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1998-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1998-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1999" : helpers.makeTestYear("America/Whitehorse", [ + ["1999-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1999-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1999-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1999-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2000" : helpers.makeTestYear("America/Whitehorse", [ + ["2000-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2000-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2000-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2000-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2001" : helpers.makeTestYear("America/Whitehorse", [ + ["2001-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2001-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2001-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2001-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2002" : helpers.makeTestYear("America/Whitehorse", [ + ["2002-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2002-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2002-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2002-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2003" : helpers.makeTestYear("America/Whitehorse", [ + ["2003-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2003-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2003-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2003-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2004" : helpers.makeTestYear("America/Whitehorse", [ + ["2004-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2004-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2004-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2004-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2005" : helpers.makeTestYear("America/Whitehorse", [ + ["2005-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2005-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2005-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2005-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2006" : helpers.makeTestYear("America/Whitehorse", [ + ["2006-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2006-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2006-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2006-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2007" : helpers.makeTestYear("America/Whitehorse", [ + ["2007-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2007-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2007-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2007-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2008" : helpers.makeTestYear("America/Whitehorse", [ + ["2008-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2008-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2008-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2008-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2009" : helpers.makeTestYear("America/Whitehorse", [ + ["2009-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2009-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2009-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2009-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2010" : helpers.makeTestYear("America/Whitehorse", [ + ["2010-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2010-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2010-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2010-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2011" : helpers.makeTestYear("America/Whitehorse", [ + ["2011-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2011-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2011-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2011-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2012" : helpers.makeTestYear("America/Whitehorse", [ + ["2012-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2012-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2012-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2012-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2013" : helpers.makeTestYear("America/Whitehorse", [ + ["2013-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2013-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2013-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2013-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2014" : helpers.makeTestYear("America/Whitehorse", [ + ["2014-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2014-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2014-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2014-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2015" : helpers.makeTestYear("America/Whitehorse", [ + ["2015-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2015-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2015-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2015-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2016" : helpers.makeTestYear("America/Whitehorse", [ + ["2016-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2016-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2016-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2016-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2017" : helpers.makeTestYear("America/Whitehorse", [ + ["2017-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2017-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2017-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2017-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2018" : helpers.makeTestYear("America/Whitehorse", [ + ["2018-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2018-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2018-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2018-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2019" : helpers.makeTestYear("America/Whitehorse", [ + ["2019-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2019-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2019-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2019-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2020" : helpers.makeTestYear("America/Whitehorse", [ + ["2020-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2020-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2020-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2020-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2021" : helpers.makeTestYear("America/Whitehorse", [ + ["2021-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2021-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2021-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2021-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2022" : helpers.makeTestYear("America/Whitehorse", [ + ["2022-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2022-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2022-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2022-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2023" : helpers.makeTestYear("America/Whitehorse", [ + ["2023-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2023-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2023-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2023-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2024" : helpers.makeTestYear("America/Whitehorse", [ + ["2024-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2024-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2024-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2024-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2025" : helpers.makeTestYear("America/Whitehorse", [ + ["2025-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2025-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2025-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2025-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2026" : helpers.makeTestYear("America/Whitehorse", [ + ["2026-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2026-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2026-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2026-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2027" : helpers.makeTestYear("America/Whitehorse", [ + ["2027-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2027-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2027-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2027-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2028" : helpers.makeTestYear("America/Whitehorse", [ + ["2028-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2028-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2028-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2028-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2029" : helpers.makeTestYear("America/Whitehorse", [ + ["2029-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2029-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2029-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2029-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2030" : helpers.makeTestYear("America/Whitehorse", [ + ["2030-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2030-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2030-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2030-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2031" : helpers.makeTestYear("America/Whitehorse", [ + ["2031-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2031-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2031-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2031-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2032" : helpers.makeTestYear("America/Whitehorse", [ + ["2032-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2032-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2032-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2032-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2033" : helpers.makeTestYear("America/Whitehorse", [ + ["2033-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2033-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2033-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2033-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2034" : helpers.makeTestYear("America/Whitehorse", [ + ["2034-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2034-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2034-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2034-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2035" : helpers.makeTestYear("America/Whitehorse", [ + ["2035-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2035-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2035-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2035-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2036" : helpers.makeTestYear("America/Whitehorse", [ + ["2036-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2036-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2036-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2036-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2037" : helpers.makeTestYear("America/Whitehorse", [ + ["2037-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2037-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2037-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2037-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/winnipeg.js b/tests/zones/america/winnipeg.js new file mode 100644 index 00000000..d22b2ec1 --- /dev/null +++ b/tests/zones/america/winnipeg.js @@ -0,0 +1,654 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Winnipeg"] = { + "1916" : helpers.makeTestYear("America/Winnipeg", [ + ["1916-04-23T05:59:59+00:00", "23:59:59", "CST", 360], + ["1916-04-23T06:00:00+00:00", "01:00:00", "CDT", 300], + ["1916-09-17T04:59:59+00:00", "23:59:59", "CDT", 300], + ["1916-09-17T05:00:00+00:00", "23:00:00", "CST", 360] + ]), + + "1918" : helpers.makeTestYear("America/Winnipeg", [ + ["1918-04-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-04-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1937" : helpers.makeTestYear("America/Winnipeg", [ + ["1937-05-16T07:59:59+00:00", "01:59:59", "CST", 360], + ["1937-05-16T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1937-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1937-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("America/Winnipeg", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("America/Winnipeg", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1946" : helpers.makeTestYear("America/Winnipeg", [ + ["1946-05-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["1946-05-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1946-10-13T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1946-10-13T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1947" : helpers.makeTestYear("America/Winnipeg", [ + ["1947-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1947-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1947-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1947-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1948" : helpers.makeTestYear("America/Winnipeg", [ + ["1948-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1948-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1948-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1948-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1949" : helpers.makeTestYear("America/Winnipeg", [ + ["1949-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1949-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1949-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1949-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1950" : helpers.makeTestYear("America/Winnipeg", [ + ["1950-05-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1950-05-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1950-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1950-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1951" : helpers.makeTestYear("America/Winnipeg", [ + ["1951-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1951-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1951-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1951-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1952" : helpers.makeTestYear("America/Winnipeg", [ + ["1952-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1952-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1952-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1952-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1953" : helpers.makeTestYear("America/Winnipeg", [ + ["1953-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1953-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1953-09-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1953-09-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1954" : helpers.makeTestYear("America/Winnipeg", [ + ["1954-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1954-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1954-09-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1954-09-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1955" : helpers.makeTestYear("America/Winnipeg", [ + ["1955-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1955-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1955-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1955-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1956" : helpers.makeTestYear("America/Winnipeg", [ + ["1956-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1956-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1956-09-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1956-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1957" : helpers.makeTestYear("America/Winnipeg", [ + ["1957-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1957-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1957-09-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1957-09-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1958" : helpers.makeTestYear("America/Winnipeg", [ + ["1958-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1958-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1958-09-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1958-09-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1959" : helpers.makeTestYear("America/Winnipeg", [ + ["1959-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1959-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1959-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1959-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1960" : helpers.makeTestYear("America/Winnipeg", [ + ["1960-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1960-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1960-09-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1960-09-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1963" : helpers.makeTestYear("America/Winnipeg", [ + ["1963-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1963-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1963-09-22T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1963-09-22T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1966" : helpers.makeTestYear("America/Winnipeg", [ + ["1966-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1966-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1966-10-30T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1966-10-30T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1967" : helpers.makeTestYear("America/Winnipeg", [ + ["1967-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1967-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1967-10-29T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1967-10-29T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1968" : helpers.makeTestYear("America/Winnipeg", [ + ["1968-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1968-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1968-10-27T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1968-10-27T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1969" : helpers.makeTestYear("America/Winnipeg", [ + ["1969-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1969-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1969-10-26T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1969-10-26T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1970" : helpers.makeTestYear("America/Winnipeg", [ + ["1970-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1970-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1970-10-25T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1970-10-25T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1971" : helpers.makeTestYear("America/Winnipeg", [ + ["1971-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1971-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1971-10-31T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1971-10-31T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1972" : helpers.makeTestYear("America/Winnipeg", [ + ["1972-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1972-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1972-10-29T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1972-10-29T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1973" : helpers.makeTestYear("America/Winnipeg", [ + ["1973-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1973-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1973-10-28T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1973-10-28T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1974" : helpers.makeTestYear("America/Winnipeg", [ + ["1974-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1974-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1974-10-27T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1974-10-27T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1975" : helpers.makeTestYear("America/Winnipeg", [ + ["1975-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1975-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1975-10-26T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1975-10-26T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1976" : helpers.makeTestYear("America/Winnipeg", [ + ["1976-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1976-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1976-10-31T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1976-10-31T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1977" : helpers.makeTestYear("America/Winnipeg", [ + ["1977-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1977-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1977-10-30T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1977-10-30T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1978" : helpers.makeTestYear("America/Winnipeg", [ + ["1978-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1978-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1978-10-29T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1978-10-29T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1979" : helpers.makeTestYear("America/Winnipeg", [ + ["1979-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1979-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1979-10-28T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1979-10-28T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("America/Winnipeg", [ + ["1980-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1980-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1980-10-26T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1980-10-26T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("America/Winnipeg", [ + ["1981-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1981-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1981-10-25T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1981-10-25T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("America/Winnipeg", [ + ["1982-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1982-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1982-10-31T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1982-10-31T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("America/Winnipeg", [ + ["1983-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1983-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1983-10-30T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1983-10-30T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1984" : helpers.makeTestYear("America/Winnipeg", [ + ["1984-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1984-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1984-10-28T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1984-10-28T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1985" : helpers.makeTestYear("America/Winnipeg", [ + ["1985-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1985-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1985-10-27T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1985-10-27T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1986" : helpers.makeTestYear("America/Winnipeg", [ + ["1986-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1986-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1986-10-26T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1986-10-26T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("America/Winnipeg", [ + ["1987-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1987-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1987-10-25T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1987-10-25T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("America/Winnipeg", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1988-10-30T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1989" : helpers.makeTestYear("America/Winnipeg", [ + ["1989-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1989-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1989-10-29T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1989-10-29T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1990" : helpers.makeTestYear("America/Winnipeg", [ + ["1990-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1990-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1990-10-28T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1990-10-28T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("America/Winnipeg", [ + ["1991-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1991-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1991-10-27T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1991-10-27T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("America/Winnipeg", [ + ["1992-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1992-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1992-10-25T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1992-10-25T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("America/Winnipeg", [ + ["1993-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1993-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1993-10-31T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1993-10-31T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1994" : helpers.makeTestYear("America/Winnipeg", [ + ["1994-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1994-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1994-10-30T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1994-10-30T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1995" : helpers.makeTestYear("America/Winnipeg", [ + ["1995-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1995-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1995-10-29T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1995-10-29T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("America/Winnipeg", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1996-10-27T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("America/Winnipeg", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1997-10-26T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("America/Winnipeg", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1998-10-25T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("America/Winnipeg", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T07:59:59+00:00", "02:59:59", "CDT", 300], + ["1999-10-31T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("America/Winnipeg", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T07:59:59+00:00", "02:59:59", "CDT", 300], + ["2000-10-29T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("America/Winnipeg", [ + ["2001-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-10-28T07:59:59+00:00", "02:59:59", "CDT", 300], + ["2001-10-28T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("America/Winnipeg", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T07:59:59+00:00", "02:59:59", "CDT", 300], + ["2002-10-27T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("America/Winnipeg", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T07:59:59+00:00", "02:59:59", "CDT", 300], + ["2003-10-26T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("America/Winnipeg", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T07:59:59+00:00", "02:59:59", "CDT", 300], + ["2004-10-31T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("America/Winnipeg", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T07:59:59+00:00", "02:59:59", "CDT", 300], + ["2005-10-30T08:00:00+00:00", "02:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("America/Winnipeg", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("America/Winnipeg", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("America/Winnipeg", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("America/Winnipeg", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("America/Winnipeg", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("America/Winnipeg", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("America/Winnipeg", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("America/Winnipeg", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("America/Winnipeg", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("America/Winnipeg", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("America/Winnipeg", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("America/Winnipeg", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("America/Winnipeg", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("America/Winnipeg", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("America/Winnipeg", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("America/Winnipeg", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("America/Winnipeg", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("America/Winnipeg", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("America/Winnipeg", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("America/Winnipeg", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("America/Winnipeg", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("America/Winnipeg", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("America/Winnipeg", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("America/Winnipeg", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("America/Winnipeg", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("America/Winnipeg", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("America/Winnipeg", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("America/Winnipeg", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("America/Winnipeg", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("America/Winnipeg", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("America/Winnipeg", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("America/Winnipeg", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/yakutat.js b/tests/zones/america/yakutat.js new file mode 100644 index 00000000..b37c92e5 --- /dev/null +++ b/tests/zones/america/yakutat.js @@ -0,0 +1,502 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Yakutat"] = { + "1942" : helpers.makeTestYear("America/Yakutat", [ + ["1942-02-09T10:59:59+00:00", "01:59:59", "YST", 540], + ["1942-02-09T11:00:00+00:00", "03:00:00", "YWT", 480] + ]), + + "1945" : helpers.makeTestYear("America/Yakutat", [ + ["1945-08-14T22:59:59+00:00", "14:59:59", "YWT", 480], + ["1945-08-14T23:00:00+00:00", "15:00:00", "YPT", 480], + ["1945-09-30T09:59:59+00:00", "01:59:59", "YPT", 480], + ["1945-09-30T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1969" : helpers.makeTestYear("America/Yakutat", [ + ["1969-04-27T10:59:59+00:00", "01:59:59", "YST", 540], + ["1969-04-27T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1969-10-26T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1969-10-26T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1970" : helpers.makeTestYear("America/Yakutat", [ + ["1970-04-26T10:59:59+00:00", "01:59:59", "YST", 540], + ["1970-04-26T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1970-10-25T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1970-10-25T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1971" : helpers.makeTestYear("America/Yakutat", [ + ["1971-04-25T10:59:59+00:00", "01:59:59", "YST", 540], + ["1971-04-25T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1971-10-31T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1971-10-31T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1972" : helpers.makeTestYear("America/Yakutat", [ + ["1972-04-30T10:59:59+00:00", "01:59:59", "YST", 540], + ["1972-04-30T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1972-10-29T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1972-10-29T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1973" : helpers.makeTestYear("America/Yakutat", [ + ["1973-04-29T10:59:59+00:00", "01:59:59", "YST", 540], + ["1973-04-29T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1973-10-28T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1973-10-28T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1974" : helpers.makeTestYear("America/Yakutat", [ + ["1974-01-06T10:59:59+00:00", "01:59:59", "YST", 540], + ["1974-01-06T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1974-10-27T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1974-10-27T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1975" : helpers.makeTestYear("America/Yakutat", [ + ["1975-02-23T10:59:59+00:00", "01:59:59", "YST", 540], + ["1975-02-23T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1975-10-26T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1975-10-26T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1976" : helpers.makeTestYear("America/Yakutat", [ + ["1976-04-25T10:59:59+00:00", "01:59:59", "YST", 540], + ["1976-04-25T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1976-10-31T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1976-10-31T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1977" : helpers.makeTestYear("America/Yakutat", [ + ["1977-04-24T10:59:59+00:00", "01:59:59", "YST", 540], + ["1977-04-24T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1977-10-30T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1977-10-30T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1978" : helpers.makeTestYear("America/Yakutat", [ + ["1978-04-30T10:59:59+00:00", "01:59:59", "YST", 540], + ["1978-04-30T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1978-10-29T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1978-10-29T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1979" : helpers.makeTestYear("America/Yakutat", [ + ["1979-04-29T10:59:59+00:00", "01:59:59", "YST", 540], + ["1979-04-29T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1979-10-28T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1979-10-28T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1980" : helpers.makeTestYear("America/Yakutat", [ + ["1980-04-27T10:59:59+00:00", "01:59:59", "YST", 540], + ["1980-04-27T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1980-10-26T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1980-10-26T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1981" : helpers.makeTestYear("America/Yakutat", [ + ["1981-04-26T10:59:59+00:00", "01:59:59", "YST", 540], + ["1981-04-26T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1981-10-25T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1981-10-25T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1982" : helpers.makeTestYear("America/Yakutat", [ + ["1982-04-25T10:59:59+00:00", "01:59:59", "YST", 540], + ["1982-04-25T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1982-10-31T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1982-10-31T10:00:00+00:00", "01:00:00", "YST", 540] + ]), + + "1983" : helpers.makeTestYear("America/Yakutat", [ + ["1983-04-24T10:59:59+00:00", "01:59:59", "YST", 540], + ["1983-04-24T11:00:00+00:00", "03:00:00", "YDT", 480], + ["1983-10-30T09:59:59+00:00", "01:59:59", "YDT", 480], + ["1983-10-30T10:00:00+00:00", "01:00:00", "YST", 540], + ["1983-11-30T08:59:59+00:00", "23:59:59", "YST", 540], + ["1983-11-30T09:00:00+00:00", "00:00:00", "AKST", 540] + ]), + + "1984" : helpers.makeTestYear("America/Yakutat", [ + ["1984-04-29T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1984-04-29T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1984-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1984-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1985" : helpers.makeTestYear("America/Yakutat", [ + ["1985-04-28T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1985-04-28T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1985-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1985-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1986" : helpers.makeTestYear("America/Yakutat", [ + ["1986-04-27T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1986-04-27T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1986-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1986-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1987" : helpers.makeTestYear("America/Yakutat", [ + ["1987-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1987-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1987-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1987-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1988" : helpers.makeTestYear("America/Yakutat", [ + ["1988-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1988-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1988-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1988-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1989" : helpers.makeTestYear("America/Yakutat", [ + ["1989-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1989-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1989-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1989-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1990" : helpers.makeTestYear("America/Yakutat", [ + ["1990-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1990-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1990-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1990-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1991" : helpers.makeTestYear("America/Yakutat", [ + ["1991-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1991-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1991-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1991-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1992" : helpers.makeTestYear("America/Yakutat", [ + ["1992-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1992-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1992-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1992-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1993" : helpers.makeTestYear("America/Yakutat", [ + ["1993-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1993-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1993-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1993-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1994" : helpers.makeTestYear("America/Yakutat", [ + ["1994-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1994-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1994-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1994-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1995" : helpers.makeTestYear("America/Yakutat", [ + ["1995-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1995-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1995-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1995-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1996" : helpers.makeTestYear("America/Yakutat", [ + ["1996-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1996-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1996-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1996-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1997" : helpers.makeTestYear("America/Yakutat", [ + ["1997-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1997-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1997-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1997-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1998" : helpers.makeTestYear("America/Yakutat", [ + ["1998-04-05T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1998-04-05T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1998-10-25T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1998-10-25T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "1999" : helpers.makeTestYear("America/Yakutat", [ + ["1999-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["1999-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["1999-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["1999-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2000" : helpers.makeTestYear("America/Yakutat", [ + ["2000-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2000-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2000-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2000-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2001" : helpers.makeTestYear("America/Yakutat", [ + ["2001-04-01T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2001-04-01T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2001-10-28T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2001-10-28T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2002" : helpers.makeTestYear("America/Yakutat", [ + ["2002-04-07T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2002-04-07T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2002-10-27T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2002-10-27T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2003" : helpers.makeTestYear("America/Yakutat", [ + ["2003-04-06T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2003-04-06T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2003-10-26T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2003-10-26T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2004" : helpers.makeTestYear("America/Yakutat", [ + ["2004-04-04T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2004-04-04T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2004-10-31T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2004-10-31T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2005" : helpers.makeTestYear("America/Yakutat", [ + ["2005-04-03T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2005-04-03T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2005-10-30T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2005-10-30T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2006" : helpers.makeTestYear("America/Yakutat", [ + ["2006-04-02T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2006-04-02T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2006-10-29T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2006-10-29T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2007" : helpers.makeTestYear("America/Yakutat", [ + ["2007-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2007-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2007-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2007-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2008" : helpers.makeTestYear("America/Yakutat", [ + ["2008-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2008-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2008-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2008-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2009" : helpers.makeTestYear("America/Yakutat", [ + ["2009-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2009-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2009-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2009-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2010" : helpers.makeTestYear("America/Yakutat", [ + ["2010-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2010-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2010-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2010-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2011" : helpers.makeTestYear("America/Yakutat", [ + ["2011-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2011-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2011-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2011-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2012" : helpers.makeTestYear("America/Yakutat", [ + ["2012-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2012-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2012-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2012-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2013" : helpers.makeTestYear("America/Yakutat", [ + ["2013-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2013-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2013-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2013-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2014" : helpers.makeTestYear("America/Yakutat", [ + ["2014-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2014-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2014-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2014-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2015" : helpers.makeTestYear("America/Yakutat", [ + ["2015-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2015-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2015-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2015-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2016" : helpers.makeTestYear("America/Yakutat", [ + ["2016-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2016-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2016-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2016-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2017" : helpers.makeTestYear("America/Yakutat", [ + ["2017-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2017-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2017-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2017-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2018" : helpers.makeTestYear("America/Yakutat", [ + ["2018-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2018-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2018-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2018-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2019" : helpers.makeTestYear("America/Yakutat", [ + ["2019-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2019-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2019-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2019-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2020" : helpers.makeTestYear("America/Yakutat", [ + ["2020-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2020-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2020-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2020-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2021" : helpers.makeTestYear("America/Yakutat", [ + ["2021-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2021-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2021-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2021-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2022" : helpers.makeTestYear("America/Yakutat", [ + ["2022-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2022-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2022-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2022-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2023" : helpers.makeTestYear("America/Yakutat", [ + ["2023-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2023-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2023-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2023-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2024" : helpers.makeTestYear("America/Yakutat", [ + ["2024-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2024-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2024-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2024-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2025" : helpers.makeTestYear("America/Yakutat", [ + ["2025-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2025-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2025-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2025-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2026" : helpers.makeTestYear("America/Yakutat", [ + ["2026-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2026-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2026-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2026-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2027" : helpers.makeTestYear("America/Yakutat", [ + ["2027-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2027-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2027-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2027-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2028" : helpers.makeTestYear("America/Yakutat", [ + ["2028-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2028-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2028-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2028-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2029" : helpers.makeTestYear("America/Yakutat", [ + ["2029-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2029-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2029-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2029-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2030" : helpers.makeTestYear("America/Yakutat", [ + ["2030-03-10T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2030-03-10T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2030-11-03T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2030-11-03T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2031" : helpers.makeTestYear("America/Yakutat", [ + ["2031-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2031-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2031-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2031-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2032" : helpers.makeTestYear("America/Yakutat", [ + ["2032-03-14T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2032-03-14T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2032-11-07T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2032-11-07T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2033" : helpers.makeTestYear("America/Yakutat", [ + ["2033-03-13T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2033-03-13T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2033-11-06T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2033-11-06T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2034" : helpers.makeTestYear("America/Yakutat", [ + ["2034-03-12T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2034-03-12T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2034-11-05T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2034-11-05T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2035" : helpers.makeTestYear("America/Yakutat", [ + ["2035-03-11T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2035-03-11T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2035-11-04T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2035-11-04T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2036" : helpers.makeTestYear("America/Yakutat", [ + ["2036-03-09T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2036-03-09T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2036-11-02T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2036-11-02T10:00:00+00:00", "01:00:00", "AKST", 540] + ]), + + "2037" : helpers.makeTestYear("America/Yakutat", [ + ["2037-03-08T10:59:59+00:00", "01:59:59", "AKST", 540], + ["2037-03-08T11:00:00+00:00", "03:00:00", "AKDT", 480], + ["2037-11-01T09:59:59+00:00", "01:59:59", "AKDT", 480], + ["2037-11-01T10:00:00+00:00", "01:00:00", "AKST", 540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/america/yellowknife.js b/tests/zones/america/yellowknife.js new file mode 100644 index 00000000..657b767a --- /dev/null +++ b/tests/zones/america/yellowknife.js @@ -0,0 +1,438 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["America/Yellowknife"] = { + "1934" : helpers.makeTestYear("America/Yellowknife", [ + ["1934-12-31T23:59:59+00:00", "23:59:59", "zzz", 0] + ]), + + "1935" : helpers.makeTestYear("America/Yellowknife", [ + ["1935-01-01T00:00:00+00:00", "17:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("America/Yellowknife", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("America/Yellowknife", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1965" : helpers.makeTestYear("America/Yellowknife", [ + ["1965-04-25T06:59:59+00:00", "23:59:59", "MST", 420], + ["1965-04-25T07:00:00+00:00", "02:00:00", "MDDT", 300], + ["1965-10-31T06:59:59+00:00", "01:59:59", "MDDT", 300], + ["1965-10-31T07:00:00+00:00", "00:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("America/Yellowknife", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("America/Yellowknife", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("America/Yellowknife", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("America/Yellowknife", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("America/Yellowknife", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("America/Yellowknife", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("America/Yellowknife", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("America/Yellowknife", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("America/Yellowknife", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("America/Yellowknife", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("America/Yellowknife", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("America/Yellowknife", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("America/Yellowknife", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1993" : helpers.makeTestYear("America/Yellowknife", [ + ["1993-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1993-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1993-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1993-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1994" : helpers.makeTestYear("America/Yellowknife", [ + ["1994-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1994-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1994-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1994-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1995" : helpers.makeTestYear("America/Yellowknife", [ + ["1995-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1995-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1995-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1995-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("America/Yellowknife", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("America/Yellowknife", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("America/Yellowknife", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("America/Yellowknife", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("America/Yellowknife", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("America/Yellowknife", [ + ["2001-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("America/Yellowknife", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("America/Yellowknife", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("America/Yellowknife", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("America/Yellowknife", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("America/Yellowknife", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("America/Yellowknife", [ + ["2007-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("America/Yellowknife", [ + ["2008-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("America/Yellowknife", [ + ["2009-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("America/Yellowknife", [ + ["2010-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("America/Yellowknife", [ + ["2011-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("America/Yellowknife", [ + ["2012-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("America/Yellowknife", [ + ["2013-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("America/Yellowknife", [ + ["2014-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("America/Yellowknife", [ + ["2015-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("America/Yellowknife", [ + ["2016-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("America/Yellowknife", [ + ["2017-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("America/Yellowknife", [ + ["2018-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("America/Yellowknife", [ + ["2019-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("America/Yellowknife", [ + ["2020-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("America/Yellowknife", [ + ["2021-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("America/Yellowknife", [ + ["2022-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("America/Yellowknife", [ + ["2023-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("America/Yellowknife", [ + ["2024-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("America/Yellowknife", [ + ["2025-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("America/Yellowknife", [ + ["2026-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("America/Yellowknife", [ + ["2027-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("America/Yellowknife", [ + ["2028-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("America/Yellowknife", [ + ["2029-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("America/Yellowknife", [ + ["2030-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("America/Yellowknife", [ + ["2031-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("America/Yellowknife", [ + ["2032-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("America/Yellowknife", [ + ["2033-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("America/Yellowknife", [ + ["2034-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("America/Yellowknife", [ + ["2035-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("America/Yellowknife", [ + ["2036-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("America/Yellowknife", [ + ["2037-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/casey.js b/tests/zones/antarctica/casey.js new file mode 100644 index 00000000..dd81e9a7 --- /dev/null +++ b/tests/zones/antarctica/casey.js @@ -0,0 +1,33 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/Casey"] = { + "1968" : helpers.makeTestYear("Antarctica/Casey", [ + ["1968-12-31T23:59:59+00:00", "23:59:59", "zzz", 0] + ]), + + "1969" : helpers.makeTestYear("Antarctica/Casey", [ + ["1969-01-01T00:00:00+00:00", "08:00:00", "WST", -480] + ]), + + "2009" : helpers.makeTestYear("Antarctica/Casey", [ + ["2009-10-17T17:59:59+00:00", "01:59:59", "WST", -480], + ["2009-10-17T18:00:00+00:00", "05:00:00", "CAST", -660] + ]), + + "2010" : helpers.makeTestYear("Antarctica/Casey", [ + ["2010-03-04T14:59:59+00:00", "01:59:59", "CAST", -660], + ["2010-03-04T15:00:00+00:00", "23:00:00", "WST", -480] + ]), + + "2011" : helpers.makeTestYear("Antarctica/Casey", [ + ["2011-10-27T17:59:59+00:00", "01:59:59", "WST", -480], + ["2011-10-27T18:00:00+00:00", "05:00:00", "CAST", -660] + ]), + + "2012" : helpers.makeTestYear("Antarctica/Casey", [ + ["2012-02-21T16:59:59+00:00", "03:59:59", "CAST", -660], + ["2012-02-21T17:00:00+00:00", "01:00:00", "WST", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/davis.js b/tests/zones/antarctica/davis.js new file mode 100644 index 00000000..dfce3ce1 --- /dev/null +++ b/tests/zones/antarctica/davis.js @@ -0,0 +1,40 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/Davis"] = { + "1957" : helpers.makeTestYear("Antarctica/Davis", [ + ["1957-01-12T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1957-01-13T00:00:00+00:00", "07:00:00", "DAVT", -420] + ]), + + "1964" : helpers.makeTestYear("Antarctica/Davis", [ + ["1964-10-31T16:59:59+00:00", "23:59:59", "DAVT", -420], + ["1964-10-31T17:00:00+00:00", "17:00:00", "zzz", 0] + ]), + + "1969" : helpers.makeTestYear("Antarctica/Davis", [ + ["1969-01-31T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1969-02-01T00:00:00+00:00", "07:00:00", "DAVT", -420] + ]), + + "2009" : helpers.makeTestYear("Antarctica/Davis", [ + ["2009-10-17T18:59:59+00:00", "01:59:59", "DAVT", -420], + ["2009-10-17T19:00:00+00:00", "00:00:00", "DAVT", -300] + ]), + + "2010" : helpers.makeTestYear("Antarctica/Davis", [ + ["2010-03-10T19:59:59+00:00", "00:59:59", "DAVT", -300], + ["2010-03-10T20:00:00+00:00", "03:00:00", "DAVT", -420] + ]), + + "2011" : helpers.makeTestYear("Antarctica/Davis", [ + ["2011-10-27T18:59:59+00:00", "01:59:59", "DAVT", -420], + ["2011-10-27T19:00:00+00:00", "00:00:00", "DAVT", -300] + ]), + + "2012" : helpers.makeTestYear("Antarctica/Davis", [ + ["2012-02-21T19:59:59+00:00", "00:59:59", "DAVT", -300], + ["2012-02-21T20:00:00+00:00", "03:00:00", "DAVT", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/dumontdurville.js b/tests/zones/antarctica/dumontdurville.js new file mode 100644 index 00000000..58acda2a --- /dev/null +++ b/tests/zones/antarctica/dumontdurville.js @@ -0,0 +1,23 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/DumontDUrville"] = { + "1946" : helpers.makeTestYear("Antarctica/DumontDUrville", [ + ["1946-12-31T23:59:59+00:00", "23:59:59", "zzz", 0] + ]), + + "1947" : helpers.makeTestYear("Antarctica/DumontDUrville", [ + ["1947-01-01T00:00:00+00:00", "10:00:00", "PMT", -600] + ]), + + "1952" : helpers.makeTestYear("Antarctica/DumontDUrville", [ + ["1952-01-13T13:59:59+00:00", "23:59:59", "PMT", -600], + ["1952-01-13T14:00:00+00:00", "14:00:00", "zzz", 0] + ]), + + "1956" : helpers.makeTestYear("Antarctica/DumontDUrville", [ + ["1956-10-31T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1956-11-01T00:00:00+00:00", "10:00:00", "DDUT", -600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/macquarie.js b/tests/zones/antarctica/macquarie.js new file mode 100644 index 00000000..6284bb54 --- /dev/null +++ b/tests/zones/antarctica/macquarie.js @@ -0,0 +1,329 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/Macquarie"] = { + "1916" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1916-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1916-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1917" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1917-03-24T14:59:59+00:00", "01:59:59", "EST", -660], + ["1917-03-24T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1919" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1919-03-31T13:59:59+00:00", "23:59:59", "EST", -600], + ["1919-03-31T14:00:00+00:00", "14:00:00", "zzz", 0] + ]), + + "1948" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1948-03-24T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1948-03-25T00:00:00+00:00", "10:00:00", "EST", -600] + ]), + + "1967" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1967-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1967-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1968" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1968-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1968-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1968-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1968-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1969" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1969-03-08T15:59:59+00:00", "02:59:59", "EST", -660], + ["1969-03-08T16:00:00+00:00", "02:00:00", "EST", -600], + ["1969-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1969-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1970" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1970-03-07T15:59:59+00:00", "02:59:59", "EST", -660], + ["1970-03-07T16:00:00+00:00", "02:00:00", "EST", -600], + ["1970-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1970-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1971" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1971-03-13T15:59:59+00:00", "02:59:59", "EST", -660], + ["1971-03-13T16:00:00+00:00", "02:00:00", "EST", -600], + ["1971-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1971-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1972" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1972-02-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1972-02-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1972-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1972-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1973" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1973-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1973-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1973-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1973-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1974" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1974-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1974-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1974-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1974-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1975" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1975-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1975-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1975-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1975-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1976" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1976-03-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["1976-03-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["1976-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1976-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1977" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1977-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1977-03-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["1977-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1977-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1978" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1978-03-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["1978-03-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["1978-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1978-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1979" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1979-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1979-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1979-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1979-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1980" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1980-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1980-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1980-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1980-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1981" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1981-02-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1981-02-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1981-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1981-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1982" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1982-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1982-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1982-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1982-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1983" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1983-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1983-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1983-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1983-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1984" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1984-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1984-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1984-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1984-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1985" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1985-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1985-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1985-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1985-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1986" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1986-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1986-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1986-10-18T15:59:59+00:00", "01:59:59", "EST", -600], + ["1986-10-18T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1987" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1987-03-14T15:59:59+00:00", "02:59:59", "EST", -660], + ["1987-03-14T16:00:00+00:00", "02:00:00", "EST", -600], + ["1987-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1987-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1988" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1988-03-19T15:59:59+00:00", "02:59:59", "EST", -660], + ["1988-03-19T16:00:00+00:00", "02:00:00", "EST", -600], + ["1988-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1988-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1989" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1989-03-18T15:59:59+00:00", "02:59:59", "EST", -660], + ["1989-03-18T16:00:00+00:00", "02:00:00", "EST", -600], + ["1989-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1989-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1990" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1990-03-17T15:59:59+00:00", "02:59:59", "EST", -660], + ["1990-03-17T16:00:00+00:00", "02:00:00", "EST", -600], + ["1990-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1990-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1991" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1991-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1991-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1991-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["1991-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1992" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1992-03-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1992-03-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1992-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["1992-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1993" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1993-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1993-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1993-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1993-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1994" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1994-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1994-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1994-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["1994-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1995" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1995-03-25T15:59:59+00:00", "02:59:59", "EST", -660], + ["1995-03-25T16:00:00+00:00", "02:00:00", "EST", -600], + ["1995-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1995-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1996" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1996-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1996-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1996-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["1996-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1997" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1997-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["1997-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["1997-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["1997-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1998" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1998-03-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1998-03-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1998-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["1998-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1999" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["1999-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1999-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1999-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1999-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2000" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2000-03-25T15:59:59+00:00", "02:59:59", "EST", -660], + ["2000-03-25T16:00:00+00:00", "02:00:00", "EST", -600], + ["2000-08-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["2000-08-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2001" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2001-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2001-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2001-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2001-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2002" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2002-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["2002-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["2002-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2002-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2003" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2003-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["2003-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["2003-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2003-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2004" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2004-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["2004-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["2004-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2004-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2005" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2005-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["2005-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["2005-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2005-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2006" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2006-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2006-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2006-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2006-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2007" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2007-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2007-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2007-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2007-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2008" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2008-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2008-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2008-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2008-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2009" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2009-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2009-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2009-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2009-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2010" : helpers.makeTestYear("Antarctica/Macquarie", [ + ["2010-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2010-04-03T16:00:00+00:00", "03:00:00", "MIST", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/mawson.js b/tests/zones/antarctica/mawson.js new file mode 100644 index 00000000..d7821d4b --- /dev/null +++ b/tests/zones/antarctica/mawson.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/Mawson"] = { + "1954" : helpers.makeTestYear("Antarctica/Mawson", [ + ["1954-02-12T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1954-02-13T00:00:00+00:00", "06:00:00", "MAWT", -360] + ]), + + "2009" : helpers.makeTestYear("Antarctica/Mawson", [ + ["2009-10-17T19:59:59+00:00", "01:59:59", "MAWT", -360], + ["2009-10-17T20:00:00+00:00", "01:00:00", "MAWT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/mcmurdo.js b/tests/zones/antarctica/mcmurdo.js new file mode 100644 index 00000000..e7fdeaba --- /dev/null +++ b/tests/zones/antarctica/mcmurdo.js @@ -0,0 +1,552 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/McMurdo"] = { + "1927" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1927-11-05T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1927-11-05T14:30:00+00:00", "03:00:00", "NZST", -750] + ]), + + "1928" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1928-03-03T13:29:59+00:00", "01:59:59", "NZST", -750], + ["1928-03-03T13:30:00+00:00", "01:00:00", "NZMT", -690], + ["1928-10-13T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1928-10-13T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1929" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1929-03-16T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1929-03-16T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1929-10-12T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1929-10-12T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1930" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1930-03-15T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1930-03-15T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1930-10-11T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1930-10-11T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1931" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1931-03-14T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1931-03-14T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1931-10-10T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1931-10-10T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1932" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1932-03-19T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1932-03-19T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1932-10-08T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1932-10-08T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1933" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1933-03-18T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1933-03-18T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1933-10-07T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1933-10-07T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1934" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1934-04-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1934-04-28T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1934-09-29T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1934-09-29T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1935" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1935-04-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1935-04-27T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1935-09-28T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1935-09-28T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1936" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1936-04-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1936-04-25T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1936-09-26T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1936-09-26T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1937" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1937-04-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1937-04-24T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1937-09-25T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1937-09-25T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1938" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1938-04-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1938-04-23T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1938-09-24T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1938-09-24T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1939" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1939-04-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1939-04-29T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1939-09-23T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1939-09-23T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1940" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1940-04-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1940-04-27T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1940-09-28T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1940-09-28T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1945" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1945-12-31T11:59:59+00:00", "23:59:59", "NZST", -720], + ["1945-12-31T12:00:00+00:00", "00:00:00", "NZST", -720] + ]), + + "1974" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1974-11-02T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1974-11-02T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1975" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1975-02-22T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1975-02-22T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1975-10-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1975-10-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1976" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1976-03-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1976-03-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1976-10-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1976-10-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1977" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1977-03-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1977-03-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1977-10-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1977-10-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1978" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1978-03-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1978-03-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1978-10-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1978-10-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1979" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1979-03-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1979-03-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1979-10-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1979-10-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1980" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1980-03-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1980-03-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1980-10-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1980-10-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1981" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1981-02-28T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1981-02-28T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1981-10-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1981-10-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1982" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1982-03-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1982-03-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1982-10-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1982-10-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1983" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1983-03-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1983-03-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1983-10-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1983-10-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1984" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1984-03-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1984-03-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1984-10-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1984-10-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1985" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1985-03-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1985-03-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1985-10-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1985-10-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1986" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1986-03-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1986-03-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1986-10-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1986-10-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1987" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1987-02-28T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1987-02-28T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1987-10-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1987-10-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1988" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1988-03-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1988-03-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1988-10-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1988-10-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1989" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1989-03-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1989-03-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1989-10-07T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1989-10-07T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1990" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1990-03-17T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1990-03-17T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1990-10-06T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1990-10-06T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1991" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1991-03-16T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1991-03-16T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1991-10-05T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1991-10-05T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1992" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1992-03-14T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1992-03-14T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1992-10-03T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1992-10-03T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1993" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1993-03-20T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1993-03-20T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1993-10-02T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1993-10-02T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1994" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1994-03-19T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1994-03-19T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1994-10-01T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1994-10-01T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1995" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1995-03-18T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1995-03-18T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1995-09-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1995-09-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1996" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1996-03-16T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1996-03-16T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1996-10-05T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1996-10-05T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1997" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1997-03-15T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1997-03-15T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1997-10-04T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1997-10-04T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1998" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1998-03-14T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1998-03-14T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1998-10-03T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1998-10-03T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1999" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["1999-03-20T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1999-03-20T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1999-10-02T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1999-10-02T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2000" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2000-03-18T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2000-03-18T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2000-09-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2000-09-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2001" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2001-03-17T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2001-03-17T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2001-10-06T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2001-10-06T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2002" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2002-03-16T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2002-03-16T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2002-10-05T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2002-10-05T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2003" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2003-03-15T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2003-03-15T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2003-10-04T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2003-10-04T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2004" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2004-03-20T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2004-03-20T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2004-10-02T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2004-10-02T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2005" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2005-03-19T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2005-03-19T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2005-10-01T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2005-10-01T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2006" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2006-03-18T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2006-03-18T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2006-09-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2006-09-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2007" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2007-03-17T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2007-03-17T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2007-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2007-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2008" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2008-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2008-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2008-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2008-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2009" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2009-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2009-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2009-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2009-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2010" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2010-04-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2010-04-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2010-09-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2010-09-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2011" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2011-04-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2011-04-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2011-09-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2011-09-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2012" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2012-03-31T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2012-03-31T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2012-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2012-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2013" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2013-04-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2013-04-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2013-09-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2013-09-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2014" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2014-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2014-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2014-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2014-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2015" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2015-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2015-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2015-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2015-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2016" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2016-04-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2016-04-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2016-09-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2016-09-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2017" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2017-04-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2017-04-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2017-09-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2017-09-23T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2018" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2018-03-31T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2018-03-31T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2018-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2018-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2019" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2019-04-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2019-04-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2019-09-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2019-09-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2020" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2020-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2020-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2020-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2020-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2021" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2021-04-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2021-04-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2021-09-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2021-09-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2022" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2022-04-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2022-04-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2022-09-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2022-09-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2023" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2023-04-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2023-04-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2023-09-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2023-09-23T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2024" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2024-04-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2024-04-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2024-09-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2024-09-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2025" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2025-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2025-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2025-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2025-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2026" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2026-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2026-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2026-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2026-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2027" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2027-04-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2027-04-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2027-09-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2027-09-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2028" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2028-04-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2028-04-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2028-09-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2028-09-23T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2029" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2029-03-31T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2029-03-31T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2029-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2029-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2030" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2030-04-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2030-04-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2030-09-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2030-09-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2031" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2031-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2031-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2031-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2031-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2032" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2032-04-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2032-04-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2032-09-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2032-09-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2033" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2033-04-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2033-04-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2033-09-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2033-09-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2034" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2034-04-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2034-04-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2034-09-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2034-09-23T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2035" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2035-03-31T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2035-03-31T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2035-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2035-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2036" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2036-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2036-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2036-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2036-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2037" : helpers.makeTestYear("Antarctica/McMurdo", [ + ["2037-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2037-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2037-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2037-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/palmer.js b/tests/zones/antarctica/palmer.js new file mode 100644 index 00000000..b0de5de3 --- /dev/null +++ b/tests/zones/antarctica/palmer.js @@ -0,0 +1,444 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/Palmer"] = { + "1964" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1964-12-31T23:59:59+00:00", "23:59:59", "zzz", 0] + ]), + + "1965" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1965-01-01T00:00:00+00:00", "21:00:00", "ARST", 180], + ["1965-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1965-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1965-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1965-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1966" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1966-03-01T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1966-03-01T03:00:00+00:00", "23:00:00", "ART", 240], + ["1966-10-15T03:59:59+00:00", "23:59:59", "ART", 240], + ["1966-10-15T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1967" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1967-04-02T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1967-04-02T03:00:00+00:00", "23:00:00", "ART", 240], + ["1967-10-01T03:59:59+00:00", "23:59:59", "ART", 240], + ["1967-10-01T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1968" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1968-04-07T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1968-04-07T03:00:00+00:00", "23:00:00", "ART", 240], + ["1968-10-06T03:59:59+00:00", "23:59:59", "ART", 240], + ["1968-10-06T04:00:00+00:00", "01:00:00", "ARST", 180] + ]), + + "1969" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1969-04-06T02:59:59+00:00", "23:59:59", "ARST", 180], + ["1969-04-06T03:00:00+00:00", "23:00:00", "ART", 240], + ["1969-10-05T03:59:59+00:00", "23:59:59", "ART", 240], + ["1969-10-05T04:00:00+00:00", "01:00:00", "ART", 180] + ]), + + "1974" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1974-01-23T02:59:59+00:00", "23:59:59", "ART", 180], + ["1974-01-23T03:00:00+00:00", "01:00:00", "ARST", 120], + ["1974-05-01T01:59:59+00:00", "23:59:59", "ARST", 120], + ["1974-05-01T02:00:00+00:00", "23:00:00", "ART", 180] + ]), + + "1982" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1982-05-01T02:59:59+00:00", "23:59:59", "ART", 180], + ["1982-05-01T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1982-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1982-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1983" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1983-03-13T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1983-03-13T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1983-10-09T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1983-10-09T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1984" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1984-03-11T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1984-03-11T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1984-10-14T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1984-10-14T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1985" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1985-03-10T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1985-03-10T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1985-10-13T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1985-10-13T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1986" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1986-03-09T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1986-03-09T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1986-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1986-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1987" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1987-04-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1987-04-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1987-10-11T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1987-10-11T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1988" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1988-03-13T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1988-03-13T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1988-10-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1988-10-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1989" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1989-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1989-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1989-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1989-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1990" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1990-03-18T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1990-03-18T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1990-09-16T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1990-09-16T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1991" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1991-03-10T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1991-03-10T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1991-10-13T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1991-10-13T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1992" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1992-03-15T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1992-03-15T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1992-10-11T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1992-10-11T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1993" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1993-03-14T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1993-03-14T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1993-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1993-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1994" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1994-03-13T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1994-03-13T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1994-10-09T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1994-10-09T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1995" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1995-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1995-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1995-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1995-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1996" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1996-03-10T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1996-03-10T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1996-10-13T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1996-10-13T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1997" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1997-03-30T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1997-03-30T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1997-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1997-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1998" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1998-03-15T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1998-03-15T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1998-09-27T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1998-09-27T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "1999" : helpers.makeTestYear("Antarctica/Palmer", [ + ["1999-04-04T02:59:59+00:00", "23:59:59", "CLST", 180], + ["1999-04-04T03:00:00+00:00", "23:00:00", "CLT", 240], + ["1999-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["1999-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2000" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2000-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2000-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2000-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2000-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2001" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2001-03-11T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2001-03-11T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2001-10-14T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2001-10-14T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2002" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2002-03-10T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2002-03-10T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2002-10-13T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2002-10-13T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2003" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2003-03-09T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2003-03-09T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2003-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2003-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2004" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2004-03-14T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2004-03-14T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2004-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2004-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2005" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2005-03-13T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2005-03-13T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2005-10-09T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2005-10-09T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2006" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2006-03-12T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2006-03-12T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2006-10-15T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2006-10-15T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2007" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2007-03-11T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2007-03-11T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2007-10-14T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2007-10-14T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2008" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2008-03-30T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2008-03-30T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2008-10-12T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2008-10-12T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2009" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2009-03-15T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2009-03-15T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2009-10-11T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2009-10-11T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2010" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2010-04-04T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2010-04-04T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2010-10-10T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2010-10-10T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2011" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2011-05-08T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2011-05-08T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2011-08-21T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2011-08-21T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2012" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2012-04-29T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2012-04-29T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2012-09-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2012-09-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2013" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2013-04-28T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2013-04-28T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2013-09-08T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2013-09-08T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2014" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2014-04-27T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2014-04-27T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2014-09-07T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2014-09-07T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2015" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2015-04-26T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2015-04-26T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2015-09-06T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2015-09-06T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2016" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2016-04-24T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2016-04-24T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2016-09-04T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2016-09-04T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2017" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2017-04-23T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2017-04-23T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2017-09-03T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2017-09-03T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2018" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2018-04-29T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2018-04-29T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2018-09-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2018-09-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2019" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2019-04-28T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2019-04-28T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2019-09-08T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2019-09-08T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2020" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2020-04-26T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2020-04-26T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2020-09-06T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2020-09-06T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2021" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2021-04-25T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2021-04-25T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2021-09-05T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2021-09-05T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2022" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2022-04-24T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2022-04-24T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2022-09-04T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2022-09-04T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2023" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2023-04-23T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2023-04-23T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2023-09-03T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2023-09-03T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2024" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2024-04-28T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2024-04-28T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2024-09-08T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2024-09-08T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2025" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2025-04-27T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2025-04-27T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2025-09-07T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2025-09-07T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2026" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2026-04-26T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2026-04-26T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2026-09-06T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2026-09-06T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2027" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2027-04-25T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2027-04-25T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2027-09-05T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2027-09-05T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2028" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2028-04-23T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2028-04-23T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2028-09-03T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2028-09-03T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2029" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2029-04-29T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2029-04-29T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2029-09-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2029-09-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2030" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2030-04-28T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2030-04-28T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2030-09-08T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2030-09-08T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2031" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2031-04-27T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2031-04-27T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2031-09-07T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2031-09-07T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2032" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2032-04-25T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2032-04-25T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2032-09-05T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2032-09-05T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2033" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2033-04-24T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2033-04-24T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2033-09-04T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2033-09-04T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2034" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2034-04-23T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2034-04-23T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2034-09-03T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2034-09-03T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2035" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2035-04-29T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2035-04-29T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2035-09-02T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2035-09-02T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2036" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2036-04-27T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2036-04-27T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2036-09-07T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2036-09-07T04:00:00+00:00", "01:00:00", "CLST", 180] + ]), + + "2037" : helpers.makeTestYear("Antarctica/Palmer", [ + ["2037-04-26T02:59:59+00:00", "23:59:59", "CLST", 180], + ["2037-04-26T03:00:00+00:00", "23:00:00", "CLT", 240], + ["2037-09-06T03:59:59+00:00", "23:59:59", "CLT", 240], + ["2037-09-06T04:00:00+00:00", "01:00:00", "CLST", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/rothera.js b/tests/zones/antarctica/rothera.js new file mode 100644 index 00000000..734a5c63 --- /dev/null +++ b/tests/zones/antarctica/rothera.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/Rothera"] = { + "1976" : helpers.makeTestYear("Antarctica/Rothera", [ + ["1976-11-30T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1976-12-01T00:00:00+00:00", "21:00:00", "ROTT", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/syowa.js b/tests/zones/antarctica/syowa.js new file mode 100644 index 00000000..d77dcd49 --- /dev/null +++ b/tests/zones/antarctica/syowa.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/Syowa"] = { + "1957" : helpers.makeTestYear("Antarctica/Syowa", [ + ["1957-01-28T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1957-01-29T00:00:00+00:00", "03:00:00", "SYOT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/antarctica/vostok.js b/tests/zones/antarctica/vostok.js new file mode 100644 index 00000000..53bd1fd2 --- /dev/null +++ b/tests/zones/antarctica/vostok.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Antarctica/Vostok"] = { + "1957" : helpers.makeTestYear("Antarctica/Vostok", [ + ["1957-12-15T23:59:59+00:00", "23:59:59", "zzz", 0], + ["1957-12-16T00:00:00+00:00", "06:00:00", "VOST", -360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/aden.js b/tests/zones/asia/aden.js new file mode 100644 index 00000000..3c908ec7 --- /dev/null +++ b/tests/zones/asia/aden.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Aden"] = { + "1949" : helpers.makeTestYear("Asia/Aden", [ + ["1949-12-31T21:00:05+00:00", "23:59:59", "LMT", -10794 / 60], + ["1949-12-31T21:00:06+00:00", "00:00:06", "AST", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/almaty.js b/tests/zones/asia/almaty.js new file mode 100644 index 00000000..13f65ef1 --- /dev/null +++ b/tests/zones/asia/almaty.js @@ -0,0 +1,176 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Almaty"] = { + "1924" : helpers.makeTestYear("Asia/Almaty", [ + ["1924-05-01T18:52:11+00:00", "23:59:59", "LMT", -18468 / 60], + ["1924-05-01T18:52:12+00:00", "23:52:12", "ALMT", -300] + ]), + + "1930" : helpers.makeTestYear("Asia/Almaty", [ + ["1930-06-20T18:59:59+00:00", "23:59:59", "ALMT", -300], + ["1930-06-20T19:00:00+00:00", "01:00:00", "ALMT", -360] + ]), + + "1981" : helpers.makeTestYear("Asia/Almaty", [ + ["1981-03-31T17:59:59+00:00", "23:59:59", "ALMT", -360], + ["1981-03-31T18:00:00+00:00", "01:00:00", "ALMST", -420], + ["1981-09-30T16:59:59+00:00", "23:59:59", "ALMST", -420], + ["1981-09-30T17:00:00+00:00", "23:00:00", "ALMT", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Almaty", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "ALMT", -360], + ["1982-03-31T18:00:00+00:00", "01:00:00", "ALMST", -420], + ["1982-09-30T16:59:59+00:00", "23:59:59", "ALMST", -420], + ["1982-09-30T17:00:00+00:00", "23:00:00", "ALMT", -360] + ]), + + "1983" : helpers.makeTestYear("Asia/Almaty", [ + ["1983-03-31T17:59:59+00:00", "23:59:59", "ALMT", -360], + ["1983-03-31T18:00:00+00:00", "01:00:00", "ALMST", -420], + ["1983-09-30T16:59:59+00:00", "23:59:59", "ALMST", -420], + ["1983-09-30T17:00:00+00:00", "23:00:00", "ALMT", -360] + ]), + + "1984" : helpers.makeTestYear("Asia/Almaty", [ + ["1984-03-31T17:59:59+00:00", "23:59:59", "ALMT", -360], + ["1984-03-31T18:00:00+00:00", "01:00:00", "ALMST", -420], + ["1984-09-29T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1984-09-29T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1985" : helpers.makeTestYear("Asia/Almaty", [ + ["1985-03-30T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1985-03-30T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1985-09-28T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1985-09-28T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1986" : helpers.makeTestYear("Asia/Almaty", [ + ["1986-03-29T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1986-03-29T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1986-09-27T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1986-09-27T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1987" : helpers.makeTestYear("Asia/Almaty", [ + ["1987-03-28T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1987-03-28T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1987-09-26T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1987-09-26T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1988" : helpers.makeTestYear("Asia/Almaty", [ + ["1988-03-26T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1988-03-26T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1988-09-24T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1988-09-24T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1989" : helpers.makeTestYear("Asia/Almaty", [ + ["1989-03-25T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1989-03-25T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1989-09-23T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1989-09-23T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1990" : helpers.makeTestYear("Asia/Almaty", [ + ["1990-03-24T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1990-03-24T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1990-09-29T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1990-09-29T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1992" : helpers.makeTestYear("Asia/Almaty", [ + ["1992-03-28T16:59:59+00:00", "22:59:59", "ALMT", -360], + ["1992-03-28T17:00:00+00:00", "00:00:00", "ALMST", -420], + ["1992-09-26T15:59:59+00:00", "22:59:59", "ALMST", -420], + ["1992-09-26T16:00:00+00:00", "22:00:00", "ALMT", -360] + ]), + + "1993" : helpers.makeTestYear("Asia/Almaty", [ + ["1993-03-27T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1993-03-27T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1993-09-25T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1993-09-25T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1994" : helpers.makeTestYear("Asia/Almaty", [ + ["1994-03-26T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1994-03-26T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1994-09-24T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1994-09-24T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1995" : helpers.makeTestYear("Asia/Almaty", [ + ["1995-03-25T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1995-03-25T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1995-09-23T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1995-09-23T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1996" : helpers.makeTestYear("Asia/Almaty", [ + ["1996-03-30T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1996-03-30T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1996-10-26T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1996-10-26T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1997" : helpers.makeTestYear("Asia/Almaty", [ + ["1997-03-29T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1997-03-29T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1997-10-25T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1997-10-25T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1998" : helpers.makeTestYear("Asia/Almaty", [ + ["1998-03-28T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1998-03-28T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1998-10-24T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1998-10-24T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "1999" : helpers.makeTestYear("Asia/Almaty", [ + ["1999-03-27T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["1999-03-27T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["1999-10-30T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["1999-10-30T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "2000" : helpers.makeTestYear("Asia/Almaty", [ + ["2000-03-25T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["2000-03-25T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["2000-10-28T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["2000-10-28T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "2001" : helpers.makeTestYear("Asia/Almaty", [ + ["2001-03-24T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["2001-03-24T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["2001-10-27T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["2001-10-27T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "2002" : helpers.makeTestYear("Asia/Almaty", [ + ["2002-03-30T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["2002-03-30T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["2002-10-26T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["2002-10-26T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "2003" : helpers.makeTestYear("Asia/Almaty", [ + ["2003-03-29T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["2003-03-29T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["2003-10-25T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["2003-10-25T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]), + + "2004" : helpers.makeTestYear("Asia/Almaty", [ + ["2004-03-27T19:59:59+00:00", "01:59:59", "ALMT", -360], + ["2004-03-27T20:00:00+00:00", "03:00:00", "ALMST", -420], + ["2004-10-30T19:59:59+00:00", "02:59:59", "ALMST", -420], + ["2004-10-30T20:00:00+00:00", "02:00:00", "ALMT", -360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/amman.js b/tests/zones/asia/amman.js new file mode 100644 index 00000000..18b51fbc --- /dev/null +++ b/tests/zones/asia/amman.js @@ -0,0 +1,419 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Amman"] = { + "1930" : helpers.makeTestYear("Asia/Amman", [ + ["1930-12-31T21:36:15+00:00", "23:59:59", "LMT", -8624 / 60], + ["1930-12-31T21:36:16+00:00", "23:36:16", "EET", -120] + ]), + + "1973" : helpers.makeTestYear("Asia/Amman", [ + ["1973-06-05T21:59:59+00:00", "23:59:59", "EET", -120], + ["1973-06-05T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1973-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1973-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1974" : helpers.makeTestYear("Asia/Amman", [ + ["1974-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1974-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1974-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1974-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1975" : helpers.makeTestYear("Asia/Amman", [ + ["1975-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1975-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1975-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1975-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1976" : helpers.makeTestYear("Asia/Amman", [ + ["1976-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1976-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1976-10-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1976-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1977" : helpers.makeTestYear("Asia/Amman", [ + ["1977-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1977-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1977-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1977-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1978" : helpers.makeTestYear("Asia/Amman", [ + ["1978-04-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1978-04-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1978-09-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1978-09-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1985" : helpers.makeTestYear("Asia/Amman", [ + ["1985-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1985-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1985-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1985-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Asia/Amman", [ + ["1986-04-03T21:59:59+00:00", "23:59:59", "EET", -120], + ["1986-04-03T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1986-10-02T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1986-10-02T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Asia/Amman", [ + ["1987-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1987-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1987-10-01T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1987-10-01T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Asia/Amman", [ + ["1988-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1988-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1988-10-06T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1988-10-06T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Asia/Amman", [ + ["1989-05-07T21:59:59+00:00", "23:59:59", "EET", -120], + ["1989-05-07T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1989-10-05T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1989-10-05T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Asia/Amman", [ + ["1990-04-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1990-04-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1990-10-04T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1990-10-04T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Asia/Amman", [ + ["1991-04-16T21:59:59+00:00", "23:59:59", "EET", -120], + ["1991-04-16T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1991-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1991-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Asia/Amman", [ + ["1992-04-09T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-04-09T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-10-01T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-10-01T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Asia/Amman", [ + ["1993-04-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-04-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Asia/Amman", [ + ["1994-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Asia/Amman", [ + ["1995-04-06T21:59:59+00:00", "23:59:59", "EET", -120], + ["1995-04-06T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1995-09-14T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1995-09-14T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Asia/Amman", [ + ["1996-04-04T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-04-04T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-09-19T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1996-09-19T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Asia/Amman", [ + ["1997-04-03T21:59:59+00:00", "23:59:59", "EET", -120], + ["1997-04-03T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1997-09-18T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1997-09-18T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Asia/Amman", [ + ["1998-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1998-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1998-09-17T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1998-09-17T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Asia/Amman", [ + ["1999-06-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1999-06-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1999-09-23T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1999-09-23T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Asia/Amman", [ + ["2000-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2000-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2000-09-28T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2000-09-28T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Asia/Amman", [ + ["2001-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2001-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2001-09-27T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2001-09-27T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Asia/Amman", [ + ["2002-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2002-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2002-09-26T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2002-09-26T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Asia/Amman", [ + ["2003-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2003-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2003-10-23T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2003-10-23T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Asia/Amman", [ + ["2004-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2004-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2004-10-14T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2004-10-14T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Asia/Amman", [ + ["2005-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2005-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2005-09-29T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2005-09-29T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Asia/Amman", [ + ["2006-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2006-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2006-10-26T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2006-10-26T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Asia/Amman", [ + ["2007-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2007-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2007-10-25T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2007-10-25T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Asia/Amman", [ + ["2008-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2008-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2008-10-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2008-10-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Asia/Amman", [ + ["2009-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2009-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2009-10-29T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2009-10-29T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Asia/Amman", [ + ["2010-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2010-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2010-10-28T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2010-10-28T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Asia/Amman", [ + ["2011-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2011-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2011-10-27T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2011-10-27T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Asia/Amman", [ + ["2012-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2012-03-29T22:00:00+00:00", "01:00:00", "EEST", -180] + ]), + + "2013" : helpers.makeTestYear("Asia/Amman", [ + ["2013-12-19T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2013-12-19T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Asia/Amman", [ + ["2014-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2014-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2014-10-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2014-10-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Asia/Amman", [ + ["2015-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2015-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2015-10-29T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2015-10-29T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Asia/Amman", [ + ["2016-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2016-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2016-10-27T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2016-10-27T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Asia/Amman", [ + ["2017-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2017-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2017-10-26T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2017-10-26T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Asia/Amman", [ + ["2018-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2018-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2018-10-25T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2018-10-25T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Asia/Amman", [ + ["2019-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2019-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2019-10-24T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2019-10-24T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Asia/Amman", [ + ["2020-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2020-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2020-10-29T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2020-10-29T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Asia/Amman", [ + ["2021-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2021-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2021-10-28T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2021-10-28T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Asia/Amman", [ + ["2022-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2022-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2022-10-27T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2022-10-27T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Asia/Amman", [ + ["2023-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2023-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2023-10-26T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2023-10-26T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Asia/Amman", [ + ["2024-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2024-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2024-10-24T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2024-10-24T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Asia/Amman", [ + ["2025-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2025-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2025-10-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2025-10-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Asia/Amman", [ + ["2026-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2026-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2026-10-29T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2026-10-29T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Asia/Amman", [ + ["2027-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2027-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2027-10-28T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2027-10-28T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Asia/Amman", [ + ["2028-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2028-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2028-10-26T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2028-10-26T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Asia/Amman", [ + ["2029-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2029-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2029-10-25T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2029-10-25T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Asia/Amman", [ + ["2030-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2030-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2030-10-24T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2030-10-24T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Asia/Amman", [ + ["2031-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2031-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2031-10-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2031-10-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Asia/Amman", [ + ["2032-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2032-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2032-10-28T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2032-10-28T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Asia/Amman", [ + ["2033-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2033-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2033-10-27T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2033-10-27T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Asia/Amman", [ + ["2034-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2034-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2034-10-26T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2034-10-26T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Asia/Amman", [ + ["2035-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2035-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2035-10-25T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2035-10-25T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Asia/Amman", [ + ["2036-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2036-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2036-10-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2036-10-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Asia/Amman", [ + ["2037-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2037-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2037-10-29T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2037-10-29T22:00:00+00:00", "00:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/anadyr.js b/tests/zones/asia/anadyr.js new file mode 100644 index 00000000..58d38d59 --- /dev/null +++ b/tests/zones/asia/anadyr.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Anadyr"] = { + "1924" : helpers.makeTestYear("Asia/Anadyr", [ + ["1924-05-01T12:10:03+00:00", "23:59:59", "LMT", -42596 / 60], + ["1924-05-01T12:10:04+00:00", "00:10:04", "ANAT", -720] + ]), + + "1930" : helpers.makeTestYear("Asia/Anadyr", [ + ["1930-06-20T11:59:59+00:00", "23:59:59", "ANAT", -720], + ["1930-06-20T12:00:00+00:00", "01:00:00", "ANAT", -780] + ]), + + "1981" : helpers.makeTestYear("Asia/Anadyr", [ + ["1981-03-31T10:59:59+00:00", "23:59:59", "ANAT", -780], + ["1981-03-31T11:00:00+00:00", "01:00:00", "ANAST", -840], + ["1981-09-30T09:59:59+00:00", "23:59:59", "ANAST", -840], + ["1981-09-30T10:00:00+00:00", "23:00:00", "ANAT", -780] + ]), + + "1982" : helpers.makeTestYear("Asia/Anadyr", [ + ["1982-03-31T10:59:59+00:00", "23:59:59", "ANAT", -780], + ["1982-03-31T11:00:00+00:00", "00:00:00", "ANAST", -780], + ["1982-09-30T10:59:59+00:00", "23:59:59", "ANAST", -780], + ["1982-09-30T11:00:00+00:00", "23:00:00", "ANAT", -720] + ]), + + "1983" : helpers.makeTestYear("Asia/Anadyr", [ + ["1983-03-31T11:59:59+00:00", "23:59:59", "ANAT", -720], + ["1983-03-31T12:00:00+00:00", "01:00:00", "ANAST", -780], + ["1983-09-30T10:59:59+00:00", "23:59:59", "ANAST", -780], + ["1983-09-30T11:00:00+00:00", "23:00:00", "ANAT", -720] + ]), + + "1984" : helpers.makeTestYear("Asia/Anadyr", [ + ["1984-03-31T11:59:59+00:00", "23:59:59", "ANAT", -720], + ["1984-03-31T12:00:00+00:00", "01:00:00", "ANAST", -780], + ["1984-09-29T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1984-09-29T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1985" : helpers.makeTestYear("Asia/Anadyr", [ + ["1985-03-30T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1985-03-30T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1985-09-28T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1985-09-28T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1986" : helpers.makeTestYear("Asia/Anadyr", [ + ["1986-03-29T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1986-03-29T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1986-09-27T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1986-09-27T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1987" : helpers.makeTestYear("Asia/Anadyr", [ + ["1987-03-28T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1987-03-28T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1987-09-26T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1987-09-26T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1988" : helpers.makeTestYear("Asia/Anadyr", [ + ["1988-03-26T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1988-03-26T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1988-09-24T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1988-09-24T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1989" : helpers.makeTestYear("Asia/Anadyr", [ + ["1989-03-25T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1989-03-25T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1989-09-23T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1989-09-23T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1990" : helpers.makeTestYear("Asia/Anadyr", [ + ["1990-03-24T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1990-03-24T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1990-09-29T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1990-09-29T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1991" : helpers.makeTestYear("Asia/Anadyr", [ + ["1991-03-30T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1991-03-30T14:00:00+00:00", "02:00:00", "ANAST", -720], + ["1991-09-28T14:59:59+00:00", "02:59:59", "ANAST", -720], + ["1991-09-28T15:00:00+00:00", "02:00:00", "ANAT", -660] + ]), + + "1992" : helpers.makeTestYear("Asia/Anadyr", [ + ["1992-01-18T14:59:59+00:00", "01:59:59", "ANAT", -660], + ["1992-01-18T15:00:00+00:00", "03:00:00", "ANAT", -720], + ["1992-03-28T10:59:59+00:00", "22:59:59", "ANAT", -720], + ["1992-03-28T11:00:00+00:00", "00:00:00", "ANAST", -780], + ["1992-09-26T09:59:59+00:00", "22:59:59", "ANAST", -780], + ["1992-09-26T10:00:00+00:00", "22:00:00", "ANAT", -720] + ]), + + "1993" : helpers.makeTestYear("Asia/Anadyr", [ + ["1993-03-27T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1993-03-27T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1993-09-25T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1993-09-25T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1994" : helpers.makeTestYear("Asia/Anadyr", [ + ["1994-03-26T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1994-03-26T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1994-09-24T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1994-09-24T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1995" : helpers.makeTestYear("Asia/Anadyr", [ + ["1995-03-25T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1995-03-25T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1995-09-23T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1995-09-23T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1996" : helpers.makeTestYear("Asia/Anadyr", [ + ["1996-03-30T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1996-03-30T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1996-10-26T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1996-10-26T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1997" : helpers.makeTestYear("Asia/Anadyr", [ + ["1997-03-29T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1997-03-29T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1997-10-25T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1997-10-25T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1998" : helpers.makeTestYear("Asia/Anadyr", [ + ["1998-03-28T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1998-03-28T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1998-10-24T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1998-10-24T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "1999" : helpers.makeTestYear("Asia/Anadyr", [ + ["1999-03-27T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["1999-03-27T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["1999-10-30T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["1999-10-30T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2000" : helpers.makeTestYear("Asia/Anadyr", [ + ["2000-03-25T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2000-03-25T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2000-10-28T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2000-10-28T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2001" : helpers.makeTestYear("Asia/Anadyr", [ + ["2001-03-24T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2001-03-24T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2001-10-27T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2001-10-27T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2002" : helpers.makeTestYear("Asia/Anadyr", [ + ["2002-03-30T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2002-03-30T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2002-10-26T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2002-10-26T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2003" : helpers.makeTestYear("Asia/Anadyr", [ + ["2003-03-29T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2003-03-29T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2003-10-25T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2003-10-25T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2004" : helpers.makeTestYear("Asia/Anadyr", [ + ["2004-03-27T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2004-03-27T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2004-10-30T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2004-10-30T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2005" : helpers.makeTestYear("Asia/Anadyr", [ + ["2005-03-26T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2005-03-26T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2005-10-29T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2005-10-29T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2006" : helpers.makeTestYear("Asia/Anadyr", [ + ["2006-03-25T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2006-03-25T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2006-10-28T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2006-10-28T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2007" : helpers.makeTestYear("Asia/Anadyr", [ + ["2007-03-24T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2007-03-24T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2007-10-27T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2007-10-27T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2008" : helpers.makeTestYear("Asia/Anadyr", [ + ["2008-03-29T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2008-03-29T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2008-10-25T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2008-10-25T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2009" : helpers.makeTestYear("Asia/Anadyr", [ + ["2009-03-28T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2009-03-28T14:00:00+00:00", "03:00:00", "ANAST", -780], + ["2009-10-24T13:59:59+00:00", "02:59:59", "ANAST", -780], + ["2009-10-24T14:00:00+00:00", "02:00:00", "ANAT", -720] + ]), + + "2010" : helpers.makeTestYear("Asia/Anadyr", [ + ["2010-03-27T13:59:59+00:00", "01:59:59", "ANAT", -720], + ["2010-03-27T14:00:00+00:00", "02:00:00", "ANAST", -720], + ["2010-10-30T14:59:59+00:00", "02:59:59", "ANAST", -720], + ["2010-10-30T15:00:00+00:00", "02:00:00", "ANAT", -660] + ]), + + "2011" : helpers.makeTestYear("Asia/Anadyr", [ + ["2011-03-26T14:59:59+00:00", "01:59:59", "ANAT", -660], + ["2011-03-26T15:00:00+00:00", "03:00:00", "ANAT", -720] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/aqtau.js b/tests/zones/asia/aqtau.js new file mode 100644 index 00000000..4155ed28 --- /dev/null +++ b/tests/zones/asia/aqtau.js @@ -0,0 +1,189 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Aqtau"] = { + "1924" : helpers.makeTestYear("Asia/Aqtau", [ + ["1924-05-01T20:38:55+00:00", "23:59:59", "LMT", -12064 / 60], + ["1924-05-01T20:38:56+00:00", "00:38:56", "FORT", -240] + ]), + + "1930" : helpers.makeTestYear("Asia/Aqtau", [ + ["1930-06-20T19:59:59+00:00", "23:59:59", "FORT", -240], + ["1930-06-20T20:00:00+00:00", "01:00:00", "FORT", -300] + ]), + + "1962" : helpers.makeTestYear("Asia/Aqtau", [ + ["1962-12-31T18:59:59+00:00", "23:59:59", "FORT", -300], + ["1962-12-31T19:00:00+00:00", "00:00:00", "SHET", -300] + ]), + + "1981" : helpers.makeTestYear("Asia/Aqtau", [ + ["1981-09-30T18:59:59+00:00", "23:59:59", "SHET", -300], + ["1981-09-30T19:00:00+00:00", "01:00:00", "SHET", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Aqtau", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "SHET", -360], + ["1982-03-31T18:00:00+00:00", "00:00:00", "SHEST", -360], + ["1982-09-30T17:59:59+00:00", "23:59:59", "SHEST", -360], + ["1982-09-30T18:00:00+00:00", "23:00:00", "SHET", -300] + ]), + + "1983" : helpers.makeTestYear("Asia/Aqtau", [ + ["1983-03-31T18:59:59+00:00", "23:59:59", "SHET", -300], + ["1983-03-31T19:00:00+00:00", "01:00:00", "SHEST", -360], + ["1983-09-30T17:59:59+00:00", "23:59:59", "SHEST", -360], + ["1983-09-30T18:00:00+00:00", "23:00:00", "SHET", -300] + ]), + + "1984" : helpers.makeTestYear("Asia/Aqtau", [ + ["1984-03-31T18:59:59+00:00", "23:59:59", "SHET", -300], + ["1984-03-31T19:00:00+00:00", "01:00:00", "SHEST", -360], + ["1984-09-29T20:59:59+00:00", "02:59:59", "SHEST", -360], + ["1984-09-29T21:00:00+00:00", "02:00:00", "SHET", -300] + ]), + + "1985" : helpers.makeTestYear("Asia/Aqtau", [ + ["1985-03-30T20:59:59+00:00", "01:59:59", "SHET", -300], + ["1985-03-30T21:00:00+00:00", "03:00:00", "SHEST", -360], + ["1985-09-28T20:59:59+00:00", "02:59:59", "SHEST", -360], + ["1985-09-28T21:00:00+00:00", "02:00:00", "SHET", -300] + ]), + + "1986" : helpers.makeTestYear("Asia/Aqtau", [ + ["1986-03-29T20:59:59+00:00", "01:59:59", "SHET", -300], + ["1986-03-29T21:00:00+00:00", "03:00:00", "SHEST", -360], + ["1986-09-27T20:59:59+00:00", "02:59:59", "SHEST", -360], + ["1986-09-27T21:00:00+00:00", "02:00:00", "SHET", -300] + ]), + + "1987" : helpers.makeTestYear("Asia/Aqtau", [ + ["1987-03-28T20:59:59+00:00", "01:59:59", "SHET", -300], + ["1987-03-28T21:00:00+00:00", "03:00:00", "SHEST", -360], + ["1987-09-26T20:59:59+00:00", "02:59:59", "SHEST", -360], + ["1987-09-26T21:00:00+00:00", "02:00:00", "SHET", -300] + ]), + + "1988" : helpers.makeTestYear("Asia/Aqtau", [ + ["1988-03-26T20:59:59+00:00", "01:59:59", "SHET", -300], + ["1988-03-26T21:00:00+00:00", "03:00:00", "SHEST", -360], + ["1988-09-24T20:59:59+00:00", "02:59:59", "SHEST", -360], + ["1988-09-24T21:00:00+00:00", "02:00:00", "SHET", -300] + ]), + + "1989" : helpers.makeTestYear("Asia/Aqtau", [ + ["1989-03-25T20:59:59+00:00", "01:59:59", "SHET", -300], + ["1989-03-25T21:00:00+00:00", "03:00:00", "SHEST", -360], + ["1989-09-23T20:59:59+00:00", "02:59:59", "SHEST", -360], + ["1989-09-23T21:00:00+00:00", "02:00:00", "SHET", -300] + ]), + + "1990" : helpers.makeTestYear("Asia/Aqtau", [ + ["1990-03-24T20:59:59+00:00", "01:59:59", "SHET", -300], + ["1990-03-24T21:00:00+00:00", "03:00:00", "SHEST", -360], + ["1990-09-29T20:59:59+00:00", "02:59:59", "SHEST", -360], + ["1990-09-29T21:00:00+00:00", "02:00:00", "SHET", -300] + ]), + + "1991" : helpers.makeTestYear("Asia/Aqtau", [ + ["1991-12-15T18:59:59+00:00", "23:59:59", "SHET", -300], + ["1991-12-15T19:00:00+00:00", "00:00:00", "AQTT", -300] + ]), + + "1992" : helpers.makeTestYear("Asia/Aqtau", [ + ["1992-03-28T17:59:59+00:00", "22:59:59", "AQTT", -300], + ["1992-03-28T18:00:00+00:00", "00:00:00", "AQTST", -360], + ["1992-09-26T16:59:59+00:00", "22:59:59", "AQTST", -360], + ["1992-09-26T17:00:00+00:00", "22:00:00", "AQTT", -300] + ]), + + "1993" : helpers.makeTestYear("Asia/Aqtau", [ + ["1993-03-27T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1993-03-27T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["1993-09-25T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["1993-09-25T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "1994" : helpers.makeTestYear("Asia/Aqtau", [ + ["1994-03-26T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1994-03-26T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["1994-09-24T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["1994-09-24T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "1995" : helpers.makeTestYear("Asia/Aqtau", [ + ["1995-03-25T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1995-03-25T21:00:00+00:00", "02:00:00", "AQTST", -300], + ["1995-09-23T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["1995-09-23T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "1996" : helpers.makeTestYear("Asia/Aqtau", [ + ["1996-03-30T21:59:59+00:00", "01:59:59", "AQTT", -240], + ["1996-03-30T22:00:00+00:00", "03:00:00", "AQTST", -300], + ["1996-10-26T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["1996-10-26T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "1997" : helpers.makeTestYear("Asia/Aqtau", [ + ["1997-03-29T21:59:59+00:00", "01:59:59", "AQTT", -240], + ["1997-03-29T22:00:00+00:00", "03:00:00", "AQTST", -300], + ["1997-10-25T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["1997-10-25T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "1998" : helpers.makeTestYear("Asia/Aqtau", [ + ["1998-03-28T21:59:59+00:00", "01:59:59", "AQTT", -240], + ["1998-03-28T22:00:00+00:00", "03:00:00", "AQTST", -300], + ["1998-10-24T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["1998-10-24T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "1999" : helpers.makeTestYear("Asia/Aqtau", [ + ["1999-03-27T21:59:59+00:00", "01:59:59", "AQTT", -240], + ["1999-03-27T22:00:00+00:00", "03:00:00", "AQTST", -300], + ["1999-10-30T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["1999-10-30T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "2000" : helpers.makeTestYear("Asia/Aqtau", [ + ["2000-03-25T21:59:59+00:00", "01:59:59", "AQTT", -240], + ["2000-03-25T22:00:00+00:00", "03:00:00", "AQTST", -300], + ["2000-10-28T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["2000-10-28T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "2001" : helpers.makeTestYear("Asia/Aqtau", [ + ["2001-03-24T21:59:59+00:00", "01:59:59", "AQTT", -240], + ["2001-03-24T22:00:00+00:00", "03:00:00", "AQTST", -300], + ["2001-10-27T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["2001-10-27T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "2002" : helpers.makeTestYear("Asia/Aqtau", [ + ["2002-03-30T21:59:59+00:00", "01:59:59", "AQTT", -240], + ["2002-03-30T22:00:00+00:00", "03:00:00", "AQTST", -300], + ["2002-10-26T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["2002-10-26T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "2003" : helpers.makeTestYear("Asia/Aqtau", [ + ["2003-03-29T21:59:59+00:00", "01:59:59", "AQTT", -240], + ["2003-03-29T22:00:00+00:00", "03:00:00", "AQTST", -300], + ["2003-10-25T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["2003-10-25T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "2004" : helpers.makeTestYear("Asia/Aqtau", [ + ["2004-03-27T21:59:59+00:00", "01:59:59", "AQTT", -240], + ["2004-03-27T22:00:00+00:00", "03:00:00", "AQTST", -300], + ["2004-10-30T21:59:59+00:00", "02:59:59", "AQTST", -300], + ["2004-10-30T22:00:00+00:00", "02:00:00", "AQTT", -240] + ]), + + "2005" : helpers.makeTestYear("Asia/Aqtau", [ + ["2005-03-14T19:59:59+00:00", "23:59:59", "AQTT", -240], + ["2005-03-14T20:00:00+00:00", "01:00:00", "AQTT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/aqtobe.js b/tests/zones/asia/aqtobe.js new file mode 100644 index 00000000..4fc66e3e --- /dev/null +++ b/tests/zones/asia/aqtobe.js @@ -0,0 +1,181 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Aqtobe"] = { + "1924" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1924-05-01T20:11:19+00:00", "23:59:59", "LMT", -13720 / 60], + ["1924-05-01T20:11:20+00:00", "00:11:20", "AKTT", -240] + ]), + + "1930" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1930-06-20T19:59:59+00:00", "23:59:59", "AKTT", -240], + ["1930-06-20T20:00:00+00:00", "01:00:00", "AKTT", -300] + ]), + + "1981" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1981-03-31T18:59:59+00:00", "23:59:59", "AKTT", -300], + ["1981-03-31T19:00:00+00:00", "01:00:00", "AKTST", -360], + ["1981-09-30T17:59:59+00:00", "23:59:59", "AKTST", -360], + ["1981-09-30T18:00:00+00:00", "00:00:00", "AKTT", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "AKTT", -360], + ["1982-03-31T18:00:00+00:00", "00:00:00", "AKTST", -360], + ["1982-09-30T17:59:59+00:00", "23:59:59", "AKTST", -360], + ["1982-09-30T18:00:00+00:00", "23:00:00", "AKTT", -300] + ]), + + "1983" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1983-03-31T18:59:59+00:00", "23:59:59", "AKTT", -300], + ["1983-03-31T19:00:00+00:00", "01:00:00", "AKTST", -360], + ["1983-09-30T17:59:59+00:00", "23:59:59", "AKTST", -360], + ["1983-09-30T18:00:00+00:00", "23:00:00", "AKTT", -300] + ]), + + "1984" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1984-03-31T18:59:59+00:00", "23:59:59", "AKTT", -300], + ["1984-03-31T19:00:00+00:00", "01:00:00", "AKTST", -360], + ["1984-09-29T20:59:59+00:00", "02:59:59", "AKTST", -360], + ["1984-09-29T21:00:00+00:00", "02:00:00", "AKTT", -300] + ]), + + "1985" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1985-03-30T20:59:59+00:00", "01:59:59", "AKTT", -300], + ["1985-03-30T21:00:00+00:00", "03:00:00", "AKTST", -360], + ["1985-09-28T20:59:59+00:00", "02:59:59", "AKTST", -360], + ["1985-09-28T21:00:00+00:00", "02:00:00", "AKTT", -300] + ]), + + "1986" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1986-03-29T20:59:59+00:00", "01:59:59", "AKTT", -300], + ["1986-03-29T21:00:00+00:00", "03:00:00", "AKTST", -360], + ["1986-09-27T20:59:59+00:00", "02:59:59", "AKTST", -360], + ["1986-09-27T21:00:00+00:00", "02:00:00", "AKTT", -300] + ]), + + "1987" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1987-03-28T20:59:59+00:00", "01:59:59", "AKTT", -300], + ["1987-03-28T21:00:00+00:00", "03:00:00", "AKTST", -360], + ["1987-09-26T20:59:59+00:00", "02:59:59", "AKTST", -360], + ["1987-09-26T21:00:00+00:00", "02:00:00", "AKTT", -300] + ]), + + "1988" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1988-03-26T20:59:59+00:00", "01:59:59", "AKTT", -300], + ["1988-03-26T21:00:00+00:00", "03:00:00", "AKTST", -360], + ["1988-09-24T20:59:59+00:00", "02:59:59", "AKTST", -360], + ["1988-09-24T21:00:00+00:00", "02:00:00", "AKTT", -300] + ]), + + "1989" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1989-03-25T20:59:59+00:00", "01:59:59", "AKTT", -300], + ["1989-03-25T21:00:00+00:00", "03:00:00", "AKTST", -360], + ["1989-09-23T20:59:59+00:00", "02:59:59", "AKTST", -360], + ["1989-09-23T21:00:00+00:00", "02:00:00", "AKTT", -300] + ]), + + "1990" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1990-03-24T20:59:59+00:00", "01:59:59", "AKTT", -300], + ["1990-03-24T21:00:00+00:00", "03:00:00", "AKTST", -360], + ["1990-09-29T20:59:59+00:00", "02:59:59", "AKTST", -360], + ["1990-09-29T21:00:00+00:00", "02:00:00", "AKTT", -300] + ]), + + "1991" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1991-12-15T18:59:59+00:00", "23:59:59", "AKTT", -300], + ["1991-12-15T19:00:00+00:00", "00:00:00", "AQTT", -300] + ]), + + "1992" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1992-03-28T17:59:59+00:00", "22:59:59", "AQTT", -300], + ["1992-03-28T18:00:00+00:00", "00:00:00", "AQTST", -360], + ["1992-09-26T16:59:59+00:00", "22:59:59", "AQTST", -360], + ["1992-09-26T17:00:00+00:00", "22:00:00", "AQTT", -300] + ]), + + "1993" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1993-03-27T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1993-03-27T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["1993-09-25T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["1993-09-25T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "1994" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1994-03-26T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1994-03-26T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["1994-09-24T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["1994-09-24T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "1995" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1995-03-25T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1995-03-25T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["1995-09-23T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["1995-09-23T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "1996" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1996-03-30T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1996-03-30T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["1996-10-26T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["1996-10-26T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "1997" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1997-03-29T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1997-03-29T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["1997-10-25T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["1997-10-25T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "1998" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1998-03-28T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1998-03-28T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["1998-10-24T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["1998-10-24T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "1999" : helpers.makeTestYear("Asia/Aqtobe", [ + ["1999-03-27T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["1999-03-27T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["1999-10-30T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["1999-10-30T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "2000" : helpers.makeTestYear("Asia/Aqtobe", [ + ["2000-03-25T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["2000-03-25T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["2000-10-28T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["2000-10-28T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "2001" : helpers.makeTestYear("Asia/Aqtobe", [ + ["2001-03-24T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["2001-03-24T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["2001-10-27T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["2001-10-27T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "2002" : helpers.makeTestYear("Asia/Aqtobe", [ + ["2002-03-30T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["2002-03-30T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["2002-10-26T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["2002-10-26T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "2003" : helpers.makeTestYear("Asia/Aqtobe", [ + ["2003-03-29T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["2003-03-29T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["2003-10-25T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["2003-10-25T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]), + + "2004" : helpers.makeTestYear("Asia/Aqtobe", [ + ["2004-03-27T20:59:59+00:00", "01:59:59", "AQTT", -300], + ["2004-03-27T21:00:00+00:00", "03:00:00", "AQTST", -360], + ["2004-10-30T20:59:59+00:00", "02:59:59", "AQTST", -360], + ["2004-10-30T21:00:00+00:00", "02:00:00", "AQTT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/ashgabat.js b/tests/zones/asia/ashgabat.js new file mode 100644 index 00000000..8bea0f6a --- /dev/null +++ b/tests/zones/asia/ashgabat.js @@ -0,0 +1,99 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Ashgabat"] = { + "1924" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1924-05-01T20:06:27+00:00", "23:59:59", "LMT", -14012 / 60], + ["1924-05-01T20:06:28+00:00", "00:06:28", "ASHT", -240] + ]), + + "1930" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1930-06-20T19:59:59+00:00", "23:59:59", "ASHT", -240], + ["1930-06-20T20:00:00+00:00", "01:00:00", "ASHT", -300] + ]), + + "1981" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1981-03-31T18:59:59+00:00", "23:59:59", "ASHT", -300], + ["1981-03-31T19:00:00+00:00", "01:00:00", "ASHST", -360], + ["1981-09-30T17:59:59+00:00", "23:59:59", "ASHST", -360], + ["1981-09-30T18:00:00+00:00", "23:00:00", "ASHT", -300] + ]), + + "1982" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1982-03-31T18:59:59+00:00", "23:59:59", "ASHT", -300], + ["1982-03-31T19:00:00+00:00", "01:00:00", "ASHST", -360], + ["1982-09-30T17:59:59+00:00", "23:59:59", "ASHST", -360], + ["1982-09-30T18:00:00+00:00", "23:00:00", "ASHT", -300] + ]), + + "1983" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1983-03-31T18:59:59+00:00", "23:59:59", "ASHT", -300], + ["1983-03-31T19:00:00+00:00", "01:00:00", "ASHST", -360], + ["1983-09-30T17:59:59+00:00", "23:59:59", "ASHST", -360], + ["1983-09-30T18:00:00+00:00", "23:00:00", "ASHT", -300] + ]), + + "1984" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1984-03-31T18:59:59+00:00", "23:59:59", "ASHT", -300], + ["1984-03-31T19:00:00+00:00", "01:00:00", "ASHST", -360], + ["1984-09-29T20:59:59+00:00", "02:59:59", "ASHST", -360], + ["1984-09-29T21:00:00+00:00", "02:00:00", "ASHT", -300] + ]), + + "1985" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1985-03-30T20:59:59+00:00", "01:59:59", "ASHT", -300], + ["1985-03-30T21:00:00+00:00", "03:00:00", "ASHST", -360], + ["1985-09-28T20:59:59+00:00", "02:59:59", "ASHST", -360], + ["1985-09-28T21:00:00+00:00", "02:00:00", "ASHT", -300] + ]), + + "1986" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1986-03-29T20:59:59+00:00", "01:59:59", "ASHT", -300], + ["1986-03-29T21:00:00+00:00", "03:00:00", "ASHST", -360], + ["1986-09-27T20:59:59+00:00", "02:59:59", "ASHST", -360], + ["1986-09-27T21:00:00+00:00", "02:00:00", "ASHT", -300] + ]), + + "1987" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1987-03-28T20:59:59+00:00", "01:59:59", "ASHT", -300], + ["1987-03-28T21:00:00+00:00", "03:00:00", "ASHST", -360], + ["1987-09-26T20:59:59+00:00", "02:59:59", "ASHST", -360], + ["1987-09-26T21:00:00+00:00", "02:00:00", "ASHT", -300] + ]), + + "1988" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1988-03-26T20:59:59+00:00", "01:59:59", "ASHT", -300], + ["1988-03-26T21:00:00+00:00", "03:00:00", "ASHST", -360], + ["1988-09-24T20:59:59+00:00", "02:59:59", "ASHST", -360], + ["1988-09-24T21:00:00+00:00", "02:00:00", "ASHT", -300] + ]), + + "1989" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1989-03-25T20:59:59+00:00", "01:59:59", "ASHT", -300], + ["1989-03-25T21:00:00+00:00", "03:00:00", "ASHST", -360], + ["1989-09-23T20:59:59+00:00", "02:59:59", "ASHST", -360], + ["1989-09-23T21:00:00+00:00", "02:00:00", "ASHT", -300] + ]), + + "1990" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1990-03-24T20:59:59+00:00", "01:59:59", "ASHT", -300], + ["1990-03-24T21:00:00+00:00", "03:00:00", "ASHST", -360], + ["1990-09-29T20:59:59+00:00", "02:59:59", "ASHST", -360], + ["1990-09-29T21:00:00+00:00", "02:00:00", "ASHT", -300] + ]), + + "1991" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1991-03-30T20:59:59+00:00", "01:59:59", "ASHT", -300], + ["1991-03-30T21:00:00+00:00", "02:00:00", "ASHST", -300], + ["1991-09-28T21:59:59+00:00", "02:59:59", "ASHST", -300], + ["1991-09-28T22:00:00+00:00", "02:00:00", "ASHT", -240], + ["1991-10-26T19:59:59+00:00", "23:59:59", "ASHT", -240], + ["1991-10-26T20:00:00+00:00", "00:00:00", "TMT", -240] + ]), + + "1992" : helpers.makeTestYear("Asia/Ashgabat", [ + ["1992-01-18T21:59:59+00:00", "01:59:59", "TMT", -240], + ["1992-01-18T22:00:00+00:00", "03:00:00", "TMT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/baghdad.js b/tests/zones/asia/baghdad.js new file mode 100644 index 00000000..e4ecd108 --- /dev/null +++ b/tests/zones/asia/baghdad.js @@ -0,0 +1,192 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Baghdad"] = { + "1917" : helpers.makeTestYear("Asia/Baghdad", [ + ["1917-12-31T21:02:23+00:00", "23:59:59", "BMT", -10656 / 60], + ["1917-12-31T21:02:24+00:00", "00:02:24", "AST", -180] + ]), + + "1982" : helpers.makeTestYear("Asia/Baghdad", [ + ["1982-04-30T20:59:59+00:00", "23:59:59", "AST", -180], + ["1982-04-30T21:00:00+00:00", "01:00:00", "ADT", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "ADT", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "AST", -180] + ]), + + "1983" : helpers.makeTestYear("Asia/Baghdad", [ + ["1983-03-30T20:59:59+00:00", "23:59:59", "AST", -180], + ["1983-03-30T21:00:00+00:00", "01:00:00", "ADT", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "ADT", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "AST", -180] + ]), + + "1984" : helpers.makeTestYear("Asia/Baghdad", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "AST", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "ADT", -240], + ["1984-09-30T19:59:59+00:00", "23:59:59", "ADT", -240], + ["1984-09-30T20:00:00+00:00", "23:00:00", "AST", -180] + ]), + + "1985" : helpers.makeTestYear("Asia/Baghdad", [ + ["1985-03-31T20:59:59+00:00", "23:59:59", "AST", -180], + ["1985-03-31T21:00:00+00:00", "01:00:00", "ADT", -240], + ["1985-09-28T21:59:59+00:00", "01:59:59", "ADT", -240], + ["1985-09-28T22:00:00+00:00", "01:00:00", "AST", -180] + ]), + + "1986" : helpers.makeTestYear("Asia/Baghdad", [ + ["1986-03-29T21:59:59+00:00", "00:59:59", "AST", -180], + ["1986-03-29T22:00:00+00:00", "02:00:00", "ADT", -240], + ["1986-09-27T21:59:59+00:00", "01:59:59", "ADT", -240], + ["1986-09-27T22:00:00+00:00", "01:00:00", "AST", -180] + ]), + + "1987" : helpers.makeTestYear("Asia/Baghdad", [ + ["1987-03-28T21:59:59+00:00", "00:59:59", "AST", -180], + ["1987-03-28T22:00:00+00:00", "02:00:00", "ADT", -240], + ["1987-09-26T21:59:59+00:00", "01:59:59", "ADT", -240], + ["1987-09-26T22:00:00+00:00", "01:00:00", "AST", -180] + ]), + + "1988" : helpers.makeTestYear("Asia/Baghdad", [ + ["1988-03-26T21:59:59+00:00", "00:59:59", "AST", -180], + ["1988-03-26T22:00:00+00:00", "02:00:00", "ADT", -240], + ["1988-09-24T21:59:59+00:00", "01:59:59", "ADT", -240], + ["1988-09-24T22:00:00+00:00", "01:00:00", "AST", -180] + ]), + + "1989" : helpers.makeTestYear("Asia/Baghdad", [ + ["1989-03-25T21:59:59+00:00", "00:59:59", "AST", -180], + ["1989-03-25T22:00:00+00:00", "02:00:00", "ADT", -240], + ["1989-09-23T21:59:59+00:00", "01:59:59", "ADT", -240], + ["1989-09-23T22:00:00+00:00", "01:00:00", "AST", -180] + ]), + + "1990" : helpers.makeTestYear("Asia/Baghdad", [ + ["1990-03-24T21:59:59+00:00", "00:59:59", "AST", -180], + ["1990-03-24T22:00:00+00:00", "02:00:00", "ADT", -240], + ["1990-09-29T21:59:59+00:00", "01:59:59", "ADT", -240], + ["1990-09-29T22:00:00+00:00", "01:00:00", "AST", -180] + ]), + + "1991" : helpers.makeTestYear("Asia/Baghdad", [ + ["1991-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["1991-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["1991-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["1991-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "1992" : helpers.makeTestYear("Asia/Baghdad", [ + ["1992-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["1992-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["1992-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["1992-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "1993" : helpers.makeTestYear("Asia/Baghdad", [ + ["1993-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["1993-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["1993-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["1993-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "1994" : helpers.makeTestYear("Asia/Baghdad", [ + ["1994-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["1994-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["1994-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["1994-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "1995" : helpers.makeTestYear("Asia/Baghdad", [ + ["1995-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["1995-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["1995-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["1995-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "1996" : helpers.makeTestYear("Asia/Baghdad", [ + ["1996-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["1996-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["1996-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["1996-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "1997" : helpers.makeTestYear("Asia/Baghdad", [ + ["1997-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["1997-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["1997-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["1997-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "1998" : helpers.makeTestYear("Asia/Baghdad", [ + ["1998-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["1998-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["1998-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["1998-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "1999" : helpers.makeTestYear("Asia/Baghdad", [ + ["1999-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["1999-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["1999-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["1999-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "2000" : helpers.makeTestYear("Asia/Baghdad", [ + ["2000-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["2000-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["2000-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["2000-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "2001" : helpers.makeTestYear("Asia/Baghdad", [ + ["2001-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["2001-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["2001-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["2001-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "2002" : helpers.makeTestYear("Asia/Baghdad", [ + ["2002-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["2002-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["2002-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["2002-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "2003" : helpers.makeTestYear("Asia/Baghdad", [ + ["2003-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["2003-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["2003-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["2003-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "2004" : helpers.makeTestYear("Asia/Baghdad", [ + ["2004-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["2004-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["2004-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["2004-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "2005" : helpers.makeTestYear("Asia/Baghdad", [ + ["2005-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["2005-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["2005-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["2005-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "2006" : helpers.makeTestYear("Asia/Baghdad", [ + ["2006-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["2006-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["2006-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["2006-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]), + + "2007" : helpers.makeTestYear("Asia/Baghdad", [ + ["2007-03-31T23:59:59+00:00", "02:59:59", "AST", -180], + ["2007-04-01T00:00:00+00:00", "04:00:00", "ADT", -240], + ["2007-09-30T23:59:59+00:00", "03:59:59", "ADT", -240], + ["2007-10-01T00:00:00+00:00", "03:00:00", "AST", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/bahrain.js b/tests/zones/asia/bahrain.js new file mode 100644 index 00000000..b9b5f1e5 --- /dev/null +++ b/tests/zones/asia/bahrain.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Bahrain"] = { + "1919" : helpers.makeTestYear("Asia/Bahrain", [ + ["1919-12-31T20:37:39+00:00", "23:59:59", "LMT", -12140 / 60], + ["1919-12-31T20:37:40+00:00", "00:37:40", "GST", -240] + ]), + + "1972" : helpers.makeTestYear("Asia/Bahrain", [ + ["1972-05-31T19:59:59+00:00", "23:59:59", "GST", -240], + ["1972-05-31T20:00:00+00:00", "23:00:00", "AST", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/baku.js b/tests/zones/asia/baku.js new file mode 100644 index 00000000..24bf0ac4 --- /dev/null +++ b/tests/zones/asia/baku.js @@ -0,0 +1,395 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Baku"] = { + "1924" : helpers.makeTestYear("Asia/Baku", [ + ["1924-05-01T20:40:35+00:00", "23:59:59", "LMT", -11964 / 60], + ["1924-05-01T20:40:36+00:00", "23:40:36", "BAKT", -180] + ]), + + "1957" : helpers.makeTestYear("Asia/Baku", [ + ["1957-02-28T20:59:59+00:00", "23:59:59", "BAKT", -180], + ["1957-02-28T21:00:00+00:00", "01:00:00", "BAKT", -240] + ]), + + "1981" : helpers.makeTestYear("Asia/Baku", [ + ["1981-03-31T19:59:59+00:00", "23:59:59", "BAKT", -240], + ["1981-03-31T20:00:00+00:00", "01:00:00", "BAKST", -300], + ["1981-09-30T18:59:59+00:00", "23:59:59", "BAKST", -300], + ["1981-09-30T19:00:00+00:00", "23:00:00", "BAKT", -240] + ]), + + "1982" : helpers.makeTestYear("Asia/Baku", [ + ["1982-03-31T19:59:59+00:00", "23:59:59", "BAKT", -240], + ["1982-03-31T20:00:00+00:00", "01:00:00", "BAKST", -300], + ["1982-09-30T18:59:59+00:00", "23:59:59", "BAKST", -300], + ["1982-09-30T19:00:00+00:00", "23:00:00", "BAKT", -240] + ]), + + "1983" : helpers.makeTestYear("Asia/Baku", [ + ["1983-03-31T19:59:59+00:00", "23:59:59", "BAKT", -240], + ["1983-03-31T20:00:00+00:00", "01:00:00", "BAKST", -300], + ["1983-09-30T18:59:59+00:00", "23:59:59", "BAKST", -300], + ["1983-09-30T19:00:00+00:00", "23:00:00", "BAKT", -240] + ]), + + "1984" : helpers.makeTestYear("Asia/Baku", [ + ["1984-03-31T19:59:59+00:00", "23:59:59", "BAKT", -240], + ["1984-03-31T20:00:00+00:00", "01:00:00", "BAKST", -300], + ["1984-09-29T21:59:59+00:00", "02:59:59", "BAKST", -300], + ["1984-09-29T22:00:00+00:00", "02:00:00", "BAKT", -240] + ]), + + "1985" : helpers.makeTestYear("Asia/Baku", [ + ["1985-03-30T21:59:59+00:00", "01:59:59", "BAKT", -240], + ["1985-03-30T22:00:00+00:00", "03:00:00", "BAKST", -300], + ["1985-09-28T21:59:59+00:00", "02:59:59", "BAKST", -300], + ["1985-09-28T22:00:00+00:00", "02:00:00", "BAKT", -240] + ]), + + "1986" : helpers.makeTestYear("Asia/Baku", [ + ["1986-03-29T21:59:59+00:00", "01:59:59", "BAKT", -240], + ["1986-03-29T22:00:00+00:00", "03:00:00", "BAKST", -300], + ["1986-09-27T21:59:59+00:00", "02:59:59", "BAKST", -300], + ["1986-09-27T22:00:00+00:00", "02:00:00", "BAKT", -240] + ]), + + "1987" : helpers.makeTestYear("Asia/Baku", [ + ["1987-03-28T21:59:59+00:00", "01:59:59", "BAKT", -240], + ["1987-03-28T22:00:00+00:00", "03:00:00", "BAKST", -300], + ["1987-09-26T21:59:59+00:00", "02:59:59", "BAKST", -300], + ["1987-09-26T22:00:00+00:00", "02:00:00", "BAKT", -240] + ]), + + "1988" : helpers.makeTestYear("Asia/Baku", [ + ["1988-03-26T21:59:59+00:00", "01:59:59", "BAKT", -240], + ["1988-03-26T22:00:00+00:00", "03:00:00", "BAKST", -300], + ["1988-09-24T21:59:59+00:00", "02:59:59", "BAKST", -300], + ["1988-09-24T22:00:00+00:00", "02:00:00", "BAKT", -240] + ]), + + "1989" : helpers.makeTestYear("Asia/Baku", [ + ["1989-03-25T21:59:59+00:00", "01:59:59", "BAKT", -240], + ["1989-03-25T22:00:00+00:00", "03:00:00", "BAKST", -300], + ["1989-09-23T21:59:59+00:00", "02:59:59", "BAKST", -300], + ["1989-09-23T22:00:00+00:00", "02:00:00", "BAKT", -240] + ]), + + "1990" : helpers.makeTestYear("Asia/Baku", [ + ["1990-03-24T21:59:59+00:00", "01:59:59", "BAKT", -240], + ["1990-03-24T22:00:00+00:00", "03:00:00", "BAKST", -300], + ["1990-09-29T21:59:59+00:00", "02:59:59", "BAKST", -300], + ["1990-09-29T22:00:00+00:00", "02:00:00", "BAKT", -240] + ]), + + "1991" : helpers.makeTestYear("Asia/Baku", [ + ["1991-03-30T21:59:59+00:00", "01:59:59", "BAKT", -240], + ["1991-03-30T22:00:00+00:00", "02:00:00", "BAKST", -240], + ["1991-08-29T19:59:59+00:00", "23:59:59", "BAKST", -240], + ["1991-08-29T20:00:00+00:00", "00:00:00", "AZST", -240], + ["1991-09-28T22:59:59+00:00", "02:59:59", "AZST", -240], + ["1991-09-28T23:00:00+00:00", "02:00:00", "AZT", -180] + ]), + + "1992" : helpers.makeTestYear("Asia/Baku", [ + ["1992-03-28T19:59:59+00:00", "22:59:59", "AZT", -180], + ["1992-03-28T20:00:00+00:00", "00:00:00", "AZST", -240], + ["1992-09-26T18:59:59+00:00", "22:59:59", "AZST", -240], + ["1992-09-26T19:00:00+00:00", "23:00:00", "AZT", -240] + ]), + + "1996" : helpers.makeTestYear("Asia/Baku", [ + ["1996-03-31T00:59:59+00:00", "04:59:59", "AZT", -240], + ["1996-03-31T01:00:00+00:00", "06:00:00", "AZST", -300], + ["1996-10-27T00:59:59+00:00", "05:59:59", "AZST", -300], + ["1996-10-27T01:00:00+00:00", "05:00:00", "AZT", -240] + ]), + + "1997" : helpers.makeTestYear("Asia/Baku", [ + ["1997-03-29T23:59:59+00:00", "03:59:59", "AZT", -240], + ["1997-03-30T00:00:00+00:00", "05:00:00", "AZST", -300], + ["1997-10-25T23:59:59+00:00", "04:59:59", "AZST", -300], + ["1997-10-26T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "1998" : helpers.makeTestYear("Asia/Baku", [ + ["1998-03-28T23:59:59+00:00", "03:59:59", "AZT", -240], + ["1998-03-29T00:00:00+00:00", "05:00:00", "AZST", -300], + ["1998-10-24T23:59:59+00:00", "04:59:59", "AZST", -300], + ["1998-10-25T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "1999" : helpers.makeTestYear("Asia/Baku", [ + ["1999-03-27T23:59:59+00:00", "03:59:59", "AZT", -240], + ["1999-03-28T00:00:00+00:00", "05:00:00", "AZST", -300], + ["1999-10-30T23:59:59+00:00", "04:59:59", "AZST", -300], + ["1999-10-31T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2000" : helpers.makeTestYear("Asia/Baku", [ + ["2000-03-25T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2000-03-26T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2000-10-28T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2000-10-29T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2001" : helpers.makeTestYear("Asia/Baku", [ + ["2001-03-24T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2001-03-25T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2001-10-27T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2001-10-28T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2002" : helpers.makeTestYear("Asia/Baku", [ + ["2002-03-30T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2002-03-31T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2002-10-26T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2002-10-27T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2003" : helpers.makeTestYear("Asia/Baku", [ + ["2003-03-29T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2003-03-30T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2003-10-25T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2003-10-26T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2004" : helpers.makeTestYear("Asia/Baku", [ + ["2004-03-27T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2004-03-28T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2004-10-30T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2004-10-31T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2005" : helpers.makeTestYear("Asia/Baku", [ + ["2005-03-26T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2005-03-27T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2005-10-29T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2005-10-30T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2006" : helpers.makeTestYear("Asia/Baku", [ + ["2006-03-25T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2006-03-26T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2006-10-28T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2006-10-29T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2007" : helpers.makeTestYear("Asia/Baku", [ + ["2007-03-24T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2007-03-25T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2007-10-27T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2007-10-28T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2008" : helpers.makeTestYear("Asia/Baku", [ + ["2008-03-29T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2008-03-30T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2008-10-25T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2008-10-26T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2009" : helpers.makeTestYear("Asia/Baku", [ + ["2009-03-28T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2009-03-29T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2009-10-24T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2009-10-25T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2010" : helpers.makeTestYear("Asia/Baku", [ + ["2010-03-27T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2010-03-28T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2010-10-30T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2010-10-31T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2011" : helpers.makeTestYear("Asia/Baku", [ + ["2011-03-26T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2011-03-27T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2011-10-29T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2011-10-30T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2012" : helpers.makeTestYear("Asia/Baku", [ + ["2012-03-24T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2012-03-25T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2012-10-27T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2012-10-28T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2013" : helpers.makeTestYear("Asia/Baku", [ + ["2013-03-30T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2013-03-31T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2013-10-26T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2013-10-27T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2014" : helpers.makeTestYear("Asia/Baku", [ + ["2014-03-29T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2014-03-30T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2014-10-25T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2014-10-26T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2015" : helpers.makeTestYear("Asia/Baku", [ + ["2015-03-28T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2015-03-29T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2015-10-24T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2015-10-25T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2016" : helpers.makeTestYear("Asia/Baku", [ + ["2016-03-26T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2016-03-27T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2016-10-29T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2016-10-30T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2017" : helpers.makeTestYear("Asia/Baku", [ + ["2017-03-25T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2017-03-26T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2017-10-28T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2017-10-29T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2018" : helpers.makeTestYear("Asia/Baku", [ + ["2018-03-24T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2018-03-25T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2018-10-27T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2018-10-28T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2019" : helpers.makeTestYear("Asia/Baku", [ + ["2019-03-30T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2019-03-31T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2019-10-26T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2019-10-27T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2020" : helpers.makeTestYear("Asia/Baku", [ + ["2020-03-28T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2020-03-29T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2020-10-24T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2020-10-25T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2021" : helpers.makeTestYear("Asia/Baku", [ + ["2021-03-27T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2021-03-28T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2021-10-30T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2021-10-31T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2022" : helpers.makeTestYear("Asia/Baku", [ + ["2022-03-26T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2022-03-27T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2022-10-29T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2022-10-30T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2023" : helpers.makeTestYear("Asia/Baku", [ + ["2023-03-25T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2023-03-26T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2023-10-28T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2023-10-29T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2024" : helpers.makeTestYear("Asia/Baku", [ + ["2024-03-30T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2024-03-31T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2024-10-26T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2024-10-27T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2025" : helpers.makeTestYear("Asia/Baku", [ + ["2025-03-29T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2025-03-30T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2025-10-25T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2025-10-26T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2026" : helpers.makeTestYear("Asia/Baku", [ + ["2026-03-28T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2026-03-29T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2026-10-24T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2026-10-25T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2027" : helpers.makeTestYear("Asia/Baku", [ + ["2027-03-27T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2027-03-28T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2027-10-30T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2027-10-31T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2028" : helpers.makeTestYear("Asia/Baku", [ + ["2028-03-25T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2028-03-26T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2028-10-28T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2028-10-29T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2029" : helpers.makeTestYear("Asia/Baku", [ + ["2029-03-24T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2029-03-25T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2029-10-27T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2029-10-28T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2030" : helpers.makeTestYear("Asia/Baku", [ + ["2030-03-30T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2030-03-31T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2030-10-26T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2030-10-27T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2031" : helpers.makeTestYear("Asia/Baku", [ + ["2031-03-29T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2031-03-30T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2031-10-25T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2031-10-26T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2032" : helpers.makeTestYear("Asia/Baku", [ + ["2032-03-27T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2032-03-28T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2032-10-30T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2032-10-31T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2033" : helpers.makeTestYear("Asia/Baku", [ + ["2033-03-26T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2033-03-27T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2033-10-29T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2033-10-30T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2034" : helpers.makeTestYear("Asia/Baku", [ + ["2034-03-25T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2034-03-26T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2034-10-28T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2034-10-29T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2035" : helpers.makeTestYear("Asia/Baku", [ + ["2035-03-24T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2035-03-25T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2035-10-27T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2035-10-28T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2036" : helpers.makeTestYear("Asia/Baku", [ + ["2036-03-29T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2036-03-30T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2036-10-25T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2036-10-26T00:00:00+00:00", "04:00:00", "AZT", -240] + ]), + + "2037" : helpers.makeTestYear("Asia/Baku", [ + ["2037-03-28T23:59:59+00:00", "03:59:59", "AZT", -240], + ["2037-03-29T00:00:00+00:00", "05:00:00", "AZST", -300], + ["2037-10-24T23:59:59+00:00", "04:59:59", "AZST", -300], + ["2037-10-25T00:00:00+00:00", "04:00:00", "AZT", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/bangkok.js b/tests/zones/asia/bangkok.js new file mode 100644 index 00000000..d533d604 --- /dev/null +++ b/tests/zones/asia/bangkok.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Bangkok"] = { + "1920" : helpers.makeTestYear("Asia/Bangkok", [ + ["1920-03-31T17:17:55+00:00", "23:59:59", "BMT", -24124 / 60], + ["1920-03-31T17:17:56+00:00", "00:17:56", "ICT", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/beirut.js b/tests/zones/asia/beirut.js new file mode 100644 index 00000000..ab277128 --- /dev/null +++ b/tests/zones/asia/beirut.js @@ -0,0 +1,495 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Beirut"] = { + "1920" : helpers.makeTestYear("Asia/Beirut", [ + ["1920-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1920-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1920-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1920-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1921" : helpers.makeTestYear("Asia/Beirut", [ + ["1921-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1921-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1921-10-02T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1921-10-02T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1922" : helpers.makeTestYear("Asia/Beirut", [ + ["1922-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1922-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1922-10-07T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1922-10-07T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1923" : helpers.makeTestYear("Asia/Beirut", [ + ["1923-04-21T21:59:59+00:00", "23:59:59", "EET", -120], + ["1923-04-21T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1923-09-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1923-09-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1957" : helpers.makeTestYear("Asia/Beirut", [ + ["1957-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1957-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1957-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1957-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1958" : helpers.makeTestYear("Asia/Beirut", [ + ["1958-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1958-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1958-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1958-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1959" : helpers.makeTestYear("Asia/Beirut", [ + ["1959-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1959-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1959-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1959-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1960" : helpers.makeTestYear("Asia/Beirut", [ + ["1960-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1960-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1960-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1960-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1961" : helpers.makeTestYear("Asia/Beirut", [ + ["1961-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1961-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1961-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1961-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1972" : helpers.makeTestYear("Asia/Beirut", [ + ["1972-06-21T21:59:59+00:00", "23:59:59", "EET", -120], + ["1972-06-21T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1972-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1972-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1973" : helpers.makeTestYear("Asia/Beirut", [ + ["1973-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1973-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1973-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1973-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1974" : helpers.makeTestYear("Asia/Beirut", [ + ["1974-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1974-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1974-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1974-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1975" : helpers.makeTestYear("Asia/Beirut", [ + ["1975-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1975-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1975-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1975-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1976" : helpers.makeTestYear("Asia/Beirut", [ + ["1976-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1976-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1976-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1976-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1977" : helpers.makeTestYear("Asia/Beirut", [ + ["1977-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1977-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1977-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1977-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1978" : helpers.makeTestYear("Asia/Beirut", [ + ["1978-04-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1978-04-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1978-09-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1978-09-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1984" : helpers.makeTestYear("Asia/Beirut", [ + ["1984-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1984-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1984-10-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1984-10-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1985" : helpers.makeTestYear("Asia/Beirut", [ + ["1985-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1985-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1985-10-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1985-10-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Asia/Beirut", [ + ["1986-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1986-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1986-10-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1986-10-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Asia/Beirut", [ + ["1987-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1987-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1987-10-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1987-10-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Asia/Beirut", [ + ["1988-05-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1988-05-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1988-10-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1988-10-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Asia/Beirut", [ + ["1989-05-09T21:59:59+00:00", "23:59:59", "EET", -120], + ["1989-05-09T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1989-10-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1989-10-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Asia/Beirut", [ + ["1990-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1990-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1990-10-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1990-10-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Asia/Beirut", [ + ["1991-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1991-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1991-10-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1991-10-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Asia/Beirut", [ + ["1992-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-10-03T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-10-03T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Asia/Beirut", [ + ["1993-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Asia/Beirut", [ + ["1994-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Asia/Beirut", [ + ["1995-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1995-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1995-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1995-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Asia/Beirut", [ + ["1996-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-09-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1996-09-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Asia/Beirut", [ + ["1997-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1997-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1997-09-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1997-09-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Asia/Beirut", [ + ["1998-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1998-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1998-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1998-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Asia/Beirut", [ + ["1999-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1999-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1999-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1999-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Asia/Beirut", [ + ["2000-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2000-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2000-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2000-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Asia/Beirut", [ + ["2001-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2001-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2001-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2001-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Asia/Beirut", [ + ["2002-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2002-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2002-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2002-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Asia/Beirut", [ + ["2003-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2003-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2003-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2003-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Asia/Beirut", [ + ["2004-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2004-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2004-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2004-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Asia/Beirut", [ + ["2005-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2005-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2005-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2005-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Asia/Beirut", [ + ["2006-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2006-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2006-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2006-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Asia/Beirut", [ + ["2007-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2007-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2007-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2007-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Asia/Beirut", [ + ["2008-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2008-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2008-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2008-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Asia/Beirut", [ + ["2009-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2009-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2009-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2009-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Asia/Beirut", [ + ["2010-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2010-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2010-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2010-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Asia/Beirut", [ + ["2011-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2011-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2011-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2011-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Asia/Beirut", [ + ["2012-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2012-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2012-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2012-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Asia/Beirut", [ + ["2013-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2013-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2013-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2013-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Asia/Beirut", [ + ["2014-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2014-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2014-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2014-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Asia/Beirut", [ + ["2015-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2015-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2015-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2015-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Asia/Beirut", [ + ["2016-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2016-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2016-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2016-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Asia/Beirut", [ + ["2017-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2017-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2017-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2017-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Asia/Beirut", [ + ["2018-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2018-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2018-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2018-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Asia/Beirut", [ + ["2019-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2019-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2019-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2019-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Asia/Beirut", [ + ["2020-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2020-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2020-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2020-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Asia/Beirut", [ + ["2021-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2021-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2021-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2021-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Asia/Beirut", [ + ["2022-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2022-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2022-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2022-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Asia/Beirut", [ + ["2023-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2023-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2023-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2023-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Asia/Beirut", [ + ["2024-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2024-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2024-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2024-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Asia/Beirut", [ + ["2025-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2025-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2025-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2025-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Asia/Beirut", [ + ["2026-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2026-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2026-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2026-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Asia/Beirut", [ + ["2027-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2027-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2027-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2027-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Asia/Beirut", [ + ["2028-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2028-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2028-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2028-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Asia/Beirut", [ + ["2029-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2029-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2029-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2029-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Asia/Beirut", [ + ["2030-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2030-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2030-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2030-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Asia/Beirut", [ + ["2031-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2031-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2031-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2031-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Asia/Beirut", [ + ["2032-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2032-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2032-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2032-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Asia/Beirut", [ + ["2033-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2033-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2033-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2033-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Asia/Beirut", [ + ["2034-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2034-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2034-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2034-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Asia/Beirut", [ + ["2035-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2035-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2035-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2035-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Asia/Beirut", [ + ["2036-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2036-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2036-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2036-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Asia/Beirut", [ + ["2037-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2037-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2037-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2037-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/bishkek.js b/tests/zones/asia/bishkek.js new file mode 100644 index 00000000..0706b263 --- /dev/null +++ b/tests/zones/asia/bishkek.js @@ -0,0 +1,190 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Bishkek"] = { + "1924" : helpers.makeTestYear("Asia/Bishkek", [ + ["1924-05-01T19:01:35+00:00", "23:59:59", "LMT", -17904 / 60], + ["1924-05-01T19:01:36+00:00", "00:01:36", "FRUT", -300] + ]), + + "1930" : helpers.makeTestYear("Asia/Bishkek", [ + ["1930-06-20T18:59:59+00:00", "23:59:59", "FRUT", -300], + ["1930-06-20T19:00:00+00:00", "01:00:00", "FRUT", -360] + ]), + + "1981" : helpers.makeTestYear("Asia/Bishkek", [ + ["1981-03-31T17:59:59+00:00", "23:59:59", "FRUT", -360], + ["1981-03-31T18:00:00+00:00", "01:00:00", "FRUST", -420], + ["1981-09-30T16:59:59+00:00", "23:59:59", "FRUST", -420], + ["1981-09-30T17:00:00+00:00", "23:00:00", "FRUT", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Bishkek", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "FRUT", -360], + ["1982-03-31T18:00:00+00:00", "01:00:00", "FRUST", -420], + ["1982-09-30T16:59:59+00:00", "23:59:59", "FRUST", -420], + ["1982-09-30T17:00:00+00:00", "23:00:00", "FRUT", -360] + ]), + + "1983" : helpers.makeTestYear("Asia/Bishkek", [ + ["1983-03-31T17:59:59+00:00", "23:59:59", "FRUT", -360], + ["1983-03-31T18:00:00+00:00", "01:00:00", "FRUST", -420], + ["1983-09-30T16:59:59+00:00", "23:59:59", "FRUST", -420], + ["1983-09-30T17:00:00+00:00", "23:00:00", "FRUT", -360] + ]), + + "1984" : helpers.makeTestYear("Asia/Bishkek", [ + ["1984-03-31T17:59:59+00:00", "23:59:59", "FRUT", -360], + ["1984-03-31T18:00:00+00:00", "01:00:00", "FRUST", -420], + ["1984-09-29T19:59:59+00:00", "02:59:59", "FRUST", -420], + ["1984-09-29T20:00:00+00:00", "02:00:00", "FRUT", -360] + ]), + + "1985" : helpers.makeTestYear("Asia/Bishkek", [ + ["1985-03-30T19:59:59+00:00", "01:59:59", "FRUT", -360], + ["1985-03-30T20:00:00+00:00", "03:00:00", "FRUST", -420], + ["1985-09-28T19:59:59+00:00", "02:59:59", "FRUST", -420], + ["1985-09-28T20:00:00+00:00", "02:00:00", "FRUT", -360] + ]), + + "1986" : helpers.makeTestYear("Asia/Bishkek", [ + ["1986-03-29T19:59:59+00:00", "01:59:59", "FRUT", -360], + ["1986-03-29T20:00:00+00:00", "03:00:00", "FRUST", -420], + ["1986-09-27T19:59:59+00:00", "02:59:59", "FRUST", -420], + ["1986-09-27T20:00:00+00:00", "02:00:00", "FRUT", -360] + ]), + + "1987" : helpers.makeTestYear("Asia/Bishkek", [ + ["1987-03-28T19:59:59+00:00", "01:59:59", "FRUT", -360], + ["1987-03-28T20:00:00+00:00", "03:00:00", "FRUST", -420], + ["1987-09-26T19:59:59+00:00", "02:59:59", "FRUST", -420], + ["1987-09-26T20:00:00+00:00", "02:00:00", "FRUT", -360] + ]), + + "1988" : helpers.makeTestYear("Asia/Bishkek", [ + ["1988-03-26T19:59:59+00:00", "01:59:59", "FRUT", -360], + ["1988-03-26T20:00:00+00:00", "03:00:00", "FRUST", -420], + ["1988-09-24T19:59:59+00:00", "02:59:59", "FRUST", -420], + ["1988-09-24T20:00:00+00:00", "02:00:00", "FRUT", -360] + ]), + + "1989" : helpers.makeTestYear("Asia/Bishkek", [ + ["1989-03-25T19:59:59+00:00", "01:59:59", "FRUT", -360], + ["1989-03-25T20:00:00+00:00", "03:00:00", "FRUST", -420], + ["1989-09-23T19:59:59+00:00", "02:59:59", "FRUST", -420], + ["1989-09-23T20:00:00+00:00", "02:00:00", "FRUT", -360] + ]), + + "1990" : helpers.makeTestYear("Asia/Bishkek", [ + ["1990-03-24T19:59:59+00:00", "01:59:59", "FRUT", -360], + ["1990-03-24T20:00:00+00:00", "03:00:00", "FRUST", -420], + ["1990-09-29T19:59:59+00:00", "02:59:59", "FRUST", -420], + ["1990-09-29T20:00:00+00:00", "02:00:00", "FRUT", -360] + ]), + + "1991" : helpers.makeTestYear("Asia/Bishkek", [ + ["1991-03-30T19:59:59+00:00", "01:59:59", "FRUT", -360], + ["1991-03-30T20:00:00+00:00", "02:00:00", "FRUST", -360], + ["1991-08-30T19:59:59+00:00", "01:59:59", "FRUST", -360], + ["1991-08-30T20:00:00+00:00", "01:00:00", "KGT", -300] + ]), + + "1992" : helpers.makeTestYear("Asia/Bishkek", [ + ["1992-04-11T18:59:59+00:00", "23:59:59", "KGT", -300], + ["1992-04-11T19:00:00+00:00", "01:00:00", "KGST", -360], + ["1992-09-26T17:59:59+00:00", "23:59:59", "KGST", -360], + ["1992-09-26T18:00:00+00:00", "23:00:00", "KGT", -300] + ]), + + "1993" : helpers.makeTestYear("Asia/Bishkek", [ + ["1993-04-10T18:59:59+00:00", "23:59:59", "KGT", -300], + ["1993-04-10T19:00:00+00:00", "01:00:00", "KGST", -360], + ["1993-09-25T17:59:59+00:00", "23:59:59", "KGST", -360], + ["1993-09-25T18:00:00+00:00", "23:00:00", "KGT", -300] + ]), + + "1994" : helpers.makeTestYear("Asia/Bishkek", [ + ["1994-04-09T18:59:59+00:00", "23:59:59", "KGT", -300], + ["1994-04-09T19:00:00+00:00", "01:00:00", "KGST", -360], + ["1994-09-24T17:59:59+00:00", "23:59:59", "KGST", -360], + ["1994-09-24T18:00:00+00:00", "23:00:00", "KGT", -300] + ]), + + "1995" : helpers.makeTestYear("Asia/Bishkek", [ + ["1995-04-08T18:59:59+00:00", "23:59:59", "KGT", -300], + ["1995-04-08T19:00:00+00:00", "01:00:00", "KGST", -360], + ["1995-09-23T17:59:59+00:00", "23:59:59", "KGST", -360], + ["1995-09-23T18:00:00+00:00", "23:00:00", "KGT", -300] + ]), + + "1996" : helpers.makeTestYear("Asia/Bishkek", [ + ["1996-04-06T18:59:59+00:00", "23:59:59", "KGT", -300], + ["1996-04-06T19:00:00+00:00", "01:00:00", "KGST", -360], + ["1996-09-28T17:59:59+00:00", "23:59:59", "KGST", -360], + ["1996-09-28T18:00:00+00:00", "23:00:00", "KGT", -300] + ]), + + "1997" : helpers.makeTestYear("Asia/Bishkek", [ + ["1997-03-29T21:29:59+00:00", "02:29:59", "KGT", -300], + ["1997-03-29T21:30:00+00:00", "03:30:00", "KGST", -360], + ["1997-10-25T20:29:59+00:00", "02:29:59", "KGST", -360], + ["1997-10-25T20:30:00+00:00", "01:30:00", "KGT", -300] + ]), + + "1998" : helpers.makeTestYear("Asia/Bishkek", [ + ["1998-03-28T21:29:59+00:00", "02:29:59", "KGT", -300], + ["1998-03-28T21:30:00+00:00", "03:30:00", "KGST", -360], + ["1998-10-24T20:29:59+00:00", "02:29:59", "KGST", -360], + ["1998-10-24T20:30:00+00:00", "01:30:00", "KGT", -300] + ]), + + "1999" : helpers.makeTestYear("Asia/Bishkek", [ + ["1999-03-27T21:29:59+00:00", "02:29:59", "KGT", -300], + ["1999-03-27T21:30:00+00:00", "03:30:00", "KGST", -360], + ["1999-10-30T20:29:59+00:00", "02:29:59", "KGST", -360], + ["1999-10-30T20:30:00+00:00", "01:30:00", "KGT", -300] + ]), + + "2000" : helpers.makeTestYear("Asia/Bishkek", [ + ["2000-03-25T21:29:59+00:00", "02:29:59", "KGT", -300], + ["2000-03-25T21:30:00+00:00", "03:30:00", "KGST", -360], + ["2000-10-28T20:29:59+00:00", "02:29:59", "KGST", -360], + ["2000-10-28T20:30:00+00:00", "01:30:00", "KGT", -300] + ]), + + "2001" : helpers.makeTestYear("Asia/Bishkek", [ + ["2001-03-24T21:29:59+00:00", "02:29:59", "KGT", -300], + ["2001-03-24T21:30:00+00:00", "03:30:00", "KGST", -360], + ["2001-10-27T20:29:59+00:00", "02:29:59", "KGST", -360], + ["2001-10-27T20:30:00+00:00", "01:30:00", "KGT", -300] + ]), + + "2002" : helpers.makeTestYear("Asia/Bishkek", [ + ["2002-03-30T21:29:59+00:00", "02:29:59", "KGT", -300], + ["2002-03-30T21:30:00+00:00", "03:30:00", "KGST", -360], + ["2002-10-26T20:29:59+00:00", "02:29:59", "KGST", -360], + ["2002-10-26T20:30:00+00:00", "01:30:00", "KGT", -300] + ]), + + "2003" : helpers.makeTestYear("Asia/Bishkek", [ + ["2003-03-29T21:29:59+00:00", "02:29:59", "KGT", -300], + ["2003-03-29T21:30:00+00:00", "03:30:00", "KGST", -360], + ["2003-10-25T20:29:59+00:00", "02:29:59", "KGST", -360], + ["2003-10-25T20:30:00+00:00", "01:30:00", "KGT", -300] + ]), + + "2004" : helpers.makeTestYear("Asia/Bishkek", [ + ["2004-03-27T21:29:59+00:00", "02:29:59", "KGT", -300], + ["2004-03-27T21:30:00+00:00", "03:30:00", "KGST", -360], + ["2004-10-30T20:29:59+00:00", "02:29:59", "KGST", -360], + ["2004-10-30T20:30:00+00:00", "01:30:00", "KGT", -300] + ]), + + "2005" : helpers.makeTestYear("Asia/Bishkek", [ + ["2005-03-26T21:29:59+00:00", "02:29:59", "KGT", -300], + ["2005-03-26T21:30:00+00:00", "03:30:00", "KGST", -360], + ["2005-08-11T17:59:59+00:00", "23:59:59", "KGST", -360], + ["2005-08-11T18:00:00+00:00", "00:00:00", "KGT", -360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/brunei.js b/tests/zones/asia/brunei.js new file mode 100644 index 00000000..65010963 --- /dev/null +++ b/tests/zones/asia/brunei.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Brunei"] = { + "1926" : helpers.makeTestYear("Asia/Brunei", [ + ["1926-02-28T16:20:19+00:00", "23:59:59", "LMT", -27580 / 60], + ["1926-02-28T16:20:20+00:00", "23:50:20", "BNT", -450] + ]), + + "1932" : helpers.makeTestYear("Asia/Brunei", [ + ["1932-12-31T16:29:59+00:00", "23:59:59", "BNT", -450], + ["1932-12-31T16:30:00+00:00", "00:30:00", "BNT", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/choibalsan.js b/tests/zones/asia/choibalsan.js new file mode 100644 index 00000000..42ac5dbd --- /dev/null +++ b/tests/zones/asia/choibalsan.js @@ -0,0 +1,174 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Choibalsan"] = { + "1905" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1905-07-31T16:21:59+00:00", "23:59:59", "LMT", -458], + ["1905-07-31T16:22:00+00:00", "23:22:00", "ULAT", -420] + ]), + + "1977" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1977-12-31T16:59:59+00:00", "23:59:59", "ULAT", -420], + ["1977-12-31T17:00:00+00:00", "01:00:00", "ULAT", -480] + ]), + + "1983" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1983-03-31T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1983-03-31T16:00:00+00:00", "02:00:00", "CHOST", -600], + ["1983-09-30T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1983-09-30T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1984" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1984-03-31T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1984-03-31T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1984-09-29T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1984-09-29T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1985" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1985-03-30T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1985-03-30T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1985-09-28T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1985-09-28T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1986" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1986-03-29T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1986-03-29T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1986-09-27T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1986-09-27T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1987" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1987-03-28T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1987-03-28T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1987-09-26T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1987-09-26T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1988" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1988-03-26T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1988-03-26T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1988-09-24T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1988-09-24T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1989" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1989-03-25T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1989-03-25T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1989-09-23T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1989-09-23T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1990" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1990-03-24T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1990-03-24T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1990-09-29T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1990-09-29T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1991" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1991-03-30T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1991-03-30T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1991-09-28T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1991-09-28T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1992" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1992-03-28T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1992-03-28T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1992-09-26T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1992-09-26T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1993" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1993-03-27T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1993-03-27T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1993-09-25T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1993-09-25T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1994" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1994-03-26T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1994-03-26T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1994-09-24T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1994-09-24T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1995" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1995-03-25T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1995-03-25T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1995-09-23T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1995-09-23T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1996" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1996-03-30T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1996-03-30T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1996-09-28T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1996-09-28T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1997" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1997-03-29T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1997-03-29T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1997-09-27T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1997-09-27T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "1998" : helpers.makeTestYear("Asia/Choibalsan", [ + ["1998-03-28T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["1998-03-28T15:00:00+00:00", "01:00:00", "CHOST", -600], + ["1998-09-26T13:59:59+00:00", "23:59:59", "CHOST", -600], + ["1998-09-26T14:00:00+00:00", "23:00:00", "CHOT", -540] + ]), + + "2001" : helpers.makeTestYear("Asia/Choibalsan", [ + ["2001-04-27T16:59:59+00:00", "01:59:59", "CHOT", -540], + ["2001-04-27T17:00:00+00:00", "03:00:00", "CHOST", -600], + ["2001-09-28T15:59:59+00:00", "01:59:59", "CHOST", -600], + ["2001-09-28T16:00:00+00:00", "01:00:00", "CHOT", -540] + ]), + + "2002" : helpers.makeTestYear("Asia/Choibalsan", [ + ["2002-03-29T16:59:59+00:00", "01:59:59", "CHOT", -540], + ["2002-03-29T17:00:00+00:00", "03:00:00", "CHOST", -600], + ["2002-09-27T15:59:59+00:00", "01:59:59", "CHOST", -600], + ["2002-09-27T16:00:00+00:00", "01:00:00", "CHOT", -540] + ]), + + "2003" : helpers.makeTestYear("Asia/Choibalsan", [ + ["2003-03-28T16:59:59+00:00", "01:59:59", "CHOT", -540], + ["2003-03-28T17:00:00+00:00", "03:00:00", "CHOST", -600], + ["2003-09-26T15:59:59+00:00", "01:59:59", "CHOST", -600], + ["2003-09-26T16:00:00+00:00", "01:00:00", "CHOT", -540] + ]), + + "2004" : helpers.makeTestYear("Asia/Choibalsan", [ + ["2004-03-26T16:59:59+00:00", "01:59:59", "CHOT", -540], + ["2004-03-26T17:00:00+00:00", "03:00:00", "CHOST", -600], + ["2004-09-24T15:59:59+00:00", "01:59:59", "CHOST", -600], + ["2004-09-24T16:00:00+00:00", "01:00:00", "CHOT", -540] + ]), + + "2005" : helpers.makeTestYear("Asia/Choibalsan", [ + ["2005-03-25T16:59:59+00:00", "01:59:59", "CHOT", -540], + ["2005-03-25T17:00:00+00:00", "03:00:00", "CHOST", -600], + ["2005-09-23T15:59:59+00:00", "01:59:59", "CHOST", -600], + ["2005-09-23T16:00:00+00:00", "01:00:00", "CHOT", -540] + ]), + + "2006" : helpers.makeTestYear("Asia/Choibalsan", [ + ["2006-03-24T16:59:59+00:00", "01:59:59", "CHOT", -540], + ["2006-03-24T17:00:00+00:00", "03:00:00", "CHOST", -600], + ["2006-09-29T15:59:59+00:00", "01:59:59", "CHOST", -600], + ["2006-09-29T16:00:00+00:00", "01:00:00", "CHOT", -540] + ]), + + "2008" : helpers.makeTestYear("Asia/Choibalsan", [ + ["2008-03-30T14:59:59+00:00", "23:59:59", "CHOT", -540], + ["2008-03-30T15:00:00+00:00", "23:00:00", "CHOT", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/chongqing.js b/tests/zones/asia/chongqing.js new file mode 100644 index 00000000..ba303254 --- /dev/null +++ b/tests/zones/asia/chongqing.js @@ -0,0 +1,57 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Chongqing"] = { + "1927" : helpers.makeTestYear("Asia/Chongqing", [ + ["1927-12-31T16:53:39+00:00", "23:59:59", "LMT", -25580 / 60], + ["1927-12-31T16:53:40+00:00", "23:53:40", "LONT", -420] + ]), + + "1980" : helpers.makeTestYear("Asia/Chongqing", [ + ["1980-04-30T16:59:59+00:00", "23:59:59", "LONT", -420], + ["1980-04-30T17:00:00+00:00", "01:00:00", "CST", -480] + ]), + + "1986" : helpers.makeTestYear("Asia/Chongqing", [ + ["1986-05-03T15:59:59+00:00", "23:59:59", "CST", -480], + ["1986-05-03T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1986-09-13T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1986-09-13T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1987" : helpers.makeTestYear("Asia/Chongqing", [ + ["1987-04-11T15:59:59+00:00", "23:59:59", "CST", -480], + ["1987-04-11T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1987-09-12T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1987-09-12T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1988" : helpers.makeTestYear("Asia/Chongqing", [ + ["1988-04-09T15:59:59+00:00", "23:59:59", "CST", -480], + ["1988-04-09T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1988-09-10T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1988-09-10T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1989" : helpers.makeTestYear("Asia/Chongqing", [ + ["1989-04-15T15:59:59+00:00", "23:59:59", "CST", -480], + ["1989-04-15T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1989-09-16T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1989-09-16T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1990" : helpers.makeTestYear("Asia/Chongqing", [ + ["1990-04-14T15:59:59+00:00", "23:59:59", "CST", -480], + ["1990-04-14T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1990-09-15T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1990-09-15T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1991" : helpers.makeTestYear("Asia/Chongqing", [ + ["1991-04-13T15:59:59+00:00", "23:59:59", "CST", -480], + ["1991-04-13T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1991-09-14T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1991-09-14T15:00:00+00:00", "23:00:00", "CST", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/colombo.js b/tests/zones/asia/colombo.js new file mode 100644 index 00000000..84f39cb4 --- /dev/null +++ b/tests/zones/asia/colombo.js @@ -0,0 +1,34 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Colombo"] = { + "1905" : helpers.makeTestYear("Asia/Colombo", [ + ["1905-12-31T18:40:27+00:00", "23:59:59", "MMT", -19172 / 60], + ["1905-12-31T18:40:28+00:00", "00:10:28", "IST", -330] + ]), + + "1942" : helpers.makeTestYear("Asia/Colombo", [ + ["1942-01-04T18:29:59+00:00", "23:59:59", "IST", -330], + ["1942-01-04T18:30:00+00:00", "00:30:00", "IHST", -360], + ["1942-08-31T17:59:59+00:00", "23:59:59", "IHST", -360], + ["1942-08-31T18:00:00+00:00", "00:30:00", "IST", -390] + ]), + + "1945" : helpers.makeTestYear("Asia/Colombo", [ + ["1945-10-15T19:29:59+00:00", "01:59:59", "IST", -390], + ["1945-10-15T19:30:00+00:00", "01:00:00", "IST", -330] + ]), + + "1996" : helpers.makeTestYear("Asia/Colombo", [ + ["1996-05-24T18:29:59+00:00", "23:59:59", "IST", -330], + ["1996-05-24T18:30:00+00:00", "01:00:00", "LKT", -390], + ["1996-10-25T17:59:59+00:00", "00:29:59", "LKT", -390], + ["1996-10-25T18:00:00+00:00", "00:00:00", "LKT", -360] + ]), + + "2006" : helpers.makeTestYear("Asia/Colombo", [ + ["2006-04-14T18:29:59+00:00", "00:29:59", "LKT", -360], + ["2006-04-14T18:30:00+00:00", "00:00:00", "IST", -330] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/damascus.js b/tests/zones/asia/damascus.js new file mode 100644 index 00000000..a6c5e4c2 --- /dev/null +++ b/tests/zones/asia/damascus.js @@ -0,0 +1,535 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Damascus"] = { + "1919" : helpers.makeTestYear("Asia/Damascus", [ + ["1919-12-31T21:34:47+00:00", "23:59:59", "LMT", -8712 / 60], + ["1919-12-31T21:34:48+00:00", "23:34:48", "EET", -120] + ]), + + "1920" : helpers.makeTestYear("Asia/Damascus", [ + ["1920-04-17T23:59:59+00:00", "01:59:59", "EET", -120], + ["1920-04-18T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1920-10-02T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1920-10-02T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1921" : helpers.makeTestYear("Asia/Damascus", [ + ["1921-04-16T23:59:59+00:00", "01:59:59", "EET", -120], + ["1921-04-17T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1921-10-01T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1921-10-01T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1922" : helpers.makeTestYear("Asia/Damascus", [ + ["1922-04-15T23:59:59+00:00", "01:59:59", "EET", -120], + ["1922-04-16T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1922-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1922-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1923" : helpers.makeTestYear("Asia/Damascus", [ + ["1923-04-14T23:59:59+00:00", "01:59:59", "EET", -120], + ["1923-04-15T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1923-10-06T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1923-10-06T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1962" : helpers.makeTestYear("Asia/Damascus", [ + ["1962-04-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1962-04-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1962-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1962-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1963" : helpers.makeTestYear("Asia/Damascus", [ + ["1963-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1963-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1963-09-29T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1963-09-29T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1964" : helpers.makeTestYear("Asia/Damascus", [ + ["1964-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1964-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1964-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1964-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1965" : helpers.makeTestYear("Asia/Damascus", [ + ["1965-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1965-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1965-09-29T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1965-09-29T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1966" : helpers.makeTestYear("Asia/Damascus", [ + ["1966-04-23T23:59:59+00:00", "01:59:59", "EET", -120], + ["1966-04-24T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1966-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1966-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1967" : helpers.makeTestYear("Asia/Damascus", [ + ["1967-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1967-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1967-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1967-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1968" : helpers.makeTestYear("Asia/Damascus", [ + ["1968-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1968-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1968-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1968-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1969" : helpers.makeTestYear("Asia/Damascus", [ + ["1969-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1969-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1969-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1969-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1970" : helpers.makeTestYear("Asia/Damascus", [ + ["1970-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1970-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1970-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1970-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1971" : helpers.makeTestYear("Asia/Damascus", [ + ["1971-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1971-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1971-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1971-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1972" : helpers.makeTestYear("Asia/Damascus", [ + ["1972-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1972-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1972-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1972-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1973" : helpers.makeTestYear("Asia/Damascus", [ + ["1973-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1973-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1973-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1973-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1974" : helpers.makeTestYear("Asia/Damascus", [ + ["1974-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1974-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1974-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1974-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1975" : helpers.makeTestYear("Asia/Damascus", [ + ["1975-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1975-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1975-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1975-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1976" : helpers.makeTestYear("Asia/Damascus", [ + ["1976-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1976-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1976-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1976-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1977" : helpers.makeTestYear("Asia/Damascus", [ + ["1977-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1977-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1977-08-31T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1977-08-31T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1978" : helpers.makeTestYear("Asia/Damascus", [ + ["1978-04-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1978-05-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1978-08-31T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1978-08-31T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1983" : helpers.makeTestYear("Asia/Damascus", [ + ["1983-04-08T23:59:59+00:00", "01:59:59", "EET", -120], + ["1983-04-09T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1983-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1983-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1984" : helpers.makeTestYear("Asia/Damascus", [ + ["1984-04-08T23:59:59+00:00", "01:59:59", "EET", -120], + ["1984-04-09T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1984-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1984-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Asia/Damascus", [ + ["1986-02-15T23:59:59+00:00", "01:59:59", "EET", -120], + ["1986-02-16T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1986-10-08T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1986-10-08T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Asia/Damascus", [ + ["1987-02-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1987-03-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1987-10-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1987-10-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Asia/Damascus", [ + ["1988-03-14T23:59:59+00:00", "01:59:59", "EET", -120], + ["1988-03-15T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1988-10-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1988-10-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Asia/Damascus", [ + ["1989-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1989-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1989-09-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1989-09-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Asia/Damascus", [ + ["1990-03-31T23:59:59+00:00", "01:59:59", "EET", -120], + ["1990-04-01T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1990-09-29T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1990-09-29T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Asia/Damascus", [ + ["1991-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1991-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1991-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1991-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Asia/Damascus", [ + ["1992-04-07T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-04-07T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Asia/Damascus", [ + ["1993-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Asia/Damascus", [ + ["1994-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Asia/Damascus", [ + ["1995-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1995-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1995-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1995-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Asia/Damascus", [ + ["1996-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1996-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Asia/Damascus", [ + ["1997-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1997-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1997-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1997-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Asia/Damascus", [ + ["1998-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1998-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1998-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1998-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Asia/Damascus", [ + ["1999-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1999-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1999-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1999-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Asia/Damascus", [ + ["2000-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2000-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2000-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2000-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Asia/Damascus", [ + ["2001-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2001-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2001-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2001-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Asia/Damascus", [ + ["2002-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2002-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2002-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2002-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Asia/Damascus", [ + ["2003-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2003-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2003-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2003-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Asia/Damascus", [ + ["2004-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2004-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2004-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2004-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Asia/Damascus", [ + ["2005-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2005-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2005-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2005-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Asia/Damascus", [ + ["2006-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2006-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2006-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2006-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Asia/Damascus", [ + ["2007-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2007-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2007-11-01T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2007-11-01T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Asia/Damascus", [ + ["2008-04-03T21:59:59+00:00", "23:59:59", "EET", -120], + ["2008-04-03T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2008-10-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2008-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Asia/Damascus", [ + ["2009-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2009-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2009-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2009-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Asia/Damascus", [ + ["2010-04-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["2010-04-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2010-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2010-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Asia/Damascus", [ + ["2011-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2011-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2011-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2011-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Asia/Damascus", [ + ["2012-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2012-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2012-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2012-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Asia/Damascus", [ + ["2013-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2013-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2013-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2013-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Asia/Damascus", [ + ["2014-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2014-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2014-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2014-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Asia/Damascus", [ + ["2015-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2015-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2015-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2015-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Asia/Damascus", [ + ["2016-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2016-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2016-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2016-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Asia/Damascus", [ + ["2017-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2017-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2017-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2017-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Asia/Damascus", [ + ["2018-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2018-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2018-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2018-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Asia/Damascus", [ + ["2019-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2019-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2019-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2019-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Asia/Damascus", [ + ["2020-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2020-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2020-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2020-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Asia/Damascus", [ + ["2021-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2021-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2021-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2021-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Asia/Damascus", [ + ["2022-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2022-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2022-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2022-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Asia/Damascus", [ + ["2023-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2023-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2023-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2023-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Asia/Damascus", [ + ["2024-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2024-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2024-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2024-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Asia/Damascus", [ + ["2025-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2025-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2025-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2025-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Asia/Damascus", [ + ["2026-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2026-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2026-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2026-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Asia/Damascus", [ + ["2027-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2027-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2027-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2027-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Asia/Damascus", [ + ["2028-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2028-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2028-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2028-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Asia/Damascus", [ + ["2029-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2029-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2029-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2029-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Asia/Damascus", [ + ["2030-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2030-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2030-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2030-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Asia/Damascus", [ + ["2031-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2031-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2031-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2031-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Asia/Damascus", [ + ["2032-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2032-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2032-10-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2032-10-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Asia/Damascus", [ + ["2033-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["2033-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2033-10-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2033-10-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Asia/Damascus", [ + ["2034-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2034-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2034-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2034-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Asia/Damascus", [ + ["2035-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2035-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2035-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2035-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Asia/Damascus", [ + ["2036-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2036-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2036-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2036-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Asia/Damascus", [ + ["2037-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2037-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2037-10-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2037-10-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/dhaka.js b/tests/zones/asia/dhaka.js new file mode 100644 index 00000000..4adbc15a --- /dev/null +++ b/tests/zones/asia/dhaka.js @@ -0,0 +1,34 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Dhaka"] = { + "1941" : helpers.makeTestYear("Asia/Dhaka", [ + ["1941-09-30T18:06:39+00:00", "23:59:59", "HMT", -21200 / 60], + ["1941-09-30T18:06:40+00:00", "00:36:40", "BURT", -390] + ]), + + "1942" : helpers.makeTestYear("Asia/Dhaka", [ + ["1942-05-14T17:29:59+00:00", "23:59:59", "BURT", -390], + ["1942-05-14T17:30:00+00:00", "23:00:00", "IST", -330], + ["1942-08-31T18:29:59+00:00", "23:59:59", "IST", -330], + ["1942-08-31T18:30:00+00:00", "01:00:00", "BURT", -390] + ]), + + "1951" : helpers.makeTestYear("Asia/Dhaka", [ + ["1951-09-29T17:29:59+00:00", "23:59:59", "BURT", -390], + ["1951-09-29T17:30:00+00:00", "23:30:00", "DACT", -360] + ]), + + "1971" : helpers.makeTestYear("Asia/Dhaka", [ + ["1971-03-25T17:59:59+00:00", "23:59:59", "DACT", -360], + ["1971-03-25T18:00:00+00:00", "00:00:00", "BDT", -360] + ]), + + "2009" : helpers.makeTestYear("Asia/Dhaka", [ + ["2009-06-19T16:59:59+00:00", "22:59:59", "BDT", -360], + ["2009-06-19T17:00:00+00:00", "00:00:00", "BDST", -420], + ["2009-12-31T16:58:59+00:00", "23:58:59", "BDST", -420], + ["2009-12-31T16:59:00+00:00", "22:59:00", "BDT", -360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/dili.js b/tests/zones/asia/dili.js new file mode 100644 index 00000000..cec60966 --- /dev/null +++ b/tests/zones/asia/dili.js @@ -0,0 +1,30 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Dili"] = { + "1911" : helpers.makeTestYear("Asia/Dili", [ + ["1911-12-31T15:37:39+00:00", "23:59:59", "LMT", -30140 / 60], + ["1911-12-31T15:37:40+00:00", "23:37:40", "TLT", -480] + ]), + + "1942" : helpers.makeTestYear("Asia/Dili", [ + ["1942-02-21T14:59:59+00:00", "22:59:59", "TLT", -480], + ["1942-02-21T15:00:00+00:00", "00:00:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Dili", [ + ["1945-09-22T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-09-22T15:00:00+00:00", "00:00:00", "TLT", -540] + ]), + + "1976" : helpers.makeTestYear("Asia/Dili", [ + ["1976-05-02T14:59:59+00:00", "23:59:59", "TLT", -540], + ["1976-05-02T15:00:00+00:00", "23:00:00", "WITA", -480] + ]), + + "2000" : helpers.makeTestYear("Asia/Dili", [ + ["2000-09-16T15:59:59+00:00", "23:59:59", "WITA", -480], + ["2000-09-16T16:00:00+00:00", "01:00:00", "TLT", -540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/dubai.js b/tests/zones/asia/dubai.js new file mode 100644 index 00000000..5ce28276 --- /dev/null +++ b/tests/zones/asia/dubai.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Dubai"] = { + "1919" : helpers.makeTestYear("Asia/Dubai", [ + ["1919-12-31T20:18:47+00:00", "23:59:59", "LMT", -13272 / 60], + ["1919-12-31T20:18:48+00:00", "00:18:48", "GST", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/dushanbe.js b/tests/zones/asia/dushanbe.js new file mode 100644 index 00000000..13746d11 --- /dev/null +++ b/tests/zones/asia/dushanbe.js @@ -0,0 +1,92 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Dushanbe"] = { + "1924" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1924-05-01T19:24:47+00:00", "23:59:59", "LMT", -16512 / 60], + ["1924-05-01T19:24:48+00:00", "00:24:48", "DUST", -300] + ]), + + "1930" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1930-06-20T18:59:59+00:00", "23:59:59", "DUST", -300], + ["1930-06-20T19:00:00+00:00", "01:00:00", "DUST", -360] + ]), + + "1981" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1981-03-31T17:59:59+00:00", "23:59:59", "DUST", -360], + ["1981-03-31T18:00:00+00:00", "01:00:00", "DUSST", -420], + ["1981-09-30T16:59:59+00:00", "23:59:59", "DUSST", -420], + ["1981-09-30T17:00:00+00:00", "23:00:00", "DUST", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "DUST", -360], + ["1982-03-31T18:00:00+00:00", "01:00:00", "DUSST", -420], + ["1982-09-30T16:59:59+00:00", "23:59:59", "DUSST", -420], + ["1982-09-30T17:00:00+00:00", "23:00:00", "DUST", -360] + ]), + + "1983" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1983-03-31T17:59:59+00:00", "23:59:59", "DUST", -360], + ["1983-03-31T18:00:00+00:00", "01:00:00", "DUSST", -420], + ["1983-09-30T16:59:59+00:00", "23:59:59", "DUSST", -420], + ["1983-09-30T17:00:00+00:00", "23:00:00", "DUST", -360] + ]), + + "1984" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1984-03-31T17:59:59+00:00", "23:59:59", "DUST", -360], + ["1984-03-31T18:00:00+00:00", "01:00:00", "DUSST", -420], + ["1984-09-29T19:59:59+00:00", "02:59:59", "DUSST", -420], + ["1984-09-29T20:00:00+00:00", "02:00:00", "DUST", -360] + ]), + + "1985" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1985-03-30T19:59:59+00:00", "01:59:59", "DUST", -360], + ["1985-03-30T20:00:00+00:00", "03:00:00", "DUSST", -420], + ["1985-09-28T19:59:59+00:00", "02:59:59", "DUSST", -420], + ["1985-09-28T20:00:00+00:00", "02:00:00", "DUST", -360] + ]), + + "1986" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1986-03-29T19:59:59+00:00", "01:59:59", "DUST", -360], + ["1986-03-29T20:00:00+00:00", "03:00:00", "DUSST", -420], + ["1986-09-27T19:59:59+00:00", "02:59:59", "DUSST", -420], + ["1986-09-27T20:00:00+00:00", "02:00:00", "DUST", -360] + ]), + + "1987" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1987-03-28T19:59:59+00:00", "01:59:59", "DUST", -360], + ["1987-03-28T20:00:00+00:00", "03:00:00", "DUSST", -420], + ["1987-09-26T19:59:59+00:00", "02:59:59", "DUSST", -420], + ["1987-09-26T20:00:00+00:00", "02:00:00", "DUST", -360] + ]), + + "1988" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1988-03-26T19:59:59+00:00", "01:59:59", "DUST", -360], + ["1988-03-26T20:00:00+00:00", "03:00:00", "DUSST", -420], + ["1988-09-24T19:59:59+00:00", "02:59:59", "DUSST", -420], + ["1988-09-24T20:00:00+00:00", "02:00:00", "DUST", -360] + ]), + + "1989" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1989-03-25T19:59:59+00:00", "01:59:59", "DUST", -360], + ["1989-03-25T20:00:00+00:00", "03:00:00", "DUSST", -420], + ["1989-09-23T19:59:59+00:00", "02:59:59", "DUSST", -420], + ["1989-09-23T20:00:00+00:00", "02:00:00", "DUST", -360] + ]), + + "1990" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1990-03-24T19:59:59+00:00", "01:59:59", "DUST", -360], + ["1990-03-24T20:00:00+00:00", "03:00:00", "DUSST", -420], + ["1990-09-29T19:59:59+00:00", "02:59:59", "DUSST", -420], + ["1990-09-29T20:00:00+00:00", "02:00:00", "DUST", -360] + ]), + + "1991" : helpers.makeTestYear("Asia/Dushanbe", [ + ["1991-03-30T19:59:59+00:00", "01:59:59", "DUST", -360], + ["1991-03-30T20:00:00+00:00", "02:00:00", "DUSST", -360], + ["1991-09-08T20:59:59+00:00", "02:59:59", "DUSST", -360], + ["1991-09-08T21:00:00+00:00", "02:00:00", "TJT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/gaza.js b/tests/zones/asia/gaza.js new file mode 100644 index 00000000..b06f1b82 --- /dev/null +++ b/tests/zones/asia/gaza.js @@ -0,0 +1,507 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Gaza"] = { + "1940" : helpers.makeTestYear("Asia/Gaza", [ + ["1940-05-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1940-05-31T22:00:00+00:00", "01:00:00", "EET", -180] + ]), + + "1942" : helpers.makeTestYear("Asia/Gaza", [ + ["1942-10-31T20:59:59+00:00", "23:59:59", "EET", -180], + ["1942-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1943" : helpers.makeTestYear("Asia/Gaza", [ + ["1943-03-31T23:59:59+00:00", "01:59:59", "EET", -120], + ["1943-04-01T00:00:00+00:00", "03:00:00", "EET", -180], + ["1943-10-31T20:59:59+00:00", "23:59:59", "EET", -180], + ["1943-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1944" : helpers.makeTestYear("Asia/Gaza", [ + ["1944-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1944-03-31T22:00:00+00:00", "01:00:00", "EET", -180], + ["1944-10-31T20:59:59+00:00", "23:59:59", "EET", -180], + ["1944-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1945" : helpers.makeTestYear("Asia/Gaza", [ + ["1945-04-15T21:59:59+00:00", "23:59:59", "EET", -120], + ["1945-04-15T22:00:00+00:00", "01:00:00", "EET", -180], + ["1945-10-31T22:59:59+00:00", "01:59:59", "EET", -180], + ["1945-10-31T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1946" : helpers.makeTestYear("Asia/Gaza", [ + ["1946-04-15T23:59:59+00:00", "01:59:59", "EET", -120], + ["1946-04-16T00:00:00+00:00", "03:00:00", "EET", -180], + ["1946-10-31T20:59:59+00:00", "23:59:59", "EET", -180], + ["1946-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1957" : helpers.makeTestYear("Asia/Gaza", [ + ["1957-05-09T21:59:59+00:00", "23:59:59", "EET", -120], + ["1957-05-09T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1957-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1957-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1958" : helpers.makeTestYear("Asia/Gaza", [ + ["1958-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1958-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1958-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1958-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1959" : helpers.makeTestYear("Asia/Gaza", [ + ["1959-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1959-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1959-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1959-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1960" : helpers.makeTestYear("Asia/Gaza", [ + ["1960-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1960-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1960-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1960-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1961" : helpers.makeTestYear("Asia/Gaza", [ + ["1961-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1961-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1961-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1961-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1962" : helpers.makeTestYear("Asia/Gaza", [ + ["1962-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1962-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1962-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1962-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1963" : helpers.makeTestYear("Asia/Gaza", [ + ["1963-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1963-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1963-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1963-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1964" : helpers.makeTestYear("Asia/Gaza", [ + ["1964-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1964-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1964-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1964-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1965" : helpers.makeTestYear("Asia/Gaza", [ + ["1965-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1965-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1965-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1965-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1966" : helpers.makeTestYear("Asia/Gaza", [ + ["1966-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1966-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1966-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1966-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1967" : helpers.makeTestYear("Asia/Gaza", [ + ["1967-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1967-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1967-06-04T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1967-06-04T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1974" : helpers.makeTestYear("Asia/Gaza", [ + ["1974-07-06T21:59:59+00:00", "23:59:59", "IST", -120], + ["1974-07-06T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1974-10-12T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1974-10-12T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1975" : helpers.makeTestYear("Asia/Gaza", [ + ["1975-04-19T21:59:59+00:00", "23:59:59", "IST", -120], + ["1975-04-19T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1975-08-30T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1975-08-30T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1985" : helpers.makeTestYear("Asia/Gaza", [ + ["1985-04-13T21:59:59+00:00", "23:59:59", "IST", -120], + ["1985-04-13T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1985-09-14T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1985-09-14T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1986" : helpers.makeTestYear("Asia/Gaza", [ + ["1986-05-17T21:59:59+00:00", "23:59:59", "IST", -120], + ["1986-05-17T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1986-09-06T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1986-09-06T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1987" : helpers.makeTestYear("Asia/Gaza", [ + ["1987-04-14T21:59:59+00:00", "23:59:59", "IST", -120], + ["1987-04-14T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1987-09-12T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1987-09-12T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1988" : helpers.makeTestYear("Asia/Gaza", [ + ["1988-04-09T21:59:59+00:00", "23:59:59", "IST", -120], + ["1988-04-09T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1988-09-03T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1988-09-03T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1989" : helpers.makeTestYear("Asia/Gaza", [ + ["1989-04-29T21:59:59+00:00", "23:59:59", "IST", -120], + ["1989-04-29T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1989-09-02T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1989-09-02T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1990" : helpers.makeTestYear("Asia/Gaza", [ + ["1990-03-24T21:59:59+00:00", "23:59:59", "IST", -120], + ["1990-03-24T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1990-08-25T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1990-08-25T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1991" : helpers.makeTestYear("Asia/Gaza", [ + ["1991-03-23T21:59:59+00:00", "23:59:59", "IST", -120], + ["1991-03-23T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1991-08-31T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1991-08-31T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1992" : helpers.makeTestYear("Asia/Gaza", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "IST", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1992-09-05T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1992-09-05T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1993" : helpers.makeTestYear("Asia/Gaza", [ + ["1993-04-01T21:59:59+00:00", "23:59:59", "IST", -120], + ["1993-04-01T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1993-09-04T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1993-09-04T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1994" : helpers.makeTestYear("Asia/Gaza", [ + ["1994-03-31T21:59:59+00:00", "23:59:59", "IST", -120], + ["1994-03-31T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1994-08-27T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1994-08-27T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1995" : helpers.makeTestYear("Asia/Gaza", [ + ["1995-03-30T21:59:59+00:00", "23:59:59", "IST", -120], + ["1995-03-30T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1995-09-02T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1995-09-02T21:00:00+00:00", "23:00:00", "IST", -120], + ["1995-12-31T21:59:59+00:00", "23:59:59", "IST", -120], + ["1995-12-31T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Asia/Gaza", [ + ["1996-04-04T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-04-04T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-09-19T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1996-09-19T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Asia/Gaza", [ + ["1997-04-03T21:59:59+00:00", "23:59:59", "EET", -120], + ["1997-04-03T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1997-09-18T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1997-09-18T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Asia/Gaza", [ + ["1998-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1998-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1998-09-17T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1998-09-17T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Asia/Gaza", [ + ["1999-04-15T21:59:59+00:00", "23:59:59", "EET", -120], + ["1999-04-15T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1999-10-14T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1999-10-14T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Asia/Gaza", [ + ["2000-04-20T21:59:59+00:00", "23:59:59", "EET", -120], + ["2000-04-20T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2000-10-19T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2000-10-19T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Asia/Gaza", [ + ["2001-04-19T21:59:59+00:00", "23:59:59", "EET", -120], + ["2001-04-19T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2001-10-18T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2001-10-18T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Asia/Gaza", [ + ["2002-04-18T21:59:59+00:00", "23:59:59", "EET", -120], + ["2002-04-18T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2002-10-17T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2002-10-17T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Asia/Gaza", [ + ["2003-04-17T21:59:59+00:00", "23:59:59", "EET", -120], + ["2003-04-17T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2003-10-16T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2003-10-16T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Asia/Gaza", [ + ["2004-04-15T21:59:59+00:00", "23:59:59", "EET", -120], + ["2004-04-15T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2004-09-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2004-09-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Asia/Gaza", [ + ["2005-04-14T21:59:59+00:00", "23:59:59", "EET", -120], + ["2005-04-14T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2005-10-03T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2005-10-03T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Asia/Gaza", [ + ["2006-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2006-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2006-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2006-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Asia/Gaza", [ + ["2007-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2007-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2007-09-12T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2007-09-12T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Asia/Gaza", [ + ["2008-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2008-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2008-08-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2008-08-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Asia/Gaza", [ + ["2009-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2009-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2009-09-03T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2009-09-03T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Asia/Gaza", [ + ["2010-03-26T22:00:59+00:00", "00:00:59", "EET", -120], + ["2010-03-26T22:01:00+00:00", "01:01:00", "EEST", -180], + ["2010-08-10T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2010-08-10T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Asia/Gaza", [ + ["2011-03-31T22:00:59+00:00", "00:00:59", "EET", -120], + ["2011-03-31T22:01:00+00:00", "01:01:00", "EEST", -180], + ["2011-07-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2011-07-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Asia/Gaza", [ + ["2012-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2012-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2012-09-20T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2012-09-20T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Asia/Gaza", [ + ["2013-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2013-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2013-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2013-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Asia/Gaza", [ + ["2014-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2014-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2014-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2014-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Asia/Gaza", [ + ["2015-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2015-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2015-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2015-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Asia/Gaza", [ + ["2016-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2016-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2016-09-22T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2016-09-22T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Asia/Gaza", [ + ["2017-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2017-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2017-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2017-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Asia/Gaza", [ + ["2018-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2018-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2018-09-20T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2018-09-20T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Asia/Gaza", [ + ["2019-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2019-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2019-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2019-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Asia/Gaza", [ + ["2020-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2020-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2020-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2020-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Asia/Gaza", [ + ["2021-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2021-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2021-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2021-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Asia/Gaza", [ + ["2022-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2022-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2022-09-22T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2022-09-22T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Asia/Gaza", [ + ["2023-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2023-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2023-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2023-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Asia/Gaza", [ + ["2024-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2024-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2024-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2024-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Asia/Gaza", [ + ["2025-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2025-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2025-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2025-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Asia/Gaza", [ + ["2026-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2026-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2026-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2026-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Asia/Gaza", [ + ["2027-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2027-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2027-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2027-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Asia/Gaza", [ + ["2028-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2028-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2028-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2028-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Asia/Gaza", [ + ["2029-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2029-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2029-09-20T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2029-09-20T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Asia/Gaza", [ + ["2030-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2030-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2030-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2030-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Asia/Gaza", [ + ["2031-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2031-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2031-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2031-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Asia/Gaza", [ + ["2032-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2032-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2032-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2032-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Asia/Gaza", [ + ["2033-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2033-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2033-09-22T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2033-09-22T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Asia/Gaza", [ + ["2034-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2034-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2034-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2034-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Asia/Gaza", [ + ["2035-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2035-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2035-09-20T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2035-09-20T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Asia/Gaza", [ + ["2036-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2036-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2036-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2036-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Asia/Gaza", [ + ["2037-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2037-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2037-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2037-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/harbin.js b/tests/zones/asia/harbin.js new file mode 100644 index 00000000..6e3f47de --- /dev/null +++ b/tests/zones/asia/harbin.js @@ -0,0 +1,72 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Harbin"] = { + "1927" : helpers.makeTestYear("Asia/Harbin", [ + ["1927-12-31T15:33:15+00:00", "23:59:59", "LMT", -30404 / 60], + ["1927-12-31T15:33:16+00:00", "00:03:16", "CHAT", -510] + ]), + + "1932" : helpers.makeTestYear("Asia/Harbin", [ + ["1932-02-29T15:29:59+00:00", "23:59:59", "CHAT", -510], + ["1932-02-29T15:30:00+00:00", "23:30:00", "CST", -480] + ]), + + "1939" : helpers.makeTestYear("Asia/Harbin", [ + ["1939-12-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1939-12-31T16:00:00+00:00", "01:00:00", "CHAT", -540] + ]), + + "1966" : helpers.makeTestYear("Asia/Harbin", [ + ["1966-04-30T14:59:59+00:00", "23:59:59", "CHAT", -540], + ["1966-04-30T15:00:00+00:00", "23:30:00", "CHAT", -510] + ]), + + "1980" : helpers.makeTestYear("Asia/Harbin", [ + ["1980-04-30T15:29:59+00:00", "23:59:59", "CHAT", -510], + ["1980-04-30T15:30:00+00:00", "23:30:00", "CST", -480] + ]), + + "1986" : helpers.makeTestYear("Asia/Harbin", [ + ["1986-05-03T15:59:59+00:00", "23:59:59", "CST", -480], + ["1986-05-03T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1986-09-13T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1986-09-13T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1987" : helpers.makeTestYear("Asia/Harbin", [ + ["1987-04-11T15:59:59+00:00", "23:59:59", "CST", -480], + ["1987-04-11T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1987-09-12T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1987-09-12T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1988" : helpers.makeTestYear("Asia/Harbin", [ + ["1988-04-09T15:59:59+00:00", "23:59:59", "CST", -480], + ["1988-04-09T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1988-09-10T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1988-09-10T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1989" : helpers.makeTestYear("Asia/Harbin", [ + ["1989-04-15T15:59:59+00:00", "23:59:59", "CST", -480], + ["1989-04-15T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1989-09-16T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1989-09-16T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1990" : helpers.makeTestYear("Asia/Harbin", [ + ["1990-04-14T15:59:59+00:00", "23:59:59", "CST", -480], + ["1990-04-14T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1990-09-15T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1990-09-15T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1991" : helpers.makeTestYear("Asia/Harbin", [ + ["1991-04-13T15:59:59+00:00", "23:59:59", "CST", -480], + ["1991-04-13T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1991-09-14T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1991-09-14T15:00:00+00:00", "23:00:00", "CST", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/hebron.js b/tests/zones/asia/hebron.js new file mode 100644 index 00000000..e06afc38 --- /dev/null +++ b/tests/zones/asia/hebron.js @@ -0,0 +1,511 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Hebron"] = { + "1940" : helpers.makeTestYear("Asia/Hebron", [ + ["1940-05-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1940-05-31T22:00:00+00:00", "01:00:00", "EET", -180] + ]), + + "1942" : helpers.makeTestYear("Asia/Hebron", [ + ["1942-10-31T20:59:59+00:00", "23:59:59", "EET", -180], + ["1942-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1943" : helpers.makeTestYear("Asia/Hebron", [ + ["1943-03-31T23:59:59+00:00", "01:59:59", "EET", -120], + ["1943-04-01T00:00:00+00:00", "03:00:00", "EET", -180], + ["1943-10-31T20:59:59+00:00", "23:59:59", "EET", -180], + ["1943-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1944" : helpers.makeTestYear("Asia/Hebron", [ + ["1944-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1944-03-31T22:00:00+00:00", "01:00:00", "EET", -180], + ["1944-10-31T20:59:59+00:00", "23:59:59", "EET", -180], + ["1944-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1945" : helpers.makeTestYear("Asia/Hebron", [ + ["1945-04-15T21:59:59+00:00", "23:59:59", "EET", -120], + ["1945-04-15T22:00:00+00:00", "01:00:00", "EET", -180], + ["1945-10-31T22:59:59+00:00", "01:59:59", "EET", -180], + ["1945-10-31T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1946" : helpers.makeTestYear("Asia/Hebron", [ + ["1946-04-15T23:59:59+00:00", "01:59:59", "EET", -120], + ["1946-04-16T00:00:00+00:00", "03:00:00", "EET", -180], + ["1946-10-31T20:59:59+00:00", "23:59:59", "EET", -180], + ["1946-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1957" : helpers.makeTestYear("Asia/Hebron", [ + ["1957-05-09T21:59:59+00:00", "23:59:59", "EET", -120], + ["1957-05-09T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1957-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1957-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1958" : helpers.makeTestYear("Asia/Hebron", [ + ["1958-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1958-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1958-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1958-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1959" : helpers.makeTestYear("Asia/Hebron", [ + ["1959-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1959-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1959-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1959-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1960" : helpers.makeTestYear("Asia/Hebron", [ + ["1960-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1960-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1960-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1960-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1961" : helpers.makeTestYear("Asia/Hebron", [ + ["1961-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1961-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1961-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1961-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1962" : helpers.makeTestYear("Asia/Hebron", [ + ["1962-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1962-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1962-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1962-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1963" : helpers.makeTestYear("Asia/Hebron", [ + ["1963-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1963-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1963-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1963-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1964" : helpers.makeTestYear("Asia/Hebron", [ + ["1964-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1964-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1964-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1964-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1965" : helpers.makeTestYear("Asia/Hebron", [ + ["1965-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1965-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1965-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1965-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1966" : helpers.makeTestYear("Asia/Hebron", [ + ["1966-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1966-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1966-09-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1966-10-01T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1967" : helpers.makeTestYear("Asia/Hebron", [ + ["1967-04-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1967-04-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1967-06-04T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1967-06-04T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1974" : helpers.makeTestYear("Asia/Hebron", [ + ["1974-07-06T21:59:59+00:00", "23:59:59", "IST", -120], + ["1974-07-06T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1974-10-12T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1974-10-12T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1975" : helpers.makeTestYear("Asia/Hebron", [ + ["1975-04-19T21:59:59+00:00", "23:59:59", "IST", -120], + ["1975-04-19T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1975-08-30T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1975-08-30T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1985" : helpers.makeTestYear("Asia/Hebron", [ + ["1985-04-13T21:59:59+00:00", "23:59:59", "IST", -120], + ["1985-04-13T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1985-09-14T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1985-09-14T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1986" : helpers.makeTestYear("Asia/Hebron", [ + ["1986-05-17T21:59:59+00:00", "23:59:59", "IST", -120], + ["1986-05-17T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1986-09-06T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1986-09-06T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1987" : helpers.makeTestYear("Asia/Hebron", [ + ["1987-04-14T21:59:59+00:00", "23:59:59", "IST", -120], + ["1987-04-14T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1987-09-12T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1987-09-12T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1988" : helpers.makeTestYear("Asia/Hebron", [ + ["1988-04-09T21:59:59+00:00", "23:59:59", "IST", -120], + ["1988-04-09T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1988-09-03T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1988-09-03T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1989" : helpers.makeTestYear("Asia/Hebron", [ + ["1989-04-29T21:59:59+00:00", "23:59:59", "IST", -120], + ["1989-04-29T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1989-09-02T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1989-09-02T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1990" : helpers.makeTestYear("Asia/Hebron", [ + ["1990-03-24T21:59:59+00:00", "23:59:59", "IST", -120], + ["1990-03-24T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1990-08-25T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1990-08-25T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1991" : helpers.makeTestYear("Asia/Hebron", [ + ["1991-03-23T21:59:59+00:00", "23:59:59", "IST", -120], + ["1991-03-23T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1991-08-31T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1991-08-31T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1992" : helpers.makeTestYear("Asia/Hebron", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "IST", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1992-09-05T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1992-09-05T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1993" : helpers.makeTestYear("Asia/Hebron", [ + ["1993-04-01T21:59:59+00:00", "23:59:59", "IST", -120], + ["1993-04-01T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1993-09-04T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1993-09-04T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1994" : helpers.makeTestYear("Asia/Hebron", [ + ["1994-03-31T21:59:59+00:00", "23:59:59", "IST", -120], + ["1994-03-31T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1994-08-27T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1994-08-27T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1995" : helpers.makeTestYear("Asia/Hebron", [ + ["1995-03-30T21:59:59+00:00", "23:59:59", "IST", -120], + ["1995-03-30T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1995-09-02T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1995-09-02T21:00:00+00:00", "23:00:00", "IST", -120], + ["1995-12-31T21:59:59+00:00", "23:59:59", "IST", -120], + ["1995-12-31T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Asia/Hebron", [ + ["1996-04-04T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-04-04T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-09-19T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1996-09-19T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Asia/Hebron", [ + ["1997-04-03T21:59:59+00:00", "23:59:59", "EET", -120], + ["1997-04-03T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1997-09-18T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1997-09-18T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Asia/Hebron", [ + ["1998-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1998-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1998-09-17T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1998-09-17T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Asia/Hebron", [ + ["1999-04-15T21:59:59+00:00", "23:59:59", "EET", -120], + ["1999-04-15T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1999-10-14T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1999-10-14T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Asia/Hebron", [ + ["2000-04-20T21:59:59+00:00", "23:59:59", "EET", -120], + ["2000-04-20T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2000-10-19T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2000-10-19T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Asia/Hebron", [ + ["2001-04-19T21:59:59+00:00", "23:59:59", "EET", -120], + ["2001-04-19T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2001-10-18T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2001-10-18T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Asia/Hebron", [ + ["2002-04-18T21:59:59+00:00", "23:59:59", "EET", -120], + ["2002-04-18T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2002-10-17T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2002-10-17T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Asia/Hebron", [ + ["2003-04-17T21:59:59+00:00", "23:59:59", "EET", -120], + ["2003-04-17T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2003-10-16T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2003-10-16T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Asia/Hebron", [ + ["2004-04-15T21:59:59+00:00", "23:59:59", "EET", -120], + ["2004-04-15T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2004-09-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2004-09-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Asia/Hebron", [ + ["2005-04-14T21:59:59+00:00", "23:59:59", "EET", -120], + ["2005-04-14T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2005-10-03T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2005-10-03T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Asia/Hebron", [ + ["2006-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2006-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2006-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2006-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Asia/Hebron", [ + ["2007-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2007-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2007-09-12T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2007-09-12T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Asia/Hebron", [ + ["2008-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2008-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2008-08-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2008-08-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Asia/Hebron", [ + ["2009-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2009-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2009-09-03T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2009-09-03T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Asia/Hebron", [ + ["2010-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2010-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2010-08-10T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2010-08-10T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Asia/Hebron", [ + ["2011-03-31T22:00:59+00:00", "00:00:59", "EET", -120], + ["2011-03-31T22:01:00+00:00", "01:01:00", "EEST", -180], + ["2011-07-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2011-07-31T21:00:00+00:00", "23:00:00", "EET", -120], + ["2011-08-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2011-08-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2011-09-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2011-09-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Asia/Hebron", [ + ["2012-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2012-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2012-09-20T21:59:59+00:00", "00:59:59", "EEST", -180], + ["2012-09-20T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Asia/Hebron", [ + ["2013-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2013-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2013-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2013-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Asia/Hebron", [ + ["2014-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2014-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2014-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2014-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Asia/Hebron", [ + ["2015-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2015-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2015-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2015-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Asia/Hebron", [ + ["2016-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2016-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2016-09-22T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2016-09-22T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Asia/Hebron", [ + ["2017-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2017-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2017-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2017-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Asia/Hebron", [ + ["2018-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2018-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2018-09-20T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2018-09-20T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Asia/Hebron", [ + ["2019-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2019-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2019-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2019-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Asia/Hebron", [ + ["2020-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2020-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2020-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2020-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Asia/Hebron", [ + ["2021-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2021-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2021-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2021-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Asia/Hebron", [ + ["2022-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2022-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2022-09-22T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2022-09-22T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Asia/Hebron", [ + ["2023-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2023-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2023-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2023-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Asia/Hebron", [ + ["2024-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2024-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2024-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2024-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Asia/Hebron", [ + ["2025-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2025-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2025-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2025-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Asia/Hebron", [ + ["2026-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2026-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2026-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2026-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Asia/Hebron", [ + ["2027-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2027-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2027-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2027-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Asia/Hebron", [ + ["2028-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2028-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2028-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2028-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Asia/Hebron", [ + ["2029-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2029-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2029-09-20T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2029-09-20T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Asia/Hebron", [ + ["2030-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["2030-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2030-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2030-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Asia/Hebron", [ + ["2031-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2031-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2031-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2031-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Asia/Hebron", [ + ["2032-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["2032-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2032-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2032-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Asia/Hebron", [ + ["2033-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["2033-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2033-09-22T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2033-09-22T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Asia/Hebron", [ + ["2034-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["2034-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2034-09-21T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2034-09-21T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Asia/Hebron", [ + ["2035-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["2035-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2035-09-20T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2035-09-20T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Asia/Hebron", [ + ["2036-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["2036-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2036-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2036-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Asia/Hebron", [ + ["2037-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["2037-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["2037-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["2037-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/ho_chi_minh.js b/tests/zones/asia/ho_chi_minh.js new file mode 100644 index 00000000..5bcb6eeb --- /dev/null +++ b/tests/zones/asia/ho_chi_minh.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Ho_Chi_Minh"] = { + "1906" : helpers.makeTestYear("Asia/Ho_Chi_Minh", [ + ["1906-06-08T16:53:19+00:00", "23:59:59", "LMT", -25600 / 60], + ["1906-06-08T16:53:20+00:00", "23:59:40", "SMT", -25580 / 60] + ]), + + "1911" : helpers.makeTestYear("Asia/Ho_Chi_Minh", [ + ["1911-03-10T16:54:39+00:00", "00:00:59", "SMT", -25580 / 60], + ["1911-03-10T16:54:40+00:00", "23:54:40", "ICT", -420] + ]), + + "1912" : helpers.makeTestYear("Asia/Ho_Chi_Minh", [ + ["1912-04-30T16:59:59+00:00", "23:59:59", "ICT", -420], + ["1912-04-30T17:00:00+00:00", "01:00:00", "ICT", -480] + ]), + + "1931" : helpers.makeTestYear("Asia/Ho_Chi_Minh", [ + ["1931-04-30T15:59:59+00:00", "23:59:59", "ICT", -480], + ["1931-04-30T16:00:00+00:00", "23:00:00", "ICT", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/hong_kong.js b/tests/zones/asia/hong_kong.js new file mode 100644 index 00000000..3d8402f5 --- /dev/null +++ b/tests/zones/asia/hong_kong.js @@ -0,0 +1,248 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Hong_Kong"] = { + "1904" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1904-10-29T16:23:17+00:00", "23:59:59", "LMT", -27402 / 60], + ["1904-10-29T16:23:18+00:00", "00:23:18", "HKT", -480] + ]), + + "1941" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1941-03-31T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1941-03-31T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1941-09-29T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1941-09-29T18:30:00+00:00", "02:30:00", "HKT", -480], + ["1941-12-24T15:59:59+00:00", "23:59:59", "HKT", -480], + ["1941-12-24T16:00:00+00:00", "01:00:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1945-09-14T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-09-14T15:00:00+00:00", "23:00:00", "HKT", -480] + ]), + + "1946" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1946-04-19T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1946-04-19T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1946-11-30T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1946-11-30T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1947" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1947-04-12T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1947-04-12T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1947-12-29T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1947-12-29T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1948" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1948-05-01T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1948-05-01T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1948-10-30T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1948-10-30T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1949" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1949-04-02T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1949-04-02T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1949-10-29T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1949-10-29T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1950" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1950-04-01T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1950-04-01T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1950-10-28T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1950-10-28T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1951" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1951-03-31T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1951-03-31T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1951-10-27T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1951-10-27T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1952" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1952-04-05T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1952-04-05T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1952-10-24T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1952-10-24T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1953" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1953-04-04T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1953-04-04T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1953-10-31T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1953-10-31T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1954" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1954-03-20T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1954-03-20T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1954-10-30T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1954-10-30T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1955" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1955-03-19T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1955-03-19T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1955-11-05T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1955-11-05T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1956" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1956-03-17T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1956-03-17T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1956-11-03T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1956-11-03T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1957" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1957-03-23T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1957-03-23T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1957-11-02T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1957-11-02T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1958" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1958-03-22T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1958-03-22T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1958-11-01T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1958-11-01T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1959" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1959-03-21T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1959-03-21T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1959-10-31T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1959-10-31T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1960" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1960-03-19T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1960-03-19T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1960-11-05T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1960-11-05T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1961" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1961-03-18T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1961-03-18T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1961-11-04T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1961-11-04T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1962" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1962-03-17T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1962-03-17T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1962-11-03T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1962-11-03T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1963" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1963-03-23T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1963-03-23T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1963-11-02T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1963-11-02T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1964" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1964-03-21T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1964-03-21T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1964-10-31T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1964-10-31T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1965" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1965-04-17T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1965-04-17T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1965-10-16T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1965-10-16T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1966" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1966-04-16T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1966-04-16T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1966-10-15T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1966-10-15T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1967" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1967-04-15T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1967-04-15T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1967-10-21T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1967-10-21T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1968" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1968-04-20T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1968-04-20T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1968-10-19T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1968-10-19T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1969" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1969-04-19T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1969-04-19T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1969-10-18T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1969-10-18T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1970" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1970-04-18T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1970-04-18T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1970-10-17T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1970-10-17T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1971" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1971-04-17T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1971-04-17T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1971-10-16T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1971-10-16T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1972" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1972-04-15T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1972-04-15T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1972-10-21T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1972-10-21T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1973" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1973-04-21T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1973-04-21T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1973-10-20T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1973-10-20T18:30:00+00:00", "02:30:00", "HKT", -480], + ["1973-12-29T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1973-12-29T19:30:00+00:00", "04:30:00", "HKST", -540] + ]), + + "1974" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1974-10-19T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1974-10-19T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1975" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1975-04-19T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1975-04-19T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1975-10-18T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1975-10-18T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1976" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1976-04-17T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1976-04-17T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1976-10-16T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1976-10-16T18:30:00+00:00", "02:30:00", "HKT", -480] + ]), + + "1979" : helpers.makeTestYear("Asia/Hong_Kong", [ + ["1979-05-12T19:29:59+00:00", "03:29:59", "HKT", -480], + ["1979-05-12T19:30:00+00:00", "04:30:00", "HKST", -540], + ["1979-10-20T18:29:59+00:00", "03:29:59", "HKST", -540], + ["1979-10-20T18:30:00+00:00", "02:30:00", "HKT", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/hovd.js b/tests/zones/asia/hovd.js new file mode 100644 index 00000000..34b7878f --- /dev/null +++ b/tests/zones/asia/hovd.js @@ -0,0 +1,169 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Hovd"] = { + "1905" : helpers.makeTestYear("Asia/Hovd", [ + ["1905-07-31T17:53:23+00:00", "23:59:59", "LMT", -21996 / 60], + ["1905-07-31T17:53:24+00:00", "23:53:24", "HOVT", -360] + ]), + + "1977" : helpers.makeTestYear("Asia/Hovd", [ + ["1977-12-31T17:59:59+00:00", "23:59:59", "HOVT", -360], + ["1977-12-31T18:00:00+00:00", "01:00:00", "HOVT", -420] + ]), + + "1983" : helpers.makeTestYear("Asia/Hovd", [ + ["1983-03-31T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1983-03-31T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1983-09-30T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1983-09-30T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1984" : helpers.makeTestYear("Asia/Hovd", [ + ["1984-03-31T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1984-03-31T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1984-09-29T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1984-09-29T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1985" : helpers.makeTestYear("Asia/Hovd", [ + ["1985-03-30T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1985-03-30T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1985-09-28T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1985-09-28T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1986" : helpers.makeTestYear("Asia/Hovd", [ + ["1986-03-29T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1986-03-29T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1986-09-27T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1986-09-27T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1987" : helpers.makeTestYear("Asia/Hovd", [ + ["1987-03-28T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1987-03-28T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1987-09-26T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1987-09-26T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1988" : helpers.makeTestYear("Asia/Hovd", [ + ["1988-03-26T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1988-03-26T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1988-09-24T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1988-09-24T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1989" : helpers.makeTestYear("Asia/Hovd", [ + ["1989-03-25T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1989-03-25T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1989-09-23T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1989-09-23T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1990" : helpers.makeTestYear("Asia/Hovd", [ + ["1990-03-24T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1990-03-24T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1990-09-29T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1990-09-29T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1991" : helpers.makeTestYear("Asia/Hovd", [ + ["1991-03-30T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1991-03-30T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1991-09-28T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1991-09-28T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1992" : helpers.makeTestYear("Asia/Hovd", [ + ["1992-03-28T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1992-03-28T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1992-09-26T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1992-09-26T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1993" : helpers.makeTestYear("Asia/Hovd", [ + ["1993-03-27T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1993-03-27T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1993-09-25T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1993-09-25T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1994" : helpers.makeTestYear("Asia/Hovd", [ + ["1994-03-26T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1994-03-26T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1994-09-24T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1994-09-24T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1995" : helpers.makeTestYear("Asia/Hovd", [ + ["1995-03-25T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1995-03-25T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1995-09-23T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1995-09-23T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1996" : helpers.makeTestYear("Asia/Hovd", [ + ["1996-03-30T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1996-03-30T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1996-09-28T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1996-09-28T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1997" : helpers.makeTestYear("Asia/Hovd", [ + ["1997-03-29T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1997-03-29T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1997-09-27T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1997-09-27T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "1998" : helpers.makeTestYear("Asia/Hovd", [ + ["1998-03-28T16:59:59+00:00", "23:59:59", "HOVT", -420], + ["1998-03-28T17:00:00+00:00", "01:00:00", "HOVST", -480], + ["1998-09-26T15:59:59+00:00", "23:59:59", "HOVST", -480], + ["1998-09-26T16:00:00+00:00", "23:00:00", "HOVT", -420] + ]), + + "2001" : helpers.makeTestYear("Asia/Hovd", [ + ["2001-04-27T18:59:59+00:00", "01:59:59", "HOVT", -420], + ["2001-04-27T19:00:00+00:00", "03:00:00", "HOVST", -480], + ["2001-09-28T17:59:59+00:00", "01:59:59", "HOVST", -480], + ["2001-09-28T18:00:00+00:00", "01:00:00", "HOVT", -420] + ]), + + "2002" : helpers.makeTestYear("Asia/Hovd", [ + ["2002-03-29T18:59:59+00:00", "01:59:59", "HOVT", -420], + ["2002-03-29T19:00:00+00:00", "03:00:00", "HOVST", -480], + ["2002-09-27T17:59:59+00:00", "01:59:59", "HOVST", -480], + ["2002-09-27T18:00:00+00:00", "01:00:00", "HOVT", -420] + ]), + + "2003" : helpers.makeTestYear("Asia/Hovd", [ + ["2003-03-28T18:59:59+00:00", "01:59:59", "HOVT", -420], + ["2003-03-28T19:00:00+00:00", "03:00:00", "HOVST", -480], + ["2003-09-26T17:59:59+00:00", "01:59:59", "HOVST", -480], + ["2003-09-26T18:00:00+00:00", "01:00:00", "HOVT", -420] + ]), + + "2004" : helpers.makeTestYear("Asia/Hovd", [ + ["2004-03-26T18:59:59+00:00", "01:59:59", "HOVT", -420], + ["2004-03-26T19:00:00+00:00", "03:00:00", "HOVST", -480], + ["2004-09-24T17:59:59+00:00", "01:59:59", "HOVST", -480], + ["2004-09-24T18:00:00+00:00", "01:00:00", "HOVT", -420] + ]), + + "2005" : helpers.makeTestYear("Asia/Hovd", [ + ["2005-03-25T18:59:59+00:00", "01:59:59", "HOVT", -420], + ["2005-03-25T19:00:00+00:00", "03:00:00", "HOVST", -480], + ["2005-09-23T17:59:59+00:00", "01:59:59", "HOVST", -480], + ["2005-09-23T18:00:00+00:00", "01:00:00", "HOVT", -420] + ]), + + "2006" : helpers.makeTestYear("Asia/Hovd", [ + ["2006-03-24T18:59:59+00:00", "01:59:59", "HOVT", -420], + ["2006-03-24T19:00:00+00:00", "03:00:00", "HOVST", -480], + ["2006-09-29T17:59:59+00:00", "01:59:59", "HOVST", -480], + ["2006-09-29T18:00:00+00:00", "01:00:00", "HOVT", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/irkutsk.js b/tests/zones/asia/irkutsk.js new file mode 100644 index 00000000..79d04b65 --- /dev/null +++ b/tests/zones/asia/irkutsk.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Irkutsk"] = { + "1920" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1920-01-24T17:02:39+00:00", "23:59:59", "IMT", -25040 / 60], + ["1920-01-24T17:02:40+00:00", "00:02:40", "IRKT", -420] + ]), + + "1930" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1930-06-20T16:59:59+00:00", "23:59:59", "IRKT", -420], + ["1930-06-20T17:00:00+00:00", "01:00:00", "IRKT", -480] + ]), + + "1981" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1981-03-31T15:59:59+00:00", "23:59:59", "IRKT", -480], + ["1981-03-31T16:00:00+00:00", "01:00:00", "IRKST", -540], + ["1981-09-30T14:59:59+00:00", "23:59:59", "IRKST", -540], + ["1981-09-30T15:00:00+00:00", "23:00:00", "IRKT", -480] + ]), + + "1982" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1982-03-31T15:59:59+00:00", "23:59:59", "IRKT", -480], + ["1982-03-31T16:00:00+00:00", "01:00:00", "IRKST", -540], + ["1982-09-30T14:59:59+00:00", "23:59:59", "IRKST", -540], + ["1982-09-30T15:00:00+00:00", "23:00:00", "IRKT", -480] + ]), + + "1983" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1983-03-31T15:59:59+00:00", "23:59:59", "IRKT", -480], + ["1983-03-31T16:00:00+00:00", "01:00:00", "IRKST", -540], + ["1983-09-30T14:59:59+00:00", "23:59:59", "IRKST", -540], + ["1983-09-30T15:00:00+00:00", "23:00:00", "IRKT", -480] + ]), + + "1984" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1984-03-31T15:59:59+00:00", "23:59:59", "IRKT", -480], + ["1984-03-31T16:00:00+00:00", "01:00:00", "IRKST", -540], + ["1984-09-29T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1984-09-29T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1985" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1985-03-30T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1985-03-30T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1985-09-28T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1985-09-28T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1986" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1986-03-29T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1986-03-29T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1986-09-27T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1986-09-27T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1987" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1987-03-28T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1987-03-28T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1987-09-26T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1987-09-26T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1988" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1988-03-26T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1988-03-26T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1988-09-24T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1988-09-24T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1989" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1989-03-25T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1989-03-25T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1989-09-23T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1989-09-23T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1990" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1990-03-24T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1990-03-24T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1990-09-29T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1990-09-29T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1991" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1991-03-30T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1991-03-30T18:00:00+00:00", "02:00:00", "IRKST", -480], + ["1991-09-28T18:59:59+00:00", "02:59:59", "IRKST", -480], + ["1991-09-28T19:00:00+00:00", "02:00:00", "IRKT", -420] + ]), + + "1992" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1992-01-18T18:59:59+00:00", "01:59:59", "IRKT", -420], + ["1992-01-18T19:00:00+00:00", "03:00:00", "IRKT", -480], + ["1992-03-28T14:59:59+00:00", "22:59:59", "IRKT", -480], + ["1992-03-28T15:00:00+00:00", "00:00:00", "IRKST", -540], + ["1992-09-26T13:59:59+00:00", "22:59:59", "IRKST", -540], + ["1992-09-26T14:00:00+00:00", "22:00:00", "IRKT", -480] + ]), + + "1993" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1993-03-27T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1993-03-27T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1993-09-25T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1993-09-25T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1994" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1994-03-26T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1994-03-26T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1994-09-24T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1994-09-24T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1995" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1995-03-25T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1995-03-25T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1995-09-23T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1995-09-23T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1996" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1996-03-30T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1996-03-30T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1996-10-26T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1996-10-26T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1997" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1997-03-29T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1997-03-29T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1997-10-25T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1997-10-25T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1998" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1998-03-28T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1998-03-28T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1998-10-24T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1998-10-24T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "1999" : helpers.makeTestYear("Asia/Irkutsk", [ + ["1999-03-27T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["1999-03-27T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["1999-10-30T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["1999-10-30T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2000" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2000-03-25T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2000-03-25T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2000-10-28T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2000-10-28T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2001" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2001-03-24T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2001-03-24T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2001-10-27T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2001-10-27T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2002" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2002-03-30T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2002-03-30T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2002-10-26T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2002-10-26T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2003" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2003-03-29T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2003-03-29T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2003-10-25T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2003-10-25T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2004" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2004-03-27T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2004-03-27T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2004-10-30T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2004-10-30T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2005" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2005-03-26T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2005-03-26T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2005-10-29T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2005-10-29T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2006" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2006-03-25T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2006-03-25T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2006-10-28T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2006-10-28T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2007" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2007-03-24T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2007-03-24T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2007-10-27T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2007-10-27T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2008" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2008-03-29T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2008-03-29T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2008-10-25T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2008-10-25T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2009" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2009-03-28T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2009-03-28T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2009-10-24T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2009-10-24T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2010" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2010-03-27T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2010-03-27T18:00:00+00:00", "03:00:00", "IRKST", -540], + ["2010-10-30T17:59:59+00:00", "02:59:59", "IRKST", -540], + ["2010-10-30T18:00:00+00:00", "02:00:00", "IRKT", -480] + ]), + + "2011" : helpers.makeTestYear("Asia/Irkutsk", [ + ["2011-03-26T17:59:59+00:00", "01:59:59", "IRKT", -480], + ["2011-03-26T18:00:00+00:00", "03:00:00", "IRKT", -540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/jakarta.js b/tests/zones/asia/jakarta.js new file mode 100644 index 00000000..e9d7380b --- /dev/null +++ b/tests/zones/asia/jakarta.js @@ -0,0 +1,40 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Jakarta"] = { + "1923" : helpers.makeTestYear("Asia/Jakarta", [ + ["1923-12-31T16:39:59+00:00", "23:47:11", "BMT", -25632 / 60], + ["1923-12-31T16:40:00+00:00", "00:00:00", "JAVT", -440] + ]), + + "1932" : helpers.makeTestYear("Asia/Jakarta", [ + ["1932-10-31T16:39:59+00:00", "23:59:59", "JAVT", -440], + ["1932-10-31T16:40:00+00:00", "00:10:00", "WIB", -450] + ]), + + "1942" : helpers.makeTestYear("Asia/Jakarta", [ + ["1942-03-22T16:29:59+00:00", "23:59:59", "WIB", -450], + ["1942-03-22T16:30:00+00:00", "01:30:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Jakarta", [ + ["1945-09-22T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-09-22T15:00:00+00:00", "22:30:00", "WIB", -450] + ]), + + "1948" : helpers.makeTestYear("Asia/Jakarta", [ + ["1948-04-30T16:29:59+00:00", "23:59:59", "WIB", -450], + ["1948-04-30T16:30:00+00:00", "00:30:00", "WIB", -480] + ]), + + "1950" : helpers.makeTestYear("Asia/Jakarta", [ + ["1950-04-30T15:59:59+00:00", "23:59:59", "WIB", -480], + ["1950-04-30T16:00:00+00:00", "23:30:00", "WIB", -450] + ]), + + "1963" : helpers.makeTestYear("Asia/Jakarta", [ + ["1963-12-31T16:29:59+00:00", "23:59:59", "WIB", -450], + ["1963-12-31T16:30:00+00:00", "23:30:00", "WIB", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/jayapura.js b/tests/zones/asia/jayapura.js new file mode 100644 index 00000000..e4bb2cdf --- /dev/null +++ b/tests/zones/asia/jayapura.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Jayapura"] = { + "1932" : helpers.makeTestYear("Asia/Jayapura", [ + ["1932-10-31T14:37:11+00:00", "23:59:59", "LMT", -33768 / 60], + ["1932-10-31T14:37:12+00:00", "23:37:12", "WIT", -540] + ]), + + "1944" : helpers.makeTestYear("Asia/Jayapura", [ + ["1944-08-31T14:59:59+00:00", "23:59:59", "WIT", -540], + ["1944-08-31T15:00:00+00:00", "00:30:00", "CST", -570] + ]), + + "1963" : helpers.makeTestYear("Asia/Jayapura", [ + ["1963-12-31T14:29:59+00:00", "23:59:59", "CST", -570], + ["1963-12-31T14:30:00+00:00", "23:30:00", "WIT", -540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/jerusalem.js b/tests/zones/asia/jerusalem.js new file mode 100644 index 00000000..54b8e2dc --- /dev/null +++ b/tests/zones/asia/jerusalem.js @@ -0,0 +1,505 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Jerusalem"] = { + "1917" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1917-12-31T21:39:19+00:00", "23:59:59", "JMT", -8440 / 60], + ["1917-12-31T21:39:20+00:00", "23:39:20", "IST", -120] + ]), + + "1940" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1940-05-31T21:59:59+00:00", "23:59:59", "IST", -120], + ["1940-05-31T22:00:00+00:00", "01:00:00", "IDT", -180] + ]), + + "1942" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1942-10-31T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1942-10-31T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1943" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1943-03-31T23:59:59+00:00", "01:59:59", "IST", -120], + ["1943-04-01T00:00:00+00:00", "03:00:00", "IDT", -180], + ["1943-10-31T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1943-10-31T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1944" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1944-03-31T21:59:59+00:00", "23:59:59", "IST", -120], + ["1944-03-31T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1944-10-31T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1944-10-31T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1945" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1945-04-15T21:59:59+00:00", "23:59:59", "IST", -120], + ["1945-04-15T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1945-10-31T22:59:59+00:00", "01:59:59", "IDT", -180], + ["1945-10-31T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "1946" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1946-04-15T23:59:59+00:00", "01:59:59", "IST", -120], + ["1946-04-16T00:00:00+00:00", "03:00:00", "IDT", -180], + ["1946-10-31T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1946-10-31T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1948" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1948-05-22T21:59:59+00:00", "23:59:59", "IST", -120], + ["1948-05-22T22:00:00+00:00", "02:00:00", "IDDT", -240], + ["1948-08-31T19:59:59+00:00", "23:59:59", "IDDT", -240], + ["1948-08-31T20:00:00+00:00", "23:00:00", "IDT", -180], + ["1948-10-31T22:59:59+00:00", "01:59:59", "IDT", -180], + ["1948-10-31T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "1949" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1949-04-30T21:59:59+00:00", "23:59:59", "IST", -120], + ["1949-04-30T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1949-10-31T22:59:59+00:00", "01:59:59", "IDT", -180], + ["1949-10-31T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "1950" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1950-04-15T21:59:59+00:00", "23:59:59", "IST", -120], + ["1950-04-15T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1950-09-14T23:59:59+00:00", "02:59:59", "IDT", -180], + ["1950-09-15T00:00:00+00:00", "02:00:00", "IST", -120] + ]), + + "1951" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1951-03-31T21:59:59+00:00", "23:59:59", "IST", -120], + ["1951-03-31T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1951-11-10T23:59:59+00:00", "02:59:59", "IDT", -180], + ["1951-11-11T00:00:00+00:00", "02:00:00", "IST", -120] + ]), + + "1952" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1952-04-19T23:59:59+00:00", "01:59:59", "IST", -120], + ["1952-04-20T00:00:00+00:00", "03:00:00", "IDT", -180], + ["1952-10-18T23:59:59+00:00", "02:59:59", "IDT", -180], + ["1952-10-19T00:00:00+00:00", "02:00:00", "IST", -120] + ]), + + "1953" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1953-04-11T23:59:59+00:00", "01:59:59", "IST", -120], + ["1953-04-12T00:00:00+00:00", "03:00:00", "IDT", -180], + ["1953-09-12T23:59:59+00:00", "02:59:59", "IDT", -180], + ["1953-09-13T00:00:00+00:00", "02:00:00", "IST", -120] + ]), + + "1954" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1954-06-12T21:59:59+00:00", "23:59:59", "IST", -120], + ["1954-06-12T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1954-09-11T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1954-09-11T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1955" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1955-06-10T23:59:59+00:00", "01:59:59", "IST", -120], + ["1955-06-11T00:00:00+00:00", "03:00:00", "IDT", -180], + ["1955-09-10T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1955-09-10T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1956" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1956-06-02T21:59:59+00:00", "23:59:59", "IST", -120], + ["1956-06-02T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1956-09-29T23:59:59+00:00", "02:59:59", "IDT", -180], + ["1956-09-30T00:00:00+00:00", "02:00:00", "IST", -120] + ]), + + "1957" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1957-04-28T23:59:59+00:00", "01:59:59", "IST", -120], + ["1957-04-29T00:00:00+00:00", "03:00:00", "IDT", -180], + ["1957-09-21T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1957-09-21T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1974" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1974-07-06T21:59:59+00:00", "23:59:59", "IST", -120], + ["1974-07-06T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1974-10-12T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1974-10-12T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1975" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1975-04-19T21:59:59+00:00", "23:59:59", "IST", -120], + ["1975-04-19T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1975-08-30T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1975-08-30T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1985" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1985-04-13T21:59:59+00:00", "23:59:59", "IST", -120], + ["1985-04-13T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1985-09-14T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1985-09-14T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1986" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1986-05-17T21:59:59+00:00", "23:59:59", "IST", -120], + ["1986-05-17T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1986-09-06T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1986-09-06T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1987" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1987-04-14T21:59:59+00:00", "23:59:59", "IST", -120], + ["1987-04-14T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1987-09-12T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1987-09-12T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1988" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1988-04-09T21:59:59+00:00", "23:59:59", "IST", -120], + ["1988-04-09T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1988-09-03T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1988-09-03T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1989" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1989-04-29T21:59:59+00:00", "23:59:59", "IST", -120], + ["1989-04-29T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1989-09-02T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1989-09-02T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1990" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1990-03-24T21:59:59+00:00", "23:59:59", "IST", -120], + ["1990-03-24T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1990-08-25T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1990-08-25T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1991" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1991-03-23T21:59:59+00:00", "23:59:59", "IST", -120], + ["1991-03-23T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1991-08-31T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1991-08-31T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1992" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "IST", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1992-09-05T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1992-09-05T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1993" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1993-04-01T21:59:59+00:00", "23:59:59", "IST", -120], + ["1993-04-01T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1993-09-04T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1993-09-04T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1994" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1994-03-31T21:59:59+00:00", "23:59:59", "IST", -120], + ["1994-03-31T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1994-08-27T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1994-08-27T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1995" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1995-03-30T21:59:59+00:00", "23:59:59", "IST", -120], + ["1995-03-30T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1995-09-02T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1995-09-02T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1996" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1996-03-14T21:59:59+00:00", "23:59:59", "IST", -120], + ["1996-03-14T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1996-09-15T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1996-09-15T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1997" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1997-03-20T21:59:59+00:00", "23:59:59", "IST", -120], + ["1997-03-20T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1997-09-13T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1997-09-13T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1998" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1998-03-19T21:59:59+00:00", "23:59:59", "IST", -120], + ["1998-03-19T22:00:00+00:00", "01:00:00", "IDT", -180], + ["1998-09-05T20:59:59+00:00", "23:59:59", "IDT", -180], + ["1998-09-05T21:00:00+00:00", "23:00:00", "IST", -120] + ]), + + "1999" : helpers.makeTestYear("Asia/Jerusalem", [ + ["1999-04-01T23:59:59+00:00", "01:59:59", "IST", -120], + ["1999-04-02T00:00:00+00:00", "03:00:00", "IDT", -180], + ["1999-09-02T22:59:59+00:00", "01:59:59", "IDT", -180], + ["1999-09-02T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2000" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2000-04-13T23:59:59+00:00", "01:59:59", "IST", -120], + ["2000-04-14T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2000-10-05T21:59:59+00:00", "00:59:59", "IDT", -180], + ["2000-10-05T22:00:00+00:00", "00:00:00", "IST", -120] + ]), + + "2001" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2001-04-08T22:59:59+00:00", "00:59:59", "IST", -120], + ["2001-04-08T23:00:00+00:00", "02:00:00", "IDT", -180], + ["2001-09-23T21:59:59+00:00", "00:59:59", "IDT", -180], + ["2001-09-23T22:00:00+00:00", "00:00:00", "IST", -120] + ]), + + "2002" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2002-03-28T22:59:59+00:00", "00:59:59", "IST", -120], + ["2002-03-28T23:00:00+00:00", "02:00:00", "IDT", -180], + ["2002-10-06T21:59:59+00:00", "00:59:59", "IDT", -180], + ["2002-10-06T22:00:00+00:00", "00:00:00", "IST", -120] + ]), + + "2003" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2003-03-27T22:59:59+00:00", "00:59:59", "IST", -120], + ["2003-03-27T23:00:00+00:00", "02:00:00", "IDT", -180], + ["2003-10-02T21:59:59+00:00", "00:59:59", "IDT", -180], + ["2003-10-02T22:00:00+00:00", "00:00:00", "IST", -120] + ]), + + "2004" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2004-04-06T22:59:59+00:00", "00:59:59", "IST", -120], + ["2004-04-06T23:00:00+00:00", "02:00:00", "IDT", -180], + ["2004-09-21T21:59:59+00:00", "00:59:59", "IDT", -180], + ["2004-09-21T22:00:00+00:00", "00:00:00", "IST", -120] + ]), + + "2005" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2005-03-31T23:59:59+00:00", "01:59:59", "IST", -120], + ["2005-04-01T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2005-10-08T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2005-10-08T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2006" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2006-03-30T23:59:59+00:00", "01:59:59", "IST", -120], + ["2006-03-31T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2006-09-30T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2006-09-30T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2007" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2007-03-29T23:59:59+00:00", "01:59:59", "IST", -120], + ["2007-03-30T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2007-09-15T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2007-09-15T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2008" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2008-03-27T23:59:59+00:00", "01:59:59", "IST", -120], + ["2008-03-28T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2008-10-04T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2008-10-04T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2009" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2009-03-26T23:59:59+00:00", "01:59:59", "IST", -120], + ["2009-03-27T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2009-09-26T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2009-09-26T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2010" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2010-03-25T23:59:59+00:00", "01:59:59", "IST", -120], + ["2010-03-26T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2010-09-11T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2010-09-11T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2011" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2011-03-31T23:59:59+00:00", "01:59:59", "IST", -120], + ["2011-04-01T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2011-10-01T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2011-10-01T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2012" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2012-03-29T23:59:59+00:00", "01:59:59", "IST", -120], + ["2012-03-30T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2012-09-22T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2012-09-22T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2013" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2013-03-28T23:59:59+00:00", "01:59:59", "IST", -120], + ["2013-03-29T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2013-10-26T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2013-10-26T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2014" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2014-03-27T23:59:59+00:00", "01:59:59", "IST", -120], + ["2014-03-28T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2014-10-25T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2014-10-25T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2015" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2015-03-26T23:59:59+00:00", "01:59:59", "IST", -120], + ["2015-03-27T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2015-10-24T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2015-10-24T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2016" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2016-03-24T23:59:59+00:00", "01:59:59", "IST", -120], + ["2016-03-25T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2016-10-29T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2016-10-29T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2017" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2017-03-23T23:59:59+00:00", "01:59:59", "IST", -120], + ["2017-03-24T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2017-10-28T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2017-10-28T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2018" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2018-03-22T23:59:59+00:00", "01:59:59", "IST", -120], + ["2018-03-23T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2018-10-27T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2018-10-27T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2019" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2019-03-28T23:59:59+00:00", "01:59:59", "IST", -120], + ["2019-03-29T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2019-10-26T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2019-10-26T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2020" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2020-03-26T23:59:59+00:00", "01:59:59", "IST", -120], + ["2020-03-27T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2020-10-24T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2020-10-24T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2021" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2021-03-25T23:59:59+00:00", "01:59:59", "IST", -120], + ["2021-03-26T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2021-10-30T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2021-10-30T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2022" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2022-03-24T23:59:59+00:00", "01:59:59", "IST", -120], + ["2022-03-25T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2022-10-29T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2022-10-29T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2023" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2023-03-23T23:59:59+00:00", "01:59:59", "IST", -120], + ["2023-03-24T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2023-10-28T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2023-10-28T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2024" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2024-03-28T23:59:59+00:00", "01:59:59", "IST", -120], + ["2024-03-29T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2024-10-26T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2024-10-26T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2025" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2025-03-27T23:59:59+00:00", "01:59:59", "IST", -120], + ["2025-03-28T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2025-10-25T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2025-10-25T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2026" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2026-03-26T23:59:59+00:00", "01:59:59", "IST", -120], + ["2026-03-27T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2026-10-24T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2026-10-24T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2027" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2027-03-25T23:59:59+00:00", "01:59:59", "IST", -120], + ["2027-03-26T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2027-10-30T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2027-10-30T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2028" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2028-03-23T23:59:59+00:00", "01:59:59", "IST", -120], + ["2028-03-24T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2028-10-28T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2028-10-28T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2029" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2029-03-22T23:59:59+00:00", "01:59:59", "IST", -120], + ["2029-03-23T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2029-10-27T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2029-10-27T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2030" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2030-03-28T23:59:59+00:00", "01:59:59", "IST", -120], + ["2030-03-29T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2030-10-26T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2030-10-26T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2031" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2031-03-27T23:59:59+00:00", "01:59:59", "IST", -120], + ["2031-03-28T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2031-10-25T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2031-10-25T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2032" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2032-03-25T23:59:59+00:00", "01:59:59", "IST", -120], + ["2032-03-26T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2032-10-30T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2032-10-30T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2033" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2033-03-24T23:59:59+00:00", "01:59:59", "IST", -120], + ["2033-03-25T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2033-10-29T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2033-10-29T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2034" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2034-03-23T23:59:59+00:00", "01:59:59", "IST", -120], + ["2034-03-24T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2034-10-28T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2034-10-28T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2035" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2035-03-22T23:59:59+00:00", "01:59:59", "IST", -120], + ["2035-03-23T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2035-10-27T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2035-10-27T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2036" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2036-03-27T23:59:59+00:00", "01:59:59", "IST", -120], + ["2036-03-28T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2036-10-25T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2036-10-25T23:00:00+00:00", "01:00:00", "IST", -120] + ]), + + "2037" : helpers.makeTestYear("Asia/Jerusalem", [ + ["2037-03-26T23:59:59+00:00", "01:59:59", "IST", -120], + ["2037-03-27T00:00:00+00:00", "03:00:00", "IDT", -180], + ["2037-10-24T22:59:59+00:00", "01:59:59", "IDT", -180], + ["2037-10-24T23:00:00+00:00", "01:00:00", "IST", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/kabul.js b/tests/zones/asia/kabul.js new file mode 100644 index 00000000..85538f3d --- /dev/null +++ b/tests/zones/asia/kabul.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Kabul"] = { + "1944" : helpers.makeTestYear("Asia/Kabul", [ + ["1944-12-31T19:59:59+00:00", "23:59:59", "AFT", -240], + ["1944-12-31T20:00:00+00:00", "00:30:00", "AFT", -270] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/kamchatka.js b/tests/zones/asia/kamchatka.js new file mode 100644 index 00000000..471c42a1 --- /dev/null +++ b/tests/zones/asia/kamchatka.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Kamchatka"] = { + "1922" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1922-11-09T13:25:23+00:00", "23:59:59", "LMT", -38076 / 60], + ["1922-11-09T13:25:24+00:00", "00:25:24", "PETT", -660] + ]), + + "1930" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1930-06-20T12:59:59+00:00", "23:59:59", "PETT", -660], + ["1930-06-20T13:00:00+00:00", "01:00:00", "PETT", -720] + ]), + + "1981" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1981-03-31T11:59:59+00:00", "23:59:59", "PETT", -720], + ["1981-03-31T12:00:00+00:00", "01:00:00", "PETST", -780], + ["1981-09-30T10:59:59+00:00", "23:59:59", "PETST", -780], + ["1981-09-30T11:00:00+00:00", "23:00:00", "PETT", -720] + ]), + + "1982" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1982-03-31T11:59:59+00:00", "23:59:59", "PETT", -720], + ["1982-03-31T12:00:00+00:00", "01:00:00", "PETST", -780], + ["1982-09-30T10:59:59+00:00", "23:59:59", "PETST", -780], + ["1982-09-30T11:00:00+00:00", "23:00:00", "PETT", -720] + ]), + + "1983" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1983-03-31T11:59:59+00:00", "23:59:59", "PETT", -720], + ["1983-03-31T12:00:00+00:00", "01:00:00", "PETST", -780], + ["1983-09-30T10:59:59+00:00", "23:59:59", "PETST", -780], + ["1983-09-30T11:00:00+00:00", "23:00:00", "PETT", -720] + ]), + + "1984" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1984-03-31T11:59:59+00:00", "23:59:59", "PETT", -720], + ["1984-03-31T12:00:00+00:00", "01:00:00", "PETST", -780], + ["1984-09-29T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1984-09-29T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1985" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1985-03-30T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1985-03-30T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1985-09-28T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1985-09-28T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1986" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1986-03-29T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1986-03-29T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1986-09-27T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1986-09-27T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1987" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1987-03-28T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1987-03-28T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1987-09-26T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1987-09-26T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1988" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1988-03-26T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1988-03-26T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1988-09-24T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1988-09-24T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1989" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1989-03-25T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1989-03-25T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1989-09-23T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1989-09-23T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1990" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1990-03-24T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1990-03-24T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1990-09-29T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1990-09-29T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1991" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1991-03-30T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1991-03-30T14:00:00+00:00", "02:00:00", "PETST", -720], + ["1991-09-28T14:59:59+00:00", "02:59:59", "PETST", -720], + ["1991-09-28T15:00:00+00:00", "02:00:00", "PETT", -660] + ]), + + "1992" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1992-01-18T14:59:59+00:00", "01:59:59", "PETT", -660], + ["1992-01-18T15:00:00+00:00", "03:00:00", "PETT", -720], + ["1992-03-28T10:59:59+00:00", "22:59:59", "PETT", -720], + ["1992-03-28T11:00:00+00:00", "00:00:00", "PETST", -780], + ["1992-09-26T09:59:59+00:00", "22:59:59", "PETST", -780], + ["1992-09-26T10:00:00+00:00", "22:00:00", "PETT", -720] + ]), + + "1993" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1993-03-27T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1993-03-27T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1993-09-25T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1993-09-25T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1994" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1994-03-26T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1994-03-26T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1994-09-24T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1994-09-24T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1995" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1995-03-25T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1995-03-25T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1995-09-23T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1995-09-23T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1996" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1996-03-30T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1996-03-30T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1996-10-26T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1996-10-26T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1997" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1997-03-29T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1997-03-29T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1997-10-25T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1997-10-25T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1998" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1998-03-28T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1998-03-28T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1998-10-24T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1998-10-24T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "1999" : helpers.makeTestYear("Asia/Kamchatka", [ + ["1999-03-27T13:59:59+00:00", "01:59:59", "PETT", -720], + ["1999-03-27T14:00:00+00:00", "03:00:00", "PETST", -780], + ["1999-10-30T13:59:59+00:00", "02:59:59", "PETST", -780], + ["1999-10-30T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2000" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2000-03-25T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2000-03-25T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2000-10-28T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2000-10-28T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2001" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2001-03-24T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2001-03-24T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2001-10-27T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2001-10-27T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2002" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2002-03-30T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2002-03-30T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2002-10-26T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2002-10-26T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2003" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2003-03-29T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2003-03-29T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2003-10-25T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2003-10-25T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2004" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2004-03-27T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2004-03-27T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2004-10-30T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2004-10-30T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2005" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2005-03-26T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2005-03-26T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2005-10-29T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2005-10-29T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2006" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2006-03-25T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2006-03-25T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2006-10-28T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2006-10-28T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2007" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2007-03-24T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2007-03-24T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2007-10-27T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2007-10-27T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2008" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2008-03-29T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2008-03-29T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2008-10-25T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2008-10-25T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2009" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2009-03-28T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2009-03-28T14:00:00+00:00", "03:00:00", "PETST", -780], + ["2009-10-24T13:59:59+00:00", "02:59:59", "PETST", -780], + ["2009-10-24T14:00:00+00:00", "02:00:00", "PETT", -720] + ]), + + "2010" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2010-03-27T13:59:59+00:00", "01:59:59", "PETT", -720], + ["2010-03-27T14:00:00+00:00", "02:00:00", "PETST", -720], + ["2010-10-30T14:59:59+00:00", "02:59:59", "PETST", -720], + ["2010-10-30T15:00:00+00:00", "02:00:00", "PETT", -660] + ]), + + "2011" : helpers.makeTestYear("Asia/Kamchatka", [ + ["2011-03-26T14:59:59+00:00", "01:59:59", "PETT", -660], + ["2011-03-26T15:00:00+00:00", "03:00:00", "PETT", -720] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/karachi.js b/tests/zones/asia/karachi.js new file mode 100644 index 00000000..c9eb7f4b --- /dev/null +++ b/tests/zones/asia/karachi.js @@ -0,0 +1,51 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Karachi"] = { + "1906" : helpers.makeTestYear("Asia/Karachi", [ + ["1906-12-31T19:31:47+00:00", "23:59:59", "LMT", -16092 / 60], + ["1906-12-31T19:31:48+00:00", "01:01:48", "IST", -330] + ]), + + "1942" : helpers.makeTestYear("Asia/Karachi", [ + ["1942-08-31T18:29:59+00:00", "23:59:59", "IST", -330], + ["1942-08-31T18:30:00+00:00", "01:00:00", "IST", -390] + ]), + + "1945" : helpers.makeTestYear("Asia/Karachi", [ + ["1945-10-14T17:29:59+00:00", "23:59:59", "IST", -390], + ["1945-10-14T17:30:00+00:00", "23:00:00", "IST", -330] + ]), + + "1951" : helpers.makeTestYear("Asia/Karachi", [ + ["1951-09-29T18:29:59+00:00", "23:59:59", "IST", -330], + ["1951-09-29T18:30:00+00:00", "23:30:00", "KART", -300] + ]), + + "1971" : helpers.makeTestYear("Asia/Karachi", [ + ["1971-03-25T18:59:59+00:00", "23:59:59", "KART", -300], + ["1971-03-25T19:00:00+00:00", "00:00:00", "PKT", -300] + ]), + + "2002" : helpers.makeTestYear("Asia/Karachi", [ + ["2002-04-06T19:00:59+00:00", "00:00:59", "PKT", -300], + ["2002-04-06T19:01:00+00:00", "01:01:00", "PKST", -360], + ["2002-10-05T18:00:59+00:00", "00:00:59", "PKST", -360], + ["2002-10-05T18:01:00+00:00", "23:01:00", "PKT", -300] + ]), + + "2008" : helpers.makeTestYear("Asia/Karachi", [ + ["2008-05-31T18:59:59+00:00", "23:59:59", "PKT", -300], + ["2008-05-31T19:00:00+00:00", "01:00:00", "PKST", -360], + ["2008-10-31T17:59:59+00:00", "23:59:59", "PKST", -360], + ["2008-10-31T18:00:00+00:00", "23:00:00", "PKT", -300] + ]), + + "2009" : helpers.makeTestYear("Asia/Karachi", [ + ["2009-04-14T18:59:59+00:00", "23:59:59", "PKT", -300], + ["2009-04-14T19:00:00+00:00", "01:00:00", "PKST", -360], + ["2009-10-31T17:59:59+00:00", "23:59:59", "PKST", -360], + ["2009-10-31T18:00:00+00:00", "23:00:00", "PKT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/kashgar.js b/tests/zones/asia/kashgar.js new file mode 100644 index 00000000..7e7dac20 --- /dev/null +++ b/tests/zones/asia/kashgar.js @@ -0,0 +1,62 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Kashgar"] = { + "1927" : helpers.makeTestYear("Asia/Kashgar", [ + ["1927-12-31T18:56:03+00:00", "23:59:59", "LMT", -18236 / 60], + ["1927-12-31T18:56:04+00:00", "00:26:04", "KAST", -330] + ]), + + "1939" : helpers.makeTestYear("Asia/Kashgar", [ + ["1939-12-31T18:29:59+00:00", "23:59:59", "KAST", -330], + ["1939-12-31T18:30:00+00:00", "23:30:00", "KAST", -300] + ]), + + "1980" : helpers.makeTestYear("Asia/Kashgar", [ + ["1980-04-30T18:59:59+00:00", "23:59:59", "KAST", -300], + ["1980-04-30T19:00:00+00:00", "03:00:00", "CST", -480] + ]), + + "1986" : helpers.makeTestYear("Asia/Kashgar", [ + ["1986-05-03T15:59:59+00:00", "23:59:59", "CST", -480], + ["1986-05-03T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1986-09-13T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1986-09-13T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1987" : helpers.makeTestYear("Asia/Kashgar", [ + ["1987-04-11T15:59:59+00:00", "23:59:59", "CST", -480], + ["1987-04-11T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1987-09-12T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1987-09-12T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1988" : helpers.makeTestYear("Asia/Kashgar", [ + ["1988-04-09T15:59:59+00:00", "23:59:59", "CST", -480], + ["1988-04-09T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1988-09-10T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1988-09-10T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1989" : helpers.makeTestYear("Asia/Kashgar", [ + ["1989-04-15T15:59:59+00:00", "23:59:59", "CST", -480], + ["1989-04-15T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1989-09-16T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1989-09-16T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1990" : helpers.makeTestYear("Asia/Kashgar", [ + ["1990-04-14T15:59:59+00:00", "23:59:59", "CST", -480], + ["1990-04-14T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1990-09-15T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1990-09-15T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1991" : helpers.makeTestYear("Asia/Kashgar", [ + ["1991-04-13T15:59:59+00:00", "23:59:59", "CST", -480], + ["1991-04-13T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1991-09-14T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1991-09-14T15:00:00+00:00", "23:00:00", "CST", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/kathmandu.js b/tests/zones/asia/kathmandu.js new file mode 100644 index 00000000..c00748fc --- /dev/null +++ b/tests/zones/asia/kathmandu.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Kathmandu"] = { + "1919" : helpers.makeTestYear("Asia/Kathmandu", [ + ["1919-12-31T18:18:43+00:00", "23:59:59", "LMT", -20476 / 60], + ["1919-12-31T18:18:44+00:00", "23:48:44", "IST", -330] + ]), + + "1985" : helpers.makeTestYear("Asia/Kathmandu", [ + ["1985-12-31T18:29:59+00:00", "23:59:59", "IST", -330], + ["1985-12-31T18:30:00+00:00", "00:15:00", "NPT", -345] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/khandyga.js b/tests/zones/asia/khandyga.js new file mode 100644 index 00000000..7cb931d8 --- /dev/null +++ b/tests/zones/asia/khandyga.js @@ -0,0 +1,236 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Khandyga"] = { + "1919" : helpers.makeTestYear("Asia/Khandyga", [ + ["1919-12-14T14:57:46+00:00", "23:59:59", "LMT", -32533 / 60], + ["1919-12-14T14:57:47+00:00", "22:57:47", "YAKT", -480] + ]), + + "1930" : helpers.makeTestYear("Asia/Khandyga", [ + ["1930-06-20T15:59:59+00:00", "23:59:59", "YAKT", -480], + ["1930-06-20T16:00:00+00:00", "01:00:00", "YAKT", -540] + ]), + + "1981" : helpers.makeTestYear("Asia/Khandyga", [ + ["1981-03-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["1981-03-31T15:00:00+00:00", "01:00:00", "YAKST", -600], + ["1981-09-30T13:59:59+00:00", "23:59:59", "YAKST", -600], + ["1981-09-30T14:00:00+00:00", "23:00:00", "YAKT", -540] + ]), + + "1982" : helpers.makeTestYear("Asia/Khandyga", [ + ["1982-03-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["1982-03-31T15:00:00+00:00", "01:00:00", "YAKST", -600], + ["1982-09-30T13:59:59+00:00", "23:59:59", "YAKST", -600], + ["1982-09-30T14:00:00+00:00", "23:00:00", "YAKT", -540] + ]), + + "1983" : helpers.makeTestYear("Asia/Khandyga", [ + ["1983-03-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["1983-03-31T15:00:00+00:00", "01:00:00", "YAKST", -600], + ["1983-09-30T13:59:59+00:00", "23:59:59", "YAKST", -600], + ["1983-09-30T14:00:00+00:00", "23:00:00", "YAKT", -540] + ]), + + "1984" : helpers.makeTestYear("Asia/Khandyga", [ + ["1984-03-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["1984-03-31T15:00:00+00:00", "01:00:00", "YAKST", -600], + ["1984-09-29T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1984-09-29T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1985" : helpers.makeTestYear("Asia/Khandyga", [ + ["1985-03-30T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1985-03-30T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1985-09-28T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1985-09-28T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1986" : helpers.makeTestYear("Asia/Khandyga", [ + ["1986-03-29T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1986-03-29T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1986-09-27T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1986-09-27T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1987" : helpers.makeTestYear("Asia/Khandyga", [ + ["1987-03-28T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1987-03-28T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1987-09-26T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1987-09-26T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1988" : helpers.makeTestYear("Asia/Khandyga", [ + ["1988-03-26T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1988-03-26T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1988-09-24T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1988-09-24T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1989" : helpers.makeTestYear("Asia/Khandyga", [ + ["1989-03-25T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1989-03-25T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1989-09-23T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1989-09-23T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1990" : helpers.makeTestYear("Asia/Khandyga", [ + ["1990-03-24T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1990-03-24T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1990-09-29T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1990-09-29T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1991" : helpers.makeTestYear("Asia/Khandyga", [ + ["1991-03-30T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1991-03-30T17:00:00+00:00", "02:00:00", "YAKST", -540], + ["1991-09-28T17:59:59+00:00", "02:59:59", "YAKST", -540], + ["1991-09-28T18:00:00+00:00", "02:00:00", "YAKT", -480] + ]), + + "1992" : helpers.makeTestYear("Asia/Khandyga", [ + ["1992-01-18T17:59:59+00:00", "01:59:59", "YAKT", -480], + ["1992-01-18T18:00:00+00:00", "03:00:00", "YAKT", -540], + ["1992-03-28T13:59:59+00:00", "22:59:59", "YAKT", -540], + ["1992-03-28T14:00:00+00:00", "00:00:00", "YAKST", -600], + ["1992-09-26T12:59:59+00:00", "22:59:59", "YAKST", -600], + ["1992-09-26T13:00:00+00:00", "22:00:00", "YAKT", -540] + ]), + + "1993" : helpers.makeTestYear("Asia/Khandyga", [ + ["1993-03-27T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1993-03-27T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1993-09-25T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1993-09-25T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1994" : helpers.makeTestYear("Asia/Khandyga", [ + ["1994-03-26T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1994-03-26T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1994-09-24T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1994-09-24T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1995" : helpers.makeTestYear("Asia/Khandyga", [ + ["1995-03-25T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1995-03-25T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1995-09-23T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1995-09-23T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1996" : helpers.makeTestYear("Asia/Khandyga", [ + ["1996-03-30T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1996-03-30T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1996-10-26T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1996-10-26T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1997" : helpers.makeTestYear("Asia/Khandyga", [ + ["1997-03-29T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1997-03-29T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1997-10-25T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1997-10-25T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1998" : helpers.makeTestYear("Asia/Khandyga", [ + ["1998-03-28T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1998-03-28T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1998-10-24T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1998-10-24T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1999" : helpers.makeTestYear("Asia/Khandyga", [ + ["1999-03-27T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1999-03-27T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1999-10-30T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1999-10-30T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2000" : helpers.makeTestYear("Asia/Khandyga", [ + ["2000-03-25T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2000-03-25T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2000-10-28T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2000-10-28T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2001" : helpers.makeTestYear("Asia/Khandyga", [ + ["2001-03-24T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2001-03-24T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2001-10-27T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2001-10-27T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2002" : helpers.makeTestYear("Asia/Khandyga", [ + ["2002-03-30T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2002-03-30T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2002-10-26T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2002-10-26T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2003" : helpers.makeTestYear("Asia/Khandyga", [ + ["2003-03-29T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2003-03-29T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2003-10-25T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2003-10-25T17:00:00+00:00", "02:00:00", "YAKT", -540], + ["2003-12-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["2003-12-31T15:00:00+00:00", "01:00:00", "VLAT", -600] + ]), + + "2004" : helpers.makeTestYear("Asia/Khandyga", [ + ["2004-03-27T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2004-03-27T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2004-10-30T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2004-10-30T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2005" : helpers.makeTestYear("Asia/Khandyga", [ + ["2005-03-26T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2005-03-26T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2005-10-29T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2005-10-29T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2006" : helpers.makeTestYear("Asia/Khandyga", [ + ["2006-03-25T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2006-03-25T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2006-10-28T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2006-10-28T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2007" : helpers.makeTestYear("Asia/Khandyga", [ + ["2007-03-24T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2007-03-24T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2007-10-27T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2007-10-27T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2008" : helpers.makeTestYear("Asia/Khandyga", [ + ["2008-03-29T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2008-03-29T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2008-10-25T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2008-10-25T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2009" : helpers.makeTestYear("Asia/Khandyga", [ + ["2009-03-28T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2009-03-28T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2009-10-24T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2009-10-24T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2010" : helpers.makeTestYear("Asia/Khandyga", [ + ["2010-03-27T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2010-03-27T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2010-10-30T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2010-10-30T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2011" : helpers.makeTestYear("Asia/Khandyga", [ + ["2011-03-26T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2011-03-26T16:00:00+00:00", "03:00:00", "VLAT", -660], + ["2011-09-12T12:59:59+00:00", "23:59:59", "VLAT", -660], + ["2011-09-12T13:00:00+00:00", "23:00:00", "YAKT", -600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/kolkata.js b/tests/zones/asia/kolkata.js new file mode 100644 index 00000000..8ddf407f --- /dev/null +++ b/tests/zones/asia/kolkata.js @@ -0,0 +1,22 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Kolkata"] = { + "1941" : helpers.makeTestYear("Asia/Kolkata", [ + ["1941-09-30T18:06:39+00:00", "23:59:59", "HMT", -21200 / 60], + ["1941-09-30T18:06:40+00:00", "00:36:40", "BURT", -390] + ]), + + "1942" : helpers.makeTestYear("Asia/Kolkata", [ + ["1942-05-14T17:29:59+00:00", "23:59:59", "BURT", -390], + ["1942-05-14T17:30:00+00:00", "23:00:00", "IST", -330], + ["1942-08-31T18:29:59+00:00", "23:59:59", "IST", -330], + ["1942-08-31T18:30:00+00:00", "01:00:00", "IST", -390] + ]), + + "1945" : helpers.makeTestYear("Asia/Kolkata", [ + ["1945-10-14T17:29:59+00:00", "23:59:59", "IST", -390], + ["1945-10-14T17:30:00+00:00", "23:00:00", "IST", -330] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/krasnoyarsk.js b/tests/zones/asia/krasnoyarsk.js new file mode 100644 index 00000000..d14bba9e --- /dev/null +++ b/tests/zones/asia/krasnoyarsk.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Krasnoyarsk"] = { + "1920" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1920-01-05T17:48:39+00:00", "23:59:59", "LMT", -22280 / 60], + ["1920-01-05T17:48:40+00:00", "23:48:40", "KRAT", -360] + ]), + + "1930" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1930-06-20T17:59:59+00:00", "23:59:59", "KRAT", -360], + ["1930-06-20T18:00:00+00:00", "01:00:00", "KRAT", -420] + ]), + + "1981" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1981-03-31T16:59:59+00:00", "23:59:59", "KRAT", -420], + ["1981-03-31T17:00:00+00:00", "01:00:00", "KRAST", -480], + ["1981-09-30T15:59:59+00:00", "23:59:59", "KRAST", -480], + ["1981-09-30T16:00:00+00:00", "23:00:00", "KRAT", -420] + ]), + + "1982" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1982-03-31T16:59:59+00:00", "23:59:59", "KRAT", -420], + ["1982-03-31T17:00:00+00:00", "01:00:00", "KRAST", -480], + ["1982-09-30T15:59:59+00:00", "23:59:59", "KRAST", -480], + ["1982-09-30T16:00:00+00:00", "23:00:00", "KRAT", -420] + ]), + + "1983" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1983-03-31T16:59:59+00:00", "23:59:59", "KRAT", -420], + ["1983-03-31T17:00:00+00:00", "01:00:00", "KRAST", -480], + ["1983-09-30T15:59:59+00:00", "23:59:59", "KRAST", -480], + ["1983-09-30T16:00:00+00:00", "23:00:00", "KRAT", -420] + ]), + + "1984" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1984-03-31T16:59:59+00:00", "23:59:59", "KRAT", -420], + ["1984-03-31T17:00:00+00:00", "01:00:00", "KRAST", -480], + ["1984-09-29T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1984-09-29T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1985" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1985-03-30T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1985-03-30T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1985-09-28T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1985-09-28T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1986" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1986-03-29T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1986-03-29T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1986-09-27T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1986-09-27T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1987" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1987-03-28T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1987-03-28T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1987-09-26T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1987-09-26T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1988" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1988-03-26T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1988-03-26T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1988-09-24T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1988-09-24T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1989" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1989-03-25T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1989-03-25T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1989-09-23T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1989-09-23T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1990" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1990-03-24T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1990-03-24T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1990-09-29T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1990-09-29T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1991" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1991-03-30T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1991-03-30T19:00:00+00:00", "02:00:00", "KRAST", -420], + ["1991-09-28T19:59:59+00:00", "02:59:59", "KRAST", -420], + ["1991-09-28T20:00:00+00:00", "02:00:00", "KRAT", -360] + ]), + + "1992" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1992-01-18T19:59:59+00:00", "01:59:59", "KRAT", -360], + ["1992-01-18T20:00:00+00:00", "03:00:00", "KRAT", -420], + ["1992-03-28T15:59:59+00:00", "22:59:59", "KRAT", -420], + ["1992-03-28T16:00:00+00:00", "00:00:00", "KRAST", -480], + ["1992-09-26T14:59:59+00:00", "22:59:59", "KRAST", -480], + ["1992-09-26T15:00:00+00:00", "22:00:00", "KRAT", -420] + ]), + + "1993" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1993-03-27T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1993-03-27T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1993-09-25T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1993-09-25T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1994" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1994-03-26T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1994-03-26T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1994-09-24T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1994-09-24T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1995" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1995-03-25T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1995-03-25T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1995-09-23T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1995-09-23T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1996" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1996-03-30T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1996-03-30T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1996-10-26T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1996-10-26T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1997" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1997-03-29T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1997-03-29T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1997-10-25T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1997-10-25T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1998" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1998-03-28T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1998-03-28T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1998-10-24T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1998-10-24T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1999" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["1999-03-27T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1999-03-27T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1999-10-30T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1999-10-30T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2000" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2000-03-25T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2000-03-25T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2000-10-28T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2000-10-28T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2001" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2001-03-24T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2001-03-24T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2001-10-27T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2001-10-27T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2002" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2002-03-30T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2002-03-30T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2002-10-26T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2002-10-26T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2003" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2003-03-29T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2003-03-29T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2003-10-25T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2003-10-25T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2004" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2004-03-27T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2004-03-27T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2004-10-30T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2004-10-30T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2005" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2005-03-26T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2005-03-26T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2005-10-29T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2005-10-29T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2006" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2006-03-25T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2006-03-25T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2006-10-28T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2006-10-28T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2007" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2007-03-24T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2007-03-24T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2007-10-27T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2007-10-27T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2008" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2008-03-29T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2008-03-29T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2008-10-25T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2008-10-25T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2009" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2009-03-28T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2009-03-28T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2009-10-24T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2009-10-24T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2010" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2010-03-27T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2010-03-27T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2010-10-30T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2010-10-30T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2011" : helpers.makeTestYear("Asia/Krasnoyarsk", [ + ["2011-03-26T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2011-03-26T19:00:00+00:00", "03:00:00", "KRAT", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/kuala_lumpur.js b/tests/zones/asia/kuala_lumpur.js new file mode 100644 index 00000000..fbc48dc7 --- /dev/null +++ b/tests/zones/asia/kuala_lumpur.js @@ -0,0 +1,40 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Kuala_Lumpur"] = { + "1905" : helpers.makeTestYear("Asia/Kuala_Lumpur", [ + ["1905-05-31T17:04:34+00:00", "23:59:59", "SMT", -24925 / 60], + ["1905-05-31T17:04:35+00:00", "00:04:35", "MALT", -420] + ]), + + "1932" : helpers.makeTestYear("Asia/Kuala_Lumpur", [ + ["1932-12-31T16:59:59+00:00", "23:59:59", "MALT", -420], + ["1932-12-31T17:00:00+00:00", "00:20:00", "MALST", -440] + ]), + + "1935" : helpers.makeTestYear("Asia/Kuala_Lumpur", [ + ["1935-12-31T16:39:59+00:00", "23:59:59", "MALST", -440], + ["1935-12-31T16:40:00+00:00", "00:00:00", "MALT", -440] + ]), + + "1941" : helpers.makeTestYear("Asia/Kuala_Lumpur", [ + ["1941-08-31T16:39:59+00:00", "23:59:59", "MALT", -440], + ["1941-08-31T16:40:00+00:00", "00:10:00", "MALT", -450] + ]), + + "1942" : helpers.makeTestYear("Asia/Kuala_Lumpur", [ + ["1942-02-15T16:29:59+00:00", "23:59:59", "MALT", -450], + ["1942-02-15T16:30:00+00:00", "01:30:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Kuala_Lumpur", [ + ["1945-09-11T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-09-11T15:00:00+00:00", "22:30:00", "MALT", -450] + ]), + + "1981" : helpers.makeTestYear("Asia/Kuala_Lumpur", [ + ["1981-12-31T16:29:59+00:00", "23:59:59", "MALT", -450], + ["1981-12-31T16:30:00+00:00", "00:30:00", "MYT", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/kuching.js b/tests/zones/asia/kuching.js new file mode 100644 index 00000000..6460c94a --- /dev/null +++ b/tests/zones/asia/kuching.js @@ -0,0 +1,79 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Kuching"] = { + "1926" : helpers.makeTestYear("Asia/Kuching", [ + ["1926-02-28T16:38:39+00:00", "23:59:59", "LMT", -26480 / 60], + ["1926-02-28T16:38:40+00:00", "00:08:40", "BORT", -450] + ]), + + "1932" : helpers.makeTestYear("Asia/Kuching", [ + ["1932-12-31T16:29:59+00:00", "23:59:59", "BORT", -450], + ["1932-12-31T16:30:00+00:00", "00:30:00", "BORT", -480] + ]), + + "1935" : helpers.makeTestYear("Asia/Kuching", [ + ["1935-09-13T15:59:59+00:00", "23:59:59", "BORT", -480], + ["1935-09-13T16:00:00+00:00", "00:20:00", "BORTST", -500], + ["1935-12-13T15:39:59+00:00", "23:59:59", "BORTST", -500], + ["1935-12-13T15:40:00+00:00", "23:40:00", "BORT", -480] + ]), + + "1936" : helpers.makeTestYear("Asia/Kuching", [ + ["1936-09-13T15:59:59+00:00", "23:59:59", "BORT", -480], + ["1936-09-13T16:00:00+00:00", "00:20:00", "BORTST", -500], + ["1936-12-13T15:39:59+00:00", "23:59:59", "BORTST", -500], + ["1936-12-13T15:40:00+00:00", "23:40:00", "BORT", -480] + ]), + + "1937" : helpers.makeTestYear("Asia/Kuching", [ + ["1937-09-13T15:59:59+00:00", "23:59:59", "BORT", -480], + ["1937-09-13T16:00:00+00:00", "00:20:00", "BORTST", -500], + ["1937-12-13T15:39:59+00:00", "23:59:59", "BORTST", -500], + ["1937-12-13T15:40:00+00:00", "23:40:00", "BORT", -480] + ]), + + "1938" : helpers.makeTestYear("Asia/Kuching", [ + ["1938-09-13T15:59:59+00:00", "23:59:59", "BORT", -480], + ["1938-09-13T16:00:00+00:00", "00:20:00", "BORTST", -500], + ["1938-12-13T15:39:59+00:00", "23:59:59", "BORTST", -500], + ["1938-12-13T15:40:00+00:00", "23:40:00", "BORT", -480] + ]), + + "1939" : helpers.makeTestYear("Asia/Kuching", [ + ["1939-09-13T15:59:59+00:00", "23:59:59", "BORT", -480], + ["1939-09-13T16:00:00+00:00", "00:20:00", "BORTST", -500], + ["1939-12-13T15:39:59+00:00", "23:59:59", "BORTST", -500], + ["1939-12-13T15:40:00+00:00", "23:40:00", "BORT", -480] + ]), + + "1940" : helpers.makeTestYear("Asia/Kuching", [ + ["1940-09-13T15:59:59+00:00", "23:59:59", "BORT", -480], + ["1940-09-13T16:00:00+00:00", "00:20:00", "BORTST", -500], + ["1940-12-13T15:39:59+00:00", "23:59:59", "BORTST", -500], + ["1940-12-13T15:40:00+00:00", "23:40:00", "BORT", -480] + ]), + + "1941" : helpers.makeTestYear("Asia/Kuching", [ + ["1941-09-13T15:59:59+00:00", "23:59:59", "BORT", -480], + ["1941-09-13T16:00:00+00:00", "00:20:00", "BORTST", -500], + ["1941-12-13T15:39:59+00:00", "23:59:59", "BORTST", -500], + ["1941-12-13T15:40:00+00:00", "23:40:00", "BORT", -480] + ]), + + "1942" : helpers.makeTestYear("Asia/Kuching", [ + ["1942-02-15T15:59:59+00:00", "23:59:59", "BORT", -480], + ["1942-02-15T16:00:00+00:00", "01:00:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Kuching", [ + ["1945-09-11T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-09-11T15:00:00+00:00", "23:00:00", "BORT", -480] + ]), + + "1981" : helpers.makeTestYear("Asia/Kuching", [ + ["1981-12-31T15:59:59+00:00", "23:59:59", "BORT", -480], + ["1981-12-31T16:00:00+00:00", "00:00:00", "MYT", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/kuwait.js b/tests/zones/asia/kuwait.js new file mode 100644 index 00000000..1a5532e5 --- /dev/null +++ b/tests/zones/asia/kuwait.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Kuwait"] = { + "1949" : helpers.makeTestYear("Asia/Kuwait", [ + ["1949-12-31T20:48:03+00:00", "23:59:59", "LMT", -11516 / 60], + ["1949-12-31T20:48:04+00:00", "23:48:04", "AST", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/macau.js b/tests/zones/asia/macau.js new file mode 100644 index 00000000..1c9af78b --- /dev/null +++ b/tests/zones/asia/macau.js @@ -0,0 +1,155 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Macau"] = { + "1911" : helpers.makeTestYear("Asia/Macau", [ + ["1911-12-31T16:25:39+00:00", "23:59:59", "LMT", -27260 / 60], + ["1911-12-31T16:25:40+00:00", "00:25:40", "MOT", -480] + ]), + + "1961" : helpers.makeTestYear("Asia/Macau", [ + ["1961-03-18T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1961-03-18T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1961-11-04T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1961-11-04T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1962" : helpers.makeTestYear("Asia/Macau", [ + ["1962-03-17T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1962-03-17T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1962-11-03T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1962-11-03T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1963" : helpers.makeTestYear("Asia/Macau", [ + ["1963-03-16T15:59:59+00:00", "23:59:59", "MOT", -480], + ["1963-03-16T16:00:00+00:00", "01:00:00", "MOST", -540], + ["1963-11-02T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1963-11-02T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1964" : helpers.makeTestYear("Asia/Macau", [ + ["1964-03-21T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1964-03-21T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1964-10-31T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1964-10-31T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1965" : helpers.makeTestYear("Asia/Macau", [ + ["1965-03-20T15:59:59+00:00", "23:59:59", "MOT", -480], + ["1965-03-20T16:00:00+00:00", "01:00:00", "MOST", -540], + ["1965-10-30T14:59:59+00:00", "23:59:59", "MOST", -540], + ["1965-10-30T15:00:00+00:00", "23:00:00", "MOT", -480] + ]), + + "1966" : helpers.makeTestYear("Asia/Macau", [ + ["1966-04-16T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1966-04-16T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1966-10-15T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1966-10-15T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1967" : helpers.makeTestYear("Asia/Macau", [ + ["1967-04-15T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1967-04-15T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1967-10-21T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1967-10-21T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1968" : helpers.makeTestYear("Asia/Macau", [ + ["1968-04-20T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1968-04-20T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1968-10-19T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1968-10-19T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1969" : helpers.makeTestYear("Asia/Macau", [ + ["1969-04-19T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1969-04-19T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1969-10-18T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1969-10-18T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1970" : helpers.makeTestYear("Asia/Macau", [ + ["1970-04-18T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1970-04-18T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1970-10-17T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1970-10-17T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1971" : helpers.makeTestYear("Asia/Macau", [ + ["1971-04-17T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1971-04-17T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1971-10-16T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1971-10-16T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1972" : helpers.makeTestYear("Asia/Macau", [ + ["1972-04-15T15:59:59+00:00", "23:59:59", "MOT", -480], + ["1972-04-15T16:00:00+00:00", "01:00:00", "MOST", -540], + ["1972-10-14T14:59:59+00:00", "23:59:59", "MOST", -540], + ["1972-10-14T15:00:00+00:00", "23:00:00", "MOT", -480] + ]), + + "1973" : helpers.makeTestYear("Asia/Macau", [ + ["1973-04-14T15:59:59+00:00", "23:59:59", "MOT", -480], + ["1973-04-14T16:00:00+00:00", "01:00:00", "MOST", -540], + ["1973-10-20T14:59:59+00:00", "23:59:59", "MOST", -540], + ["1973-10-20T15:00:00+00:00", "23:00:00", "MOT", -480] + ]), + + "1974" : helpers.makeTestYear("Asia/Macau", [ + ["1974-04-20T15:59:59+00:00", "23:59:59", "MOT", -480], + ["1974-04-20T16:00:00+00:00", "01:00:00", "MOST", -540], + ["1974-10-19T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1974-10-19T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1975" : helpers.makeTestYear("Asia/Macau", [ + ["1975-04-19T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1975-04-19T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1975-10-18T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1975-10-18T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1976" : helpers.makeTestYear("Asia/Macau", [ + ["1976-04-17T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1976-04-17T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1976-10-16T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1976-10-16T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1977" : helpers.makeTestYear("Asia/Macau", [ + ["1977-04-16T19:29:59+00:00", "03:29:59", "MOT", -480], + ["1977-04-16T19:30:00+00:00", "04:30:00", "MOST", -540], + ["1977-10-15T18:29:59+00:00", "03:29:59", "MOST", -540], + ["1977-10-15T18:30:00+00:00", "02:30:00", "MOT", -480] + ]), + + "1978" : helpers.makeTestYear("Asia/Macau", [ + ["1978-04-15T15:59:59+00:00", "23:59:59", "MOT", -480], + ["1978-04-15T16:00:00+00:00", "01:00:00", "MOST", -540], + ["1978-10-14T14:59:59+00:00", "23:59:59", "MOST", -540], + ["1978-10-14T15:00:00+00:00", "23:00:00", "MOT", -480] + ]), + + "1979" : helpers.makeTestYear("Asia/Macau", [ + ["1979-04-14T15:59:59+00:00", "23:59:59", "MOT", -480], + ["1979-04-14T16:00:00+00:00", "01:00:00", "MOST", -540], + ["1979-10-20T14:59:59+00:00", "23:59:59", "MOST", -540], + ["1979-10-20T15:00:00+00:00", "23:00:00", "MOT", -480] + ]), + + "1980" : helpers.makeTestYear("Asia/Macau", [ + ["1980-04-19T15:59:59+00:00", "23:59:59", "MOT", -480], + ["1980-04-19T16:00:00+00:00", "01:00:00", "MOST", -540], + ["1980-10-18T14:59:59+00:00", "23:59:59", "MOST", -540], + ["1980-10-18T15:00:00+00:00", "23:00:00", "MOT", -480] + ]), + + "1999" : helpers.makeTestYear("Asia/Macau", [ + ["1999-12-19T15:59:59+00:00", "23:59:59", "MOT", -480], + ["1999-12-19T16:00:00+00:00", "00:00:00", "CST", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/magadan.js b/tests/zones/asia/magadan.js new file mode 100644 index 00000000..503ca174 --- /dev/null +++ b/tests/zones/asia/magadan.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Magadan"] = { + "1924" : helpers.makeTestYear("Asia/Magadan", [ + ["1924-05-01T13:56:47+00:00", "23:59:59", "LMT", -36192 / 60], + ["1924-05-01T13:56:48+00:00", "23:56:48", "MAGT", -600] + ]), + + "1930" : helpers.makeTestYear("Asia/Magadan", [ + ["1930-06-20T13:59:59+00:00", "23:59:59", "MAGT", -600], + ["1930-06-20T14:00:00+00:00", "01:00:00", "MAGT", -660] + ]), + + "1981" : helpers.makeTestYear("Asia/Magadan", [ + ["1981-03-31T12:59:59+00:00", "23:59:59", "MAGT", -660], + ["1981-03-31T13:00:00+00:00", "01:00:00", "MAGST", -720], + ["1981-09-30T11:59:59+00:00", "23:59:59", "MAGST", -720], + ["1981-09-30T12:00:00+00:00", "23:00:00", "MAGT", -660] + ]), + + "1982" : helpers.makeTestYear("Asia/Magadan", [ + ["1982-03-31T12:59:59+00:00", "23:59:59", "MAGT", -660], + ["1982-03-31T13:00:00+00:00", "01:00:00", "MAGST", -720], + ["1982-09-30T11:59:59+00:00", "23:59:59", "MAGST", -720], + ["1982-09-30T12:00:00+00:00", "23:00:00", "MAGT", -660] + ]), + + "1983" : helpers.makeTestYear("Asia/Magadan", [ + ["1983-03-31T12:59:59+00:00", "23:59:59", "MAGT", -660], + ["1983-03-31T13:00:00+00:00", "01:00:00", "MAGST", -720], + ["1983-09-30T11:59:59+00:00", "23:59:59", "MAGST", -720], + ["1983-09-30T12:00:00+00:00", "23:00:00", "MAGT", -660] + ]), + + "1984" : helpers.makeTestYear("Asia/Magadan", [ + ["1984-03-31T12:59:59+00:00", "23:59:59", "MAGT", -660], + ["1984-03-31T13:00:00+00:00", "01:00:00", "MAGST", -720], + ["1984-09-29T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1984-09-29T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1985" : helpers.makeTestYear("Asia/Magadan", [ + ["1985-03-30T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1985-03-30T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1985-09-28T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1985-09-28T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1986" : helpers.makeTestYear("Asia/Magadan", [ + ["1986-03-29T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1986-03-29T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1986-09-27T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1986-09-27T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1987" : helpers.makeTestYear("Asia/Magadan", [ + ["1987-03-28T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1987-03-28T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1987-09-26T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1987-09-26T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1988" : helpers.makeTestYear("Asia/Magadan", [ + ["1988-03-26T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1988-03-26T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1988-09-24T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1988-09-24T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1989" : helpers.makeTestYear("Asia/Magadan", [ + ["1989-03-25T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1989-03-25T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1989-09-23T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1989-09-23T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1990" : helpers.makeTestYear("Asia/Magadan", [ + ["1990-03-24T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1990-03-24T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1990-09-29T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1990-09-29T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1991" : helpers.makeTestYear("Asia/Magadan", [ + ["1991-03-30T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1991-03-30T15:00:00+00:00", "02:00:00", "MAGST", -660], + ["1991-09-28T15:59:59+00:00", "02:59:59", "MAGST", -660], + ["1991-09-28T16:00:00+00:00", "02:00:00", "MAGT", -600] + ]), + + "1992" : helpers.makeTestYear("Asia/Magadan", [ + ["1992-01-18T15:59:59+00:00", "01:59:59", "MAGT", -600], + ["1992-01-18T16:00:00+00:00", "03:00:00", "MAGT", -660], + ["1992-03-28T11:59:59+00:00", "22:59:59", "MAGT", -660], + ["1992-03-28T12:00:00+00:00", "00:00:00", "MAGST", -720], + ["1992-09-26T10:59:59+00:00", "22:59:59", "MAGST", -720], + ["1992-09-26T11:00:00+00:00", "22:00:00", "MAGT", -660] + ]), + + "1993" : helpers.makeTestYear("Asia/Magadan", [ + ["1993-03-27T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1993-03-27T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1993-09-25T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1993-09-25T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1994" : helpers.makeTestYear("Asia/Magadan", [ + ["1994-03-26T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1994-03-26T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1994-09-24T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1994-09-24T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1995" : helpers.makeTestYear("Asia/Magadan", [ + ["1995-03-25T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1995-03-25T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1995-09-23T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1995-09-23T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1996" : helpers.makeTestYear("Asia/Magadan", [ + ["1996-03-30T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1996-03-30T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1996-10-26T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1996-10-26T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1997" : helpers.makeTestYear("Asia/Magadan", [ + ["1997-03-29T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1997-03-29T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1997-10-25T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1997-10-25T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1998" : helpers.makeTestYear("Asia/Magadan", [ + ["1998-03-28T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1998-03-28T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1998-10-24T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1998-10-24T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1999" : helpers.makeTestYear("Asia/Magadan", [ + ["1999-03-27T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1999-03-27T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1999-10-30T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1999-10-30T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2000" : helpers.makeTestYear("Asia/Magadan", [ + ["2000-03-25T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2000-03-25T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2000-10-28T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2000-10-28T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2001" : helpers.makeTestYear("Asia/Magadan", [ + ["2001-03-24T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2001-03-24T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2001-10-27T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2001-10-27T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2002" : helpers.makeTestYear("Asia/Magadan", [ + ["2002-03-30T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2002-03-30T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2002-10-26T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2002-10-26T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2003" : helpers.makeTestYear("Asia/Magadan", [ + ["2003-03-29T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2003-03-29T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2003-10-25T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2003-10-25T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2004" : helpers.makeTestYear("Asia/Magadan", [ + ["2004-03-27T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2004-03-27T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2004-10-30T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2004-10-30T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2005" : helpers.makeTestYear("Asia/Magadan", [ + ["2005-03-26T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2005-03-26T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2005-10-29T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2005-10-29T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2006" : helpers.makeTestYear("Asia/Magadan", [ + ["2006-03-25T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2006-03-25T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2006-10-28T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2006-10-28T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2007" : helpers.makeTestYear("Asia/Magadan", [ + ["2007-03-24T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2007-03-24T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2007-10-27T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2007-10-27T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2008" : helpers.makeTestYear("Asia/Magadan", [ + ["2008-03-29T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2008-03-29T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2008-10-25T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2008-10-25T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2009" : helpers.makeTestYear("Asia/Magadan", [ + ["2009-03-28T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2009-03-28T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2009-10-24T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2009-10-24T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2010" : helpers.makeTestYear("Asia/Magadan", [ + ["2010-03-27T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2010-03-27T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2010-10-30T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2010-10-30T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2011" : helpers.makeTestYear("Asia/Magadan", [ + ["2011-03-26T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2011-03-26T15:00:00+00:00", "03:00:00", "MAGT", -720] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/makassar.js b/tests/zones/asia/makassar.js new file mode 100644 index 00000000..b697fb32 --- /dev/null +++ b/tests/zones/asia/makassar.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Makassar"] = { + "1919" : helpers.makeTestYear("Asia/Makassar", [ + ["1919-12-31T16:02:23+00:00", "23:59:59", "LMT", -28656 / 60], + ["1919-12-31T16:02:24+00:00", "00:00:00", "MMT", -28656 / 60] + ]), + + "1932" : helpers.makeTestYear("Asia/Makassar", [ + ["1932-10-31T16:02:23+00:00", "23:59:59", "MMT", -28656 / 60], + ["1932-10-31T16:02:24+00:00", "00:02:24", "WITA", -480] + ]), + + "1942" : helpers.makeTestYear("Asia/Makassar", [ + ["1942-02-08T15:59:59+00:00", "23:59:59", "WITA", -480], + ["1942-02-08T16:00:00+00:00", "01:00:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Makassar", [ + ["1945-09-22T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-09-22T15:00:00+00:00", "23:00:00", "WITA", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/manila.js b/tests/zones/asia/manila.js new file mode 100644 index 00000000..77b62819 --- /dev/null +++ b/tests/zones/asia/manila.js @@ -0,0 +1,39 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Manila"] = { + "1936" : helpers.makeTestYear("Asia/Manila", [ + ["1936-10-31T15:59:59+00:00", "23:59:59", "PHT", -480], + ["1936-10-31T16:00:00+00:00", "01:00:00", "PHST", -540] + ]), + + "1937" : helpers.makeTestYear("Asia/Manila", [ + ["1937-01-31T14:59:59+00:00", "23:59:59", "PHST", -540], + ["1937-01-31T15:00:00+00:00", "23:00:00", "PHT", -480] + ]), + + "1942" : helpers.makeTestYear("Asia/Manila", [ + ["1942-04-30T15:59:59+00:00", "23:59:59", "PHT", -480], + ["1942-04-30T16:00:00+00:00", "01:00:00", "JST", -540] + ]), + + "1944" : helpers.makeTestYear("Asia/Manila", [ + ["1944-10-31T14:59:59+00:00", "23:59:59", "JST", -540], + ["1944-10-31T15:00:00+00:00", "23:00:00", "PHT", -480] + ]), + + "1954" : helpers.makeTestYear("Asia/Manila", [ + ["1954-04-11T15:59:59+00:00", "23:59:59", "PHT", -480], + ["1954-04-11T16:00:00+00:00", "01:00:00", "PHST", -540], + ["1954-06-30T14:59:59+00:00", "23:59:59", "PHST", -540], + ["1954-06-30T15:00:00+00:00", "23:00:00", "PHT", -480] + ]), + + "1978" : helpers.makeTestYear("Asia/Manila", [ + ["1978-03-21T15:59:59+00:00", "23:59:59", "PHT", -480], + ["1978-03-21T16:00:00+00:00", "01:00:00", "PHST", -540], + ["1978-09-20T14:59:59+00:00", "23:59:59", "PHST", -540], + ["1978-09-20T15:00:00+00:00", "23:00:00", "PHT", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/muscat.js b/tests/zones/asia/muscat.js new file mode 100644 index 00000000..89f976d9 --- /dev/null +++ b/tests/zones/asia/muscat.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Muscat"] = { + "1919" : helpers.makeTestYear("Asia/Muscat", [ + ["1919-12-31T20:05:35+00:00", "23:59:59", "LMT", -14064 / 60], + ["1919-12-31T20:05:36+00:00", "00:05:36", "GST", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/nicosia.js b/tests/zones/asia/nicosia.js new file mode 100644 index 00000000..45038a85 --- /dev/null +++ b/tests/zones/asia/nicosia.js @@ -0,0 +1,451 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Nicosia"] = { + "1921" : helpers.makeTestYear("Asia/Nicosia", [ + ["1921-11-13T21:46:31+00:00", "23:59:59", "LMT", -8008 / 60], + ["1921-11-13T21:46:32+00:00", "23:46:32", "EET", -120] + ]), + + "1975" : helpers.makeTestYear("Asia/Nicosia", [ + ["1975-04-12T21:59:59+00:00", "23:59:59", "EET", -120], + ["1975-04-12T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1975-10-11T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1975-10-11T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1976" : helpers.makeTestYear("Asia/Nicosia", [ + ["1976-05-14T21:59:59+00:00", "23:59:59", "EET", -120], + ["1976-05-14T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1976-10-10T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1976-10-10T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1977" : helpers.makeTestYear("Asia/Nicosia", [ + ["1977-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1977-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1977-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1977-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1978" : helpers.makeTestYear("Asia/Nicosia", [ + ["1978-04-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["1978-04-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1978-10-01T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1978-10-01T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1979" : helpers.makeTestYear("Asia/Nicosia", [ + ["1979-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1979-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1979-09-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1979-09-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1980" : helpers.makeTestYear("Asia/Nicosia", [ + ["1980-04-05T21:59:59+00:00", "23:59:59", "EET", -120], + ["1980-04-05T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1980-09-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1980-09-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1981" : helpers.makeTestYear("Asia/Nicosia", [ + ["1981-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1981-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1981-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1981-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1982" : helpers.makeTestYear("Asia/Nicosia", [ + ["1982-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1982-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1982-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1982-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1983" : helpers.makeTestYear("Asia/Nicosia", [ + ["1983-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1983-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1983-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1983-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1984" : helpers.makeTestYear("Asia/Nicosia", [ + ["1984-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["1984-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1984-09-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1984-09-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1985" : helpers.makeTestYear("Asia/Nicosia", [ + ["1985-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1985-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1985-09-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1985-09-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Asia/Nicosia", [ + ["1986-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1986-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1986-09-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1986-09-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Asia/Nicosia", [ + ["1987-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1987-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1987-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1987-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Asia/Nicosia", [ + ["1988-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1988-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1988-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1988-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Asia/Nicosia", [ + ["1989-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1989-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1989-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1989-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Asia/Nicosia", [ + ["1990-03-24T21:59:59+00:00", "23:59:59", "EET", -120], + ["1990-03-24T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1990-09-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1990-09-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Asia/Nicosia", [ + ["1991-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1991-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1991-09-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1991-09-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Asia/Nicosia", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Asia/Nicosia", [ + ["1993-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Asia/Nicosia", [ + ["1994-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Asia/Nicosia", [ + ["1995-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1995-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1995-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1995-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Asia/Nicosia", [ + ["1996-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-09-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1996-09-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Asia/Nicosia", [ + ["1997-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1997-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1997-09-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1997-09-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Asia/Nicosia", [ + ["1998-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1998-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Asia/Nicosia", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Asia/Nicosia", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Asia/Nicosia", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Asia/Nicosia", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Asia/Nicosia", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Asia/Nicosia", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Asia/Nicosia", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Asia/Nicosia", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Asia/Nicosia", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Asia/Nicosia", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Asia/Nicosia", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Asia/Nicosia", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Asia/Nicosia", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Asia/Nicosia", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Asia/Nicosia", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Asia/Nicosia", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Asia/Nicosia", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Asia/Nicosia", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Asia/Nicosia", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Asia/Nicosia", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Asia/Nicosia", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Asia/Nicosia", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Asia/Nicosia", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Asia/Nicosia", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Asia/Nicosia", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Asia/Nicosia", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Asia/Nicosia", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Asia/Nicosia", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Asia/Nicosia", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Asia/Nicosia", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Asia/Nicosia", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Asia/Nicosia", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Asia/Nicosia", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Asia/Nicosia", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Asia/Nicosia", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Asia/Nicosia", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Asia/Nicosia", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Asia/Nicosia", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Asia/Nicosia", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/novokuznetsk.js b/tests/zones/asia/novokuznetsk.js new file mode 100644 index 00000000..ad55592d --- /dev/null +++ b/tests/zones/asia/novokuznetsk.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Novokuznetsk"] = { + "1920" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1920-01-05T18:11:11+00:00", "23:59:59", "NMT", -20928 / 60], + ["1920-01-05T18:11:12+00:00", "00:11:12", "KRAT", -360] + ]), + + "1930" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1930-06-20T17:59:59+00:00", "23:59:59", "KRAT", -360], + ["1930-06-20T18:00:00+00:00", "01:00:00", "KRAT", -420] + ]), + + "1981" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1981-03-31T16:59:59+00:00", "23:59:59", "KRAT", -420], + ["1981-03-31T17:00:00+00:00", "01:00:00", "KRAST", -480], + ["1981-09-30T15:59:59+00:00", "23:59:59", "KRAST", -480], + ["1981-09-30T16:00:00+00:00", "23:00:00", "KRAT", -420] + ]), + + "1982" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1982-03-31T16:59:59+00:00", "23:59:59", "KRAT", -420], + ["1982-03-31T17:00:00+00:00", "01:00:00", "KRAST", -480], + ["1982-09-30T15:59:59+00:00", "23:59:59", "KRAST", -480], + ["1982-09-30T16:00:00+00:00", "23:00:00", "KRAT", -420] + ]), + + "1983" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1983-03-31T16:59:59+00:00", "23:59:59", "KRAT", -420], + ["1983-03-31T17:00:00+00:00", "01:00:00", "KRAST", -480], + ["1983-09-30T15:59:59+00:00", "23:59:59", "KRAST", -480], + ["1983-09-30T16:00:00+00:00", "23:00:00", "KRAT", -420] + ]), + + "1984" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1984-03-31T16:59:59+00:00", "23:59:59", "KRAT", -420], + ["1984-03-31T17:00:00+00:00", "01:00:00", "KRAST", -480], + ["1984-09-29T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1984-09-29T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1985" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1985-03-30T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1985-03-30T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1985-09-28T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1985-09-28T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1986" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1986-03-29T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1986-03-29T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1986-09-27T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1986-09-27T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1987" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1987-03-28T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1987-03-28T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1987-09-26T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1987-09-26T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1988" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1988-03-26T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1988-03-26T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1988-09-24T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1988-09-24T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1989" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1989-03-25T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1989-03-25T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1989-09-23T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1989-09-23T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1990" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1990-03-24T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1990-03-24T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1990-09-29T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1990-09-29T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1991" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1991-03-30T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1991-03-30T19:00:00+00:00", "02:00:00", "KRAST", -420], + ["1991-09-28T19:59:59+00:00", "02:59:59", "KRAST", -420], + ["1991-09-28T20:00:00+00:00", "02:00:00", "KRAT", -360] + ]), + + "1992" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1992-01-18T19:59:59+00:00", "01:59:59", "KRAT", -360], + ["1992-01-18T20:00:00+00:00", "03:00:00", "KRAT", -420], + ["1992-03-28T15:59:59+00:00", "22:59:59", "KRAT", -420], + ["1992-03-28T16:00:00+00:00", "00:00:00", "KRAST", -480], + ["1992-09-26T14:59:59+00:00", "22:59:59", "KRAST", -480], + ["1992-09-26T15:00:00+00:00", "22:00:00", "KRAT", -420] + ]), + + "1993" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1993-03-27T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1993-03-27T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1993-09-25T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1993-09-25T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1994" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1994-03-26T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1994-03-26T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1994-09-24T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1994-09-24T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1995" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1995-03-25T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1995-03-25T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1995-09-23T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1995-09-23T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1996" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1996-03-30T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1996-03-30T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1996-10-26T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1996-10-26T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1997" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1997-03-29T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1997-03-29T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1997-10-25T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1997-10-25T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1998" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1998-03-28T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1998-03-28T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1998-10-24T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1998-10-24T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "1999" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["1999-03-27T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["1999-03-27T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["1999-10-30T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["1999-10-30T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2000" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2000-03-25T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2000-03-25T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2000-10-28T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2000-10-28T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2001" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2001-03-24T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2001-03-24T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2001-10-27T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2001-10-27T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2002" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2002-03-30T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2002-03-30T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2002-10-26T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2002-10-26T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2003" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2003-03-29T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2003-03-29T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2003-10-25T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2003-10-25T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2004" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2004-03-27T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2004-03-27T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2004-10-30T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2004-10-30T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2005" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2005-03-26T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2005-03-26T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2005-10-29T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2005-10-29T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2006" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2006-03-25T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2006-03-25T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2006-10-28T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2006-10-28T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2007" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2007-03-24T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2007-03-24T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2007-10-27T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2007-10-27T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2008" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2008-03-29T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2008-03-29T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2008-10-25T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2008-10-25T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2009" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2009-03-28T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2009-03-28T19:00:00+00:00", "03:00:00", "KRAST", -480], + ["2009-10-24T18:59:59+00:00", "02:59:59", "KRAST", -480], + ["2009-10-24T19:00:00+00:00", "02:00:00", "KRAT", -420] + ]), + + "2010" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2010-03-27T18:59:59+00:00", "01:59:59", "KRAT", -420], + ["2010-03-27T19:00:00+00:00", "02:00:00", "NOVST", -420], + ["2010-10-30T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2010-10-30T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2011" : helpers.makeTestYear("Asia/Novokuznetsk", [ + ["2011-03-26T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2011-03-26T20:00:00+00:00", "03:00:00", "NOVT", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/novosibirsk.js b/tests/zones/asia/novosibirsk.js new file mode 100644 index 00000000..329cdae0 --- /dev/null +++ b/tests/zones/asia/novosibirsk.js @@ -0,0 +1,234 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Novosibirsk"] = { + "1919" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1919-12-14T00:28:19+00:00", "05:59:59", "LMT", -19900 / 60], + ["1919-12-14T00:28:20+00:00", "06:28:20", "NOVT", -360] + ]), + + "1930" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1930-06-20T17:59:59+00:00", "23:59:59", "NOVT", -360], + ["1930-06-20T18:00:00+00:00", "01:00:00", "NOVT", -420] + ]), + + "1981" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1981-03-31T16:59:59+00:00", "23:59:59", "NOVT", -420], + ["1981-03-31T17:00:00+00:00", "01:00:00", "NOVST", -480], + ["1981-09-30T15:59:59+00:00", "23:59:59", "NOVST", -480], + ["1981-09-30T16:00:00+00:00", "23:00:00", "NOVT", -420] + ]), + + "1982" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1982-03-31T16:59:59+00:00", "23:59:59", "NOVT", -420], + ["1982-03-31T17:00:00+00:00", "01:00:00", "NOVST", -480], + ["1982-09-30T15:59:59+00:00", "23:59:59", "NOVST", -480], + ["1982-09-30T16:00:00+00:00", "23:00:00", "NOVT", -420] + ]), + + "1983" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1983-03-31T16:59:59+00:00", "23:59:59", "NOVT", -420], + ["1983-03-31T17:00:00+00:00", "01:00:00", "NOVST", -480], + ["1983-09-30T15:59:59+00:00", "23:59:59", "NOVST", -480], + ["1983-09-30T16:00:00+00:00", "23:00:00", "NOVT", -420] + ]), + + "1984" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1984-03-31T16:59:59+00:00", "23:59:59", "NOVT", -420], + ["1984-03-31T17:00:00+00:00", "01:00:00", "NOVST", -480], + ["1984-09-29T18:59:59+00:00", "02:59:59", "NOVST", -480], + ["1984-09-29T19:00:00+00:00", "02:00:00", "NOVT", -420] + ]), + + "1985" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1985-03-30T18:59:59+00:00", "01:59:59", "NOVT", -420], + ["1985-03-30T19:00:00+00:00", "03:00:00", "NOVST", -480], + ["1985-09-28T18:59:59+00:00", "02:59:59", "NOVST", -480], + ["1985-09-28T19:00:00+00:00", "02:00:00", "NOVT", -420] + ]), + + "1986" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1986-03-29T18:59:59+00:00", "01:59:59", "NOVT", -420], + ["1986-03-29T19:00:00+00:00", "03:00:00", "NOVST", -480], + ["1986-09-27T18:59:59+00:00", "02:59:59", "NOVST", -480], + ["1986-09-27T19:00:00+00:00", "02:00:00", "NOVT", -420] + ]), + + "1987" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1987-03-28T18:59:59+00:00", "01:59:59", "NOVT", -420], + ["1987-03-28T19:00:00+00:00", "03:00:00", "NOVST", -480], + ["1987-09-26T18:59:59+00:00", "02:59:59", "NOVST", -480], + ["1987-09-26T19:00:00+00:00", "02:00:00", "NOVT", -420] + ]), + + "1988" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1988-03-26T18:59:59+00:00", "01:59:59", "NOVT", -420], + ["1988-03-26T19:00:00+00:00", "03:00:00", "NOVST", -480], + ["1988-09-24T18:59:59+00:00", "02:59:59", "NOVST", -480], + ["1988-09-24T19:00:00+00:00", "02:00:00", "NOVT", -420] + ]), + + "1989" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1989-03-25T18:59:59+00:00", "01:59:59", "NOVT", -420], + ["1989-03-25T19:00:00+00:00", "03:00:00", "NOVST", -480], + ["1989-09-23T18:59:59+00:00", "02:59:59", "NOVST", -480], + ["1989-09-23T19:00:00+00:00", "02:00:00", "NOVT", -420] + ]), + + "1990" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1990-03-24T18:59:59+00:00", "01:59:59", "NOVT", -420], + ["1990-03-24T19:00:00+00:00", "03:00:00", "NOVST", -480], + ["1990-09-29T18:59:59+00:00", "02:59:59", "NOVST", -480], + ["1990-09-29T19:00:00+00:00", "02:00:00", "NOVT", -420] + ]), + + "1991" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1991-03-30T18:59:59+00:00", "01:59:59", "NOVT", -420], + ["1991-03-30T19:00:00+00:00", "02:00:00", "NOVST", -420], + ["1991-09-28T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["1991-09-28T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "1992" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1992-01-18T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["1992-01-18T20:00:00+00:00", "03:00:00", "NOVT", -420], + ["1992-03-28T15:59:59+00:00", "22:59:59", "NOVT", -420], + ["1992-03-28T16:00:00+00:00", "00:00:00", "NOVST", -480], + ["1992-09-26T14:59:59+00:00", "22:59:59", "NOVST", -480], + ["1992-09-26T15:00:00+00:00", "22:00:00", "NOVT", -420] + ]), + + "1993" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1993-03-27T18:59:59+00:00", "01:59:59", "NOVT", -420], + ["1993-03-27T19:00:00+00:00", "03:00:00", "NOVST", -480], + ["1993-05-22T15:59:59+00:00", "23:59:59", "NOVST", -480], + ["1993-05-22T16:00:00+00:00", "23:00:00", "NOVST", -420], + ["1993-09-25T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["1993-09-25T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "1994" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1994-03-26T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["1994-03-26T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["1994-09-24T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["1994-09-24T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "1995" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1995-03-25T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["1995-03-25T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["1995-09-23T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["1995-09-23T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "1996" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1996-03-30T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["1996-03-30T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["1996-10-26T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["1996-10-26T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "1997" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1997-03-29T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["1997-03-29T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["1997-10-25T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["1997-10-25T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "1998" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1998-03-28T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["1998-03-28T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["1998-10-24T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["1998-10-24T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "1999" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["1999-03-27T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["1999-03-27T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["1999-10-30T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["1999-10-30T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2000" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2000-03-25T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2000-03-25T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2000-10-28T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2000-10-28T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2001" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2001-03-24T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2001-03-24T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2001-10-27T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2001-10-27T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2002" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2002-03-30T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2002-03-30T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2002-10-26T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2002-10-26T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2003" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2003-03-29T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2003-03-29T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2003-10-25T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2003-10-25T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2004" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2004-03-27T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2004-03-27T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2004-10-30T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2004-10-30T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2005" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2005-03-26T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2005-03-26T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2005-10-29T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2005-10-29T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2006" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2006-03-25T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2006-03-25T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2006-10-28T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2006-10-28T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2007" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2007-03-24T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2007-03-24T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2007-10-27T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2007-10-27T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2008" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2008-03-29T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2008-03-29T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2008-10-25T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2008-10-25T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2009" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2009-03-28T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2009-03-28T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2009-10-24T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2009-10-24T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2010" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2010-03-27T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2010-03-27T20:00:00+00:00", "03:00:00", "NOVST", -420], + ["2010-10-30T19:59:59+00:00", "02:59:59", "NOVST", -420], + ["2010-10-30T20:00:00+00:00", "02:00:00", "NOVT", -360] + ]), + + "2011" : helpers.makeTestYear("Asia/Novosibirsk", [ + ["2011-03-26T19:59:59+00:00", "01:59:59", "NOVT", -360], + ["2011-03-26T20:00:00+00:00", "03:00:00", "NOVT", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/omsk.js b/tests/zones/asia/omsk.js new file mode 100644 index 00000000..f79d126f --- /dev/null +++ b/tests/zones/asia/omsk.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Omsk"] = { + "1919" : helpers.makeTestYear("Asia/Omsk", [ + ["1919-11-13T19:06:23+00:00", "23:59:59", "LMT", -17616 / 60], + ["1919-11-13T19:06:24+00:00", "00:06:24", "OMST", -300] + ]), + + "1930" : helpers.makeTestYear("Asia/Omsk", [ + ["1930-06-20T18:59:59+00:00", "23:59:59", "OMST", -300], + ["1930-06-20T19:00:00+00:00", "01:00:00", "OMST", -360] + ]), + + "1981" : helpers.makeTestYear("Asia/Omsk", [ + ["1981-03-31T17:59:59+00:00", "23:59:59", "OMST", -360], + ["1981-03-31T18:00:00+00:00", "01:00:00", "OMSST", -420], + ["1981-09-30T16:59:59+00:00", "23:59:59", "OMSST", -420], + ["1981-09-30T17:00:00+00:00", "23:00:00", "OMST", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Omsk", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "OMST", -360], + ["1982-03-31T18:00:00+00:00", "01:00:00", "OMSST", -420], + ["1982-09-30T16:59:59+00:00", "23:59:59", "OMSST", -420], + ["1982-09-30T17:00:00+00:00", "23:00:00", "OMST", -360] + ]), + + "1983" : helpers.makeTestYear("Asia/Omsk", [ + ["1983-03-31T17:59:59+00:00", "23:59:59", "OMST", -360], + ["1983-03-31T18:00:00+00:00", "01:00:00", "OMSST", -420], + ["1983-09-30T16:59:59+00:00", "23:59:59", "OMSST", -420], + ["1983-09-30T17:00:00+00:00", "23:00:00", "OMST", -360] + ]), + + "1984" : helpers.makeTestYear("Asia/Omsk", [ + ["1984-03-31T17:59:59+00:00", "23:59:59", "OMST", -360], + ["1984-03-31T18:00:00+00:00", "01:00:00", "OMSST", -420], + ["1984-09-29T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1984-09-29T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1985" : helpers.makeTestYear("Asia/Omsk", [ + ["1985-03-30T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1985-03-30T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1985-09-28T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1985-09-28T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1986" : helpers.makeTestYear("Asia/Omsk", [ + ["1986-03-29T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1986-03-29T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1986-09-27T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1986-09-27T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1987" : helpers.makeTestYear("Asia/Omsk", [ + ["1987-03-28T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1987-03-28T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1987-09-26T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1987-09-26T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1988" : helpers.makeTestYear("Asia/Omsk", [ + ["1988-03-26T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1988-03-26T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1988-09-24T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1988-09-24T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1989" : helpers.makeTestYear("Asia/Omsk", [ + ["1989-03-25T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1989-03-25T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1989-09-23T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1989-09-23T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1990" : helpers.makeTestYear("Asia/Omsk", [ + ["1990-03-24T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1990-03-24T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1990-09-29T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1990-09-29T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1991" : helpers.makeTestYear("Asia/Omsk", [ + ["1991-03-30T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1991-03-30T20:00:00+00:00", "02:00:00", "OMSST", -360], + ["1991-09-28T20:59:59+00:00", "02:59:59", "OMSST", -360], + ["1991-09-28T21:00:00+00:00", "02:00:00", "OMST", -300] + ]), + + "1992" : helpers.makeTestYear("Asia/Omsk", [ + ["1992-01-18T20:59:59+00:00", "01:59:59", "OMST", -300], + ["1992-01-18T21:00:00+00:00", "03:00:00", "OMST", -360], + ["1992-03-28T16:59:59+00:00", "22:59:59", "OMST", -360], + ["1992-03-28T17:00:00+00:00", "00:00:00", "OMSST", -420], + ["1992-09-26T15:59:59+00:00", "22:59:59", "OMSST", -420], + ["1992-09-26T16:00:00+00:00", "22:00:00", "OMST", -360] + ]), + + "1993" : helpers.makeTestYear("Asia/Omsk", [ + ["1993-03-27T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1993-03-27T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1993-09-25T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1993-09-25T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1994" : helpers.makeTestYear("Asia/Omsk", [ + ["1994-03-26T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1994-03-26T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1994-09-24T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1994-09-24T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1995" : helpers.makeTestYear("Asia/Omsk", [ + ["1995-03-25T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1995-03-25T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1995-09-23T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1995-09-23T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1996" : helpers.makeTestYear("Asia/Omsk", [ + ["1996-03-30T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1996-03-30T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1996-10-26T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1996-10-26T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1997" : helpers.makeTestYear("Asia/Omsk", [ + ["1997-03-29T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1997-03-29T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1997-10-25T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1997-10-25T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1998" : helpers.makeTestYear("Asia/Omsk", [ + ["1998-03-28T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1998-03-28T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1998-10-24T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1998-10-24T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "1999" : helpers.makeTestYear("Asia/Omsk", [ + ["1999-03-27T19:59:59+00:00", "01:59:59", "OMST", -360], + ["1999-03-27T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["1999-10-30T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["1999-10-30T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2000" : helpers.makeTestYear("Asia/Omsk", [ + ["2000-03-25T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2000-03-25T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2000-10-28T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2000-10-28T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2001" : helpers.makeTestYear("Asia/Omsk", [ + ["2001-03-24T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2001-03-24T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2001-10-27T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2001-10-27T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2002" : helpers.makeTestYear("Asia/Omsk", [ + ["2002-03-30T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2002-03-30T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2002-10-26T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2002-10-26T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2003" : helpers.makeTestYear("Asia/Omsk", [ + ["2003-03-29T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2003-03-29T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2003-10-25T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2003-10-25T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2004" : helpers.makeTestYear("Asia/Omsk", [ + ["2004-03-27T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2004-03-27T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2004-10-30T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2004-10-30T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2005" : helpers.makeTestYear("Asia/Omsk", [ + ["2005-03-26T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2005-03-26T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2005-10-29T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2005-10-29T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2006" : helpers.makeTestYear("Asia/Omsk", [ + ["2006-03-25T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2006-03-25T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2006-10-28T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2006-10-28T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2007" : helpers.makeTestYear("Asia/Omsk", [ + ["2007-03-24T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2007-03-24T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2007-10-27T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2007-10-27T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2008" : helpers.makeTestYear("Asia/Omsk", [ + ["2008-03-29T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2008-03-29T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2008-10-25T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2008-10-25T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2009" : helpers.makeTestYear("Asia/Omsk", [ + ["2009-03-28T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2009-03-28T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2009-10-24T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2009-10-24T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2010" : helpers.makeTestYear("Asia/Omsk", [ + ["2010-03-27T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2010-03-27T20:00:00+00:00", "03:00:00", "OMSST", -420], + ["2010-10-30T19:59:59+00:00", "02:59:59", "OMSST", -420], + ["2010-10-30T20:00:00+00:00", "02:00:00", "OMST", -360] + ]), + + "2011" : helpers.makeTestYear("Asia/Omsk", [ + ["2011-03-26T19:59:59+00:00", "01:59:59", "OMST", -360], + ["2011-03-26T20:00:00+00:00", "03:00:00", "OMST", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/oral.js b/tests/zones/asia/oral.js new file mode 100644 index 00000000..bf01599b --- /dev/null +++ b/tests/zones/asia/oral.js @@ -0,0 +1,186 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Oral"] = { + "1924" : helpers.makeTestYear("Asia/Oral", [ + ["1924-05-01T20:34:35+00:00", "23:59:59", "LMT", -12324 / 60], + ["1924-05-01T20:34:36+00:00", "00:34:36", "URAT", -240] + ]), + + "1930" : helpers.makeTestYear("Asia/Oral", [ + ["1930-06-20T19:59:59+00:00", "23:59:59", "URAT", -240], + ["1930-06-20T20:00:00+00:00", "01:00:00", "URAT", -300] + ]), + + "1981" : helpers.makeTestYear("Asia/Oral", [ + ["1981-03-31T18:59:59+00:00", "23:59:59", "URAT", -300], + ["1981-03-31T19:00:00+00:00", "01:00:00", "URAST", -360], + ["1981-09-30T17:59:59+00:00", "23:59:59", "URAST", -360], + ["1981-09-30T18:00:00+00:00", "00:00:00", "URAT", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Oral", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "URAT", -360], + ["1982-03-31T18:00:00+00:00", "00:00:00", "URAST", -360], + ["1982-09-30T17:59:59+00:00", "23:59:59", "URAST", -360], + ["1982-09-30T18:00:00+00:00", "23:00:00", "URAT", -300] + ]), + + "1983" : helpers.makeTestYear("Asia/Oral", [ + ["1983-03-31T18:59:59+00:00", "23:59:59", "URAT", -300], + ["1983-03-31T19:00:00+00:00", "01:00:00", "URAST", -360], + ["1983-09-30T17:59:59+00:00", "23:59:59", "URAST", -360], + ["1983-09-30T18:00:00+00:00", "23:00:00", "URAT", -300] + ]), + + "1984" : helpers.makeTestYear("Asia/Oral", [ + ["1984-03-31T18:59:59+00:00", "23:59:59", "URAT", -300], + ["1984-03-31T19:00:00+00:00", "01:00:00", "URAST", -360], + ["1984-09-29T20:59:59+00:00", "02:59:59", "URAST", -360], + ["1984-09-29T21:00:00+00:00", "02:00:00", "URAT", -300] + ]), + + "1985" : helpers.makeTestYear("Asia/Oral", [ + ["1985-03-30T20:59:59+00:00", "01:59:59", "URAT", -300], + ["1985-03-30T21:00:00+00:00", "03:00:00", "URAST", -360], + ["1985-09-28T20:59:59+00:00", "02:59:59", "URAST", -360], + ["1985-09-28T21:00:00+00:00", "02:00:00", "URAT", -300] + ]), + + "1986" : helpers.makeTestYear("Asia/Oral", [ + ["1986-03-29T20:59:59+00:00", "01:59:59", "URAT", -300], + ["1986-03-29T21:00:00+00:00", "03:00:00", "URAST", -360], + ["1986-09-27T20:59:59+00:00", "02:59:59", "URAST", -360], + ["1986-09-27T21:00:00+00:00", "02:00:00", "URAT", -300] + ]), + + "1987" : helpers.makeTestYear("Asia/Oral", [ + ["1987-03-28T20:59:59+00:00", "01:59:59", "URAT", -300], + ["1987-03-28T21:00:00+00:00", "03:00:00", "URAST", -360], + ["1987-09-26T20:59:59+00:00", "02:59:59", "URAST", -360], + ["1987-09-26T21:00:00+00:00", "02:00:00", "URAT", -300] + ]), + + "1988" : helpers.makeTestYear("Asia/Oral", [ + ["1988-03-26T20:59:59+00:00", "01:59:59", "URAT", -300], + ["1988-03-26T21:00:00+00:00", "03:00:00", "URAST", -360], + ["1988-09-24T20:59:59+00:00", "02:59:59", "URAST", -360], + ["1988-09-24T21:00:00+00:00", "02:00:00", "URAT", -300] + ]), + + "1989" : helpers.makeTestYear("Asia/Oral", [ + ["1989-03-25T20:59:59+00:00", "01:59:59", "URAT", -300], + ["1989-03-25T21:00:00+00:00", "02:00:00", "URAST", -300], + ["1989-09-23T21:59:59+00:00", "02:59:59", "URAST", -300], + ["1989-09-23T22:00:00+00:00", "02:00:00", "URAT", -240] + ]), + + "1990" : helpers.makeTestYear("Asia/Oral", [ + ["1990-03-24T21:59:59+00:00", "01:59:59", "URAT", -240], + ["1990-03-24T22:00:00+00:00", "03:00:00", "URAST", -300], + ["1990-09-29T21:59:59+00:00", "02:59:59", "URAST", -300], + ["1990-09-29T22:00:00+00:00", "02:00:00", "URAT", -240] + ]), + + "1991" : helpers.makeTestYear("Asia/Oral", [ + ["1991-12-15T19:59:59+00:00", "23:59:59", "URAT", -240], + ["1991-12-15T20:00:00+00:00", "00:00:00", "ORAT", -240] + ]), + + "1992" : helpers.makeTestYear("Asia/Oral", [ + ["1992-03-28T18:59:59+00:00", "22:59:59", "ORAT", -240], + ["1992-03-28T19:00:00+00:00", "00:00:00", "ORAST", -300], + ["1992-09-26T17:59:59+00:00", "22:59:59", "ORAST", -300], + ["1992-09-26T18:00:00+00:00", "22:00:00", "ORAT", -240] + ]), + + "1993" : helpers.makeTestYear("Asia/Oral", [ + ["1993-03-27T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["1993-03-27T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["1993-09-25T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["1993-09-25T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "1994" : helpers.makeTestYear("Asia/Oral", [ + ["1994-03-26T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["1994-03-26T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["1994-09-24T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["1994-09-24T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "1995" : helpers.makeTestYear("Asia/Oral", [ + ["1995-03-25T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["1995-03-25T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["1995-09-23T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["1995-09-23T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "1996" : helpers.makeTestYear("Asia/Oral", [ + ["1996-03-30T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["1996-03-30T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["1996-10-26T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["1996-10-26T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "1997" : helpers.makeTestYear("Asia/Oral", [ + ["1997-03-29T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["1997-03-29T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["1997-10-25T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["1997-10-25T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "1998" : helpers.makeTestYear("Asia/Oral", [ + ["1998-03-28T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["1998-03-28T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["1998-10-24T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["1998-10-24T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "1999" : helpers.makeTestYear("Asia/Oral", [ + ["1999-03-27T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["1999-03-27T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["1999-10-30T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["1999-10-30T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "2000" : helpers.makeTestYear("Asia/Oral", [ + ["2000-03-25T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["2000-03-25T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["2000-10-28T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["2000-10-28T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "2001" : helpers.makeTestYear("Asia/Oral", [ + ["2001-03-24T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["2001-03-24T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["2001-10-27T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["2001-10-27T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "2002" : helpers.makeTestYear("Asia/Oral", [ + ["2002-03-30T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["2002-03-30T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["2002-10-26T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["2002-10-26T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "2003" : helpers.makeTestYear("Asia/Oral", [ + ["2003-03-29T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["2003-03-29T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["2003-10-25T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["2003-10-25T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "2004" : helpers.makeTestYear("Asia/Oral", [ + ["2004-03-27T21:59:59+00:00", "01:59:59", "ORAT", -240], + ["2004-03-27T22:00:00+00:00", "03:00:00", "ORAST", -300], + ["2004-10-30T21:59:59+00:00", "02:59:59", "ORAST", -300], + ["2004-10-30T22:00:00+00:00", "02:00:00", "ORAT", -240] + ]), + + "2005" : helpers.makeTestYear("Asia/Oral", [ + ["2005-03-14T19:59:59+00:00", "23:59:59", "ORAT", -240], + ["2005-03-14T20:00:00+00:00", "01:00:00", "ORAT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/phnom_penh.js b/tests/zones/asia/phnom_penh.js new file mode 100644 index 00000000..0e016f68 --- /dev/null +++ b/tests/zones/asia/phnom_penh.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Phnom_Penh"] = { + "1906" : helpers.makeTestYear("Asia/Phnom_Penh", [ + ["1906-06-08T17:00:19+00:00", "23:59:59", "LMT", -25180 / 60], + ["1906-06-08T17:00:20+00:00", "00:06:40", "SMT", -25580 / 60] + ]), + + "1911" : helpers.makeTestYear("Asia/Phnom_Penh", [ + ["1911-03-10T16:54:39+00:00", "00:00:59", "SMT", -25580 / 60], + ["1911-03-10T16:54:40+00:00", "23:54:40", "ICT", -420] + ]), + + "1912" : helpers.makeTestYear("Asia/Phnom_Penh", [ + ["1912-04-30T16:59:59+00:00", "23:59:59", "ICT", -420], + ["1912-04-30T17:00:00+00:00", "01:00:00", "ICT", -480] + ]), + + "1931" : helpers.makeTestYear("Asia/Phnom_Penh", [ + ["1931-04-30T15:59:59+00:00", "23:59:59", "ICT", -480], + ["1931-04-30T16:00:00+00:00", "23:00:00", "ICT", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/pontianak.js b/tests/zones/asia/pontianak.js new file mode 100644 index 00000000..e05cea3f --- /dev/null +++ b/tests/zones/asia/pontianak.js @@ -0,0 +1,45 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Pontianak"] = { + "1908" : helpers.makeTestYear("Asia/Pontianak", [ + ["1908-04-30T16:42:39+00:00", "23:59:59", "LMT", -26240 / 60], + ["1908-04-30T16:42:40+00:00", "00:00:00", "PMT", -26240 / 60] + ]), + + "1932" : helpers.makeTestYear("Asia/Pontianak", [ + ["1932-10-31T16:42:39+00:00", "23:59:59", "PMT", -26240 / 60], + ["1932-10-31T16:42:40+00:00", "00:12:40", "WIB", -450] + ]), + + "1942" : helpers.makeTestYear("Asia/Pontianak", [ + ["1942-01-28T16:29:59+00:00", "23:59:59", "WIB", -450], + ["1942-01-28T16:30:00+00:00", "01:30:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Pontianak", [ + ["1945-09-22T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-09-22T15:00:00+00:00", "22:30:00", "WIB", -450] + ]), + + "1948" : helpers.makeTestYear("Asia/Pontianak", [ + ["1948-04-30T16:29:59+00:00", "23:59:59", "WIB", -450], + ["1948-04-30T16:30:00+00:00", "00:30:00", "WIB", -480] + ]), + + "1950" : helpers.makeTestYear("Asia/Pontianak", [ + ["1950-04-30T15:59:59+00:00", "23:59:59", "WIB", -480], + ["1950-04-30T16:00:00+00:00", "23:30:00", "WIB", -450] + ]), + + "1963" : helpers.makeTestYear("Asia/Pontianak", [ + ["1963-12-31T16:29:59+00:00", "23:59:59", "WIB", -450], + ["1963-12-31T16:30:00+00:00", "00:30:00", "WITA", -480] + ]), + + "1987" : helpers.makeTestYear("Asia/Pontianak", [ + ["1987-12-31T15:59:59+00:00", "23:59:59", "WITA", -480], + ["1987-12-31T16:00:00+00:00", "23:00:00", "WIB", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/pyongyang.js b/tests/zones/asia/pyongyang.js new file mode 100644 index 00000000..d46ac13b --- /dev/null +++ b/tests/zones/asia/pyongyang.js @@ -0,0 +1,30 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Pyongyang"] = { + "1904" : helpers.makeTestYear("Asia/Pyongyang", [ + ["1904-11-30T15:29:59+00:00", "23:59:59", "KST", -510], + ["1904-11-30T15:30:00+00:00", "00:30:00", "KST", -540] + ]), + + "1927" : helpers.makeTestYear("Asia/Pyongyang", [ + ["1927-12-31T14:59:59+00:00", "23:59:59", "KST", -540], + ["1927-12-31T15:00:00+00:00", "23:30:00", "KST", -510] + ]), + + "1931" : helpers.makeTestYear("Asia/Pyongyang", [ + ["1931-12-31T15:29:59+00:00", "23:59:59", "KST", -510], + ["1931-12-31T15:30:00+00:00", "00:30:00", "KST", -540] + ]), + + "1954" : helpers.makeTestYear("Asia/Pyongyang", [ + ["1954-03-20T14:59:59+00:00", "23:59:59", "KST", -540], + ["1954-03-20T15:00:00+00:00", "23:00:00", "KST", -480] + ]), + + "1961" : helpers.makeTestYear("Asia/Pyongyang", [ + ["1961-08-09T15:59:59+00:00", "23:59:59", "KST", -480], + ["1961-08-09T16:00:00+00:00", "01:00:00", "KST", -540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/qatar.js b/tests/zones/asia/qatar.js new file mode 100644 index 00000000..4da45bb2 --- /dev/null +++ b/tests/zones/asia/qatar.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Qatar"] = { + "1919" : helpers.makeTestYear("Asia/Qatar", [ + ["1919-12-31T20:33:51+00:00", "23:59:59", "LMT", -12368 / 60], + ["1919-12-31T20:33:52+00:00", "00:33:52", "GST", -240] + ]), + + "1972" : helpers.makeTestYear("Asia/Qatar", [ + ["1972-05-31T19:59:59+00:00", "23:59:59", "GST", -240], + ["1972-05-31T20:00:00+00:00", "23:00:00", "AST", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/qyzylorda.js b/tests/zones/asia/qyzylorda.js new file mode 100644 index 00000000..245b05ae --- /dev/null +++ b/tests/zones/asia/qyzylorda.js @@ -0,0 +1,183 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Qyzylorda"] = { + "1924" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1924-05-01T19:38:07+00:00", "23:59:59", "LMT", -15712 / 60], + ["1924-05-01T19:38:08+00:00", "23:38:08", "KIZT", -240] + ]), + + "1930" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1930-06-20T19:59:59+00:00", "23:59:59", "KIZT", -240], + ["1930-06-20T20:00:00+00:00", "01:00:00", "KIZT", -300] + ]), + + "1981" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1981-03-31T18:59:59+00:00", "23:59:59", "KIZT", -300], + ["1981-03-31T19:00:00+00:00", "01:00:00", "KIZST", -360], + ["1981-09-30T17:59:59+00:00", "23:59:59", "KIZST", -360], + ["1981-09-30T18:00:00+00:00", "00:00:00", "KIZT", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "KIZT", -360], + ["1982-03-31T18:00:00+00:00", "00:00:00", "KIZST", -360], + ["1982-09-30T17:59:59+00:00", "23:59:59", "KIZST", -360], + ["1982-09-30T18:00:00+00:00", "23:00:00", "KIZT", -300] + ]), + + "1983" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1983-03-31T18:59:59+00:00", "23:59:59", "KIZT", -300], + ["1983-03-31T19:00:00+00:00", "01:00:00", "KIZST", -360], + ["1983-09-30T17:59:59+00:00", "23:59:59", "KIZST", -360], + ["1983-09-30T18:00:00+00:00", "23:00:00", "KIZT", -300] + ]), + + "1984" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1984-03-31T18:59:59+00:00", "23:59:59", "KIZT", -300], + ["1984-03-31T19:00:00+00:00", "01:00:00", "KIZST", -360], + ["1984-09-29T20:59:59+00:00", "02:59:59", "KIZST", -360], + ["1984-09-29T21:00:00+00:00", "02:00:00", "KIZT", -300] + ]), + + "1985" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1985-03-30T20:59:59+00:00", "01:59:59", "KIZT", -300], + ["1985-03-30T21:00:00+00:00", "03:00:00", "KIZST", -360], + ["1985-09-28T20:59:59+00:00", "02:59:59", "KIZST", -360], + ["1985-09-28T21:00:00+00:00", "02:00:00", "KIZT", -300] + ]), + + "1986" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1986-03-29T20:59:59+00:00", "01:59:59", "KIZT", -300], + ["1986-03-29T21:00:00+00:00", "03:00:00", "KIZST", -360], + ["1986-09-27T20:59:59+00:00", "02:59:59", "KIZST", -360], + ["1986-09-27T21:00:00+00:00", "02:00:00", "KIZT", -300] + ]), + + "1987" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1987-03-28T20:59:59+00:00", "01:59:59", "KIZT", -300], + ["1987-03-28T21:00:00+00:00", "03:00:00", "KIZST", -360], + ["1987-09-26T20:59:59+00:00", "02:59:59", "KIZST", -360], + ["1987-09-26T21:00:00+00:00", "02:00:00", "KIZT", -300] + ]), + + "1988" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1988-03-26T20:59:59+00:00", "01:59:59", "KIZT", -300], + ["1988-03-26T21:00:00+00:00", "03:00:00", "KIZST", -360], + ["1988-09-24T20:59:59+00:00", "02:59:59", "KIZST", -360], + ["1988-09-24T21:00:00+00:00", "02:00:00", "KIZT", -300] + ]), + + "1989" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1989-03-25T20:59:59+00:00", "01:59:59", "KIZT", -300], + ["1989-03-25T21:00:00+00:00", "03:00:00", "KIZST", -360], + ["1989-09-23T20:59:59+00:00", "02:59:59", "KIZST", -360], + ["1989-09-23T21:00:00+00:00", "02:00:00", "KIZT", -300] + ]), + + "1990" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1990-03-24T20:59:59+00:00", "01:59:59", "KIZT", -300], + ["1990-03-24T21:00:00+00:00", "03:00:00", "KIZST", -360], + ["1990-09-29T20:59:59+00:00", "02:59:59", "KIZST", -360], + ["1990-09-29T21:00:00+00:00", "02:00:00", "KIZT", -300] + ]), + + "1991" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1991-12-15T18:59:59+00:00", "23:59:59", "KIZT", -300], + ["1991-12-15T19:00:00+00:00", "00:00:00", "QYZT", -300] + ]), + + "1992" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1992-01-18T20:59:59+00:00", "01:59:59", "QYZT", -300], + ["1992-01-18T21:00:00+00:00", "03:00:00", "QYZT", -360], + ["1992-03-28T16:59:59+00:00", "22:59:59", "QYZT", -360], + ["1992-03-28T17:00:00+00:00", "00:00:00", "QYZST", -420], + ["1992-09-26T15:59:59+00:00", "22:59:59", "QYZST", -420], + ["1992-09-26T16:00:00+00:00", "22:00:00", "QYZT", -360] + ]), + + "1993" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1993-03-27T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["1993-03-27T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["1993-09-25T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["1993-09-25T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "1994" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1994-03-26T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["1994-03-26T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["1994-09-24T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["1994-09-24T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "1995" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1995-03-25T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["1995-03-25T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["1995-09-23T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["1995-09-23T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "1996" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1996-03-30T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["1996-03-30T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["1996-10-26T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["1996-10-26T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "1997" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1997-03-29T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["1997-03-29T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["1997-10-25T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["1997-10-25T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "1998" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1998-03-28T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["1998-03-28T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["1998-10-24T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["1998-10-24T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "1999" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["1999-03-27T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["1999-03-27T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["1999-10-30T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["1999-10-30T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "2000" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["2000-03-25T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["2000-03-25T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["2000-10-28T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["2000-10-28T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "2001" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["2001-03-24T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["2001-03-24T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["2001-10-27T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["2001-10-27T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "2002" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["2002-03-30T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["2002-03-30T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["2002-10-26T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["2002-10-26T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "2003" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["2003-03-29T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["2003-03-29T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["2003-10-25T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["2003-10-25T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]), + + "2004" : helpers.makeTestYear("Asia/Qyzylorda", [ + ["2004-03-27T19:59:59+00:00", "01:59:59", "QYZT", -360], + ["2004-03-27T20:00:00+00:00", "03:00:00", "QYZST", -420], + ["2004-10-30T19:59:59+00:00", "02:59:59", "QYZST", -420], + ["2004-10-30T20:00:00+00:00", "02:00:00", "QYZT", -360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/rangoon.js b/tests/zones/asia/rangoon.js new file mode 100644 index 00000000..21ec0c6f --- /dev/null +++ b/tests/zones/asia/rangoon.js @@ -0,0 +1,20 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Rangoon"] = { + "1919" : helpers.makeTestYear("Asia/Rangoon", [ + ["1919-12-31T17:35:19+00:00", "23:59:59", "RMT", -23080 / 60], + ["1919-12-31T17:35:20+00:00", "00:05:20", "BURT", -390] + ]), + + "1942" : helpers.makeTestYear("Asia/Rangoon", [ + ["1942-04-30T17:29:59+00:00", "23:59:59", "BURT", -390], + ["1942-04-30T17:30:00+00:00", "02:30:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Rangoon", [ + ["1945-05-02T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-05-02T15:00:00+00:00", "21:30:00", "MMT", -390] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/riyadh.js b/tests/zones/asia/riyadh.js new file mode 100644 index 00000000..58aefc41 --- /dev/null +++ b/tests/zones/asia/riyadh.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Riyadh"] = { + "1949" : helpers.makeTestYear("Asia/Riyadh", [ + ["1949-12-31T20:53:07+00:00", "23:59:59", "LMT", -11212 / 60], + ["1949-12-31T20:53:08+00:00", "23:53:08", "AST", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/sakhalin.js b/tests/zones/asia/sakhalin.js new file mode 100644 index 00000000..7e91acc2 --- /dev/null +++ b/tests/zones/asia/sakhalin.js @@ -0,0 +1,237 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Sakhalin"] = { + "1905" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1905-08-22T14:29:11+00:00", "23:59:59", "LMT", -34248 / 60], + ["1905-08-22T14:29:12+00:00", "23:29:12", "CJT", -540] + ]), + + "1937" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1937-12-31T14:59:59+00:00", "23:59:59", "CJT", -540], + ["1937-12-31T15:00:00+00:00", "00:00:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1945-08-24T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-08-24T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1981" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1981-03-31T12:59:59+00:00", "23:59:59", "SAKT", -660], + ["1981-03-31T13:00:00+00:00", "01:00:00", "SAKST", -720], + ["1981-09-30T11:59:59+00:00", "23:59:59", "SAKST", -720], + ["1981-09-30T12:00:00+00:00", "23:00:00", "SAKT", -660] + ]), + + "1982" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1982-03-31T12:59:59+00:00", "23:59:59", "SAKT", -660], + ["1982-03-31T13:00:00+00:00", "01:00:00", "SAKST", -720], + ["1982-09-30T11:59:59+00:00", "23:59:59", "SAKST", -720], + ["1982-09-30T12:00:00+00:00", "23:00:00", "SAKT", -660] + ]), + + "1983" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1983-03-31T12:59:59+00:00", "23:59:59", "SAKT", -660], + ["1983-03-31T13:00:00+00:00", "01:00:00", "SAKST", -720], + ["1983-09-30T11:59:59+00:00", "23:59:59", "SAKST", -720], + ["1983-09-30T12:00:00+00:00", "23:00:00", "SAKT", -660] + ]), + + "1984" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1984-03-31T12:59:59+00:00", "23:59:59", "SAKT", -660], + ["1984-03-31T13:00:00+00:00", "01:00:00", "SAKST", -720], + ["1984-09-29T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1984-09-29T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1985" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1985-03-30T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1985-03-30T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1985-09-28T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1985-09-28T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1986" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1986-03-29T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1986-03-29T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1986-09-27T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1986-09-27T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1987" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1987-03-28T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1987-03-28T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1987-09-26T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1987-09-26T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1988" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1988-03-26T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1988-03-26T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1988-09-24T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1988-09-24T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1989" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1989-03-25T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1989-03-25T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1989-09-23T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1989-09-23T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1990" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1990-03-24T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1990-03-24T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1990-09-29T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1990-09-29T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1991" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1991-03-30T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1991-03-30T15:00:00+00:00", "02:00:00", "SAKST", -660], + ["1991-09-28T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["1991-09-28T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "1992" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1992-01-18T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["1992-01-18T16:00:00+00:00", "03:00:00", "SAKT", -660], + ["1992-03-28T11:59:59+00:00", "22:59:59", "SAKT", -660], + ["1992-03-28T12:00:00+00:00", "00:00:00", "SAKST", -720], + ["1992-09-26T10:59:59+00:00", "22:59:59", "SAKST", -720], + ["1992-09-26T11:00:00+00:00", "22:00:00", "SAKT", -660] + ]), + + "1993" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1993-03-27T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1993-03-27T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1993-09-25T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1993-09-25T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1994" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1994-03-26T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1994-03-26T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1994-09-24T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1994-09-24T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1995" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1995-03-25T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1995-03-25T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1995-09-23T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1995-09-23T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1996" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1996-03-30T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1996-03-30T15:00:00+00:00", "03:00:00", "SAKST", -720], + ["1996-10-26T14:59:59+00:00", "02:59:59", "SAKST", -720], + ["1996-10-26T15:00:00+00:00", "02:00:00", "SAKT", -660] + ]), + + "1997" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1997-03-29T14:59:59+00:00", "01:59:59", "SAKT", -660], + ["1997-03-29T15:00:00+00:00", "02:00:00", "SAKST", -660], + ["1997-10-25T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["1997-10-25T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "1998" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1998-03-28T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["1998-03-28T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["1998-10-24T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["1998-10-24T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "1999" : helpers.makeTestYear("Asia/Sakhalin", [ + ["1999-03-27T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["1999-03-27T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["1999-10-30T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["1999-10-30T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2000" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2000-03-25T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2000-03-25T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2000-10-28T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2000-10-28T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2001" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2001-03-24T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2001-03-24T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2001-10-27T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2001-10-27T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2002" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2002-03-30T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2002-03-30T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2002-10-26T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2002-10-26T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2003" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2003-03-29T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2003-03-29T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2003-10-25T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2003-10-25T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2004" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2004-03-27T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2004-03-27T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2004-10-30T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2004-10-30T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2005" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2005-03-26T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2005-03-26T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2005-10-29T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2005-10-29T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2006" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2006-03-25T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2006-03-25T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2006-10-28T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2006-10-28T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2007" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2007-03-24T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2007-03-24T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2007-10-27T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2007-10-27T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2008" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2008-03-29T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2008-03-29T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2008-10-25T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2008-10-25T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2009" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2009-03-28T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2009-03-28T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2009-10-24T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2009-10-24T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2010" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2010-03-27T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2010-03-27T16:00:00+00:00", "03:00:00", "SAKST", -660], + ["2010-10-30T15:59:59+00:00", "02:59:59", "SAKST", -660], + ["2010-10-30T16:00:00+00:00", "02:00:00", "SAKT", -600] + ]), + + "2011" : helpers.makeTestYear("Asia/Sakhalin", [ + ["2011-03-26T15:59:59+00:00", "01:59:59", "SAKT", -600], + ["2011-03-26T16:00:00+00:00", "03:00:00", "SAKT", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/samarkand.js b/tests/zones/asia/samarkand.js new file mode 100644 index 00000000..c12a9b63 --- /dev/null +++ b/tests/zones/asia/samarkand.js @@ -0,0 +1,94 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Samarkand"] = { + "1924" : helpers.makeTestYear("Asia/Samarkand", [ + ["1924-05-01T19:32:47+00:00", "23:59:59", "LMT", -16032 / 60], + ["1924-05-01T19:32:48+00:00", "23:32:48", "SAMT", -240] + ]), + + "1930" : helpers.makeTestYear("Asia/Samarkand", [ + ["1930-06-20T19:59:59+00:00", "23:59:59", "SAMT", -240], + ["1930-06-20T20:00:00+00:00", "01:00:00", "SAMT", -300] + ]), + + "1981" : helpers.makeTestYear("Asia/Samarkand", [ + ["1981-03-31T18:59:59+00:00", "23:59:59", "SAMT", -300], + ["1981-03-31T19:00:00+00:00", "01:00:00", "SAMST", -360], + ["1981-09-30T17:59:59+00:00", "23:59:59", "SAMST", -360], + ["1981-09-30T18:00:00+00:00", "00:00:00", "TAST", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Samarkand", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "TAST", -360], + ["1982-03-31T18:00:00+00:00", "00:00:00", "SAMST", -360], + ["1982-09-30T17:59:59+00:00", "23:59:59", "SAMST", -360], + ["1982-09-30T18:00:00+00:00", "23:00:00", "SAMT", -300] + ]), + + "1983" : helpers.makeTestYear("Asia/Samarkand", [ + ["1983-03-31T18:59:59+00:00", "23:59:59", "SAMT", -300], + ["1983-03-31T19:00:00+00:00", "01:00:00", "SAMST", -360], + ["1983-09-30T17:59:59+00:00", "23:59:59", "SAMST", -360], + ["1983-09-30T18:00:00+00:00", "23:00:00", "SAMT", -300] + ]), + + "1984" : helpers.makeTestYear("Asia/Samarkand", [ + ["1984-03-31T18:59:59+00:00", "23:59:59", "SAMT", -300], + ["1984-03-31T19:00:00+00:00", "01:00:00", "SAMST", -360], + ["1984-09-29T20:59:59+00:00", "02:59:59", "SAMST", -360], + ["1984-09-29T21:00:00+00:00", "02:00:00", "SAMT", -300] + ]), + + "1985" : helpers.makeTestYear("Asia/Samarkand", [ + ["1985-03-30T20:59:59+00:00", "01:59:59", "SAMT", -300], + ["1985-03-30T21:00:00+00:00", "03:00:00", "SAMST", -360], + ["1985-09-28T20:59:59+00:00", "02:59:59", "SAMST", -360], + ["1985-09-28T21:00:00+00:00", "02:00:00", "SAMT", -300] + ]), + + "1986" : helpers.makeTestYear("Asia/Samarkand", [ + ["1986-03-29T20:59:59+00:00", "01:59:59", "SAMT", -300], + ["1986-03-29T21:00:00+00:00", "03:00:00", "SAMST", -360], + ["1986-09-27T20:59:59+00:00", "02:59:59", "SAMST", -360], + ["1986-09-27T21:00:00+00:00", "02:00:00", "SAMT", -300] + ]), + + "1987" : helpers.makeTestYear("Asia/Samarkand", [ + ["1987-03-28T20:59:59+00:00", "01:59:59", "SAMT", -300], + ["1987-03-28T21:00:00+00:00", "03:00:00", "SAMST", -360], + ["1987-09-26T20:59:59+00:00", "02:59:59", "SAMST", -360], + ["1987-09-26T21:00:00+00:00", "02:00:00", "SAMT", -300] + ]), + + "1988" : helpers.makeTestYear("Asia/Samarkand", [ + ["1988-03-26T20:59:59+00:00", "01:59:59", "SAMT", -300], + ["1988-03-26T21:00:00+00:00", "03:00:00", "SAMST", -360], + ["1988-09-24T20:59:59+00:00", "02:59:59", "SAMST", -360], + ["1988-09-24T21:00:00+00:00", "02:00:00", "SAMT", -300] + ]), + + "1989" : helpers.makeTestYear("Asia/Samarkand", [ + ["1989-03-25T20:59:59+00:00", "01:59:59", "SAMT", -300], + ["1989-03-25T21:00:00+00:00", "03:00:00", "SAMST", -360], + ["1989-09-23T20:59:59+00:00", "02:59:59", "SAMST", -360], + ["1989-09-23T21:00:00+00:00", "02:00:00", "SAMT", -300] + ]), + + "1990" : helpers.makeTestYear("Asia/Samarkand", [ + ["1990-03-24T20:59:59+00:00", "01:59:59", "SAMT", -300], + ["1990-03-24T21:00:00+00:00", "03:00:00", "SAMST", -360], + ["1990-09-29T20:59:59+00:00", "02:59:59", "SAMST", -360], + ["1990-09-29T21:00:00+00:00", "02:00:00", "SAMT", -300] + ]), + + "1991" : helpers.makeTestYear("Asia/Samarkand", [ + ["1991-03-30T20:59:59+00:00", "01:59:59", "SAMT", -300], + ["1991-03-30T21:00:00+00:00", "03:00:00", "SAMST", -360], + ["1991-08-31T17:59:59+00:00", "23:59:59", "SAMST", -360], + ["1991-08-31T18:00:00+00:00", "00:00:00", "UZST", -360], + ["1991-09-28T20:59:59+00:00", "02:59:59", "UZST", -360], + ["1991-09-28T21:00:00+00:00", "02:00:00", "UZT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/seoul.js b/tests/zones/asia/seoul.js new file mode 100644 index 00000000..11ef880d --- /dev/null +++ b/tests/zones/asia/seoul.js @@ -0,0 +1,56 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Seoul"] = { + "1904" : helpers.makeTestYear("Asia/Seoul", [ + ["1904-11-30T15:29:59+00:00", "23:59:59", "KST", -510], + ["1904-11-30T15:30:00+00:00", "00:30:00", "KST", -540] + ]), + + "1927" : helpers.makeTestYear("Asia/Seoul", [ + ["1927-12-31T14:59:59+00:00", "23:59:59", "KST", -540], + ["1927-12-31T15:00:00+00:00", "23:30:00", "KST", -510] + ]), + + "1931" : helpers.makeTestYear("Asia/Seoul", [ + ["1931-12-31T15:29:59+00:00", "23:59:59", "KST", -510], + ["1931-12-31T15:30:00+00:00", "00:30:00", "KST", -540] + ]), + + "1954" : helpers.makeTestYear("Asia/Seoul", [ + ["1954-03-20T14:59:59+00:00", "23:59:59", "KST", -540], + ["1954-03-20T15:00:00+00:00", "23:00:00", "KST", -480] + ]), + + "1960" : helpers.makeTestYear("Asia/Seoul", [ + ["1960-05-14T15:59:59+00:00", "23:59:59", "KST", -480], + ["1960-05-14T16:00:00+00:00", "01:00:00", "KDT", -540], + ["1960-09-12T14:59:59+00:00", "23:59:59", "KDT", -540], + ["1960-09-12T15:00:00+00:00", "23:00:00", "KST", -480] + ]), + + "1961" : helpers.makeTestYear("Asia/Seoul", [ + ["1961-08-09T15:59:59+00:00", "23:59:59", "KST", -480], + ["1961-08-09T16:00:00+00:00", "00:30:00", "KST", -510] + ]), + + "1968" : helpers.makeTestYear("Asia/Seoul", [ + ["1968-09-30T15:29:59+00:00", "23:59:59", "KST", -510], + ["1968-09-30T15:30:00+00:00", "00:30:00", "KST", -540] + ]), + + "1987" : helpers.makeTestYear("Asia/Seoul", [ + ["1987-05-09T14:59:59+00:00", "23:59:59", "KST", -540], + ["1987-05-09T15:00:00+00:00", "01:00:00", "KDT", -600], + ["1987-10-10T13:59:59+00:00", "23:59:59", "KDT", -600], + ["1987-10-10T14:00:00+00:00", "23:00:00", "KST", -540] + ]), + + "1988" : helpers.makeTestYear("Asia/Seoul", [ + ["1988-05-07T14:59:59+00:00", "23:59:59", "KST", -540], + ["1988-05-07T15:00:00+00:00", "01:00:00", "KDT", -600], + ["1988-10-08T13:59:59+00:00", "23:59:59", "KDT", -600], + ["1988-10-08T14:00:00+00:00", "23:00:00", "KST", -540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/shanghai.js b/tests/zones/asia/shanghai.js new file mode 100644 index 00000000..7fd77273 --- /dev/null +++ b/tests/zones/asia/shanghai.js @@ -0,0 +1,66 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Shanghai"] = { + "1927" : helpers.makeTestYear("Asia/Shanghai", [ + ["1927-12-31T15:54:02+00:00", "23:59:59", "LMT", -29157 / 60], + ["1927-12-31T15:54:03+00:00", "23:54:03", "CST", -480] + ]), + + "1940" : helpers.makeTestYear("Asia/Shanghai", [ + ["1940-06-02T15:59:59+00:00", "23:59:59", "CST", -480], + ["1940-06-02T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1940-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1940-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1941" : helpers.makeTestYear("Asia/Shanghai", [ + ["1941-03-15T15:59:59+00:00", "23:59:59", "CST", -480], + ["1941-03-15T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1941-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1941-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1986" : helpers.makeTestYear("Asia/Shanghai", [ + ["1986-05-03T15:59:59+00:00", "23:59:59", "CST", -480], + ["1986-05-03T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1986-09-13T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1986-09-13T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1987" : helpers.makeTestYear("Asia/Shanghai", [ + ["1987-04-11T15:59:59+00:00", "23:59:59", "CST", -480], + ["1987-04-11T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1987-09-12T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1987-09-12T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1988" : helpers.makeTestYear("Asia/Shanghai", [ + ["1988-04-09T15:59:59+00:00", "23:59:59", "CST", -480], + ["1988-04-09T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1988-09-10T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1988-09-10T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1989" : helpers.makeTestYear("Asia/Shanghai", [ + ["1989-04-15T15:59:59+00:00", "23:59:59", "CST", -480], + ["1989-04-15T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1989-09-16T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1989-09-16T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1990" : helpers.makeTestYear("Asia/Shanghai", [ + ["1990-04-14T15:59:59+00:00", "23:59:59", "CST", -480], + ["1990-04-14T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1990-09-15T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1990-09-15T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1991" : helpers.makeTestYear("Asia/Shanghai", [ + ["1991-04-13T15:59:59+00:00", "23:59:59", "CST", -480], + ["1991-04-13T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1991-09-14T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1991-09-14T15:00:00+00:00", "23:00:00", "CST", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/singapore.js b/tests/zones/asia/singapore.js new file mode 100644 index 00000000..9b816d8d --- /dev/null +++ b/tests/zones/asia/singapore.js @@ -0,0 +1,45 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Singapore"] = { + "1905" : helpers.makeTestYear("Asia/Singapore", [ + ["1905-05-31T17:04:34+00:00", "23:59:59", "SMT", -24925 / 60], + ["1905-05-31T17:04:35+00:00", "00:04:35", "MALT", -420] + ]), + + "1932" : helpers.makeTestYear("Asia/Singapore", [ + ["1932-12-31T16:59:59+00:00", "23:59:59", "MALT", -420], + ["1932-12-31T17:00:00+00:00", "00:20:00", "MALST", -440] + ]), + + "1935" : helpers.makeTestYear("Asia/Singapore", [ + ["1935-12-31T16:39:59+00:00", "23:59:59", "MALST", -440], + ["1935-12-31T16:40:00+00:00", "00:00:00", "MALT", -440] + ]), + + "1941" : helpers.makeTestYear("Asia/Singapore", [ + ["1941-08-31T16:39:59+00:00", "23:59:59", "MALT", -440], + ["1941-08-31T16:40:00+00:00", "00:10:00", "MALT", -450] + ]), + + "1942" : helpers.makeTestYear("Asia/Singapore", [ + ["1942-02-15T16:29:59+00:00", "23:59:59", "MALT", -450], + ["1942-02-15T16:30:00+00:00", "01:30:00", "JST", -540] + ]), + + "1945" : helpers.makeTestYear("Asia/Singapore", [ + ["1945-09-11T14:59:59+00:00", "23:59:59", "JST", -540], + ["1945-09-11T15:00:00+00:00", "22:30:00", "MALT", -450] + ]), + + "1965" : helpers.makeTestYear("Asia/Singapore", [ + ["1965-08-08T16:29:59+00:00", "23:59:59", "MALT", -450], + ["1965-08-08T16:30:00+00:00", "00:00:00", "SGT", -450] + ]), + + "1981" : helpers.makeTestYear("Asia/Singapore", [ + ["1981-12-31T16:29:59+00:00", "23:59:59", "SGT", -450], + ["1981-12-31T16:30:00+00:00", "00:30:00", "SGT", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/taipei.js b/tests/zones/asia/taipei.js new file mode 100644 index 00000000..95767e6b --- /dev/null +++ b/tests/zones/asia/taipei.js @@ -0,0 +1,145 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Taipei"] = { + "1945" : helpers.makeTestYear("Asia/Taipei", [ + ["1945-04-30T15:59:59+00:00", "23:59:59", "CST", -480], + ["1945-04-30T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1945-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1945-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1946" : helpers.makeTestYear("Asia/Taipei", [ + ["1946-04-30T15:59:59+00:00", "23:59:59", "CST", -480], + ["1946-04-30T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1946-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1946-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1947" : helpers.makeTestYear("Asia/Taipei", [ + ["1947-04-30T15:59:59+00:00", "23:59:59", "CST", -480], + ["1947-04-30T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1947-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1947-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1948" : helpers.makeTestYear("Asia/Taipei", [ + ["1948-04-30T15:59:59+00:00", "23:59:59", "CST", -480], + ["1948-04-30T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1948-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1948-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1949" : helpers.makeTestYear("Asia/Taipei", [ + ["1949-04-30T15:59:59+00:00", "23:59:59", "CST", -480], + ["1949-04-30T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1949-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1949-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1950" : helpers.makeTestYear("Asia/Taipei", [ + ["1950-04-30T15:59:59+00:00", "23:59:59", "CST", -480], + ["1950-04-30T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1950-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1950-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1951" : helpers.makeTestYear("Asia/Taipei", [ + ["1951-04-30T15:59:59+00:00", "23:59:59", "CST", -480], + ["1951-04-30T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1951-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1951-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1952" : helpers.makeTestYear("Asia/Taipei", [ + ["1952-02-29T15:59:59+00:00", "23:59:59", "CST", -480], + ["1952-02-29T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1952-10-31T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1952-10-31T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1953" : helpers.makeTestYear("Asia/Taipei", [ + ["1953-03-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1953-03-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1953-10-31T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1953-10-31T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1954" : helpers.makeTestYear("Asia/Taipei", [ + ["1954-03-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1954-03-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1954-10-31T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1954-10-31T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1955" : helpers.makeTestYear("Asia/Taipei", [ + ["1955-03-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1955-03-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1955-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1955-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1956" : helpers.makeTestYear("Asia/Taipei", [ + ["1956-03-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1956-03-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1956-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1956-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1957" : helpers.makeTestYear("Asia/Taipei", [ + ["1957-03-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1957-03-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1957-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1957-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1958" : helpers.makeTestYear("Asia/Taipei", [ + ["1958-03-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1958-03-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1958-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1958-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1959" : helpers.makeTestYear("Asia/Taipei", [ + ["1959-03-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1959-03-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1959-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1959-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1960" : helpers.makeTestYear("Asia/Taipei", [ + ["1960-05-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1960-05-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1960-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1960-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1961" : helpers.makeTestYear("Asia/Taipei", [ + ["1961-05-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1961-05-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1961-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1961-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1974" : helpers.makeTestYear("Asia/Taipei", [ + ["1974-03-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1974-03-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1974-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1974-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1975" : helpers.makeTestYear("Asia/Taipei", [ + ["1975-03-31T15:59:59+00:00", "23:59:59", "CST", -480], + ["1975-03-31T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1975-09-30T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1975-09-30T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1979" : helpers.makeTestYear("Asia/Taipei", [ + ["1979-06-29T15:59:59+00:00", "23:59:59", "CST", -480], + ["1979-06-29T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1979-09-29T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1979-09-29T15:00:00+00:00", "23:00:00", "CST", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/tashkent.js b/tests/zones/asia/tashkent.js new file mode 100644 index 00000000..0175ab6d --- /dev/null +++ b/tests/zones/asia/tashkent.js @@ -0,0 +1,94 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Tashkent"] = { + "1924" : helpers.makeTestYear("Asia/Tashkent", [ + ["1924-05-01T19:22:47+00:00", "23:59:59", "LMT", -16632 / 60], + ["1924-05-01T19:22:48+00:00", "00:22:48", "TAST", -300] + ]), + + "1930" : helpers.makeTestYear("Asia/Tashkent", [ + ["1930-06-20T18:59:59+00:00", "23:59:59", "TAST", -300], + ["1930-06-20T19:00:00+00:00", "01:00:00", "TAST", -360] + ]), + + "1981" : helpers.makeTestYear("Asia/Tashkent", [ + ["1981-03-31T17:59:59+00:00", "23:59:59", "TAST", -360], + ["1981-03-31T18:00:00+00:00", "01:00:00", "TASST", -420], + ["1981-09-30T16:59:59+00:00", "23:59:59", "TASST", -420], + ["1981-09-30T17:00:00+00:00", "23:00:00", "TAST", -360] + ]), + + "1982" : helpers.makeTestYear("Asia/Tashkent", [ + ["1982-03-31T17:59:59+00:00", "23:59:59", "TAST", -360], + ["1982-03-31T18:00:00+00:00", "01:00:00", "TASST", -420], + ["1982-09-30T16:59:59+00:00", "23:59:59", "TASST", -420], + ["1982-09-30T17:00:00+00:00", "23:00:00", "TAST", -360] + ]), + + "1983" : helpers.makeTestYear("Asia/Tashkent", [ + ["1983-03-31T17:59:59+00:00", "23:59:59", "TAST", -360], + ["1983-03-31T18:00:00+00:00", "01:00:00", "TASST", -420], + ["1983-09-30T16:59:59+00:00", "23:59:59", "TASST", -420], + ["1983-09-30T17:00:00+00:00", "23:00:00", "TAST", -360] + ]), + + "1984" : helpers.makeTestYear("Asia/Tashkent", [ + ["1984-03-31T17:59:59+00:00", "23:59:59", "TAST", -360], + ["1984-03-31T18:00:00+00:00", "01:00:00", "TASST", -420], + ["1984-09-29T19:59:59+00:00", "02:59:59", "TASST", -420], + ["1984-09-29T20:00:00+00:00", "02:00:00", "TAST", -360] + ]), + + "1985" : helpers.makeTestYear("Asia/Tashkent", [ + ["1985-03-30T19:59:59+00:00", "01:59:59", "TAST", -360], + ["1985-03-30T20:00:00+00:00", "03:00:00", "TASST", -420], + ["1985-09-28T19:59:59+00:00", "02:59:59", "TASST", -420], + ["1985-09-28T20:00:00+00:00", "02:00:00", "TAST", -360] + ]), + + "1986" : helpers.makeTestYear("Asia/Tashkent", [ + ["1986-03-29T19:59:59+00:00", "01:59:59", "TAST", -360], + ["1986-03-29T20:00:00+00:00", "03:00:00", "TASST", -420], + ["1986-09-27T19:59:59+00:00", "02:59:59", "TASST", -420], + ["1986-09-27T20:00:00+00:00", "02:00:00", "TAST", -360] + ]), + + "1987" : helpers.makeTestYear("Asia/Tashkent", [ + ["1987-03-28T19:59:59+00:00", "01:59:59", "TAST", -360], + ["1987-03-28T20:00:00+00:00", "03:00:00", "TASST", -420], + ["1987-09-26T19:59:59+00:00", "02:59:59", "TASST", -420], + ["1987-09-26T20:00:00+00:00", "02:00:00", "TAST", -360] + ]), + + "1988" : helpers.makeTestYear("Asia/Tashkent", [ + ["1988-03-26T19:59:59+00:00", "01:59:59", "TAST", -360], + ["1988-03-26T20:00:00+00:00", "03:00:00", "TASST", -420], + ["1988-09-24T19:59:59+00:00", "02:59:59", "TASST", -420], + ["1988-09-24T20:00:00+00:00", "02:00:00", "TAST", -360] + ]), + + "1989" : helpers.makeTestYear("Asia/Tashkent", [ + ["1989-03-25T19:59:59+00:00", "01:59:59", "TAST", -360], + ["1989-03-25T20:00:00+00:00", "03:00:00", "TASST", -420], + ["1989-09-23T19:59:59+00:00", "02:59:59", "TASST", -420], + ["1989-09-23T20:00:00+00:00", "02:00:00", "TAST", -360] + ]), + + "1990" : helpers.makeTestYear("Asia/Tashkent", [ + ["1990-03-24T19:59:59+00:00", "01:59:59", "TAST", -360], + ["1990-03-24T20:00:00+00:00", "03:00:00", "TASST", -420], + ["1990-09-29T19:59:59+00:00", "02:59:59", "TASST", -420], + ["1990-09-29T20:00:00+00:00", "02:00:00", "TAST", -360] + ]), + + "1991" : helpers.makeTestYear("Asia/Tashkent", [ + ["1991-03-30T19:59:59+00:00", "01:59:59", "TAST", -360], + ["1991-03-30T20:00:00+00:00", "02:00:00", "TASST", -360], + ["1991-08-31T17:59:59+00:00", "23:59:59", "TASST", -360], + ["1991-08-31T18:00:00+00:00", "00:00:00", "UZST", -360], + ["1991-09-28T20:59:59+00:00", "02:59:59", "UZST", -360], + ["1991-09-28T21:00:00+00:00", "02:00:00", "UZT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/tbilisi.js b/tests/zones/asia/tbilisi.js new file mode 100644 index 00000000..e9c9fc66 --- /dev/null +++ b/tests/zones/asia/tbilisi.js @@ -0,0 +1,188 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Tbilisi"] = { + "1924" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1924-05-01T21:00:43+00:00", "23:59:59", "TBMT", -10756 / 60], + ["1924-05-01T21:00:44+00:00", "00:00:44", "TBIT", -180] + ]), + + "1957" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1957-02-28T20:59:59+00:00", "23:59:59", "TBIT", -180], + ["1957-02-28T21:00:00+00:00", "01:00:00", "TBIT", -240] + ]), + + "1981" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1981-03-31T19:59:59+00:00", "23:59:59", "TBIT", -240], + ["1981-03-31T20:00:00+00:00", "01:00:00", "TBIST", -300], + ["1981-09-30T18:59:59+00:00", "23:59:59", "TBIST", -300], + ["1981-09-30T19:00:00+00:00", "23:00:00", "TBIT", -240] + ]), + + "1982" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1982-03-31T19:59:59+00:00", "23:59:59", "TBIT", -240], + ["1982-03-31T20:00:00+00:00", "01:00:00", "TBIST", -300], + ["1982-09-30T18:59:59+00:00", "23:59:59", "TBIST", -300], + ["1982-09-30T19:00:00+00:00", "23:00:00", "TBIT", -240] + ]), + + "1983" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1983-03-31T19:59:59+00:00", "23:59:59", "TBIT", -240], + ["1983-03-31T20:00:00+00:00", "01:00:00", "TBIST", -300], + ["1983-09-30T18:59:59+00:00", "23:59:59", "TBIST", -300], + ["1983-09-30T19:00:00+00:00", "23:00:00", "TBIT", -240] + ]), + + "1984" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1984-03-31T19:59:59+00:00", "23:59:59", "TBIT", -240], + ["1984-03-31T20:00:00+00:00", "01:00:00", "TBIST", -300], + ["1984-09-29T21:59:59+00:00", "02:59:59", "TBIST", -300], + ["1984-09-29T22:00:00+00:00", "02:00:00", "TBIT", -240] + ]), + + "1985" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1985-03-30T21:59:59+00:00", "01:59:59", "TBIT", -240], + ["1985-03-30T22:00:00+00:00", "03:00:00", "TBIST", -300], + ["1985-09-28T21:59:59+00:00", "02:59:59", "TBIST", -300], + ["1985-09-28T22:00:00+00:00", "02:00:00", "TBIT", -240] + ]), + + "1986" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1986-03-29T21:59:59+00:00", "01:59:59", "TBIT", -240], + ["1986-03-29T22:00:00+00:00", "03:00:00", "TBIST", -300], + ["1986-09-27T21:59:59+00:00", "02:59:59", "TBIST", -300], + ["1986-09-27T22:00:00+00:00", "02:00:00", "TBIT", -240] + ]), + + "1987" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1987-03-28T21:59:59+00:00", "01:59:59", "TBIT", -240], + ["1987-03-28T22:00:00+00:00", "03:00:00", "TBIST", -300], + ["1987-09-26T21:59:59+00:00", "02:59:59", "TBIST", -300], + ["1987-09-26T22:00:00+00:00", "02:00:00", "TBIT", -240] + ]), + + "1988" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1988-03-26T21:59:59+00:00", "01:59:59", "TBIT", -240], + ["1988-03-26T22:00:00+00:00", "03:00:00", "TBIST", -300], + ["1988-09-24T21:59:59+00:00", "02:59:59", "TBIST", -300], + ["1988-09-24T22:00:00+00:00", "02:00:00", "TBIT", -240] + ]), + + "1989" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1989-03-25T21:59:59+00:00", "01:59:59", "TBIT", -240], + ["1989-03-25T22:00:00+00:00", "03:00:00", "TBIST", -300], + ["1989-09-23T21:59:59+00:00", "02:59:59", "TBIST", -300], + ["1989-09-23T22:00:00+00:00", "02:00:00", "TBIT", -240] + ]), + + "1990" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1990-03-24T21:59:59+00:00", "01:59:59", "TBIT", -240], + ["1990-03-24T22:00:00+00:00", "03:00:00", "TBIST", -300], + ["1990-09-29T21:59:59+00:00", "02:59:59", "TBIST", -300], + ["1990-09-29T22:00:00+00:00", "02:00:00", "TBIT", -240] + ]), + + "1991" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1991-03-30T21:59:59+00:00", "01:59:59", "TBIT", -240], + ["1991-03-30T22:00:00+00:00", "02:00:00", "TBIST", -240], + ["1991-04-08T19:59:59+00:00", "23:59:59", "TBIST", -240], + ["1991-04-08T20:00:00+00:00", "00:00:00", "GEST", -240], + ["1991-09-28T22:59:59+00:00", "02:59:59", "GEST", -240], + ["1991-09-28T23:00:00+00:00", "02:00:00", "GET", -180] + ]), + + "1992" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1992-03-28T20:59:59+00:00", "23:59:59", "GET", -180], + ["1992-03-28T21:00:00+00:00", "01:00:00", "GEST", -240], + ["1992-09-26T19:59:59+00:00", "23:59:59", "GEST", -240], + ["1992-09-26T20:00:00+00:00", "23:00:00", "GET", -180] + ]), + + "1993" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1993-03-27T20:59:59+00:00", "23:59:59", "GET", -180], + ["1993-03-27T21:00:00+00:00", "01:00:00", "GEST", -240], + ["1993-09-25T19:59:59+00:00", "23:59:59", "GEST", -240], + ["1993-09-25T20:00:00+00:00", "23:00:00", "GET", -180] + ]), + + "1994" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1994-03-26T20:59:59+00:00", "23:59:59", "GET", -180], + ["1994-03-26T21:00:00+00:00", "01:00:00", "GEST", -240], + ["1994-09-24T19:59:59+00:00", "23:59:59", "GEST", -240], + ["1994-09-24T20:00:00+00:00", "00:00:00", "GET", -240] + ]), + + "1995" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1995-03-25T19:59:59+00:00", "23:59:59", "GET", -240], + ["1995-03-25T20:00:00+00:00", "01:00:00", "GEST", -300], + ["1995-09-23T18:59:59+00:00", "23:59:59", "GEST", -300], + ["1995-09-23T19:00:00+00:00", "23:00:00", "GET", -240] + ]), + + "1996" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1996-03-30T19:59:59+00:00", "23:59:59", "GET", -240], + ["1996-03-30T20:00:00+00:00", "01:00:00", "GEST", -300] + ]), + + "1997" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1997-10-25T18:59:59+00:00", "23:59:59", "GEST", -300], + ["1997-10-25T19:00:00+00:00", "23:00:00", "GET", -240] + ]), + + "1998" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1998-03-28T19:59:59+00:00", "23:59:59", "GET", -240], + ["1998-03-28T20:00:00+00:00", "01:00:00", "GEST", -300], + ["1998-10-24T18:59:59+00:00", "23:59:59", "GEST", -300], + ["1998-10-24T19:00:00+00:00", "23:00:00", "GET", -240] + ]), + + "1999" : helpers.makeTestYear("Asia/Tbilisi", [ + ["1999-03-27T19:59:59+00:00", "23:59:59", "GET", -240], + ["1999-03-27T20:00:00+00:00", "01:00:00", "GEST", -300], + ["1999-10-30T18:59:59+00:00", "23:59:59", "GEST", -300], + ["1999-10-30T19:00:00+00:00", "23:00:00", "GET", -240] + ]), + + "2000" : helpers.makeTestYear("Asia/Tbilisi", [ + ["2000-03-25T19:59:59+00:00", "23:59:59", "GET", -240], + ["2000-03-25T20:00:00+00:00", "01:00:00", "GEST", -300], + ["2000-10-28T18:59:59+00:00", "23:59:59", "GEST", -300], + ["2000-10-28T19:00:00+00:00", "23:00:00", "GET", -240] + ]), + + "2001" : helpers.makeTestYear("Asia/Tbilisi", [ + ["2001-03-24T19:59:59+00:00", "23:59:59", "GET", -240], + ["2001-03-24T20:00:00+00:00", "01:00:00", "GEST", -300], + ["2001-10-27T18:59:59+00:00", "23:59:59", "GEST", -300], + ["2001-10-27T19:00:00+00:00", "23:00:00", "GET", -240] + ]), + + "2002" : helpers.makeTestYear("Asia/Tbilisi", [ + ["2002-03-30T19:59:59+00:00", "23:59:59", "GET", -240], + ["2002-03-30T20:00:00+00:00", "01:00:00", "GEST", -300], + ["2002-10-26T18:59:59+00:00", "23:59:59", "GEST", -300], + ["2002-10-26T19:00:00+00:00", "23:00:00", "GET", -240] + ]), + + "2003" : helpers.makeTestYear("Asia/Tbilisi", [ + ["2003-03-29T19:59:59+00:00", "23:59:59", "GET", -240], + ["2003-03-29T20:00:00+00:00", "01:00:00", "GEST", -300], + ["2003-10-25T18:59:59+00:00", "23:59:59", "GEST", -300], + ["2003-10-25T19:00:00+00:00", "23:00:00", "GET", -240] + ]), + + "2004" : helpers.makeTestYear("Asia/Tbilisi", [ + ["2004-03-27T19:59:59+00:00", "23:59:59", "GET", -240], + ["2004-03-27T20:00:00+00:00", "01:00:00", "GEST", -300], + ["2004-06-26T18:59:59+00:00", "23:59:59", "GEST", -300], + ["2004-06-26T19:00:00+00:00", "23:00:00", "GEST", -240], + ["2004-10-30T22:59:59+00:00", "02:59:59", "GEST", -240], + ["2004-10-30T23:00:00+00:00", "02:00:00", "GET", -180] + ]), + + "2005" : helpers.makeTestYear("Asia/Tbilisi", [ + ["2005-03-26T22:59:59+00:00", "01:59:59", "GET", -180], + ["2005-03-26T23:00:00+00:00", "03:00:00", "GET", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/tehran.js b/tests/zones/asia/tehran.js new file mode 100644 index 00000000..dc7bf42d --- /dev/null +++ b/tests/zones/asia/tehran.js @@ -0,0 +1,358 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Tehran"] = { + "1915" : helpers.makeTestYear("Asia/Tehran", [ + ["1915-12-31T20:34:15+00:00", "23:59:59", "LMT", -12344 / 60], + ["1915-12-31T20:34:16+00:00", "00:00:00", "TMT", -12344 / 60] + ]), + + "1945" : helpers.makeTestYear("Asia/Tehran", [ + ["1945-12-31T20:34:15+00:00", "23:59:59", "TMT", -12344 / 60], + ["1945-12-31T20:34:16+00:00", "00:04:16", "IRST", -210] + ]), + + "1977" : helpers.makeTestYear("Asia/Tehran", [ + ["1977-10-31T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1977-10-31T20:30:00+00:00", "00:30:00", "IRST", -240] + ]), + + "1978" : helpers.makeTestYear("Asia/Tehran", [ + ["1978-03-20T19:59:59+00:00", "23:59:59", "IRST", -240], + ["1978-03-20T20:00:00+00:00", "01:00:00", "IRDT", -300], + ["1978-10-20T18:59:59+00:00", "23:59:59", "IRDT", -300], + ["1978-10-20T19:00:00+00:00", "23:00:00", "IRST", -240], + ["1978-12-31T19:59:59+00:00", "23:59:59", "IRST", -240], + ["1978-12-31T20:00:00+00:00", "23:30:00", "IRST", -210] + ]), + + "1979" : helpers.makeTestYear("Asia/Tehran", [ + ["1979-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1979-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1979-09-18T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1979-09-18T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1980" : helpers.makeTestYear("Asia/Tehran", [ + ["1980-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1980-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1980-09-22T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1980-09-22T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1991" : helpers.makeTestYear("Asia/Tehran", [ + ["1991-05-02T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1991-05-02T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1991-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1991-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1992" : helpers.makeTestYear("Asia/Tehran", [ + ["1992-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1992-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1992-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1992-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1993" : helpers.makeTestYear("Asia/Tehran", [ + ["1993-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1993-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1993-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1993-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1994" : helpers.makeTestYear("Asia/Tehran", [ + ["1994-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1994-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1994-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1994-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1995" : helpers.makeTestYear("Asia/Tehran", [ + ["1995-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1995-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1995-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1995-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1996" : helpers.makeTestYear("Asia/Tehran", [ + ["1996-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1996-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1996-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1996-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1997" : helpers.makeTestYear("Asia/Tehran", [ + ["1997-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1997-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1997-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1997-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1998" : helpers.makeTestYear("Asia/Tehran", [ + ["1998-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1998-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1998-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1998-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "1999" : helpers.makeTestYear("Asia/Tehran", [ + ["1999-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["1999-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["1999-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["1999-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2000" : helpers.makeTestYear("Asia/Tehran", [ + ["2000-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2000-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2000-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2000-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2001" : helpers.makeTestYear("Asia/Tehran", [ + ["2001-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2001-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2001-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2001-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2002" : helpers.makeTestYear("Asia/Tehran", [ + ["2002-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2002-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2002-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2002-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2003" : helpers.makeTestYear("Asia/Tehran", [ + ["2003-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2003-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2003-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2003-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2004" : helpers.makeTestYear("Asia/Tehran", [ + ["2004-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2004-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2004-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2004-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2005" : helpers.makeTestYear("Asia/Tehran", [ + ["2005-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2005-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2005-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2005-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2008" : helpers.makeTestYear("Asia/Tehran", [ + ["2008-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2008-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2008-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2008-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2009" : helpers.makeTestYear("Asia/Tehran", [ + ["2009-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2009-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2009-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2009-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2010" : helpers.makeTestYear("Asia/Tehran", [ + ["2010-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2010-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2010-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2010-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2011" : helpers.makeTestYear("Asia/Tehran", [ + ["2011-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2011-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2011-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2011-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2012" : helpers.makeTestYear("Asia/Tehran", [ + ["2012-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2012-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2012-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2012-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2013" : helpers.makeTestYear("Asia/Tehran", [ + ["2013-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2013-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2013-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2013-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2014" : helpers.makeTestYear("Asia/Tehran", [ + ["2014-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2014-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2014-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2014-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2015" : helpers.makeTestYear("Asia/Tehran", [ + ["2015-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2015-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2015-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2015-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2016" : helpers.makeTestYear("Asia/Tehran", [ + ["2016-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2016-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2016-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2016-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2017" : helpers.makeTestYear("Asia/Tehran", [ + ["2017-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2017-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2017-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2017-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2018" : helpers.makeTestYear("Asia/Tehran", [ + ["2018-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2018-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2018-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2018-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2019" : helpers.makeTestYear("Asia/Tehran", [ + ["2019-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2019-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2019-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2019-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2020" : helpers.makeTestYear("Asia/Tehran", [ + ["2020-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2020-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2020-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2020-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2021" : helpers.makeTestYear("Asia/Tehran", [ + ["2021-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2021-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2021-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2021-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2022" : helpers.makeTestYear("Asia/Tehran", [ + ["2022-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2022-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2022-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2022-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2023" : helpers.makeTestYear("Asia/Tehran", [ + ["2023-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2023-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2023-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2023-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2024" : helpers.makeTestYear("Asia/Tehran", [ + ["2024-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2024-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2024-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2024-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2025" : helpers.makeTestYear("Asia/Tehran", [ + ["2025-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2025-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2025-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2025-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2026" : helpers.makeTestYear("Asia/Tehran", [ + ["2026-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2026-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2026-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2026-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2027" : helpers.makeTestYear("Asia/Tehran", [ + ["2027-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2027-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2027-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2027-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2028" : helpers.makeTestYear("Asia/Tehran", [ + ["2028-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2028-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2028-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2028-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2029" : helpers.makeTestYear("Asia/Tehran", [ + ["2029-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2029-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2029-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2029-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2030" : helpers.makeTestYear("Asia/Tehran", [ + ["2030-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2030-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2030-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2030-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2031" : helpers.makeTestYear("Asia/Tehran", [ + ["2031-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2031-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2031-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2031-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2032" : helpers.makeTestYear("Asia/Tehran", [ + ["2032-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2032-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2032-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2032-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2033" : helpers.makeTestYear("Asia/Tehran", [ + ["2033-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2033-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2033-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2033-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2034" : helpers.makeTestYear("Asia/Tehran", [ + ["2034-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2034-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2034-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2034-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2035" : helpers.makeTestYear("Asia/Tehran", [ + ["2035-03-21T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2035-03-21T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2035-09-21T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2035-09-21T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2036" : helpers.makeTestYear("Asia/Tehran", [ + ["2036-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2036-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2036-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2036-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]), + + "2037" : helpers.makeTestYear("Asia/Tehran", [ + ["2037-03-20T20:29:59+00:00", "23:59:59", "IRST", -210], + ["2037-03-20T20:30:00+00:00", "01:00:00", "IRDT", -270], + ["2037-09-20T19:29:59+00:00", "23:59:59", "IRDT", -270], + ["2037-09-20T19:30:00+00:00", "23:00:00", "IRST", -210] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/thimphu.js b/tests/zones/asia/thimphu.js new file mode 100644 index 00000000..631388f1 --- /dev/null +++ b/tests/zones/asia/thimphu.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Thimphu"] = { + "1947" : helpers.makeTestYear("Asia/Thimphu", [ + ["1947-08-14T18:01:23+00:00", "23:59:59", "LMT", -21516 / 60], + ["1947-08-14T18:01:24+00:00", "23:31:24", "IST", -330] + ]), + + "1987" : helpers.makeTestYear("Asia/Thimphu", [ + ["1987-09-30T18:29:59+00:00", "23:59:59", "IST", -330], + ["1987-09-30T18:30:00+00:00", "00:30:00", "BTT", -360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/tokyo.js b/tests/zones/asia/tokyo.js new file mode 100644 index 00000000..b21ac477 --- /dev/null +++ b/tests/zones/asia/tokyo.js @@ -0,0 +1,38 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Tokyo"] = { + "1937" : helpers.makeTestYear("Asia/Tokyo", [ + ["1937-12-31T14:59:59+00:00", "23:59:59", "CJT", -540], + ["1937-12-31T15:00:00+00:00", "00:00:00", "JST", -540] + ]), + + "1948" : helpers.makeTestYear("Asia/Tokyo", [ + ["1948-05-01T16:59:59+00:00", "01:59:59", "JST", -540], + ["1948-05-01T17:00:00+00:00", "03:00:00", "JDT", -600], + ["1948-09-10T15:59:59+00:00", "01:59:59", "JDT", -600], + ["1948-09-10T16:00:00+00:00", "01:00:00", "JST", -540] + ]), + + "1949" : helpers.makeTestYear("Asia/Tokyo", [ + ["1949-04-02T16:59:59+00:00", "01:59:59", "JST", -540], + ["1949-04-02T17:00:00+00:00", "03:00:00", "JDT", -600], + ["1949-09-09T15:59:59+00:00", "01:59:59", "JDT", -600], + ["1949-09-09T16:00:00+00:00", "01:00:00", "JST", -540] + ]), + + "1950" : helpers.makeTestYear("Asia/Tokyo", [ + ["1950-05-06T16:59:59+00:00", "01:59:59", "JST", -540], + ["1950-05-06T17:00:00+00:00", "03:00:00", "JDT", -600], + ["1950-09-08T15:59:59+00:00", "01:59:59", "JDT", -600], + ["1950-09-08T16:00:00+00:00", "01:00:00", "JST", -540] + ]), + + "1951" : helpers.makeTestYear("Asia/Tokyo", [ + ["1951-05-05T16:59:59+00:00", "01:59:59", "JST", -540], + ["1951-05-05T17:00:00+00:00", "03:00:00", "JDT", -600], + ["1951-09-07T15:59:59+00:00", "01:59:59", "JDT", -600], + ["1951-09-07T16:00:00+00:00", "01:00:00", "JST", -540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/ulaanbaatar.js b/tests/zones/asia/ulaanbaatar.js new file mode 100644 index 00000000..f729b5b5 --- /dev/null +++ b/tests/zones/asia/ulaanbaatar.js @@ -0,0 +1,169 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Ulaanbaatar"] = { + "1905" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1905-07-31T16:52:27+00:00", "23:59:59", "LMT", -25652 / 60], + ["1905-07-31T16:52:28+00:00", "23:52:28", "ULAT", -420] + ]), + + "1977" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1977-12-31T16:59:59+00:00", "23:59:59", "ULAT", -420], + ["1977-12-31T17:00:00+00:00", "01:00:00", "ULAT", -480] + ]), + + "1983" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1983-03-31T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1983-03-31T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1983-09-30T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1983-09-30T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1984" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1984-03-31T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1984-03-31T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1984-09-29T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1984-09-29T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1985" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1985-03-30T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1985-03-30T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1985-09-28T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1985-09-28T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1986" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1986-03-29T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1986-03-29T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1986-09-27T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1986-09-27T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1987" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1987-03-28T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1987-03-28T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1987-09-26T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1987-09-26T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1988" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1988-03-26T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1988-03-26T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1988-09-24T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1988-09-24T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1989" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1989-03-25T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1989-03-25T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1989-09-23T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1989-09-23T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1990" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1990-03-24T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1990-03-24T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1990-09-29T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1990-09-29T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1991" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1991-03-30T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1991-03-30T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1991-09-28T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1991-09-28T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1992" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1992-03-28T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1992-03-28T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1992-09-26T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1992-09-26T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1993" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1993-03-27T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1993-03-27T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1993-09-25T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1993-09-25T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1994" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1994-03-26T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1994-03-26T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1994-09-24T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1994-09-24T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1995" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1995-03-25T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1995-03-25T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1995-09-23T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1995-09-23T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1996" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1996-03-30T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1996-03-30T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1996-09-28T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1996-09-28T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1997" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1997-03-29T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1997-03-29T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1997-09-27T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1997-09-27T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "1998" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["1998-03-28T15:59:59+00:00", "23:59:59", "ULAT", -480], + ["1998-03-28T16:00:00+00:00", "01:00:00", "ULAST", -540], + ["1998-09-26T14:59:59+00:00", "23:59:59", "ULAST", -540], + ["1998-09-26T15:00:00+00:00", "23:00:00", "ULAT", -480] + ]), + + "2001" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["2001-04-27T17:59:59+00:00", "01:59:59", "ULAT", -480], + ["2001-04-27T18:00:00+00:00", "03:00:00", "ULAST", -540], + ["2001-09-28T16:59:59+00:00", "01:59:59", "ULAST", -540], + ["2001-09-28T17:00:00+00:00", "01:00:00", "ULAT", -480] + ]), + + "2002" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["2002-03-29T17:59:59+00:00", "01:59:59", "ULAT", -480], + ["2002-03-29T18:00:00+00:00", "03:00:00", "ULAST", -540], + ["2002-09-27T16:59:59+00:00", "01:59:59", "ULAST", -540], + ["2002-09-27T17:00:00+00:00", "01:00:00", "ULAT", -480] + ]), + + "2003" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["2003-03-28T17:59:59+00:00", "01:59:59", "ULAT", -480], + ["2003-03-28T18:00:00+00:00", "03:00:00", "ULAST", -540], + ["2003-09-26T16:59:59+00:00", "01:59:59", "ULAST", -540], + ["2003-09-26T17:00:00+00:00", "01:00:00", "ULAT", -480] + ]), + + "2004" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["2004-03-26T17:59:59+00:00", "01:59:59", "ULAT", -480], + ["2004-03-26T18:00:00+00:00", "03:00:00", "ULAST", -540], + ["2004-09-24T16:59:59+00:00", "01:59:59", "ULAST", -540], + ["2004-09-24T17:00:00+00:00", "01:00:00", "ULAT", -480] + ]), + + "2005" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["2005-03-25T17:59:59+00:00", "01:59:59", "ULAT", -480], + ["2005-03-25T18:00:00+00:00", "03:00:00", "ULAST", -540], + ["2005-09-23T16:59:59+00:00", "01:59:59", "ULAST", -540], + ["2005-09-23T17:00:00+00:00", "01:00:00", "ULAT", -480] + ]), + + "2006" : helpers.makeTestYear("Asia/Ulaanbaatar", [ + ["2006-03-24T17:59:59+00:00", "01:59:59", "ULAT", -480], + ["2006-03-24T18:00:00+00:00", "03:00:00", "ULAST", -540], + ["2006-09-29T16:59:59+00:00", "01:59:59", "ULAST", -540], + ["2006-09-29T17:00:00+00:00", "01:00:00", "ULAT", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/urumqi.js b/tests/zones/asia/urumqi.js new file mode 100644 index 00000000..7967822d --- /dev/null +++ b/tests/zones/asia/urumqi.js @@ -0,0 +1,57 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Urumqi"] = { + "1927" : helpers.makeTestYear("Asia/Urumqi", [ + ["1927-12-31T18:09:39+00:00", "23:59:59", "LMT", -21020 / 60], + ["1927-12-31T18:09:40+00:00", "00:09:40", "URUT", -360] + ]), + + "1980" : helpers.makeTestYear("Asia/Urumqi", [ + ["1980-04-30T17:59:59+00:00", "23:59:59", "URUT", -360], + ["1980-04-30T18:00:00+00:00", "02:00:00", "CST", -480] + ]), + + "1986" : helpers.makeTestYear("Asia/Urumqi", [ + ["1986-05-03T15:59:59+00:00", "23:59:59", "CST", -480], + ["1986-05-03T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1986-09-13T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1986-09-13T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1987" : helpers.makeTestYear("Asia/Urumqi", [ + ["1987-04-11T15:59:59+00:00", "23:59:59", "CST", -480], + ["1987-04-11T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1987-09-12T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1987-09-12T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1988" : helpers.makeTestYear("Asia/Urumqi", [ + ["1988-04-09T15:59:59+00:00", "23:59:59", "CST", -480], + ["1988-04-09T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1988-09-10T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1988-09-10T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1989" : helpers.makeTestYear("Asia/Urumqi", [ + ["1989-04-15T15:59:59+00:00", "23:59:59", "CST", -480], + ["1989-04-15T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1989-09-16T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1989-09-16T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1990" : helpers.makeTestYear("Asia/Urumqi", [ + ["1990-04-14T15:59:59+00:00", "23:59:59", "CST", -480], + ["1990-04-14T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1990-09-15T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1990-09-15T15:00:00+00:00", "23:00:00", "CST", -480] + ]), + + "1991" : helpers.makeTestYear("Asia/Urumqi", [ + ["1991-04-13T15:59:59+00:00", "23:59:59", "CST", -480], + ["1991-04-13T16:00:00+00:00", "01:00:00", "CDT", -540], + ["1991-09-14T14:59:59+00:00", "23:59:59", "CDT", -540], + ["1991-09-14T15:00:00+00:00", "23:00:00", "CST", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/ust-nera.js b/tests/zones/asia/ust-nera.js new file mode 100644 index 00000000..6f125229 --- /dev/null +++ b/tests/zones/asia/ust-nera.js @@ -0,0 +1,234 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Ust-Nera"] = { + "1919" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1919-12-14T14:27:05+00:00", "23:59:59", "LMT", -34374 / 60], + ["1919-12-14T14:27:06+00:00", "22:27:06", "YAKT", -480] + ]), + + "1930" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1930-06-20T15:59:59+00:00", "23:59:59", "YAKT", -480], + ["1930-06-20T16:00:00+00:00", "01:00:00", "YAKT", -540] + ]), + + "1981" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1981-03-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["1981-03-31T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1981-09-30T11:59:59+00:00", "23:59:59", "MAGST", -720], + ["1981-09-30T12:00:00+00:00", "23:00:00", "MAGT", -660] + ]), + + "1982" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1982-03-31T12:59:59+00:00", "23:59:59", "MAGT", -660], + ["1982-03-31T13:00:00+00:00", "01:00:00", "MAGST", -720], + ["1982-09-30T11:59:59+00:00", "23:59:59", "MAGST", -720], + ["1982-09-30T12:00:00+00:00", "23:00:00", "MAGT", -660] + ]), + + "1983" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1983-03-31T12:59:59+00:00", "23:59:59", "MAGT", -660], + ["1983-03-31T13:00:00+00:00", "01:00:00", "MAGST", -720], + ["1983-09-30T11:59:59+00:00", "23:59:59", "MAGST", -720], + ["1983-09-30T12:00:00+00:00", "23:00:00", "MAGT", -660] + ]), + + "1984" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1984-03-31T12:59:59+00:00", "23:59:59", "MAGT", -660], + ["1984-03-31T13:00:00+00:00", "01:00:00", "MAGST", -720], + ["1984-09-29T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1984-09-29T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1985" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1985-03-30T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1985-03-30T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1985-09-28T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1985-09-28T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1986" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1986-03-29T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1986-03-29T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1986-09-27T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1986-09-27T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1987" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1987-03-28T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1987-03-28T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1987-09-26T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1987-09-26T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1988" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1988-03-26T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1988-03-26T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1988-09-24T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1988-09-24T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1989" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1989-03-25T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1989-03-25T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1989-09-23T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1989-09-23T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1990" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1990-03-24T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1990-03-24T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1990-09-29T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1990-09-29T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1991" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1991-03-30T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1991-03-30T15:00:00+00:00", "02:00:00", "MAGST", -660], + ["1991-09-28T15:59:59+00:00", "02:59:59", "MAGST", -660], + ["1991-09-28T16:00:00+00:00", "02:00:00", "MAGT", -600] + ]), + + "1992" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1992-01-18T15:59:59+00:00", "01:59:59", "MAGT", -600], + ["1992-01-18T16:00:00+00:00", "03:00:00", "MAGT", -660], + ["1992-03-28T11:59:59+00:00", "22:59:59", "MAGT", -660], + ["1992-03-28T12:00:00+00:00", "00:00:00", "MAGST", -720], + ["1992-09-26T10:59:59+00:00", "22:59:59", "MAGST", -720], + ["1992-09-26T11:00:00+00:00", "22:00:00", "MAGT", -660] + ]), + + "1993" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1993-03-27T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1993-03-27T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1993-09-25T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1993-09-25T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1994" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1994-03-26T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1994-03-26T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1994-09-24T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1994-09-24T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1995" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1995-03-25T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1995-03-25T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1995-09-23T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1995-09-23T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1996" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1996-03-30T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1996-03-30T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1996-10-26T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1996-10-26T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1997" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1997-03-29T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1997-03-29T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1997-10-25T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1997-10-25T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1998" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1998-03-28T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1998-03-28T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1998-10-24T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1998-10-24T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "1999" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["1999-03-27T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["1999-03-27T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["1999-10-30T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["1999-10-30T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2000" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2000-03-25T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2000-03-25T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2000-10-28T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2000-10-28T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2001" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2001-03-24T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2001-03-24T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2001-10-27T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2001-10-27T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2002" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2002-03-30T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2002-03-30T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2002-10-26T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2002-10-26T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2003" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2003-03-29T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2003-03-29T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2003-10-25T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2003-10-25T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2004" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2004-03-27T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2004-03-27T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2004-10-30T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2004-10-30T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2005" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2005-03-26T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2005-03-26T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2005-10-29T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2005-10-29T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2006" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2006-03-25T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2006-03-25T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2006-10-28T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2006-10-28T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2007" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2007-03-24T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2007-03-24T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2007-10-27T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2007-10-27T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2008" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2008-03-29T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2008-03-29T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2008-10-25T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2008-10-25T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2009" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2009-03-28T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2009-03-28T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2009-10-24T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2009-10-24T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2010" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2010-03-27T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2010-03-27T15:00:00+00:00", "03:00:00", "MAGST", -720], + ["2010-10-30T14:59:59+00:00", "02:59:59", "MAGST", -720], + ["2010-10-30T15:00:00+00:00", "02:00:00", "MAGT", -660] + ]), + + "2011" : helpers.makeTestYear("Asia/Ust-Nera", [ + ["2011-03-26T14:59:59+00:00", "01:59:59", "MAGT", -660], + ["2011-03-26T15:00:00+00:00", "03:00:00", "MAGT", -720], + ["2011-09-12T11:59:59+00:00", "23:59:59", "MAGT", -720], + ["2011-09-12T12:00:00+00:00", "23:00:00", "VLAT", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/vientiane.js b/tests/zones/asia/vientiane.js new file mode 100644 index 00000000..5c3a9818 --- /dev/null +++ b/tests/zones/asia/vientiane.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Vientiane"] = { + "1906" : helpers.makeTestYear("Asia/Vientiane", [ + ["1906-06-08T17:09:35+00:00", "23:59:59", "LMT", -24624 / 60], + ["1906-06-08T17:09:36+00:00", "00:15:56", "SMT", -25580 / 60] + ]), + + "1911" : helpers.makeTestYear("Asia/Vientiane", [ + ["1911-03-10T16:54:39+00:00", "00:00:59", "SMT", -25580 / 60], + ["1911-03-10T16:54:40+00:00", "23:54:40", "ICT", -420] + ]), + + "1912" : helpers.makeTestYear("Asia/Vientiane", [ + ["1912-04-30T16:59:59+00:00", "23:59:59", "ICT", -420], + ["1912-04-30T17:00:00+00:00", "01:00:00", "ICT", -480] + ]), + + "1931" : helpers.makeTestYear("Asia/Vientiane", [ + ["1931-04-30T15:59:59+00:00", "23:59:59", "ICT", -480], + ["1931-04-30T16:00:00+00:00", "23:00:00", "ICT", -420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/vladivostok.js b/tests/zones/asia/vladivostok.js new file mode 100644 index 00000000..344c15ce --- /dev/null +++ b/tests/zones/asia/vladivostok.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Vladivostok"] = { + "1922" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1922-11-14T15:12:15+00:00", "23:59:59", "LMT", -31664 / 60], + ["1922-11-14T15:12:16+00:00", "00:12:16", "VLAT", -540] + ]), + + "1930" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1930-06-20T14:59:59+00:00", "23:59:59", "VLAT", -540], + ["1930-06-20T15:00:00+00:00", "01:00:00", "VLAT", -600] + ]), + + "1981" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1981-03-31T13:59:59+00:00", "23:59:59", "VLAT", -600], + ["1981-03-31T14:00:00+00:00", "01:00:00", "VLAST", -660], + ["1981-09-30T12:59:59+00:00", "23:59:59", "VLAST", -660], + ["1981-09-30T13:00:00+00:00", "23:00:00", "VLAT", -600] + ]), + + "1982" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1982-03-31T13:59:59+00:00", "23:59:59", "VLAT", -600], + ["1982-03-31T14:00:00+00:00", "01:00:00", "VLAST", -660], + ["1982-09-30T12:59:59+00:00", "23:59:59", "VLAST", -660], + ["1982-09-30T13:00:00+00:00", "23:00:00", "VLAT", -600] + ]), + + "1983" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1983-03-31T13:59:59+00:00", "23:59:59", "VLAT", -600], + ["1983-03-31T14:00:00+00:00", "01:00:00", "VLAST", -660], + ["1983-09-30T12:59:59+00:00", "23:59:59", "VLAST", -660], + ["1983-09-30T13:00:00+00:00", "23:00:00", "VLAT", -600] + ]), + + "1984" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1984-03-31T13:59:59+00:00", "23:59:59", "VLAT", -600], + ["1984-03-31T14:00:00+00:00", "01:00:00", "VLAST", -660], + ["1984-09-29T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1984-09-29T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1985" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1985-03-30T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1985-03-30T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1985-09-28T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1985-09-28T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1986" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1986-03-29T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1986-03-29T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1986-09-27T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1986-09-27T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1987" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1987-03-28T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1987-03-28T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1987-09-26T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1987-09-26T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1988" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1988-03-26T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1988-03-26T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1988-09-24T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1988-09-24T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1989" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1989-03-25T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1989-03-25T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1989-09-23T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1989-09-23T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1990" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1990-03-24T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1990-03-24T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1990-09-29T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1990-09-29T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1991" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1991-03-30T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1991-03-30T16:00:00+00:00", "02:00:00", "VLASST", -600], + ["1991-09-28T16:59:59+00:00", "02:59:59", "VLASST", -600], + ["1991-09-28T17:00:00+00:00", "02:00:00", "VLAST", -540] + ]), + + "1992" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1992-01-18T16:59:59+00:00", "01:59:59", "VLAST", -540], + ["1992-01-18T17:00:00+00:00", "03:00:00", "VLAT", -600], + ["1992-03-28T12:59:59+00:00", "22:59:59", "VLAT", -600], + ["1992-03-28T13:00:00+00:00", "00:00:00", "VLAST", -660], + ["1992-09-26T11:59:59+00:00", "22:59:59", "VLAST", -660], + ["1992-09-26T12:00:00+00:00", "22:00:00", "VLAT", -600] + ]), + + "1993" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1993-03-27T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1993-03-27T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1993-09-25T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1993-09-25T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1994" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1994-03-26T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1994-03-26T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1994-09-24T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1994-09-24T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1995" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1995-03-25T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1995-03-25T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1995-09-23T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1995-09-23T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1996" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1996-03-30T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1996-03-30T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1996-10-26T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1996-10-26T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1997" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1997-03-29T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1997-03-29T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1997-10-25T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1997-10-25T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1998" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1998-03-28T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1998-03-28T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1998-10-24T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1998-10-24T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "1999" : helpers.makeTestYear("Asia/Vladivostok", [ + ["1999-03-27T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["1999-03-27T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["1999-10-30T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["1999-10-30T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2000" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2000-03-25T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2000-03-25T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2000-10-28T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2000-10-28T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2001" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2001-03-24T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2001-03-24T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2001-10-27T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2001-10-27T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2002" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2002-03-30T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2002-03-30T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2002-10-26T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2002-10-26T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2003" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2003-03-29T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2003-03-29T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2003-10-25T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2003-10-25T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2004" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2004-03-27T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2004-03-27T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2004-10-30T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2004-10-30T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2005" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2005-03-26T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2005-03-26T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2005-10-29T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2005-10-29T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2006" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2006-03-25T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2006-03-25T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2006-10-28T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2006-10-28T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2007" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2007-03-24T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2007-03-24T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2007-10-27T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2007-10-27T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2008" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2008-03-29T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2008-03-29T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2008-10-25T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2008-10-25T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2009" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2009-03-28T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2009-03-28T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2009-10-24T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2009-10-24T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2010" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2010-03-27T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2010-03-27T16:00:00+00:00", "03:00:00", "VLAST", -660], + ["2010-10-30T15:59:59+00:00", "02:59:59", "VLAST", -660], + ["2010-10-30T16:00:00+00:00", "02:00:00", "VLAT", -600] + ]), + + "2011" : helpers.makeTestYear("Asia/Vladivostok", [ + ["2011-03-26T15:59:59+00:00", "01:59:59", "VLAT", -600], + ["2011-03-26T16:00:00+00:00", "03:00:00", "VLAT", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/yakutsk.js b/tests/zones/asia/yakutsk.js new file mode 100644 index 00000000..7b267a4f --- /dev/null +++ b/tests/zones/asia/yakutsk.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Yakutsk"] = { + "1919" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1919-12-14T15:21:19+00:00", "23:59:59", "LMT", -31120 / 60], + ["1919-12-14T15:21:20+00:00", "23:21:20", "YAKT", -480] + ]), + + "1930" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1930-06-20T15:59:59+00:00", "23:59:59", "YAKT", -480], + ["1930-06-20T16:00:00+00:00", "01:00:00", "YAKT", -540] + ]), + + "1981" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1981-03-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["1981-03-31T15:00:00+00:00", "01:00:00", "YAKST", -600], + ["1981-09-30T13:59:59+00:00", "23:59:59", "YAKST", -600], + ["1981-09-30T14:00:00+00:00", "23:00:00", "YAKT", -540] + ]), + + "1982" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1982-03-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["1982-03-31T15:00:00+00:00", "01:00:00", "YAKST", -600], + ["1982-09-30T13:59:59+00:00", "23:59:59", "YAKST", -600], + ["1982-09-30T14:00:00+00:00", "23:00:00", "YAKT", -540] + ]), + + "1983" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1983-03-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["1983-03-31T15:00:00+00:00", "01:00:00", "YAKST", -600], + ["1983-09-30T13:59:59+00:00", "23:59:59", "YAKST", -600], + ["1983-09-30T14:00:00+00:00", "23:00:00", "YAKT", -540] + ]), + + "1984" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1984-03-31T14:59:59+00:00", "23:59:59", "YAKT", -540], + ["1984-03-31T15:00:00+00:00", "01:00:00", "YAKST", -600], + ["1984-09-29T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1984-09-29T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1985" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1985-03-30T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1985-03-30T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1985-09-28T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1985-09-28T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1986" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1986-03-29T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1986-03-29T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1986-09-27T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1986-09-27T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1987" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1987-03-28T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1987-03-28T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1987-09-26T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1987-09-26T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1988" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1988-03-26T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1988-03-26T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1988-09-24T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1988-09-24T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1989" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1989-03-25T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1989-03-25T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1989-09-23T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1989-09-23T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1990" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1990-03-24T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1990-03-24T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1990-09-29T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1990-09-29T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1991" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1991-03-30T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1991-03-30T17:00:00+00:00", "02:00:00", "YAKST", -540], + ["1991-09-28T17:59:59+00:00", "02:59:59", "YAKST", -540], + ["1991-09-28T18:00:00+00:00", "02:00:00", "YAKT", -480] + ]), + + "1992" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1992-01-18T17:59:59+00:00", "01:59:59", "YAKT", -480], + ["1992-01-18T18:00:00+00:00", "03:00:00", "YAKT", -540], + ["1992-03-28T13:59:59+00:00", "22:59:59", "YAKT", -540], + ["1992-03-28T14:00:00+00:00", "00:00:00", "YAKST", -600], + ["1992-09-26T12:59:59+00:00", "22:59:59", "YAKST", -600], + ["1992-09-26T13:00:00+00:00", "22:00:00", "YAKT", -540] + ]), + + "1993" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1993-03-27T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1993-03-27T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1993-09-25T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1993-09-25T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1994" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1994-03-26T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1994-03-26T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1994-09-24T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1994-09-24T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1995" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1995-03-25T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1995-03-25T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1995-09-23T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1995-09-23T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1996" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1996-03-30T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1996-03-30T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1996-10-26T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1996-10-26T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1997" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1997-03-29T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1997-03-29T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1997-10-25T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1997-10-25T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1998" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1998-03-28T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1998-03-28T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1998-10-24T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1998-10-24T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "1999" : helpers.makeTestYear("Asia/Yakutsk", [ + ["1999-03-27T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["1999-03-27T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["1999-10-30T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["1999-10-30T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2000" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2000-03-25T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2000-03-25T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2000-10-28T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2000-10-28T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2001" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2001-03-24T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2001-03-24T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2001-10-27T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2001-10-27T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2002" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2002-03-30T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2002-03-30T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2002-10-26T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2002-10-26T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2003" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2003-03-29T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2003-03-29T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2003-10-25T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2003-10-25T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2004" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2004-03-27T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2004-03-27T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2004-10-30T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2004-10-30T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2005" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2005-03-26T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2005-03-26T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2005-10-29T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2005-10-29T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2006" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2006-03-25T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2006-03-25T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2006-10-28T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2006-10-28T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2007" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2007-03-24T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2007-03-24T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2007-10-27T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2007-10-27T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2008" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2008-03-29T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2008-03-29T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2008-10-25T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2008-10-25T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2009" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2009-03-28T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2009-03-28T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2009-10-24T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2009-10-24T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2010" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2010-03-27T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2010-03-27T17:00:00+00:00", "03:00:00", "YAKST", -600], + ["2010-10-30T16:59:59+00:00", "02:59:59", "YAKST", -600], + ["2010-10-30T17:00:00+00:00", "02:00:00", "YAKT", -540] + ]), + + "2011" : helpers.makeTestYear("Asia/Yakutsk", [ + ["2011-03-26T16:59:59+00:00", "01:59:59", "YAKT", -540], + ["2011-03-26T17:00:00+00:00", "03:00:00", "YAKT", -600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/yekaterinburg.js b/tests/zones/asia/yekaterinburg.js new file mode 100644 index 00000000..4d8ffd00 --- /dev/null +++ b/tests/zones/asia/yekaterinburg.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Yekaterinburg"] = { + "1919" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1919-07-14T23:57:35+00:00", "03:59:59", "LMT", -14544 / 60], + ["1919-07-14T23:57:36+00:00", "03:57:36", "SVET", -240] + ]), + + "1930" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1930-06-20T19:59:59+00:00", "23:59:59", "SVET", -240], + ["1930-06-20T20:00:00+00:00", "01:00:00", "SVET", -300] + ]), + + "1981" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1981-03-31T18:59:59+00:00", "23:59:59", "SVET", -300], + ["1981-03-31T19:00:00+00:00", "01:00:00", "SVEST", -360], + ["1981-09-30T17:59:59+00:00", "23:59:59", "SVEST", -360], + ["1981-09-30T18:00:00+00:00", "23:00:00", "SVET", -300] + ]), + + "1982" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1982-03-31T18:59:59+00:00", "23:59:59", "SVET", -300], + ["1982-03-31T19:00:00+00:00", "01:00:00", "SVEST", -360], + ["1982-09-30T17:59:59+00:00", "23:59:59", "SVEST", -360], + ["1982-09-30T18:00:00+00:00", "23:00:00", "SVET", -300] + ]), + + "1983" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1983-03-31T18:59:59+00:00", "23:59:59", "SVET", -300], + ["1983-03-31T19:00:00+00:00", "01:00:00", "SVEST", -360], + ["1983-09-30T17:59:59+00:00", "23:59:59", "SVEST", -360], + ["1983-09-30T18:00:00+00:00", "23:00:00", "SVET", -300] + ]), + + "1984" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1984-03-31T18:59:59+00:00", "23:59:59", "SVET", -300], + ["1984-03-31T19:00:00+00:00", "01:00:00", "SVEST", -360], + ["1984-09-29T20:59:59+00:00", "02:59:59", "SVEST", -360], + ["1984-09-29T21:00:00+00:00", "02:00:00", "SVET", -300] + ]), + + "1985" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1985-03-30T20:59:59+00:00", "01:59:59", "SVET", -300], + ["1985-03-30T21:00:00+00:00", "03:00:00", "SVEST", -360], + ["1985-09-28T20:59:59+00:00", "02:59:59", "SVEST", -360], + ["1985-09-28T21:00:00+00:00", "02:00:00", "SVET", -300] + ]), + + "1986" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1986-03-29T20:59:59+00:00", "01:59:59", "SVET", -300], + ["1986-03-29T21:00:00+00:00", "03:00:00", "SVEST", -360], + ["1986-09-27T20:59:59+00:00", "02:59:59", "SVEST", -360], + ["1986-09-27T21:00:00+00:00", "02:00:00", "SVET", -300] + ]), + + "1987" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1987-03-28T20:59:59+00:00", "01:59:59", "SVET", -300], + ["1987-03-28T21:00:00+00:00", "03:00:00", "SVEST", -360], + ["1987-09-26T20:59:59+00:00", "02:59:59", "SVEST", -360], + ["1987-09-26T21:00:00+00:00", "02:00:00", "SVET", -300] + ]), + + "1988" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1988-03-26T20:59:59+00:00", "01:59:59", "SVET", -300], + ["1988-03-26T21:00:00+00:00", "03:00:00", "SVEST", -360], + ["1988-09-24T20:59:59+00:00", "02:59:59", "SVEST", -360], + ["1988-09-24T21:00:00+00:00", "02:00:00", "SVET", -300] + ]), + + "1989" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1989-03-25T20:59:59+00:00", "01:59:59", "SVET", -300], + ["1989-03-25T21:00:00+00:00", "03:00:00", "SVEST", -360], + ["1989-09-23T20:59:59+00:00", "02:59:59", "SVEST", -360], + ["1989-09-23T21:00:00+00:00", "02:00:00", "SVET", -300] + ]), + + "1990" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1990-03-24T20:59:59+00:00", "01:59:59", "SVET", -300], + ["1990-03-24T21:00:00+00:00", "03:00:00", "SVEST", -360], + ["1990-09-29T20:59:59+00:00", "02:59:59", "SVEST", -360], + ["1990-09-29T21:00:00+00:00", "02:00:00", "SVET", -300] + ]), + + "1991" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1991-03-30T20:59:59+00:00", "01:59:59", "SVET", -300], + ["1991-03-30T21:00:00+00:00", "02:00:00", "SVEST", -300], + ["1991-09-28T21:59:59+00:00", "02:59:59", "SVEST", -300], + ["1991-09-28T22:00:00+00:00", "02:00:00", "SVET", -240] + ]), + + "1992" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1992-01-18T21:59:59+00:00", "01:59:59", "SVET", -240], + ["1992-01-18T22:00:00+00:00", "03:00:00", "YEKT", -300], + ["1992-03-28T17:59:59+00:00", "22:59:59", "YEKT", -300], + ["1992-03-28T18:00:00+00:00", "00:00:00", "YEKST", -360], + ["1992-09-26T16:59:59+00:00", "22:59:59", "YEKST", -360], + ["1992-09-26T17:00:00+00:00", "22:00:00", "YEKT", -300] + ]), + + "1993" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1993-03-27T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["1993-03-27T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["1993-09-25T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["1993-09-25T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "1994" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1994-03-26T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["1994-03-26T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["1994-09-24T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["1994-09-24T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "1995" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1995-03-25T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["1995-03-25T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["1995-09-23T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["1995-09-23T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "1996" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1996-03-30T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["1996-03-30T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["1996-10-26T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["1996-10-26T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "1997" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1997-03-29T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["1997-03-29T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["1997-10-25T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["1997-10-25T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "1998" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1998-03-28T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["1998-03-28T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["1998-10-24T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["1998-10-24T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "1999" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["1999-03-27T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["1999-03-27T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["1999-10-30T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["1999-10-30T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2000" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2000-03-25T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2000-03-25T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2000-10-28T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2000-10-28T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2001" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2001-03-24T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2001-03-24T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2001-10-27T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2001-10-27T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2002" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2002-03-30T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2002-03-30T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2002-10-26T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2002-10-26T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2003" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2003-03-29T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2003-03-29T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2003-10-25T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2003-10-25T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2004" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2004-03-27T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2004-03-27T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2004-10-30T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2004-10-30T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2005" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2005-03-26T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2005-03-26T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2005-10-29T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2005-10-29T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2006" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2006-03-25T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2006-03-25T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2006-10-28T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2006-10-28T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2007" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2007-03-24T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2007-03-24T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2007-10-27T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2007-10-27T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2008" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2008-03-29T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2008-03-29T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2008-10-25T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2008-10-25T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2009" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2009-03-28T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2009-03-28T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2009-10-24T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2009-10-24T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2010" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2010-03-27T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2010-03-27T21:00:00+00:00", "03:00:00", "YEKST", -360], + ["2010-10-30T20:59:59+00:00", "02:59:59", "YEKST", -360], + ["2010-10-30T21:00:00+00:00", "02:00:00", "YEKT", -300] + ]), + + "2011" : helpers.makeTestYear("Asia/Yekaterinburg", [ + ["2011-03-26T20:59:59+00:00", "01:59:59", "YEKT", -300], + ["2011-03-26T21:00:00+00:00", "03:00:00", "YEKT", -360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/asia/yerevan.js b/tests/zones/asia/yerevan.js new file mode 100644 index 00000000..81766bfb --- /dev/null +++ b/tests/zones/asia/yerevan.js @@ -0,0 +1,227 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Asia/Yerevan"] = { + "1924" : helpers.makeTestYear("Asia/Yerevan", [ + ["1924-05-01T21:01:59+00:00", "23:59:59", "LMT", -178], + ["1924-05-01T21:02:00+00:00", "00:02:00", "YERT", -180] + ]), + + "1957" : helpers.makeTestYear("Asia/Yerevan", [ + ["1957-02-28T20:59:59+00:00", "23:59:59", "YERT", -180], + ["1957-02-28T21:00:00+00:00", "01:00:00", "YERT", -240] + ]), + + "1981" : helpers.makeTestYear("Asia/Yerevan", [ + ["1981-03-31T19:59:59+00:00", "23:59:59", "YERT", -240], + ["1981-03-31T20:00:00+00:00", "01:00:00", "YERST", -300], + ["1981-09-30T18:59:59+00:00", "23:59:59", "YERST", -300], + ["1981-09-30T19:00:00+00:00", "23:00:00", "YERT", -240] + ]), + + "1982" : helpers.makeTestYear("Asia/Yerevan", [ + ["1982-03-31T19:59:59+00:00", "23:59:59", "YERT", -240], + ["1982-03-31T20:00:00+00:00", "01:00:00", "YERST", -300], + ["1982-09-30T18:59:59+00:00", "23:59:59", "YERST", -300], + ["1982-09-30T19:00:00+00:00", "23:00:00", "YERT", -240] + ]), + + "1983" : helpers.makeTestYear("Asia/Yerevan", [ + ["1983-03-31T19:59:59+00:00", "23:59:59", "YERT", -240], + ["1983-03-31T20:00:00+00:00", "01:00:00", "YERST", -300], + ["1983-09-30T18:59:59+00:00", "23:59:59", "YERST", -300], + ["1983-09-30T19:00:00+00:00", "23:00:00", "YERT", -240] + ]), + + "1984" : helpers.makeTestYear("Asia/Yerevan", [ + ["1984-03-31T19:59:59+00:00", "23:59:59", "YERT", -240], + ["1984-03-31T20:00:00+00:00", "01:00:00", "YERST", -300], + ["1984-09-29T21:59:59+00:00", "02:59:59", "YERST", -300], + ["1984-09-29T22:00:00+00:00", "02:00:00", "YERT", -240] + ]), + + "1985" : helpers.makeTestYear("Asia/Yerevan", [ + ["1985-03-30T21:59:59+00:00", "01:59:59", "YERT", -240], + ["1985-03-30T22:00:00+00:00", "03:00:00", "YERST", -300], + ["1985-09-28T21:59:59+00:00", "02:59:59", "YERST", -300], + ["1985-09-28T22:00:00+00:00", "02:00:00", "YERT", -240] + ]), + + "1986" : helpers.makeTestYear("Asia/Yerevan", [ + ["1986-03-29T21:59:59+00:00", "01:59:59", "YERT", -240], + ["1986-03-29T22:00:00+00:00", "03:00:00", "YERST", -300], + ["1986-09-27T21:59:59+00:00", "02:59:59", "YERST", -300], + ["1986-09-27T22:00:00+00:00", "02:00:00", "YERT", -240] + ]), + + "1987" : helpers.makeTestYear("Asia/Yerevan", [ + ["1987-03-28T21:59:59+00:00", "01:59:59", "YERT", -240], + ["1987-03-28T22:00:00+00:00", "03:00:00", "YERST", -300], + ["1987-09-26T21:59:59+00:00", "02:59:59", "YERST", -300], + ["1987-09-26T22:00:00+00:00", "02:00:00", "YERT", -240] + ]), + + "1988" : helpers.makeTestYear("Asia/Yerevan", [ + ["1988-03-26T21:59:59+00:00", "01:59:59", "YERT", -240], + ["1988-03-26T22:00:00+00:00", "03:00:00", "YERST", -300], + ["1988-09-24T21:59:59+00:00", "02:59:59", "YERST", -300], + ["1988-09-24T22:00:00+00:00", "02:00:00", "YERT", -240] + ]), + + "1989" : helpers.makeTestYear("Asia/Yerevan", [ + ["1989-03-25T21:59:59+00:00", "01:59:59", "YERT", -240], + ["1989-03-25T22:00:00+00:00", "03:00:00", "YERST", -300], + ["1989-09-23T21:59:59+00:00", "02:59:59", "YERST", -300], + ["1989-09-23T22:00:00+00:00", "02:00:00", "YERT", -240] + ]), + + "1990" : helpers.makeTestYear("Asia/Yerevan", [ + ["1990-03-24T21:59:59+00:00", "01:59:59", "YERT", -240], + ["1990-03-24T22:00:00+00:00", "03:00:00", "YERST", -300], + ["1990-09-29T21:59:59+00:00", "02:59:59", "YERST", -300], + ["1990-09-29T22:00:00+00:00", "02:00:00", "YERT", -240] + ]), + + "1991" : helpers.makeTestYear("Asia/Yerevan", [ + ["1991-03-30T21:59:59+00:00", "01:59:59", "YERT", -240], + ["1991-03-30T22:00:00+00:00", "02:00:00", "YERST", -240], + ["1991-09-22T19:59:59+00:00", "23:59:59", "YERST", -240], + ["1991-09-22T20:00:00+00:00", "00:00:00", "AMST", -240], + ["1991-09-28T22:59:59+00:00", "02:59:59", "AMST", -240], + ["1991-09-28T23:00:00+00:00", "02:00:00", "AMT", -180] + ]), + + "1992" : helpers.makeTestYear("Asia/Yerevan", [ + ["1992-03-28T19:59:59+00:00", "22:59:59", "AMT", -180], + ["1992-03-28T20:00:00+00:00", "00:00:00", "AMST", -240], + ["1992-09-26T18:59:59+00:00", "22:59:59", "AMST", -240], + ["1992-09-26T19:00:00+00:00", "22:00:00", "AMT", -180] + ]), + + "1993" : helpers.makeTestYear("Asia/Yerevan", [ + ["1993-03-27T22:59:59+00:00", "01:59:59", "AMT", -180], + ["1993-03-27T23:00:00+00:00", "03:00:00", "AMST", -240], + ["1993-09-25T22:59:59+00:00", "02:59:59", "AMST", -240], + ["1993-09-25T23:00:00+00:00", "02:00:00", "AMT", -180] + ]), + + "1994" : helpers.makeTestYear("Asia/Yerevan", [ + ["1994-03-26T22:59:59+00:00", "01:59:59", "AMT", -180], + ["1994-03-26T23:00:00+00:00", "03:00:00", "AMST", -240], + ["1994-09-24T22:59:59+00:00", "02:59:59", "AMST", -240], + ["1994-09-24T23:00:00+00:00", "02:00:00", "AMT", -180] + ]), + + "1995" : helpers.makeTestYear("Asia/Yerevan", [ + ["1995-03-25T22:59:59+00:00", "01:59:59", "AMT", -180], + ["1995-03-25T23:00:00+00:00", "03:00:00", "AMST", -240], + ["1995-09-23T22:59:59+00:00", "02:59:59", "AMST", -240], + ["1995-09-23T23:00:00+00:00", "03:00:00", "AMT", -240] + ]), + + "1997" : helpers.makeTestYear("Asia/Yerevan", [ + ["1997-03-29T21:59:59+00:00", "01:59:59", "AMT", -240], + ["1997-03-29T22:00:00+00:00", "03:00:00", "AMST", -300], + ["1997-10-25T21:59:59+00:00", "02:59:59", "AMST", -300], + ["1997-10-25T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "1998" : helpers.makeTestYear("Asia/Yerevan", [ + ["1998-03-28T21:59:59+00:00", "01:59:59", "AMT", -240], + ["1998-03-28T22:00:00+00:00", "03:00:00", "AMST", -300], + ["1998-10-24T21:59:59+00:00", "02:59:59", "AMST", -300], + ["1998-10-24T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "1999" : helpers.makeTestYear("Asia/Yerevan", [ + ["1999-03-27T21:59:59+00:00", "01:59:59", "AMT", -240], + ["1999-03-27T22:00:00+00:00", "03:00:00", "AMST", -300], + ["1999-10-30T21:59:59+00:00", "02:59:59", "AMST", -300], + ["1999-10-30T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2000" : helpers.makeTestYear("Asia/Yerevan", [ + ["2000-03-25T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2000-03-25T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2000-10-28T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2000-10-28T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2001" : helpers.makeTestYear("Asia/Yerevan", [ + ["2001-03-24T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2001-03-24T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2001-10-27T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2001-10-27T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2002" : helpers.makeTestYear("Asia/Yerevan", [ + ["2002-03-30T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2002-03-30T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2002-10-26T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2002-10-26T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2003" : helpers.makeTestYear("Asia/Yerevan", [ + ["2003-03-29T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2003-03-29T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2003-10-25T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2003-10-25T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2004" : helpers.makeTestYear("Asia/Yerevan", [ + ["2004-03-27T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2004-03-27T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2004-10-30T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2004-10-30T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2005" : helpers.makeTestYear("Asia/Yerevan", [ + ["2005-03-26T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2005-03-26T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2005-10-29T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2005-10-29T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2006" : helpers.makeTestYear("Asia/Yerevan", [ + ["2006-03-25T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2006-03-25T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2006-10-28T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2006-10-28T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2007" : helpers.makeTestYear("Asia/Yerevan", [ + ["2007-03-24T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2007-03-24T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2007-10-27T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2007-10-27T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2008" : helpers.makeTestYear("Asia/Yerevan", [ + ["2008-03-29T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2008-03-29T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2008-10-25T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2008-10-25T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2009" : helpers.makeTestYear("Asia/Yerevan", [ + ["2009-03-28T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2009-03-28T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2009-10-24T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2009-10-24T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2010" : helpers.makeTestYear("Asia/Yerevan", [ + ["2010-03-27T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2010-03-27T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2010-10-30T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2010-10-30T22:00:00+00:00", "02:00:00", "AMT", -240] + ]), + + "2011" : helpers.makeTestYear("Asia/Yerevan", [ + ["2011-03-26T21:59:59+00:00", "01:59:59", "AMT", -240], + ["2011-03-26T22:00:00+00:00", "03:00:00", "AMST", -300], + ["2011-10-29T21:59:59+00:00", "02:59:59", "AMST", -300], + ["2011-10-29T22:00:00+00:00", "02:00:00", "AMT", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/atlantic/azores.js b/tests/zones/atlantic/azores.js new file mode 100644 index 00000000..a98a1d73 --- /dev/null +++ b/tests/zones/atlantic/azores.js @@ -0,0 +1,766 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/Azores"] = { + "1911" : helpers.makeTestYear("Atlantic/Azores", [ + ["1911-05-24T01:54:31+00:00", "23:59:59", "HMT", 6872 / 60], + ["1911-05-24T01:54:32+00:00", "23:54:32", "AZOT", 120] + ]), + + "1916" : helpers.makeTestYear("Atlantic/Azores", [ + ["1916-06-18T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1916-06-18T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1916-11-01T01:59:59+00:00", "00:59:59", "AZOST", 60], + ["1916-11-01T02:00:00+00:00", "00:00:00", "AZOT", 120] + ]), + + "1917" : helpers.makeTestYear("Atlantic/Azores", [ + ["1917-03-01T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1917-03-01T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1917-10-15T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1917-10-15T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1918" : helpers.makeTestYear("Atlantic/Azores", [ + ["1918-03-02T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1918-03-02T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1918-10-15T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1918-10-15T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1919" : helpers.makeTestYear("Atlantic/Azores", [ + ["1919-03-01T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1919-03-01T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1919-10-15T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1919-10-15T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1920" : helpers.makeTestYear("Atlantic/Azores", [ + ["1920-03-01T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1920-03-01T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1920-10-15T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1920-10-15T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1921" : helpers.makeTestYear("Atlantic/Azores", [ + ["1921-03-01T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1921-03-01T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1921-10-15T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1921-10-15T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1924" : helpers.makeTestYear("Atlantic/Azores", [ + ["1924-04-17T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1924-04-17T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1924-10-15T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1924-10-15T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1926" : helpers.makeTestYear("Atlantic/Azores", [ + ["1926-04-18T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1926-04-18T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1926-10-03T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1926-10-03T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1927" : helpers.makeTestYear("Atlantic/Azores", [ + ["1927-04-10T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1927-04-10T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1927-10-02T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1927-10-02T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1928" : helpers.makeTestYear("Atlantic/Azores", [ + ["1928-04-15T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1928-04-15T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1928-10-07T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1928-10-07T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1929" : helpers.makeTestYear("Atlantic/Azores", [ + ["1929-04-21T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1929-04-21T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1929-10-06T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1929-10-06T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1931" : helpers.makeTestYear("Atlantic/Azores", [ + ["1931-04-19T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1931-04-19T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1931-10-04T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1931-10-04T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1932" : helpers.makeTestYear("Atlantic/Azores", [ + ["1932-04-03T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1932-04-03T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1932-10-02T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1932-10-02T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1934" : helpers.makeTestYear("Atlantic/Azores", [ + ["1934-04-08T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1934-04-08T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1934-10-07T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1934-10-07T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1935" : helpers.makeTestYear("Atlantic/Azores", [ + ["1935-03-31T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1935-03-31T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1935-10-06T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1935-10-06T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1936" : helpers.makeTestYear("Atlantic/Azores", [ + ["1936-04-19T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1936-04-19T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1936-10-04T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1936-10-04T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1937" : helpers.makeTestYear("Atlantic/Azores", [ + ["1937-04-04T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1937-04-04T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1937-10-03T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1937-10-03T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1938" : helpers.makeTestYear("Atlantic/Azores", [ + ["1938-03-27T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1938-03-27T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1938-10-02T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1938-10-02T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1939" : helpers.makeTestYear("Atlantic/Azores", [ + ["1939-04-16T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1939-04-16T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1939-11-19T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1939-11-19T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1940" : helpers.makeTestYear("Atlantic/Azores", [ + ["1940-02-25T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1940-02-25T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1940-10-06T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1940-10-06T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1941" : helpers.makeTestYear("Atlantic/Azores", [ + ["1941-04-06T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1941-04-06T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1941-10-06T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1941-10-06T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1942" : helpers.makeTestYear("Atlantic/Azores", [ + ["1942-03-15T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1942-03-15T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1942-04-25T23:59:59+00:00", "22:59:59", "AZOST", 60], + ["1942-04-26T00:00:00+00:00", "00:00:00", "AZOMT", 0], + ["1942-08-15T23:59:59+00:00", "23:59:59", "AZOMT", 0], + ["1942-08-16T00:00:00+00:00", "23:00:00", "AZOST", 60], + ["1942-10-25T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1942-10-25T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1943" : helpers.makeTestYear("Atlantic/Azores", [ + ["1943-03-14T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1943-03-14T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1943-04-17T23:59:59+00:00", "22:59:59", "AZOST", 60], + ["1943-04-18T00:00:00+00:00", "00:00:00", "AZOMT", 0], + ["1943-08-28T23:59:59+00:00", "23:59:59", "AZOMT", 0], + ["1943-08-29T00:00:00+00:00", "23:00:00", "AZOST", 60], + ["1943-10-31T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1943-10-31T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1944" : helpers.makeTestYear("Atlantic/Azores", [ + ["1944-03-12T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1944-03-12T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1944-04-22T23:59:59+00:00", "22:59:59", "AZOST", 60], + ["1944-04-23T00:00:00+00:00", "00:00:00", "AZOMT", 0], + ["1944-08-26T23:59:59+00:00", "23:59:59", "AZOMT", 0], + ["1944-08-27T00:00:00+00:00", "23:00:00", "AZOST", 60], + ["1944-10-29T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1944-10-29T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1945" : helpers.makeTestYear("Atlantic/Azores", [ + ["1945-03-11T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1945-03-11T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1945-04-21T23:59:59+00:00", "22:59:59", "AZOST", 60], + ["1945-04-22T00:00:00+00:00", "00:00:00", "AZOMT", 0], + ["1945-08-25T23:59:59+00:00", "23:59:59", "AZOMT", 0], + ["1945-08-26T00:00:00+00:00", "23:00:00", "AZOST", 60], + ["1945-10-28T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1945-10-28T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1946" : helpers.makeTestYear("Atlantic/Azores", [ + ["1946-04-07T00:59:59+00:00", "22:59:59", "AZOT", 120], + ["1946-04-07T01:00:00+00:00", "00:00:00", "AZOST", 60], + ["1946-10-06T00:59:59+00:00", "23:59:59", "AZOST", 60], + ["1946-10-06T01:00:00+00:00", "23:00:00", "AZOT", 120] + ]), + + "1947" : helpers.makeTestYear("Atlantic/Azores", [ + ["1947-04-06T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1947-04-06T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1947-10-05T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1947-10-05T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1948" : helpers.makeTestYear("Atlantic/Azores", [ + ["1948-04-04T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1948-04-04T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1948-10-03T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1948-10-03T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1949" : helpers.makeTestYear("Atlantic/Azores", [ + ["1949-04-03T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1949-04-03T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1949-10-02T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1949-10-02T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1951" : helpers.makeTestYear("Atlantic/Azores", [ + ["1951-04-01T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1951-04-01T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1951-10-07T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1951-10-07T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1952" : helpers.makeTestYear("Atlantic/Azores", [ + ["1952-04-06T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1952-04-06T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1952-10-05T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1952-10-05T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1953" : helpers.makeTestYear("Atlantic/Azores", [ + ["1953-04-05T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1953-04-05T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1953-10-04T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1953-10-04T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1954" : helpers.makeTestYear("Atlantic/Azores", [ + ["1954-04-04T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1954-04-04T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1954-10-03T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1954-10-03T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1955" : helpers.makeTestYear("Atlantic/Azores", [ + ["1955-04-03T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1955-04-03T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1955-10-02T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1955-10-02T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1956" : helpers.makeTestYear("Atlantic/Azores", [ + ["1956-04-01T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1956-04-01T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1956-10-07T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1956-10-07T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1957" : helpers.makeTestYear("Atlantic/Azores", [ + ["1957-04-07T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1957-04-07T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1957-10-06T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1957-10-06T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1958" : helpers.makeTestYear("Atlantic/Azores", [ + ["1958-04-06T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1958-04-06T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1958-10-05T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1958-10-05T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1959" : helpers.makeTestYear("Atlantic/Azores", [ + ["1959-04-05T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1959-04-05T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1959-10-04T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1959-10-04T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1960" : helpers.makeTestYear("Atlantic/Azores", [ + ["1960-04-03T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1960-04-03T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1960-10-02T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1960-10-02T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1961" : helpers.makeTestYear("Atlantic/Azores", [ + ["1961-04-02T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1961-04-02T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1961-10-01T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1961-10-01T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1962" : helpers.makeTestYear("Atlantic/Azores", [ + ["1962-04-01T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1962-04-01T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1962-10-07T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1962-10-07T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1963" : helpers.makeTestYear("Atlantic/Azores", [ + ["1963-04-07T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1963-04-07T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1963-10-06T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1963-10-06T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1964" : helpers.makeTestYear("Atlantic/Azores", [ + ["1964-04-05T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1964-04-05T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1964-10-04T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1964-10-04T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1965" : helpers.makeTestYear("Atlantic/Azores", [ + ["1965-04-04T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1965-04-04T04:00:00+00:00", "03:00:00", "AZOST", 60], + ["1965-10-03T03:59:59+00:00", "02:59:59", "AZOST", 60], + ["1965-10-03T04:00:00+00:00", "02:00:00", "AZOT", 120] + ]), + + "1966" : helpers.makeTestYear("Atlantic/Azores", [ + ["1966-04-03T03:59:59+00:00", "01:59:59", "AZOT", 120], + ["1966-04-03T04:00:00+00:00", "03:00:00", "AZOT", 60] + ]), + + "1977" : helpers.makeTestYear("Atlantic/Azores", [ + ["1977-03-27T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1977-03-27T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1977-09-25T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["1977-09-25T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "1978" : helpers.makeTestYear("Atlantic/Azores", [ + ["1978-04-02T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1978-04-02T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1978-10-01T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["1978-10-01T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "1979" : helpers.makeTestYear("Atlantic/Azores", [ + ["1979-04-01T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1979-04-01T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1979-09-30T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1979-09-30T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1980" : helpers.makeTestYear("Atlantic/Azores", [ + ["1980-03-30T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1980-03-30T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1980-09-28T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1980-09-28T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1981" : helpers.makeTestYear("Atlantic/Azores", [ + ["1981-03-29T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1981-03-29T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1981-09-27T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1981-09-27T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1982" : helpers.makeTestYear("Atlantic/Azores", [ + ["1982-03-28T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1982-03-28T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1982-09-26T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1982-09-26T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1983" : helpers.makeTestYear("Atlantic/Azores", [ + ["1983-03-27T02:59:59+00:00", "01:59:59", "AZOT", 60], + ["1983-03-27T03:00:00+00:00", "03:00:00", "AZOST", 0], + ["1983-09-25T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1983-09-25T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1984" : helpers.makeTestYear("Atlantic/Azores", [ + ["1984-03-25T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1984-03-25T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1984-09-30T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1984-09-30T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1985" : helpers.makeTestYear("Atlantic/Azores", [ + ["1985-03-31T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1985-03-31T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1985-09-29T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1985-09-29T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1986" : helpers.makeTestYear("Atlantic/Azores", [ + ["1986-03-30T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1986-03-30T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1986-09-28T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1986-09-28T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1987" : helpers.makeTestYear("Atlantic/Azores", [ + ["1987-03-29T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1987-03-29T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1987-09-27T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1987-09-27T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1988" : helpers.makeTestYear("Atlantic/Azores", [ + ["1988-03-27T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1988-03-27T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1988-09-25T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1988-09-25T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1989" : helpers.makeTestYear("Atlantic/Azores", [ + ["1989-03-26T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1989-03-26T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1989-09-24T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1989-09-24T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1990" : helpers.makeTestYear("Atlantic/Azores", [ + ["1990-03-25T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1990-03-25T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1990-09-30T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1990-09-30T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1991" : helpers.makeTestYear("Atlantic/Azores", [ + ["1991-03-31T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1991-03-31T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1991-09-29T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1991-09-29T02:00:00+00:00", "01:00:00", "AZOT", 60] + ]), + + "1992" : helpers.makeTestYear("Atlantic/Azores", [ + ["1992-03-29T01:59:59+00:00", "00:59:59", "AZOT", 60], + ["1992-03-29T02:00:00+00:00", "02:00:00", "AZOST", 0], + ["1992-09-27T01:59:59+00:00", "01:59:59", "AZOST", 0], + ["1992-09-27T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1993" : helpers.makeTestYear("Atlantic/Azores", [ + ["1993-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1993-03-28T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1993-09-26T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["1993-09-26T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "1994" : helpers.makeTestYear("Atlantic/Azores", [ + ["1994-03-27T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1994-03-27T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1994-09-25T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["1994-09-25T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "1995" : helpers.makeTestYear("Atlantic/Azores", [ + ["1995-03-26T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1995-03-26T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1995-09-24T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["1995-09-24T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "1996" : helpers.makeTestYear("Atlantic/Azores", [ + ["1996-03-31T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1996-03-31T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1996-10-27T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["1996-10-27T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "1997" : helpers.makeTestYear("Atlantic/Azores", [ + ["1997-03-30T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1997-03-30T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1997-10-26T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["1997-10-26T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "1998" : helpers.makeTestYear("Atlantic/Azores", [ + ["1998-03-29T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1998-03-29T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1998-10-25T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["1998-10-25T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "1999" : helpers.makeTestYear("Atlantic/Azores", [ + ["1999-03-28T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["1999-03-28T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["1999-10-31T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["1999-10-31T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2000" : helpers.makeTestYear("Atlantic/Azores", [ + ["2000-03-26T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2000-03-26T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2000-10-29T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2000-10-29T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2001" : helpers.makeTestYear("Atlantic/Azores", [ + ["2001-03-25T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2001-03-25T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2001-10-28T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2001-10-28T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2002" : helpers.makeTestYear("Atlantic/Azores", [ + ["2002-03-31T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2002-03-31T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2002-10-27T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2002-10-27T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2003" : helpers.makeTestYear("Atlantic/Azores", [ + ["2003-03-30T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2003-03-30T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2003-10-26T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2003-10-26T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2004" : helpers.makeTestYear("Atlantic/Azores", [ + ["2004-03-28T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2004-03-28T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2004-10-31T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2004-10-31T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2005" : helpers.makeTestYear("Atlantic/Azores", [ + ["2005-03-27T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2005-03-27T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2005-10-30T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2005-10-30T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2006" : helpers.makeTestYear("Atlantic/Azores", [ + ["2006-03-26T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2006-03-26T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2006-10-29T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2006-10-29T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2007" : helpers.makeTestYear("Atlantic/Azores", [ + ["2007-03-25T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2007-03-25T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2007-10-28T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2007-10-28T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2008" : helpers.makeTestYear("Atlantic/Azores", [ + ["2008-03-30T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2008-03-30T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2008-10-26T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2008-10-26T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2009" : helpers.makeTestYear("Atlantic/Azores", [ + ["2009-03-29T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2009-03-29T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2009-10-25T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2009-10-25T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2010" : helpers.makeTestYear("Atlantic/Azores", [ + ["2010-03-28T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2010-03-28T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2010-10-31T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2010-10-31T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2011" : helpers.makeTestYear("Atlantic/Azores", [ + ["2011-03-27T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2011-03-27T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2011-10-30T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2011-10-30T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2012" : helpers.makeTestYear("Atlantic/Azores", [ + ["2012-03-25T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2012-03-25T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2012-10-28T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2012-10-28T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2013" : helpers.makeTestYear("Atlantic/Azores", [ + ["2013-03-31T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2013-03-31T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2013-10-27T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2013-10-27T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2014" : helpers.makeTestYear("Atlantic/Azores", [ + ["2014-03-30T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2014-03-30T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2014-10-26T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2014-10-26T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2015" : helpers.makeTestYear("Atlantic/Azores", [ + ["2015-03-29T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2015-03-29T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2015-10-25T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2015-10-25T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2016" : helpers.makeTestYear("Atlantic/Azores", [ + ["2016-03-27T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2016-03-27T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2016-10-30T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2016-10-30T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2017" : helpers.makeTestYear("Atlantic/Azores", [ + ["2017-03-26T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2017-03-26T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2017-10-29T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2017-10-29T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2018" : helpers.makeTestYear("Atlantic/Azores", [ + ["2018-03-25T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2018-03-25T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2018-10-28T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2018-10-28T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2019" : helpers.makeTestYear("Atlantic/Azores", [ + ["2019-03-31T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2019-03-31T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2019-10-27T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2019-10-27T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2020" : helpers.makeTestYear("Atlantic/Azores", [ + ["2020-03-29T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2020-03-29T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2020-10-25T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2020-10-25T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2021" : helpers.makeTestYear("Atlantic/Azores", [ + ["2021-03-28T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2021-03-28T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2021-10-31T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2021-10-31T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2022" : helpers.makeTestYear("Atlantic/Azores", [ + ["2022-03-27T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2022-03-27T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2022-10-30T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2022-10-30T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2023" : helpers.makeTestYear("Atlantic/Azores", [ + ["2023-03-26T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2023-03-26T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2023-10-29T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2023-10-29T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2024" : helpers.makeTestYear("Atlantic/Azores", [ + ["2024-03-31T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2024-03-31T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2024-10-27T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2024-10-27T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2025" : helpers.makeTestYear("Atlantic/Azores", [ + ["2025-03-30T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2025-03-30T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2025-10-26T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2025-10-26T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2026" : helpers.makeTestYear("Atlantic/Azores", [ + ["2026-03-29T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2026-03-29T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2026-10-25T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2026-10-25T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2027" : helpers.makeTestYear("Atlantic/Azores", [ + ["2027-03-28T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2027-03-28T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2027-10-31T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2027-10-31T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2028" : helpers.makeTestYear("Atlantic/Azores", [ + ["2028-03-26T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2028-03-26T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2028-10-29T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2028-10-29T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2029" : helpers.makeTestYear("Atlantic/Azores", [ + ["2029-03-25T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2029-03-25T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2029-10-28T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2029-10-28T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2030" : helpers.makeTestYear("Atlantic/Azores", [ + ["2030-03-31T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2030-03-31T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2030-10-27T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2030-10-27T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2031" : helpers.makeTestYear("Atlantic/Azores", [ + ["2031-03-30T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2031-03-30T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2031-10-26T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2031-10-26T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2032" : helpers.makeTestYear("Atlantic/Azores", [ + ["2032-03-28T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2032-03-28T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2032-10-31T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2032-10-31T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2033" : helpers.makeTestYear("Atlantic/Azores", [ + ["2033-03-27T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2033-03-27T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2033-10-30T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2033-10-30T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2034" : helpers.makeTestYear("Atlantic/Azores", [ + ["2034-03-26T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2034-03-26T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2034-10-29T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2034-10-29T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2035" : helpers.makeTestYear("Atlantic/Azores", [ + ["2035-03-25T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2035-03-25T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2035-10-28T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2035-10-28T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2036" : helpers.makeTestYear("Atlantic/Azores", [ + ["2036-03-30T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2036-03-30T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2036-10-26T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2036-10-26T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]), + + "2037" : helpers.makeTestYear("Atlantic/Azores", [ + ["2037-03-29T00:59:59+00:00", "23:59:59", "AZOT", 60], + ["2037-03-29T01:00:00+00:00", "01:00:00", "AZOST", 0], + ["2037-10-25T00:59:59+00:00", "00:59:59", "AZOST", 0], + ["2037-10-25T01:00:00+00:00", "00:00:00", "AZOT", 60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/atlantic/bermuda.js b/tests/zones/atlantic/bermuda.js new file mode 100644 index 00000000..4094a5fb --- /dev/null +++ b/tests/zones/atlantic/bermuda.js @@ -0,0 +1,458 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/Bermuda"] = { + "1930" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1930-01-01T06:19:17+00:00", "01:59:59", "LMT", 15558 / 60], + ["1930-01-01T06:19:18+00:00", "02:19:18", "AST", 240] + ]), + + "1974" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1974-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1974-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1974-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1974-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1975" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1975-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1975-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1975-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1975-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1976" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1976-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1976-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1976-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1976-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1977" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1977-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1977-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1977-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1977-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1978" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1978-04-30T05:59:59+00:00", "01:59:59", "AST", 240], + ["1978-04-30T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1978-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1978-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1979" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1979-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1979-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1979-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1979-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1980" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1980-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1980-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1980-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1980-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1981" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1981-04-26T05:59:59+00:00", "01:59:59", "AST", 240], + ["1981-04-26T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1981-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1981-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1982" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1982-04-25T05:59:59+00:00", "01:59:59", "AST", 240], + ["1982-04-25T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1982-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1982-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1983" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1983-04-24T05:59:59+00:00", "01:59:59", "AST", 240], + ["1983-04-24T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1983-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1983-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1984" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1984-04-29T05:59:59+00:00", "01:59:59", "AST", 240], + ["1984-04-29T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1984-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1984-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1985" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1985-04-28T05:59:59+00:00", "01:59:59", "AST", 240], + ["1985-04-28T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1985-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1985-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1986" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1986-04-27T05:59:59+00:00", "01:59:59", "AST", 240], + ["1986-04-27T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1986-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1986-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1987" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1987-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1987-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1987-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1987-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1988" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1988-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1988-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1988-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1988-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1989" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1989-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1989-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1989-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1989-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1990" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1990-04-01T05:59:59+00:00", "01:59:59", "AST", 240], + ["1990-04-01T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1990-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1990-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1991" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1991-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["1991-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1991-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1991-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1992" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1992-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1992-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1992-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1992-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1993" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1993-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["1993-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1993-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1993-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1994" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1994-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["1994-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1994-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1994-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1995" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1995-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["1995-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1995-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1995-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1996" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1996-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["1996-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1996-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1996-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1997" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1997-04-06T05:59:59+00:00", "01:59:59", "AST", 240], + ["1997-04-06T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1997-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1997-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1998" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1998-04-05T05:59:59+00:00", "01:59:59", "AST", 240], + ["1998-04-05T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1998-10-25T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1998-10-25T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "1999" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["1999-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["1999-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["1999-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["1999-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2000" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2000-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["2000-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2000-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2000-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2001" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2001-04-01T05:59:59+00:00", "01:59:59", "AST", 240], + ["2001-04-01T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2001-10-28T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2001-10-28T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2002" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2002-04-07T05:59:59+00:00", "01:59:59", "AST", 240], + ["2002-04-07T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2002-10-27T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2002-10-27T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2003" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2003-04-06T05:59:59+00:00", "01:59:59", "AST", 240], + ["2003-04-06T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2003-10-26T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2003-10-26T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2004" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2004-04-04T05:59:59+00:00", "01:59:59", "AST", 240], + ["2004-04-04T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2004-10-31T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2004-10-31T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2005" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2005-04-03T05:59:59+00:00", "01:59:59", "AST", 240], + ["2005-04-03T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2005-10-30T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2005-10-30T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2006" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2006-04-02T05:59:59+00:00", "01:59:59", "AST", 240], + ["2006-04-02T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2006-10-29T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2006-10-29T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2007" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2007-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2007-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2007-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2007-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2008" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2008-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2008-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2008-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2008-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2009" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2009-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2009-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2009-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2009-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2010" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2010-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2010-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2010-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2010-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2011" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2011-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2011-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2011-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2011-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2012" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2012-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2012-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2012-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2012-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2013" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2013-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2013-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2013-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2013-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2014" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2014-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2014-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2014-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2014-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2015" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2015-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2015-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2015-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2015-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2016" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2016-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2016-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2016-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2016-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2017" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2017-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2017-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2017-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2017-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2018" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2018-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2018-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2018-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2018-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2019" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2019-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2019-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2019-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2019-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2020" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2020-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2020-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2020-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2020-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2021" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2021-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2021-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2021-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2021-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2022" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2022-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2022-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2022-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2022-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2023" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2023-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2023-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2023-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2023-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2024" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2024-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2024-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2024-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2024-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2025" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2025-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2025-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2025-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2025-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2026" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2026-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2026-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2026-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2026-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2027" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2027-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2027-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2027-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2027-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2028" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2028-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2028-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2028-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2028-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2029" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2029-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2029-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2029-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2029-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2030" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2030-03-10T05:59:59+00:00", "01:59:59", "AST", 240], + ["2030-03-10T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2030-11-03T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2030-11-03T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2031" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2031-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2031-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2031-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2031-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2032" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2032-03-14T05:59:59+00:00", "01:59:59", "AST", 240], + ["2032-03-14T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2032-11-07T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2032-11-07T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2033" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2033-03-13T05:59:59+00:00", "01:59:59", "AST", 240], + ["2033-03-13T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2033-11-06T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2033-11-06T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2034" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2034-03-12T05:59:59+00:00", "01:59:59", "AST", 240], + ["2034-03-12T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2034-11-05T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2034-11-05T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2035" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2035-03-11T05:59:59+00:00", "01:59:59", "AST", 240], + ["2035-03-11T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2035-11-04T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2035-11-04T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2036" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2036-03-09T05:59:59+00:00", "01:59:59", "AST", 240], + ["2036-03-09T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2036-11-02T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2036-11-02T05:00:00+00:00", "01:00:00", "AST", 240] + ]), + + "2037" : helpers.makeTestYear("Atlantic/Bermuda", [ + ["2037-03-08T05:59:59+00:00", "01:59:59", "AST", 240], + ["2037-03-08T06:00:00+00:00", "03:00:00", "ADT", 180], + ["2037-11-01T04:59:59+00:00", "01:59:59", "ADT", 180], + ["2037-11-01T05:00:00+00:00", "01:00:00", "AST", 240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/atlantic/canary.js b/tests/zones/atlantic/canary.js new file mode 100644 index 00000000..0f723077 --- /dev/null +++ b/tests/zones/atlantic/canary.js @@ -0,0 +1,421 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/Canary"] = { + "1922" : helpers.makeTestYear("Atlantic/Canary", [ + ["1922-03-01T01:01:35+00:00", "23:59:59", "LMT", 3696 / 60], + ["1922-03-01T01:01:36+00:00", "00:01:36", "CANT", 60] + ]), + + "1946" : helpers.makeTestYear("Atlantic/Canary", [ + ["1946-09-30T01:59:59+00:00", "00:59:59", "CANT", 60], + ["1946-09-30T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1980" : helpers.makeTestYear("Atlantic/Canary", [ + ["1980-04-05T23:59:59+00:00", "23:59:59", "WET", 0], + ["1980-04-06T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1980-09-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1980-09-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1981" : helpers.makeTestYear("Atlantic/Canary", [ + ["1981-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1981-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1981-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1981-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1982" : helpers.makeTestYear("Atlantic/Canary", [ + ["1982-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1982-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1982-09-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1982-09-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1983" : helpers.makeTestYear("Atlantic/Canary", [ + ["1983-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1983-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1983-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1983-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1984" : helpers.makeTestYear("Atlantic/Canary", [ + ["1984-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1984-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1984-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1984-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1985" : helpers.makeTestYear("Atlantic/Canary", [ + ["1985-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1985-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1985-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1985-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1986" : helpers.makeTestYear("Atlantic/Canary", [ + ["1986-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1986-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1986-09-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1986-09-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1987" : helpers.makeTestYear("Atlantic/Canary", [ + ["1987-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1987-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1987-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1987-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1988" : helpers.makeTestYear("Atlantic/Canary", [ + ["1988-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1988-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1988-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1988-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1989" : helpers.makeTestYear("Atlantic/Canary", [ + ["1989-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["1989-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1989-09-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1989-09-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1990" : helpers.makeTestYear("Atlantic/Canary", [ + ["1990-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1990-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1990-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1990-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1991" : helpers.makeTestYear("Atlantic/Canary", [ + ["1991-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1991-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1991-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1991-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1992" : helpers.makeTestYear("Atlantic/Canary", [ + ["1992-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1992-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1992-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1992-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1993" : helpers.makeTestYear("Atlantic/Canary", [ + ["1993-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1993-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1993-09-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1993-09-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1994" : helpers.makeTestYear("Atlantic/Canary", [ + ["1994-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1994-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1994-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1994-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1995" : helpers.makeTestYear("Atlantic/Canary", [ + ["1995-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["1995-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1995-09-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1995-09-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1996" : helpers.makeTestYear("Atlantic/Canary", [ + ["1996-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1996-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1996-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1996-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1997" : helpers.makeTestYear("Atlantic/Canary", [ + ["1997-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1997-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1997-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1997-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1998" : helpers.makeTestYear("Atlantic/Canary", [ + ["1998-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1998-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1998-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1998-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1999" : helpers.makeTestYear("Atlantic/Canary", [ + ["1999-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1999-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1999-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1999-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2000" : helpers.makeTestYear("Atlantic/Canary", [ + ["2000-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2000-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2000-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2000-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2001" : helpers.makeTestYear("Atlantic/Canary", [ + ["2001-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2001-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2001-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2001-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2002" : helpers.makeTestYear("Atlantic/Canary", [ + ["2002-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2002-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2002-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2002-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2003" : helpers.makeTestYear("Atlantic/Canary", [ + ["2003-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2003-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2003-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2003-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2004" : helpers.makeTestYear("Atlantic/Canary", [ + ["2004-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2004-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2004-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2004-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2005" : helpers.makeTestYear("Atlantic/Canary", [ + ["2005-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2005-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2005-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2005-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2006" : helpers.makeTestYear("Atlantic/Canary", [ + ["2006-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2006-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2006-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2006-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2007" : helpers.makeTestYear("Atlantic/Canary", [ + ["2007-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2007-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2007-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2007-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2008" : helpers.makeTestYear("Atlantic/Canary", [ + ["2008-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2008-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2008-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2008-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2009" : helpers.makeTestYear("Atlantic/Canary", [ + ["2009-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2009-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2009-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2009-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2010" : helpers.makeTestYear("Atlantic/Canary", [ + ["2010-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2010-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2010-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2010-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2011" : helpers.makeTestYear("Atlantic/Canary", [ + ["2011-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2011-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2011-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2011-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2012" : helpers.makeTestYear("Atlantic/Canary", [ + ["2012-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2012-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2012-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2012-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2013" : helpers.makeTestYear("Atlantic/Canary", [ + ["2013-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2013-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2013-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2013-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2014" : helpers.makeTestYear("Atlantic/Canary", [ + ["2014-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2014-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2014-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2014-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2015" : helpers.makeTestYear("Atlantic/Canary", [ + ["2015-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2015-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2015-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2015-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2016" : helpers.makeTestYear("Atlantic/Canary", [ + ["2016-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2016-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2016-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2016-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2017" : helpers.makeTestYear("Atlantic/Canary", [ + ["2017-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2017-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2017-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2017-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2018" : helpers.makeTestYear("Atlantic/Canary", [ + ["2018-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2018-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2018-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2018-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2019" : helpers.makeTestYear("Atlantic/Canary", [ + ["2019-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2019-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2019-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2019-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2020" : helpers.makeTestYear("Atlantic/Canary", [ + ["2020-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2020-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2020-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2020-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2021" : helpers.makeTestYear("Atlantic/Canary", [ + ["2021-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2021-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2021-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2021-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2022" : helpers.makeTestYear("Atlantic/Canary", [ + ["2022-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2022-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2022-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2022-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2023" : helpers.makeTestYear("Atlantic/Canary", [ + ["2023-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2023-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2023-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2023-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2024" : helpers.makeTestYear("Atlantic/Canary", [ + ["2024-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2024-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2024-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2024-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2025" : helpers.makeTestYear("Atlantic/Canary", [ + ["2025-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2025-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2025-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2025-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2026" : helpers.makeTestYear("Atlantic/Canary", [ + ["2026-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2026-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2026-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2026-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2027" : helpers.makeTestYear("Atlantic/Canary", [ + ["2027-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2027-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2027-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2027-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2028" : helpers.makeTestYear("Atlantic/Canary", [ + ["2028-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2028-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2028-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2028-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2029" : helpers.makeTestYear("Atlantic/Canary", [ + ["2029-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2029-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2029-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2029-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2030" : helpers.makeTestYear("Atlantic/Canary", [ + ["2030-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2030-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2030-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2030-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2031" : helpers.makeTestYear("Atlantic/Canary", [ + ["2031-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2031-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2031-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2031-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2032" : helpers.makeTestYear("Atlantic/Canary", [ + ["2032-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2032-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2032-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2032-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2033" : helpers.makeTestYear("Atlantic/Canary", [ + ["2033-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2033-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2033-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2033-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2034" : helpers.makeTestYear("Atlantic/Canary", [ + ["2034-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2034-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2034-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2034-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2035" : helpers.makeTestYear("Atlantic/Canary", [ + ["2035-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2035-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2035-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2035-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2036" : helpers.makeTestYear("Atlantic/Canary", [ + ["2036-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2036-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2036-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2036-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2037" : helpers.makeTestYear("Atlantic/Canary", [ + ["2037-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2037-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2037-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2037-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/atlantic/cape_verde.js b/tests/zones/atlantic/cape_verde.js new file mode 100644 index 00000000..38841771 --- /dev/null +++ b/tests/zones/atlantic/cape_verde.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/Cape_Verde"] = { + "1907" : helpers.makeTestYear("Atlantic/Cape_Verde", [ + ["1907-01-01T01:34:03+00:00", "23:59:59", "LMT", 5644 / 60], + ["1907-01-01T01:34:04+00:00", "23:34:04", "CVT", 120] + ]), + + "1942" : helpers.makeTestYear("Atlantic/Cape_Verde", [ + ["1942-09-01T01:59:59+00:00", "23:59:59", "CVT", 120], + ["1942-09-01T02:00:00+00:00", "01:00:00", "CVST", 60] + ]), + + "1945" : helpers.makeTestYear("Atlantic/Cape_Verde", [ + ["1945-10-15T00:59:59+00:00", "23:59:59", "CVST", 60], + ["1945-10-15T01:00:00+00:00", "23:00:00", "CVT", 120] + ]), + + "1975" : helpers.makeTestYear("Atlantic/Cape_Verde", [ + ["1975-11-25T03:59:59+00:00", "01:59:59", "CVT", 120], + ["1975-11-25T04:00:00+00:00", "03:00:00", "CVT", 60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/atlantic/faroe.js b/tests/zones/atlantic/faroe.js new file mode 100644 index 00000000..ac66ef25 --- /dev/null +++ b/tests/zones/atlantic/faroe.js @@ -0,0 +1,409 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/Faroe"] = { + "1908" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1908-01-11T00:27:03+00:00", "23:59:59", "LMT", 1624 / 60], + ["1908-01-11T00:27:04+00:00", "00:27:04", "WET", 0] + ]), + + "1981" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1981-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1981-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1981-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1981-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1982" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1982-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1982-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1982-09-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1982-09-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1983" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1983-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1983-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1983-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1983-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1984" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1984-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1984-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1984-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1984-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1985" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1985-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1985-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1985-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1985-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1986" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1986-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1986-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1986-09-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1986-09-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1987" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1987-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1987-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1987-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1987-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1988" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1988-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1988-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1988-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1988-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1989" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1989-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["1989-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1989-09-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1989-09-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1990" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1990-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1990-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1990-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1990-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1991" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1991-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1991-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1991-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1991-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1992" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1992-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1992-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1992-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1992-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1993" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1993-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1993-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1993-09-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1993-09-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1994" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1994-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1994-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1994-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1994-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1995" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1995-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["1995-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1995-09-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1995-09-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1996" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1996-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1996-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1996-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1996-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1997" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1997-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1997-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1997-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1997-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1998" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1998-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1998-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1998-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1998-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1999" : helpers.makeTestYear("Atlantic/Faroe", [ + ["1999-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1999-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1999-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1999-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2000" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2000-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2000-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2000-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2000-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2001" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2001-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2001-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2001-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2001-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2002" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2002-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2002-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2002-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2002-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2003" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2003-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2003-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2003-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2003-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2004" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2004-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2004-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2004-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2004-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2005" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2005-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2005-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2005-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2005-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2006" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2006-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2006-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2006-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2006-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2007" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2007-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2007-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2007-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2007-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2008" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2008-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2008-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2008-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2008-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2009" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2009-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2009-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2009-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2009-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2010" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2010-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2010-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2010-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2010-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2011" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2011-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2011-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2011-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2011-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2012" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2012-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2012-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2012-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2012-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2013" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2013-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2013-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2013-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2013-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2014" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2014-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2014-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2014-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2014-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2015" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2015-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2015-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2015-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2015-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2016" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2016-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2016-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2016-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2016-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2017" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2017-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2017-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2017-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2017-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2018" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2018-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2018-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2018-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2018-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2019" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2019-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2019-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2019-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2019-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2020" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2020-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2020-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2020-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2020-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2021" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2021-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2021-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2021-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2021-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2022" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2022-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2022-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2022-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2022-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2023" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2023-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2023-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2023-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2023-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2024" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2024-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2024-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2024-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2024-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2025" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2025-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2025-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2025-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2025-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2026" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2026-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2026-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2026-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2026-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2027" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2027-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2027-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2027-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2027-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2028" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2028-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2028-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2028-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2028-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2029" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2029-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2029-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2029-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2029-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2030" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2030-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2030-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2030-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2030-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2031" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2031-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2031-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2031-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2031-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2032" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2032-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2032-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2032-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2032-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2033" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2033-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2033-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2033-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2033-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2034" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2034-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2034-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2034-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2034-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2035" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2035-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2035-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2035-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2035-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2036" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2036-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2036-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2036-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2036-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2037" : helpers.makeTestYear("Atlantic/Faroe", [ + ["2037-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2037-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2037-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2037-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/atlantic/madeira.js b/tests/zones/atlantic/madeira.js new file mode 100644 index 00000000..393d91fa --- /dev/null +++ b/tests/zones/atlantic/madeira.js @@ -0,0 +1,766 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/Madeira"] = { + "1911" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1911-05-24T01:07:35+00:00", "23:59:59", "FMT", 4056 / 60], + ["1911-05-24T01:07:36+00:00", "00:07:36", "MADT", 60] + ]), + + "1916" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1916-06-17T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1916-06-18T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1916-11-01T00:59:59+00:00", "00:59:59", "MADST", 0], + ["1916-11-01T01:00:00+00:00", "00:00:00", "MADT", 60] + ]), + + "1917" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1917-02-28T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1917-03-01T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1917-10-14T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1917-10-15T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1918" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1918-03-01T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1918-03-02T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1918-10-14T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1918-10-15T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1919" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1919-02-28T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1919-03-01T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1919-10-14T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1919-10-15T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1920" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1920-02-29T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1920-03-01T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1920-10-14T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1920-10-15T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1921" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1921-02-28T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1921-03-01T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1921-10-14T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1921-10-15T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1924" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1924-04-16T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1924-04-17T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1924-10-14T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1924-10-15T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1926" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1926-04-17T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1926-04-18T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1926-10-02T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1926-10-03T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1927" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1927-04-09T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1927-04-10T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1927-10-01T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1927-10-02T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1928" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1928-04-14T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1928-04-15T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1928-10-06T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1928-10-07T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1929" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1929-04-20T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1929-04-21T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1929-10-05T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1929-10-06T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1931" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1931-04-18T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1931-04-19T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1931-10-03T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1931-10-04T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1932" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1932-04-02T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1932-04-03T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1932-10-01T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1932-10-02T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1934" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1934-04-07T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1934-04-08T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1934-10-06T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1934-10-07T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1935" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1935-03-30T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1935-03-31T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1935-10-05T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1935-10-06T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1936" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1936-04-18T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1936-04-19T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1936-10-03T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1936-10-04T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1937" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1937-04-03T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1937-04-04T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1937-10-02T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1937-10-03T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1938" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1938-03-26T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1938-03-27T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1938-10-01T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1938-10-02T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1939" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1939-04-15T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1939-04-16T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1939-11-18T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1939-11-19T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1940" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1940-02-24T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1940-02-25T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1940-10-05T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1940-10-06T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1941" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1941-04-05T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1941-04-06T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1941-10-05T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1941-10-06T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1942" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1942-03-14T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1942-03-15T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1942-04-25T22:59:59+00:00", "22:59:59", "MADST", 0], + ["1942-04-25T23:00:00+00:00", "00:00:00", "MADMT", -60], + ["1942-08-15T22:59:59+00:00", "23:59:59", "MADMT", -60], + ["1942-08-15T23:00:00+00:00", "23:00:00", "MADST", 0], + ["1942-10-24T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1942-10-25T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1943" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1943-03-13T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1943-03-14T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1943-04-17T22:59:59+00:00", "22:59:59", "MADST", 0], + ["1943-04-17T23:00:00+00:00", "00:00:00", "MADMT", -60], + ["1943-08-28T22:59:59+00:00", "23:59:59", "MADMT", -60], + ["1943-08-28T23:00:00+00:00", "23:00:00", "MADST", 0], + ["1943-10-30T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1943-10-31T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1944" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1944-03-11T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1944-03-12T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1944-04-22T22:59:59+00:00", "22:59:59", "MADST", 0], + ["1944-04-22T23:00:00+00:00", "00:00:00", "MADMT", -60], + ["1944-08-26T22:59:59+00:00", "23:59:59", "MADMT", -60], + ["1944-08-26T23:00:00+00:00", "23:00:00", "MADST", 0], + ["1944-10-28T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1944-10-29T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1945" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1945-03-10T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1945-03-11T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1945-04-21T22:59:59+00:00", "22:59:59", "MADST", 0], + ["1945-04-21T23:00:00+00:00", "00:00:00", "MADMT", -60], + ["1945-08-25T22:59:59+00:00", "23:59:59", "MADMT", -60], + ["1945-08-25T23:00:00+00:00", "23:00:00", "MADST", 0], + ["1945-10-27T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1945-10-28T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1946" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1946-04-06T23:59:59+00:00", "22:59:59", "MADT", 60], + ["1946-04-07T00:00:00+00:00", "00:00:00", "MADST", 0], + ["1946-10-05T23:59:59+00:00", "23:59:59", "MADST", 0], + ["1946-10-06T00:00:00+00:00", "23:00:00", "MADT", 60] + ]), + + "1947" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1947-04-06T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1947-04-06T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1947-10-05T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1947-10-05T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1948" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1948-04-04T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1948-04-04T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1948-10-03T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1948-10-03T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1949" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1949-04-03T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1949-04-03T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1949-10-02T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1949-10-02T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1951" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1951-04-01T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1951-04-01T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1951-10-07T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1951-10-07T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1952" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1952-04-06T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1952-04-06T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1952-10-05T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1952-10-05T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1953" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1953-04-05T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1953-04-05T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1953-10-04T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1953-10-04T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1954" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1954-04-04T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1954-04-04T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1954-10-03T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1954-10-03T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1955" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1955-04-03T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1955-04-03T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1955-10-02T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1955-10-02T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1956" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1956-04-01T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1956-04-01T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1956-10-07T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1956-10-07T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1957" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1957-04-07T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1957-04-07T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1957-10-06T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1957-10-06T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1958" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1958-04-06T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1958-04-06T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1958-10-05T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1958-10-05T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1959" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1959-04-05T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1959-04-05T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1959-10-04T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1959-10-04T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1960" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1960-04-03T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1960-04-03T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1960-10-02T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1960-10-02T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1961" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1961-04-02T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1961-04-02T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1961-10-01T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1961-10-01T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1962" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1962-04-01T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1962-04-01T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1962-10-07T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1962-10-07T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1963" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1963-04-07T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1963-04-07T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1963-10-06T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1963-10-06T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1964" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1964-04-05T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1964-04-05T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1964-10-04T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1964-10-04T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1965" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1965-04-04T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1965-04-04T03:00:00+00:00", "03:00:00", "MADST", 0], + ["1965-10-03T02:59:59+00:00", "02:59:59", "MADST", 0], + ["1965-10-03T03:00:00+00:00", "02:00:00", "MADT", 60] + ]), + + "1966" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1966-04-03T02:59:59+00:00", "01:59:59", "MADT", 60], + ["1966-04-03T03:00:00+00:00", "03:00:00", "WET", 0] + ]), + + "1977" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1977-03-26T23:59:59+00:00", "23:59:59", "WET", 0], + ["1977-03-27T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1977-09-24T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1977-09-25T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1978" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1978-04-01T23:59:59+00:00", "23:59:59", "WET", 0], + ["1978-04-02T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1978-09-30T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1978-10-01T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1979" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1979-03-31T23:59:59+00:00", "23:59:59", "WET", 0], + ["1979-04-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1979-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1979-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1980" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1980-03-29T23:59:59+00:00", "23:59:59", "WET", 0], + ["1980-03-30T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1980-09-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1980-09-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1981" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1981-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1981-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1981-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1981-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1982" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1982-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1982-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1982-09-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1982-09-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1983" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1983-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["1983-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1983-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1983-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1984" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1984-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1984-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1984-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1984-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1985" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1985-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1985-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1985-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1985-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1986" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1986-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1986-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1986-09-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1986-09-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1987" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1987-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1987-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1987-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1987-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1988" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1988-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1988-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1988-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1988-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1989" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1989-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["1989-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1989-09-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1989-09-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1990" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1990-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1990-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1990-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1990-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1991" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1991-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1991-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1991-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1991-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1992" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1992-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1992-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1992-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1992-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1993" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1993-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1993-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1993-09-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1993-09-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1994" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1994-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1994-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1994-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1994-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1995" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1995-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["1995-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1995-09-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1995-09-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1996" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1996-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1996-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1996-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1996-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1997" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1997-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1997-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1997-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1997-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1998" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1998-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1998-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1998-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1998-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1999" : helpers.makeTestYear("Atlantic/Madeira", [ + ["1999-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1999-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1999-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1999-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2000" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2000-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2000-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2000-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2000-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2001" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2001-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2001-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2001-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2001-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2002" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2002-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2002-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2002-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2002-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2003" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2003-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2003-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2003-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2003-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2004" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2004-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2004-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2004-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2004-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2005" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2005-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2005-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2005-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2005-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2006" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2006-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2006-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2006-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2006-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2007" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2007-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2007-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2007-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2007-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2008" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2008-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2008-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2008-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2008-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2009" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2009-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2009-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2009-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2009-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2010" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2010-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2010-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2010-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2010-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2011" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2011-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2011-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2011-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2011-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2012" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2012-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2012-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2012-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2012-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2013" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2013-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2013-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2013-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2013-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2014" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2014-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2014-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2014-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2014-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2015" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2015-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2015-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2015-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2015-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2016" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2016-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2016-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2016-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2016-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2017" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2017-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2017-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2017-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2017-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2018" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2018-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2018-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2018-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2018-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2019" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2019-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2019-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2019-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2019-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2020" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2020-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2020-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2020-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2020-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2021" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2021-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2021-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2021-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2021-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2022" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2022-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2022-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2022-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2022-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2023" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2023-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2023-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2023-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2023-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2024" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2024-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2024-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2024-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2024-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2025" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2025-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2025-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2025-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2025-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2026" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2026-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2026-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2026-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2026-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2027" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2027-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2027-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2027-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2027-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2028" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2028-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2028-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2028-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2028-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2029" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2029-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2029-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2029-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2029-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2030" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2030-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2030-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2030-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2030-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2031" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2031-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2031-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2031-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2031-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2032" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2032-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2032-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2032-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2032-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2033" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2033-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2033-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2033-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2033-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2034" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2034-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2034-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2034-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2034-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2035" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2035-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2035-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2035-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2035-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2036" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2036-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2036-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2036-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2036-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2037" : helpers.makeTestYear("Atlantic/Madeira", [ + ["2037-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2037-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2037-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2037-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/atlantic/reykjavik.js b/tests/zones/atlantic/reykjavik.js new file mode 100644 index 00000000..af2c6a75 --- /dev/null +++ b/tests/zones/atlantic/reykjavik.js @@ -0,0 +1,232 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/Reykjavik"] = { + "1908" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1908-01-01T01:27:47+00:00", "23:59:59", "RMT", 5268 / 60], + ["1908-01-01T01:27:48+00:00", "00:27:48", "IST", 60] + ]), + + "1917" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1917-02-19T23:59:59+00:00", "22:59:59", "IST", 60], + ["1917-02-20T00:00:00+00:00", "00:00:00", "ISST", 0], + ["1917-10-21T00:59:59+00:00", "00:59:59", "ISST", 0], + ["1917-10-21T01:00:00+00:00", "00:00:00", "IST", 60] + ]), + + "1918" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1918-02-19T23:59:59+00:00", "22:59:59", "IST", 60], + ["1918-02-20T00:00:00+00:00", "00:00:00", "ISST", 0], + ["1918-11-16T00:59:59+00:00", "00:59:59", "ISST", 0], + ["1918-11-16T01:00:00+00:00", "00:00:00", "IST", 60] + ]), + + "1939" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1939-04-29T23:59:59+00:00", "22:59:59", "IST", 60], + ["1939-04-30T00:00:00+00:00", "00:00:00", "ISST", 0], + ["1939-11-29T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1939-11-29T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1940" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1940-02-25T02:59:59+00:00", "01:59:59", "IST", 60], + ["1940-02-25T03:00:00+00:00", "03:00:00", "ISST", 0], + ["1940-11-03T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1940-11-03T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1941" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1941-03-02T01:59:59+00:00", "00:59:59", "IST", 60], + ["1941-03-02T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1941-11-02T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1941-11-02T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1942" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1942-03-08T01:59:59+00:00", "00:59:59", "IST", 60], + ["1942-03-08T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1942-10-25T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1942-10-25T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1943" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1943-03-07T01:59:59+00:00", "00:59:59", "IST", 60], + ["1943-03-07T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1943-10-24T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1943-10-24T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1944" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1944-03-05T01:59:59+00:00", "00:59:59", "IST", 60], + ["1944-03-05T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1944-10-22T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1944-10-22T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1945" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1945-03-04T01:59:59+00:00", "00:59:59", "IST", 60], + ["1945-03-04T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1945-10-28T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1945-10-28T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1946" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1946-03-03T01:59:59+00:00", "00:59:59", "IST", 60], + ["1946-03-03T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1946-10-27T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1946-10-27T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1947" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1947-04-06T01:59:59+00:00", "00:59:59", "IST", 60], + ["1947-04-06T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1947-10-26T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1947-10-26T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1948" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1948-04-04T01:59:59+00:00", "00:59:59", "IST", 60], + ["1948-04-04T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1948-10-24T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1948-10-24T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1949" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1949-04-03T01:59:59+00:00", "00:59:59", "IST", 60], + ["1949-04-03T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1949-10-30T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1949-10-30T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1950" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1950-04-02T01:59:59+00:00", "00:59:59", "IST", 60], + ["1950-04-02T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1950-10-22T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1950-10-22T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1951" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1951-04-01T01:59:59+00:00", "00:59:59", "IST", 60], + ["1951-04-01T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1951-10-28T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1951-10-28T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1952" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1952-04-06T01:59:59+00:00", "00:59:59", "IST", 60], + ["1952-04-06T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1952-10-26T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1952-10-26T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1953" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1953-04-05T01:59:59+00:00", "00:59:59", "IST", 60], + ["1953-04-05T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1953-10-25T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1953-10-25T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1954" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1954-04-04T01:59:59+00:00", "00:59:59", "IST", 60], + ["1954-04-04T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1954-10-24T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1954-10-24T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1955" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1955-04-03T01:59:59+00:00", "00:59:59", "IST", 60], + ["1955-04-03T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1955-10-23T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1955-10-23T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1956" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1956-04-01T01:59:59+00:00", "00:59:59", "IST", 60], + ["1956-04-01T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1956-10-28T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1956-10-28T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1957" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1957-04-07T01:59:59+00:00", "00:59:59", "IST", 60], + ["1957-04-07T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1957-10-27T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1957-10-27T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1958" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1958-04-06T01:59:59+00:00", "00:59:59", "IST", 60], + ["1958-04-06T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1958-10-26T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1958-10-26T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1959" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1959-04-05T01:59:59+00:00", "00:59:59", "IST", 60], + ["1959-04-05T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1959-10-25T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1959-10-25T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1960" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1960-04-03T01:59:59+00:00", "00:59:59", "IST", 60], + ["1960-04-03T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1960-10-23T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1960-10-23T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1961" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1961-04-02T01:59:59+00:00", "00:59:59", "IST", 60], + ["1961-04-02T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1961-10-22T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1961-10-22T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1962" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1962-04-01T01:59:59+00:00", "00:59:59", "IST", 60], + ["1962-04-01T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1962-10-28T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1962-10-28T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1963" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1963-04-07T01:59:59+00:00", "00:59:59", "IST", 60], + ["1963-04-07T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1963-10-27T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1963-10-27T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1964" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1964-04-05T01:59:59+00:00", "00:59:59", "IST", 60], + ["1964-04-05T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1964-10-25T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1964-10-25T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1965" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1965-04-04T01:59:59+00:00", "00:59:59", "IST", 60], + ["1965-04-04T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1965-10-24T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1965-10-24T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1966" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1966-04-03T01:59:59+00:00", "00:59:59", "IST", 60], + ["1966-04-03T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1966-10-23T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1966-10-23T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1967" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1967-04-02T01:59:59+00:00", "00:59:59", "IST", 60], + ["1967-04-02T02:00:00+00:00", "02:00:00", "ISST", 0], + ["1967-10-29T01:59:59+00:00", "01:59:59", "ISST", 0], + ["1967-10-29T02:00:00+00:00", "01:00:00", "IST", 60] + ]), + + "1968" : helpers.makeTestYear("Atlantic/Reykjavik", [ + ["1968-04-07T01:59:59+00:00", "00:59:59", "IST", 60], + ["1968-04-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/atlantic/south_georgia.js b/tests/zones/atlantic/south_georgia.js new file mode 100644 index 00000000..fe38fb63 --- /dev/null +++ b/tests/zones/atlantic/south_georgia.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/South_Georgia"] = { + +}; \ No newline at end of file diff --git a/tests/zones/atlantic/st_helena.js b/tests/zones/atlantic/st_helena.js new file mode 100644 index 00000000..e253288b --- /dev/null +++ b/tests/zones/atlantic/st_helena.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/St_Helena"] = { + "1951" : helpers.makeTestYear("Atlantic/St_Helena", [ + ["1951-01-01T00:22:47+00:00", "23:59:59", "JMT", 1368 / 60], + ["1951-01-01T00:22:48+00:00", "00:22:48", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/atlantic/stanley.js b/tests/zones/atlantic/stanley.js new file mode 100644 index 00000000..0c6c29b8 --- /dev/null +++ b/tests/zones/atlantic/stanley.js @@ -0,0 +1,251 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Atlantic/Stanley"] = { + "1912" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1912-03-12T03:51:23+00:00", "23:59:59", "SMT", 13884 / 60], + ["1912-03-12T03:51:24+00:00", "23:51:24", "FKT", 240] + ]), + + "1937" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1937-09-26T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1937-09-26T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1938" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1938-03-20T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1938-03-20T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1938-09-25T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1938-09-25T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1939" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1939-03-19T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1939-03-19T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1939-10-01T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1939-10-01T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1940" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1940-03-24T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1940-03-24T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1940-09-29T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1940-09-29T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1941" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1941-03-23T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1941-03-23T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1941-09-28T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1941-09-28T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1942" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1942-03-22T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1942-03-22T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1942-09-27T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1942-09-27T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1943" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1943-01-01T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1943-01-01T03:00:00+00:00", "23:00:00", "FKT", 240] + ]), + + "1983" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1983-05-01T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1983-05-01T04:00:00+00:00", "01:00:00", "FKT", 180], + ["1983-09-25T02:59:59+00:00", "23:59:59", "FKT", 180], + ["1983-09-25T03:00:00+00:00", "01:00:00", "FKST", 120] + ]), + + "1984" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1984-04-29T01:59:59+00:00", "23:59:59", "FKST", 120], + ["1984-04-29T02:00:00+00:00", "23:00:00", "FKT", 180], + ["1984-09-16T02:59:59+00:00", "23:59:59", "FKT", 180], + ["1984-09-16T03:00:00+00:00", "01:00:00", "FKST", 120] + ]), + + "1985" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1985-04-28T01:59:59+00:00", "23:59:59", "FKST", 120], + ["1985-04-28T02:00:00+00:00", "23:00:00", "FKT", 180], + ["1985-09-15T02:59:59+00:00", "23:59:59", "FKT", 180], + ["1985-09-15T03:00:00+00:00", "00:00:00", "FKST", 180] + ]), + + "1986" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1986-04-20T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1986-04-20T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1986-09-14T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1986-09-14T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1987" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1987-04-19T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1987-04-19T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1987-09-13T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1987-09-13T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1988" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1988-04-17T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1988-04-17T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1988-09-11T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1988-09-11T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1989" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1989-04-16T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1989-04-16T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1989-09-10T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1989-09-10T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1990" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1990-04-22T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1990-04-22T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1990-09-09T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1990-09-09T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1991" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1991-04-21T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1991-04-21T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1991-09-15T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1991-09-15T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1992" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1992-04-19T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1992-04-19T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1992-09-13T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1992-09-13T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1993" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1993-04-18T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1993-04-18T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1993-09-12T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1993-09-12T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1994" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1994-04-17T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1994-04-17T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1994-09-11T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1994-09-11T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1995" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1995-04-16T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1995-04-16T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1995-09-10T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1995-09-10T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1996" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1996-04-21T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1996-04-21T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1996-09-15T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1996-09-15T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1997" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1997-04-20T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1997-04-20T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1997-09-14T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1997-09-14T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1998" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1998-04-19T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1998-04-19T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1998-09-13T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1998-09-13T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "1999" : helpers.makeTestYear("Atlantic/Stanley", [ + ["1999-04-18T02:59:59+00:00", "23:59:59", "FKST", 180], + ["1999-04-18T03:00:00+00:00", "23:00:00", "FKT", 240], + ["1999-09-12T03:59:59+00:00", "23:59:59", "FKT", 240], + ["1999-09-12T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "2000" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2000-04-16T02:59:59+00:00", "23:59:59", "FKST", 180], + ["2000-04-16T03:00:00+00:00", "23:00:00", "FKT", 240], + ["2000-09-10T03:59:59+00:00", "23:59:59", "FKT", 240], + ["2000-09-10T04:00:00+00:00", "01:00:00", "FKST", 180] + ]), + + "2001" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2001-04-15T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2001-04-15T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2001-09-02T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2001-09-02T06:00:00+00:00", "03:00:00", "FKST", 180] + ]), + + "2002" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2002-04-21T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2002-04-21T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2002-09-01T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2002-09-01T06:00:00+00:00", "03:00:00", "FKST", 180] + ]), + + "2003" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2003-04-20T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2003-04-20T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2003-09-07T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2003-09-07T06:00:00+00:00", "03:00:00", "FKST", 180] + ]), + + "2004" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2004-04-18T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2004-04-18T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2004-09-05T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2004-09-05T06:00:00+00:00", "03:00:00", "FKST", 180] + ]), + + "2005" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2005-04-17T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2005-04-17T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2005-09-04T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2005-09-04T06:00:00+00:00", "03:00:00", "FKST", 180] + ]), + + "2006" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2006-04-16T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2006-04-16T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2006-09-03T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2006-09-03T06:00:00+00:00", "03:00:00", "FKST", 180] + ]), + + "2007" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2007-04-15T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2007-04-15T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2007-09-02T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2007-09-02T06:00:00+00:00", "03:00:00", "FKST", 180] + ]), + + "2008" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2008-04-20T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2008-04-20T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2008-09-07T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2008-09-07T06:00:00+00:00", "03:00:00", "FKST", 180] + ]), + + "2009" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2009-04-19T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2009-04-19T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2009-09-06T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2009-09-06T06:00:00+00:00", "03:00:00", "FKST", 180] + ]), + + "2010" : helpers.makeTestYear("Atlantic/Stanley", [ + ["2010-04-18T04:59:59+00:00", "01:59:59", "FKST", 180], + ["2010-04-18T05:00:00+00:00", "01:00:00", "FKT", 240], + ["2010-09-05T05:59:59+00:00", "01:59:59", "FKT", 240], + ["2010-09-05T06:00:00+00:00", "03:00:00", "FKST", 180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/adelaide.js b/tests/zones/australia/adelaide.js new file mode 100644 index 00000000..a4a8a71f --- /dev/null +++ b/tests/zones/australia/adelaide.js @@ -0,0 +1,506 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Adelaide"] = { + "1916" : helpers.makeTestYear("Australia/Adelaide", [ + ["1916-12-31T14:30:59+00:00", "00:00:59", "CST", -570], + ["1916-12-31T14:31:00+00:00", "01:01:00", "CST", -630] + ]), + + "1917" : helpers.makeTestYear("Australia/Adelaide", [ + ["1917-03-24T15:29:59+00:00", "01:59:59", "CST", -630], + ["1917-03-24T15:30:00+00:00", "01:00:00", "CST", -570] + ]), + + "1941" : helpers.makeTestYear("Australia/Adelaide", [ + ["1941-12-31T16:29:59+00:00", "01:59:59", "CST", -570], + ["1941-12-31T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1942" : helpers.makeTestYear("Australia/Adelaide", [ + ["1942-03-28T15:29:59+00:00", "01:59:59", "CST", -630], + ["1942-03-28T15:30:00+00:00", "01:00:00", "CST", -570], + ["1942-09-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1942-09-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1943" : helpers.makeTestYear("Australia/Adelaide", [ + ["1943-03-27T15:29:59+00:00", "01:59:59", "CST", -630], + ["1943-03-27T15:30:00+00:00", "01:00:00", "CST", -570], + ["1943-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["1943-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1944" : helpers.makeTestYear("Australia/Adelaide", [ + ["1944-03-25T15:29:59+00:00", "01:59:59", "CST", -630], + ["1944-03-25T15:30:00+00:00", "01:00:00", "CST", -570] + ]), + + "1971" : helpers.makeTestYear("Australia/Adelaide", [ + ["1971-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1971-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1972" : helpers.makeTestYear("Australia/Adelaide", [ + ["1972-02-26T16:29:59+00:00", "02:59:59", "CST", -630], + ["1972-02-26T16:30:00+00:00", "02:00:00", "CST", -570], + ["1972-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["1972-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1973" : helpers.makeTestYear("Australia/Adelaide", [ + ["1973-03-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["1973-03-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["1973-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["1973-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1974" : helpers.makeTestYear("Australia/Adelaide", [ + ["1974-03-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["1974-03-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["1974-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1974-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1975" : helpers.makeTestYear("Australia/Adelaide", [ + ["1975-03-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["1975-03-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["1975-10-25T16:29:59+00:00", "01:59:59", "CST", -570], + ["1975-10-25T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1976" : helpers.makeTestYear("Australia/Adelaide", [ + ["1976-03-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["1976-03-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["1976-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1976-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1977" : helpers.makeTestYear("Australia/Adelaide", [ + ["1977-03-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["1977-03-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["1977-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["1977-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1978" : helpers.makeTestYear("Australia/Adelaide", [ + ["1978-03-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["1978-03-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["1978-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["1978-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1979" : helpers.makeTestYear("Australia/Adelaide", [ + ["1979-03-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["1979-03-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["1979-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["1979-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1980" : helpers.makeTestYear("Australia/Adelaide", [ + ["1980-03-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["1980-03-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["1980-10-25T16:29:59+00:00", "01:59:59", "CST", -570], + ["1980-10-25T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1981" : helpers.makeTestYear("Australia/Adelaide", [ + ["1981-02-28T16:29:59+00:00", "02:59:59", "CST", -630], + ["1981-02-28T16:30:00+00:00", "02:00:00", "CST", -570], + ["1981-10-24T16:29:59+00:00", "01:59:59", "CST", -570], + ["1981-10-24T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1982" : helpers.makeTestYear("Australia/Adelaide", [ + ["1982-03-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["1982-03-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["1982-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1982-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1983" : helpers.makeTestYear("Australia/Adelaide", [ + ["1983-03-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["1983-03-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["1983-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["1983-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1984" : helpers.makeTestYear("Australia/Adelaide", [ + ["1984-03-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["1984-03-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["1984-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["1984-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1985" : helpers.makeTestYear("Australia/Adelaide", [ + ["1985-03-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["1985-03-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["1985-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1985-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1986" : helpers.makeTestYear("Australia/Adelaide", [ + ["1986-03-15T16:29:59+00:00", "02:59:59", "CST", -630], + ["1986-03-15T16:30:00+00:00", "02:00:00", "CST", -570], + ["1986-10-18T16:29:59+00:00", "01:59:59", "CST", -570], + ["1986-10-18T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1987" : helpers.makeTestYear("Australia/Adelaide", [ + ["1987-03-14T16:29:59+00:00", "02:59:59", "CST", -630], + ["1987-03-14T16:30:00+00:00", "02:00:00", "CST", -570], + ["1987-10-24T16:29:59+00:00", "01:59:59", "CST", -570], + ["1987-10-24T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1988" : helpers.makeTestYear("Australia/Adelaide", [ + ["1988-03-19T16:29:59+00:00", "02:59:59", "CST", -630], + ["1988-03-19T16:30:00+00:00", "02:00:00", "CST", -570], + ["1988-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["1988-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1989" : helpers.makeTestYear("Australia/Adelaide", [ + ["1989-03-18T16:29:59+00:00", "02:59:59", "CST", -630], + ["1989-03-18T16:30:00+00:00", "02:00:00", "CST", -570], + ["1989-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["1989-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1990" : helpers.makeTestYear("Australia/Adelaide", [ + ["1990-03-17T16:29:59+00:00", "02:59:59", "CST", -630], + ["1990-03-17T16:30:00+00:00", "02:00:00", "CST", -570], + ["1990-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["1990-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1991" : helpers.makeTestYear("Australia/Adelaide", [ + ["1991-03-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["1991-03-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["1991-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1991-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1992" : helpers.makeTestYear("Australia/Adelaide", [ + ["1992-03-21T16:29:59+00:00", "02:59:59", "CST", -630], + ["1992-03-21T16:30:00+00:00", "02:00:00", "CST", -570], + ["1992-10-24T16:29:59+00:00", "01:59:59", "CST", -570], + ["1992-10-24T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1993" : helpers.makeTestYear("Australia/Adelaide", [ + ["1993-03-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["1993-03-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["1993-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1993-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1994" : helpers.makeTestYear("Australia/Adelaide", [ + ["1994-03-19T16:29:59+00:00", "02:59:59", "CST", -630], + ["1994-03-19T16:30:00+00:00", "02:00:00", "CST", -570], + ["1994-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["1994-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1995" : helpers.makeTestYear("Australia/Adelaide", [ + ["1995-03-25T16:29:59+00:00", "02:59:59", "CST", -630], + ["1995-03-25T16:30:00+00:00", "02:00:00", "CST", -570], + ["1995-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["1995-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1996" : helpers.makeTestYear("Australia/Adelaide", [ + ["1996-03-30T16:29:59+00:00", "02:59:59", "CST", -630], + ["1996-03-30T16:30:00+00:00", "02:00:00", "CST", -570], + ["1996-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1996-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1997" : helpers.makeTestYear("Australia/Adelaide", [ + ["1997-03-29T16:29:59+00:00", "02:59:59", "CST", -630], + ["1997-03-29T16:30:00+00:00", "02:00:00", "CST", -570], + ["1997-10-25T16:29:59+00:00", "01:59:59", "CST", -570], + ["1997-10-25T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1998" : helpers.makeTestYear("Australia/Adelaide", [ + ["1998-03-28T16:29:59+00:00", "02:59:59", "CST", -630], + ["1998-03-28T16:30:00+00:00", "02:00:00", "CST", -570], + ["1998-10-24T16:29:59+00:00", "01:59:59", "CST", -570], + ["1998-10-24T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1999" : helpers.makeTestYear("Australia/Adelaide", [ + ["1999-03-27T16:29:59+00:00", "02:59:59", "CST", -630], + ["1999-03-27T16:30:00+00:00", "02:00:00", "CST", -570], + ["1999-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1999-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2000" : helpers.makeTestYear("Australia/Adelaide", [ + ["2000-03-25T16:29:59+00:00", "02:59:59", "CST", -630], + ["2000-03-25T16:30:00+00:00", "02:00:00", "CST", -570], + ["2000-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["2000-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2001" : helpers.makeTestYear("Australia/Adelaide", [ + ["2001-03-24T16:29:59+00:00", "02:59:59", "CST", -630], + ["2001-03-24T16:30:00+00:00", "02:00:00", "CST", -570], + ["2001-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["2001-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2002" : helpers.makeTestYear("Australia/Adelaide", [ + ["2002-03-30T16:29:59+00:00", "02:59:59", "CST", -630], + ["2002-03-30T16:30:00+00:00", "02:00:00", "CST", -570], + ["2002-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["2002-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2003" : helpers.makeTestYear("Australia/Adelaide", [ + ["2003-03-29T16:29:59+00:00", "02:59:59", "CST", -630], + ["2003-03-29T16:30:00+00:00", "02:00:00", "CST", -570], + ["2003-10-25T16:29:59+00:00", "01:59:59", "CST", -570], + ["2003-10-25T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2004" : helpers.makeTestYear("Australia/Adelaide", [ + ["2004-03-27T16:29:59+00:00", "02:59:59", "CST", -630], + ["2004-03-27T16:30:00+00:00", "02:00:00", "CST", -570], + ["2004-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2004-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2005" : helpers.makeTestYear("Australia/Adelaide", [ + ["2005-03-26T16:29:59+00:00", "02:59:59", "CST", -630], + ["2005-03-26T16:30:00+00:00", "02:00:00", "CST", -570], + ["2005-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["2005-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2006" : helpers.makeTestYear("Australia/Adelaide", [ + ["2006-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2006-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2006-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["2006-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2007" : helpers.makeTestYear("Australia/Adelaide", [ + ["2007-03-24T16:29:59+00:00", "02:59:59", "CST", -630], + ["2007-03-24T16:30:00+00:00", "02:00:00", "CST", -570], + ["2007-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["2007-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2008" : helpers.makeTestYear("Australia/Adelaide", [ + ["2008-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2008-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2008-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2008-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2009" : helpers.makeTestYear("Australia/Adelaide", [ + ["2009-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2009-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2009-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2009-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2010" : helpers.makeTestYear("Australia/Adelaide", [ + ["2010-04-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["2010-04-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["2010-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["2010-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2011" : helpers.makeTestYear("Australia/Adelaide", [ + ["2011-04-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["2011-04-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["2011-10-01T16:29:59+00:00", "01:59:59", "CST", -570], + ["2011-10-01T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2012" : helpers.makeTestYear("Australia/Adelaide", [ + ["2012-03-31T16:29:59+00:00", "02:59:59", "CST", -630], + ["2012-03-31T16:30:00+00:00", "02:00:00", "CST", -570], + ["2012-10-06T16:29:59+00:00", "01:59:59", "CST", -570], + ["2012-10-06T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2013" : helpers.makeTestYear("Australia/Adelaide", [ + ["2013-04-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["2013-04-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["2013-10-05T16:29:59+00:00", "01:59:59", "CST", -570], + ["2013-10-05T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2014" : helpers.makeTestYear("Australia/Adelaide", [ + ["2014-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2014-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2014-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2014-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2015" : helpers.makeTestYear("Australia/Adelaide", [ + ["2015-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2015-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2015-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2015-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2016" : helpers.makeTestYear("Australia/Adelaide", [ + ["2016-04-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["2016-04-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["2016-10-01T16:29:59+00:00", "01:59:59", "CST", -570], + ["2016-10-01T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2017" : helpers.makeTestYear("Australia/Adelaide", [ + ["2017-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2017-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2017-09-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2017-09-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2018" : helpers.makeTestYear("Australia/Adelaide", [ + ["2018-03-31T16:29:59+00:00", "02:59:59", "CST", -630], + ["2018-03-31T16:30:00+00:00", "02:00:00", "CST", -570], + ["2018-10-06T16:29:59+00:00", "01:59:59", "CST", -570], + ["2018-10-06T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2019" : helpers.makeTestYear("Australia/Adelaide", [ + ["2019-04-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["2019-04-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["2019-10-05T16:29:59+00:00", "01:59:59", "CST", -570], + ["2019-10-05T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2020" : helpers.makeTestYear("Australia/Adelaide", [ + ["2020-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2020-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2020-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2020-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2021" : helpers.makeTestYear("Australia/Adelaide", [ + ["2021-04-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["2021-04-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["2021-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["2021-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2022" : helpers.makeTestYear("Australia/Adelaide", [ + ["2022-04-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["2022-04-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["2022-10-01T16:29:59+00:00", "01:59:59", "CST", -570], + ["2022-10-01T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2023" : helpers.makeTestYear("Australia/Adelaide", [ + ["2023-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2023-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2023-09-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2023-09-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2024" : helpers.makeTestYear("Australia/Adelaide", [ + ["2024-04-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["2024-04-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["2024-10-05T16:29:59+00:00", "01:59:59", "CST", -570], + ["2024-10-05T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2025" : helpers.makeTestYear("Australia/Adelaide", [ + ["2025-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2025-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2025-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2025-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2026" : helpers.makeTestYear("Australia/Adelaide", [ + ["2026-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2026-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2026-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2026-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2027" : helpers.makeTestYear("Australia/Adelaide", [ + ["2027-04-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["2027-04-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["2027-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["2027-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2028" : helpers.makeTestYear("Australia/Adelaide", [ + ["2028-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2028-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2028-09-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2028-09-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2029" : helpers.makeTestYear("Australia/Adelaide", [ + ["2029-03-31T16:29:59+00:00", "02:59:59", "CST", -630], + ["2029-03-31T16:30:00+00:00", "02:00:00", "CST", -570], + ["2029-10-06T16:29:59+00:00", "01:59:59", "CST", -570], + ["2029-10-06T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2030" : helpers.makeTestYear("Australia/Adelaide", [ + ["2030-04-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["2030-04-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["2030-10-05T16:29:59+00:00", "01:59:59", "CST", -570], + ["2030-10-05T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2031" : helpers.makeTestYear("Australia/Adelaide", [ + ["2031-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2031-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2031-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2031-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2032" : helpers.makeTestYear("Australia/Adelaide", [ + ["2032-04-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["2032-04-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["2032-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["2032-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2033" : helpers.makeTestYear("Australia/Adelaide", [ + ["2033-04-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["2033-04-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["2033-10-01T16:29:59+00:00", "01:59:59", "CST", -570], + ["2033-10-01T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2034" : helpers.makeTestYear("Australia/Adelaide", [ + ["2034-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2034-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2034-09-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2034-09-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2035" : helpers.makeTestYear("Australia/Adelaide", [ + ["2035-03-31T16:29:59+00:00", "02:59:59", "CST", -630], + ["2035-03-31T16:30:00+00:00", "02:00:00", "CST", -570], + ["2035-10-06T16:29:59+00:00", "01:59:59", "CST", -570], + ["2035-10-06T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2036" : helpers.makeTestYear("Australia/Adelaide", [ + ["2036-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2036-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2036-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2036-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2037" : helpers.makeTestYear("Australia/Adelaide", [ + ["2037-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2037-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2037-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2037-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/brisbane.js b/tests/zones/australia/brisbane.js new file mode 100644 index 00000000..222851d9 --- /dev/null +++ b/tests/zones/australia/brisbane.js @@ -0,0 +1,73 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Brisbane"] = { + "1916" : helpers.makeTestYear("Australia/Brisbane", [ + ["1916-12-31T14:00:59+00:00", "00:00:59", "EST", -600], + ["1916-12-31T14:01:00+00:00", "01:01:00", "EST", -660] + ]), + + "1917" : helpers.makeTestYear("Australia/Brisbane", [ + ["1917-03-24T14:59:59+00:00", "01:59:59", "EST", -660], + ["1917-03-24T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1941" : helpers.makeTestYear("Australia/Brisbane", [ + ["1941-12-31T15:59:59+00:00", "01:59:59", "EST", -600], + ["1941-12-31T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1942" : helpers.makeTestYear("Australia/Brisbane", [ + ["1942-03-28T14:59:59+00:00", "01:59:59", "EST", -660], + ["1942-03-28T15:00:00+00:00", "01:00:00", "EST", -600], + ["1942-09-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1942-09-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1943" : helpers.makeTestYear("Australia/Brisbane", [ + ["1943-03-27T14:59:59+00:00", "01:59:59", "EST", -660], + ["1943-03-27T15:00:00+00:00", "01:00:00", "EST", -600], + ["1943-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1943-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1944" : helpers.makeTestYear("Australia/Brisbane", [ + ["1944-03-25T14:59:59+00:00", "01:59:59", "EST", -660], + ["1944-03-25T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1971" : helpers.makeTestYear("Australia/Brisbane", [ + ["1971-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1971-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1972" : helpers.makeTestYear("Australia/Brisbane", [ + ["1972-02-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1972-02-26T16:00:00+00:00", "02:00:00", "EST", -600] + ]), + + "1989" : helpers.makeTestYear("Australia/Brisbane", [ + ["1989-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1989-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1990" : helpers.makeTestYear("Australia/Brisbane", [ + ["1990-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1990-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1990-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1990-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1991" : helpers.makeTestYear("Australia/Brisbane", [ + ["1991-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1991-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1991-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1991-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1992" : helpers.makeTestYear("Australia/Brisbane", [ + ["1992-02-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["1992-02-29T16:00:00+00:00", "02:00:00", "EST", -600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/broken_hill.js b/tests/zones/australia/broken_hill.js new file mode 100644 index 00000000..b8da96ed --- /dev/null +++ b/tests/zones/australia/broken_hill.js @@ -0,0 +1,506 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Broken_Hill"] = { + "1916" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1916-12-31T14:30:59+00:00", "00:00:59", "CST", -570], + ["1916-12-31T14:31:00+00:00", "01:01:00", "CST", -630] + ]), + + "1917" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1917-03-24T15:29:59+00:00", "01:59:59", "CST", -630], + ["1917-03-24T15:30:00+00:00", "01:00:00", "CST", -570] + ]), + + "1941" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1941-12-31T16:29:59+00:00", "01:59:59", "CST", -570], + ["1941-12-31T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1942" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1942-03-28T15:29:59+00:00", "01:59:59", "CST", -630], + ["1942-03-28T15:30:00+00:00", "01:00:00", "CST", -570], + ["1942-09-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1942-09-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1943" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1943-03-27T15:29:59+00:00", "01:59:59", "CST", -630], + ["1943-03-27T15:30:00+00:00", "01:00:00", "CST", -570], + ["1943-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["1943-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1944" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1944-03-25T15:29:59+00:00", "01:59:59", "CST", -630], + ["1944-03-25T15:30:00+00:00", "01:00:00", "CST", -570] + ]), + + "1971" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1971-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1971-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1972" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1972-02-26T16:29:59+00:00", "02:59:59", "CST", -630], + ["1972-02-26T16:30:00+00:00", "02:00:00", "CST", -570], + ["1972-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["1972-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1973" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1973-03-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["1973-03-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["1973-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["1973-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1974" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1974-03-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["1974-03-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["1974-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1974-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1975" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1975-03-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["1975-03-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["1975-10-25T16:29:59+00:00", "01:59:59", "CST", -570], + ["1975-10-25T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1976" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1976-03-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["1976-03-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["1976-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1976-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1977" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1977-03-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["1977-03-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["1977-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["1977-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1978" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1978-03-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["1978-03-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["1978-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["1978-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1979" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1979-03-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["1979-03-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["1979-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["1979-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1980" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1980-03-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["1980-03-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["1980-10-25T16:29:59+00:00", "01:59:59", "CST", -570], + ["1980-10-25T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1981" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1981-02-28T16:29:59+00:00", "02:59:59", "CST", -630], + ["1981-02-28T16:30:00+00:00", "02:00:00", "CST", -570], + ["1981-10-24T16:29:59+00:00", "01:59:59", "CST", -570], + ["1981-10-24T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1982" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1982-04-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["1982-04-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["1982-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1982-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1983" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1983-03-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["1983-03-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["1983-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["1983-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1984" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1984-03-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["1984-03-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["1984-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["1984-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1985" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1985-03-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["1985-03-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["1985-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1985-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1986" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1986-03-15T16:29:59+00:00", "02:59:59", "CST", -630], + ["1986-03-15T16:30:00+00:00", "02:00:00", "CST", -570], + ["1986-10-18T16:29:59+00:00", "01:59:59", "CST", -570], + ["1986-10-18T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1987" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1987-03-14T16:29:59+00:00", "02:59:59", "CST", -630], + ["1987-03-14T16:30:00+00:00", "02:00:00", "CST", -570], + ["1987-10-24T16:29:59+00:00", "01:59:59", "CST", -570], + ["1987-10-24T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1988" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1988-03-19T16:29:59+00:00", "02:59:59", "CST", -630], + ["1988-03-19T16:30:00+00:00", "02:00:00", "CST", -570], + ["1988-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["1988-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1989" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1989-03-18T16:29:59+00:00", "02:59:59", "CST", -630], + ["1989-03-18T16:30:00+00:00", "02:00:00", "CST", -570], + ["1989-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["1989-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1990" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1990-03-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["1990-03-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["1990-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["1990-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1991" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1991-03-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["1991-03-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["1991-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1991-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1992" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1992-02-29T16:29:59+00:00", "02:59:59", "CST", -630], + ["1992-02-29T16:30:00+00:00", "02:00:00", "CST", -570], + ["1992-10-24T16:29:59+00:00", "01:59:59", "CST", -570], + ["1992-10-24T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1993" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1993-03-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["1993-03-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["1993-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1993-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1994" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1994-03-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["1994-03-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["1994-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["1994-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1995" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1995-03-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["1995-03-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["1995-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["1995-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1996" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1996-03-30T16:29:59+00:00", "02:59:59", "CST", -630], + ["1996-03-30T16:30:00+00:00", "02:00:00", "CST", -570], + ["1996-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1996-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1997" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1997-03-29T16:29:59+00:00", "02:59:59", "CST", -630], + ["1997-03-29T16:30:00+00:00", "02:00:00", "CST", -570], + ["1997-10-25T16:29:59+00:00", "01:59:59", "CST", -570], + ["1997-10-25T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1998" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1998-03-28T16:29:59+00:00", "02:59:59", "CST", -630], + ["1998-03-28T16:30:00+00:00", "02:00:00", "CST", -570], + ["1998-10-24T16:29:59+00:00", "01:59:59", "CST", -570], + ["1998-10-24T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1999" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["1999-03-27T16:29:59+00:00", "02:59:59", "CST", -630], + ["1999-03-27T16:30:00+00:00", "02:00:00", "CST", -570], + ["1999-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["1999-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2000" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2000-03-25T16:29:59+00:00", "02:59:59", "CST", -630], + ["2000-03-25T16:30:00+00:00", "02:00:00", "CST", -570], + ["2000-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["2000-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2001" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2001-03-24T16:29:59+00:00", "02:59:59", "CST", -630], + ["2001-03-24T16:30:00+00:00", "02:00:00", "CST", -570], + ["2001-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["2001-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2002" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2002-03-30T16:29:59+00:00", "02:59:59", "CST", -630], + ["2002-03-30T16:30:00+00:00", "02:00:00", "CST", -570], + ["2002-10-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["2002-10-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2003" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2003-03-29T16:29:59+00:00", "02:59:59", "CST", -630], + ["2003-03-29T16:30:00+00:00", "02:00:00", "CST", -570], + ["2003-10-25T16:29:59+00:00", "01:59:59", "CST", -570], + ["2003-10-25T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2004" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2004-03-27T16:29:59+00:00", "02:59:59", "CST", -630], + ["2004-03-27T16:30:00+00:00", "02:00:00", "CST", -570], + ["2004-10-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2004-10-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2005" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2005-03-26T16:29:59+00:00", "02:59:59", "CST", -630], + ["2005-03-26T16:30:00+00:00", "02:00:00", "CST", -570], + ["2005-10-29T16:29:59+00:00", "01:59:59", "CST", -570], + ["2005-10-29T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2006" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2006-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2006-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2006-10-28T16:29:59+00:00", "01:59:59", "CST", -570], + ["2006-10-28T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2007" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2007-03-24T16:29:59+00:00", "02:59:59", "CST", -630], + ["2007-03-24T16:30:00+00:00", "02:00:00", "CST", -570], + ["2007-10-27T16:29:59+00:00", "01:59:59", "CST", -570], + ["2007-10-27T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2008" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2008-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2008-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2008-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2008-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2009" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2009-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2009-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2009-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2009-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2010" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2010-04-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["2010-04-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["2010-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["2010-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2011" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2011-04-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["2011-04-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["2011-10-01T16:29:59+00:00", "01:59:59", "CST", -570], + ["2011-10-01T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2012" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2012-03-31T16:29:59+00:00", "02:59:59", "CST", -630], + ["2012-03-31T16:30:00+00:00", "02:00:00", "CST", -570], + ["2012-10-06T16:29:59+00:00", "01:59:59", "CST", -570], + ["2012-10-06T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2013" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2013-04-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["2013-04-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["2013-10-05T16:29:59+00:00", "01:59:59", "CST", -570], + ["2013-10-05T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2014" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2014-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2014-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2014-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2014-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2015" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2015-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2015-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2015-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2015-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2016" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2016-04-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["2016-04-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["2016-10-01T16:29:59+00:00", "01:59:59", "CST", -570], + ["2016-10-01T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2017" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2017-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2017-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2017-09-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2017-09-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2018" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2018-03-31T16:29:59+00:00", "02:59:59", "CST", -630], + ["2018-03-31T16:30:00+00:00", "02:00:00", "CST", -570], + ["2018-10-06T16:29:59+00:00", "01:59:59", "CST", -570], + ["2018-10-06T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2019" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2019-04-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["2019-04-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["2019-10-05T16:29:59+00:00", "01:59:59", "CST", -570], + ["2019-10-05T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2020" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2020-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2020-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2020-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2020-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2021" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2021-04-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["2021-04-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["2021-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["2021-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2022" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2022-04-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["2022-04-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["2022-10-01T16:29:59+00:00", "01:59:59", "CST", -570], + ["2022-10-01T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2023" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2023-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2023-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2023-09-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2023-09-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2024" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2024-04-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["2024-04-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["2024-10-05T16:29:59+00:00", "01:59:59", "CST", -570], + ["2024-10-05T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2025" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2025-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2025-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2025-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2025-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2026" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2026-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2026-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2026-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2026-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2027" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2027-04-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["2027-04-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["2027-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["2027-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2028" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2028-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2028-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2028-09-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2028-09-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2029" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2029-03-31T16:29:59+00:00", "02:59:59", "CST", -630], + ["2029-03-31T16:30:00+00:00", "02:00:00", "CST", -570], + ["2029-10-06T16:29:59+00:00", "01:59:59", "CST", -570], + ["2029-10-06T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2030" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2030-04-06T16:29:59+00:00", "02:59:59", "CST", -630], + ["2030-04-06T16:30:00+00:00", "02:00:00", "CST", -570], + ["2030-10-05T16:29:59+00:00", "01:59:59", "CST", -570], + ["2030-10-05T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2031" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2031-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2031-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2031-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2031-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2032" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2032-04-03T16:29:59+00:00", "02:59:59", "CST", -630], + ["2032-04-03T16:30:00+00:00", "02:00:00", "CST", -570], + ["2032-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["2032-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2033" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2033-04-02T16:29:59+00:00", "02:59:59", "CST", -630], + ["2033-04-02T16:30:00+00:00", "02:00:00", "CST", -570], + ["2033-10-01T16:29:59+00:00", "01:59:59", "CST", -570], + ["2033-10-01T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2034" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2034-04-01T16:29:59+00:00", "02:59:59", "CST", -630], + ["2034-04-01T16:30:00+00:00", "02:00:00", "CST", -570], + ["2034-09-30T16:29:59+00:00", "01:59:59", "CST", -570], + ["2034-09-30T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2035" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2035-03-31T16:29:59+00:00", "02:59:59", "CST", -630], + ["2035-03-31T16:30:00+00:00", "02:00:00", "CST", -570], + ["2035-10-06T16:29:59+00:00", "01:59:59", "CST", -570], + ["2035-10-06T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2036" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2036-04-05T16:29:59+00:00", "02:59:59", "CST", -630], + ["2036-04-05T16:30:00+00:00", "02:00:00", "CST", -570], + ["2036-10-04T16:29:59+00:00", "01:59:59", "CST", -570], + ["2036-10-04T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "2037" : helpers.makeTestYear("Australia/Broken_Hill", [ + ["2037-04-04T16:29:59+00:00", "02:59:59", "CST", -630], + ["2037-04-04T16:30:00+00:00", "02:00:00", "CST", -570], + ["2037-10-03T16:29:59+00:00", "01:59:59", "CST", -570], + ["2037-10-03T16:30:00+00:00", "03:00:00", "CST", -630] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/currie.js b/tests/zones/australia/currie.js new file mode 100644 index 00000000..7900b404 --- /dev/null +++ b/tests/zones/australia/currie.js @@ -0,0 +1,506 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Currie"] = { + "1916" : helpers.makeTestYear("Australia/Currie", [ + ["1916-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1916-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1917" : helpers.makeTestYear("Australia/Currie", [ + ["1917-03-24T14:59:59+00:00", "01:59:59", "EST", -660], + ["1917-03-24T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1941" : helpers.makeTestYear("Australia/Currie", [ + ["1941-12-31T15:59:59+00:00", "01:59:59", "EST", -600], + ["1941-12-31T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1942" : helpers.makeTestYear("Australia/Currie", [ + ["1942-03-28T14:59:59+00:00", "01:59:59", "EST", -660], + ["1942-03-28T15:00:00+00:00", "01:00:00", "EST", -600], + ["1942-09-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1942-09-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1943" : helpers.makeTestYear("Australia/Currie", [ + ["1943-03-27T14:59:59+00:00", "01:59:59", "EST", -660], + ["1943-03-27T15:00:00+00:00", "01:00:00", "EST", -600], + ["1943-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1943-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1944" : helpers.makeTestYear("Australia/Currie", [ + ["1944-03-25T14:59:59+00:00", "01:59:59", "EST", -660], + ["1944-03-25T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1971" : helpers.makeTestYear("Australia/Currie", [ + ["1971-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1971-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1972" : helpers.makeTestYear("Australia/Currie", [ + ["1972-02-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1972-02-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1972-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1972-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1973" : helpers.makeTestYear("Australia/Currie", [ + ["1973-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1973-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1973-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1973-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1974" : helpers.makeTestYear("Australia/Currie", [ + ["1974-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1974-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1974-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1974-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1975" : helpers.makeTestYear("Australia/Currie", [ + ["1975-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1975-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1975-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1975-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1976" : helpers.makeTestYear("Australia/Currie", [ + ["1976-03-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["1976-03-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["1976-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1976-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1977" : helpers.makeTestYear("Australia/Currie", [ + ["1977-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1977-03-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["1977-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1977-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1978" : helpers.makeTestYear("Australia/Currie", [ + ["1978-03-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["1978-03-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["1978-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1978-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1979" : helpers.makeTestYear("Australia/Currie", [ + ["1979-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1979-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1979-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1979-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1980" : helpers.makeTestYear("Australia/Currie", [ + ["1980-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1980-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1980-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1980-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1981" : helpers.makeTestYear("Australia/Currie", [ + ["1981-02-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1981-02-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1981-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1981-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1982" : helpers.makeTestYear("Australia/Currie", [ + ["1982-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1982-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1982-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1982-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1983" : helpers.makeTestYear("Australia/Currie", [ + ["1983-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1983-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1983-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1983-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1984" : helpers.makeTestYear("Australia/Currie", [ + ["1984-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1984-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1984-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1984-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1985" : helpers.makeTestYear("Australia/Currie", [ + ["1985-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1985-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1985-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1985-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1986" : helpers.makeTestYear("Australia/Currie", [ + ["1986-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1986-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1986-10-18T15:59:59+00:00", "01:59:59", "EST", -600], + ["1986-10-18T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1987" : helpers.makeTestYear("Australia/Currie", [ + ["1987-03-14T15:59:59+00:00", "02:59:59", "EST", -660], + ["1987-03-14T16:00:00+00:00", "02:00:00", "EST", -600], + ["1987-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1987-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1988" : helpers.makeTestYear("Australia/Currie", [ + ["1988-03-19T15:59:59+00:00", "02:59:59", "EST", -660], + ["1988-03-19T16:00:00+00:00", "02:00:00", "EST", -600], + ["1988-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1988-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1989" : helpers.makeTestYear("Australia/Currie", [ + ["1989-03-18T15:59:59+00:00", "02:59:59", "EST", -660], + ["1989-03-18T16:00:00+00:00", "02:00:00", "EST", -600], + ["1989-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1989-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1990" : helpers.makeTestYear("Australia/Currie", [ + ["1990-03-17T15:59:59+00:00", "02:59:59", "EST", -660], + ["1990-03-17T16:00:00+00:00", "02:00:00", "EST", -600], + ["1990-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1990-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1991" : helpers.makeTestYear("Australia/Currie", [ + ["1991-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1991-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1991-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["1991-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1992" : helpers.makeTestYear("Australia/Currie", [ + ["1992-03-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1992-03-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1992-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["1992-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1993" : helpers.makeTestYear("Australia/Currie", [ + ["1993-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1993-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1993-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1993-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1994" : helpers.makeTestYear("Australia/Currie", [ + ["1994-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1994-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1994-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["1994-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1995" : helpers.makeTestYear("Australia/Currie", [ + ["1995-03-25T15:59:59+00:00", "02:59:59", "EST", -660], + ["1995-03-25T16:00:00+00:00", "02:00:00", "EST", -600], + ["1995-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1995-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1996" : helpers.makeTestYear("Australia/Currie", [ + ["1996-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1996-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1996-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["1996-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1997" : helpers.makeTestYear("Australia/Currie", [ + ["1997-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["1997-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["1997-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["1997-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1998" : helpers.makeTestYear("Australia/Currie", [ + ["1998-03-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1998-03-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1998-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["1998-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1999" : helpers.makeTestYear("Australia/Currie", [ + ["1999-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1999-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1999-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1999-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2000" : helpers.makeTestYear("Australia/Currie", [ + ["2000-03-25T15:59:59+00:00", "02:59:59", "EST", -660], + ["2000-03-25T16:00:00+00:00", "02:00:00", "EST", -600], + ["2000-08-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["2000-08-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2001" : helpers.makeTestYear("Australia/Currie", [ + ["2001-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2001-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2001-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2001-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2002" : helpers.makeTestYear("Australia/Currie", [ + ["2002-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["2002-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["2002-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2002-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2003" : helpers.makeTestYear("Australia/Currie", [ + ["2003-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["2003-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["2003-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2003-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2004" : helpers.makeTestYear("Australia/Currie", [ + ["2004-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["2004-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["2004-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2004-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2005" : helpers.makeTestYear("Australia/Currie", [ + ["2005-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["2005-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["2005-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2005-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2006" : helpers.makeTestYear("Australia/Currie", [ + ["2006-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2006-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2006-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2006-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2007" : helpers.makeTestYear("Australia/Currie", [ + ["2007-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2007-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2007-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2007-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2008" : helpers.makeTestYear("Australia/Currie", [ + ["2008-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2008-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2008-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2008-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2009" : helpers.makeTestYear("Australia/Currie", [ + ["2009-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2009-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2009-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2009-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2010" : helpers.makeTestYear("Australia/Currie", [ + ["2010-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2010-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2010-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2010-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2011" : helpers.makeTestYear("Australia/Currie", [ + ["2011-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2011-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2011-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2011-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2012" : helpers.makeTestYear("Australia/Currie", [ + ["2012-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2012-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2012-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2012-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2013" : helpers.makeTestYear("Australia/Currie", [ + ["2013-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2013-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2013-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2013-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2014" : helpers.makeTestYear("Australia/Currie", [ + ["2014-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2014-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2014-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2014-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2015" : helpers.makeTestYear("Australia/Currie", [ + ["2015-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2015-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2015-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2015-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2016" : helpers.makeTestYear("Australia/Currie", [ + ["2016-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2016-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2016-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2016-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2017" : helpers.makeTestYear("Australia/Currie", [ + ["2017-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2017-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2017-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2017-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2018" : helpers.makeTestYear("Australia/Currie", [ + ["2018-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2018-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2018-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2018-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2019" : helpers.makeTestYear("Australia/Currie", [ + ["2019-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2019-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2019-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2019-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2020" : helpers.makeTestYear("Australia/Currie", [ + ["2020-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2020-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2020-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2020-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2021" : helpers.makeTestYear("Australia/Currie", [ + ["2021-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2021-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2021-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2021-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2022" : helpers.makeTestYear("Australia/Currie", [ + ["2022-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2022-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2022-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2022-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2023" : helpers.makeTestYear("Australia/Currie", [ + ["2023-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2023-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2023-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2023-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2024" : helpers.makeTestYear("Australia/Currie", [ + ["2024-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2024-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2024-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2024-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2025" : helpers.makeTestYear("Australia/Currie", [ + ["2025-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2025-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2025-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2025-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2026" : helpers.makeTestYear("Australia/Currie", [ + ["2026-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2026-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2026-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2026-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2027" : helpers.makeTestYear("Australia/Currie", [ + ["2027-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2027-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2027-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2027-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2028" : helpers.makeTestYear("Australia/Currie", [ + ["2028-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2028-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2028-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2028-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2029" : helpers.makeTestYear("Australia/Currie", [ + ["2029-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2029-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2029-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2029-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2030" : helpers.makeTestYear("Australia/Currie", [ + ["2030-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2030-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2030-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2030-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2031" : helpers.makeTestYear("Australia/Currie", [ + ["2031-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2031-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2031-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2031-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2032" : helpers.makeTestYear("Australia/Currie", [ + ["2032-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2032-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2032-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2032-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2033" : helpers.makeTestYear("Australia/Currie", [ + ["2033-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2033-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2033-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2033-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2034" : helpers.makeTestYear("Australia/Currie", [ + ["2034-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2034-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2034-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2034-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2035" : helpers.makeTestYear("Australia/Currie", [ + ["2035-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2035-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2035-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2035-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2036" : helpers.makeTestYear("Australia/Currie", [ + ["2036-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2036-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2036-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2036-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2037" : helpers.makeTestYear("Australia/Currie", [ + ["2037-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2037-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2037-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2037-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/darwin.js b/tests/zones/australia/darwin.js new file mode 100644 index 00000000..77470f0c --- /dev/null +++ b/tests/zones/australia/darwin.js @@ -0,0 +1,39 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Darwin"] = { + "1916" : helpers.makeTestYear("Australia/Darwin", [ + ["1916-12-31T14:30:59+00:00", "00:00:59", "CST", -570], + ["1916-12-31T14:31:00+00:00", "01:01:00", "CST", -630] + ]), + + "1917" : helpers.makeTestYear("Australia/Darwin", [ + ["1917-03-24T15:29:59+00:00", "01:59:59", "CST", -630], + ["1917-03-24T15:30:00+00:00", "01:00:00", "CST", -570] + ]), + + "1941" : helpers.makeTestYear("Australia/Darwin", [ + ["1941-12-31T16:29:59+00:00", "01:59:59", "CST", -570], + ["1941-12-31T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1942" : helpers.makeTestYear("Australia/Darwin", [ + ["1942-03-28T15:29:59+00:00", "01:59:59", "CST", -630], + ["1942-03-28T15:30:00+00:00", "01:00:00", "CST", -570], + ["1942-09-26T16:29:59+00:00", "01:59:59", "CST", -570], + ["1942-09-26T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1943" : helpers.makeTestYear("Australia/Darwin", [ + ["1943-03-27T15:29:59+00:00", "01:59:59", "CST", -630], + ["1943-03-27T15:30:00+00:00", "01:00:00", "CST", -570], + ["1943-10-02T16:29:59+00:00", "01:59:59", "CST", -570], + ["1943-10-02T16:30:00+00:00", "03:00:00", "CST", -630] + ]), + + "1944" : helpers.makeTestYear("Australia/Darwin", [ + ["1944-03-25T15:29:59+00:00", "01:59:59", "CST", -630], + ["1944-03-25T15:30:00+00:00", "01:00:00", "CST", -570] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/eucla.js b/tests/zones/australia/eucla.js new file mode 100644 index 00000000..885ca02e --- /dev/null +++ b/tests/zones/australia/eucla.js @@ -0,0 +1,86 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Eucla"] = { + "1916" : helpers.makeTestYear("Australia/Eucla", [ + ["1916-12-31T15:15:59+00:00", "00:00:59", "CWST", -525], + ["1916-12-31T15:16:00+00:00", "01:01:00", "CWST", -585] + ]), + + "1917" : helpers.makeTestYear("Australia/Eucla", [ + ["1917-03-24T16:14:59+00:00", "01:59:59", "CWST", -585], + ["1917-03-24T16:15:00+00:00", "01:00:00", "CWST", -525] + ]), + + "1941" : helpers.makeTestYear("Australia/Eucla", [ + ["1941-12-31T17:14:59+00:00", "01:59:59", "CWST", -525], + ["1941-12-31T17:15:00+00:00", "03:00:00", "CWST", -585] + ]), + + "1942" : helpers.makeTestYear("Australia/Eucla", [ + ["1942-03-28T16:14:59+00:00", "01:59:59", "CWST", -585], + ["1942-03-28T16:15:00+00:00", "01:00:00", "CWST", -525], + ["1942-09-26T17:14:59+00:00", "01:59:59", "CWST", -525], + ["1942-09-26T17:15:00+00:00", "03:00:00", "CWST", -585] + ]), + + "1943" : helpers.makeTestYear("Australia/Eucla", [ + ["1943-03-27T16:14:59+00:00", "01:59:59", "CWST", -585], + ["1943-03-27T16:15:00+00:00", "01:00:00", "CWST", -525] + ]), + + "1974" : helpers.makeTestYear("Australia/Eucla", [ + ["1974-10-26T17:14:59+00:00", "01:59:59", "CWST", -525], + ["1974-10-26T17:15:00+00:00", "03:00:00", "CWST", -585] + ]), + + "1975" : helpers.makeTestYear("Australia/Eucla", [ + ["1975-03-01T17:14:59+00:00", "02:59:59", "CWST", -585], + ["1975-03-01T17:15:00+00:00", "02:00:00", "CWST", -525] + ]), + + "1983" : helpers.makeTestYear("Australia/Eucla", [ + ["1983-10-29T17:14:59+00:00", "01:59:59", "CWST", -525], + ["1983-10-29T17:15:00+00:00", "03:00:00", "CWST", -585] + ]), + + "1984" : helpers.makeTestYear("Australia/Eucla", [ + ["1984-03-03T17:14:59+00:00", "02:59:59", "CWST", -585], + ["1984-03-03T17:15:00+00:00", "02:00:00", "CWST", -525] + ]), + + "1991" : helpers.makeTestYear("Australia/Eucla", [ + ["1991-11-16T17:14:59+00:00", "01:59:59", "CWST", -525], + ["1991-11-16T17:15:00+00:00", "03:00:00", "CWST", -585] + ]), + + "1992" : helpers.makeTestYear("Australia/Eucla", [ + ["1992-02-29T17:14:59+00:00", "02:59:59", "CWST", -585], + ["1992-02-29T17:15:00+00:00", "02:00:00", "CWST", -525] + ]), + + "2006" : helpers.makeTestYear("Australia/Eucla", [ + ["2006-12-02T17:14:59+00:00", "01:59:59", "CWST", -525], + ["2006-12-02T17:15:00+00:00", "03:00:00", "CWST", -585] + ]), + + "2007" : helpers.makeTestYear("Australia/Eucla", [ + ["2007-03-24T17:14:59+00:00", "02:59:59", "CWST", -585], + ["2007-03-24T17:15:00+00:00", "02:00:00", "CWST", -525], + ["2007-10-27T17:14:59+00:00", "01:59:59", "CWST", -525], + ["2007-10-27T17:15:00+00:00", "03:00:00", "CWST", -585] + ]), + + "2008" : helpers.makeTestYear("Australia/Eucla", [ + ["2008-03-29T17:14:59+00:00", "02:59:59", "CWST", -585], + ["2008-03-29T17:15:00+00:00", "02:00:00", "CWST", -525], + ["2008-10-25T17:14:59+00:00", "01:59:59", "CWST", -525], + ["2008-10-25T17:15:00+00:00", "03:00:00", "CWST", -585] + ]), + + "2009" : helpers.makeTestYear("Australia/Eucla", [ + ["2009-03-28T17:14:59+00:00", "02:59:59", "CWST", -585], + ["2009-03-28T17:15:00+00:00", "02:00:00", "CWST", -525] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/hobart.js b/tests/zones/australia/hobart.js new file mode 100644 index 00000000..dc167565 --- /dev/null +++ b/tests/zones/australia/hobart.js @@ -0,0 +1,534 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Hobart"] = { + "1916" : helpers.makeTestYear("Australia/Hobart", [ + ["1916-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1916-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1917" : helpers.makeTestYear("Australia/Hobart", [ + ["1917-03-24T14:59:59+00:00", "01:59:59", "EST", -660], + ["1917-03-24T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1941" : helpers.makeTestYear("Australia/Hobart", [ + ["1941-12-31T15:59:59+00:00", "01:59:59", "EST", -600], + ["1941-12-31T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1942" : helpers.makeTestYear("Australia/Hobart", [ + ["1942-03-28T14:59:59+00:00", "01:59:59", "EST", -660], + ["1942-03-28T15:00:00+00:00", "01:00:00", "EST", -600], + ["1942-09-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1942-09-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1943" : helpers.makeTestYear("Australia/Hobart", [ + ["1943-03-27T14:59:59+00:00", "01:59:59", "EST", -660], + ["1943-03-27T15:00:00+00:00", "01:00:00", "EST", -600], + ["1943-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1943-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1944" : helpers.makeTestYear("Australia/Hobart", [ + ["1944-03-25T14:59:59+00:00", "01:59:59", "EST", -660], + ["1944-03-25T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1967" : helpers.makeTestYear("Australia/Hobart", [ + ["1967-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1967-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1968" : helpers.makeTestYear("Australia/Hobart", [ + ["1968-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1968-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1968-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1968-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1969" : helpers.makeTestYear("Australia/Hobart", [ + ["1969-03-08T15:59:59+00:00", "02:59:59", "EST", -660], + ["1969-03-08T16:00:00+00:00", "02:00:00", "EST", -600], + ["1969-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1969-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1970" : helpers.makeTestYear("Australia/Hobart", [ + ["1970-03-07T15:59:59+00:00", "02:59:59", "EST", -660], + ["1970-03-07T16:00:00+00:00", "02:00:00", "EST", -600], + ["1970-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1970-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1971" : helpers.makeTestYear("Australia/Hobart", [ + ["1971-03-13T15:59:59+00:00", "02:59:59", "EST", -660], + ["1971-03-13T16:00:00+00:00", "02:00:00", "EST", -600], + ["1971-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1971-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1972" : helpers.makeTestYear("Australia/Hobart", [ + ["1972-02-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1972-02-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1972-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1972-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1973" : helpers.makeTestYear("Australia/Hobart", [ + ["1973-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1973-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1973-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1973-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1974" : helpers.makeTestYear("Australia/Hobart", [ + ["1974-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1974-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1974-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1974-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1975" : helpers.makeTestYear("Australia/Hobart", [ + ["1975-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1975-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1975-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1975-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1976" : helpers.makeTestYear("Australia/Hobart", [ + ["1976-03-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["1976-03-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["1976-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1976-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1977" : helpers.makeTestYear("Australia/Hobart", [ + ["1977-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1977-03-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["1977-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1977-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1978" : helpers.makeTestYear("Australia/Hobart", [ + ["1978-03-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["1978-03-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["1978-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1978-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1979" : helpers.makeTestYear("Australia/Hobart", [ + ["1979-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1979-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1979-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1979-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1980" : helpers.makeTestYear("Australia/Hobart", [ + ["1980-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1980-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1980-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1980-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1981" : helpers.makeTestYear("Australia/Hobart", [ + ["1981-02-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1981-02-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1981-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1981-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1982" : helpers.makeTestYear("Australia/Hobart", [ + ["1982-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1982-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1982-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1982-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1983" : helpers.makeTestYear("Australia/Hobart", [ + ["1983-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1983-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1983-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1983-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1984" : helpers.makeTestYear("Australia/Hobart", [ + ["1984-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1984-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1984-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1984-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1985" : helpers.makeTestYear("Australia/Hobart", [ + ["1985-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1985-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1985-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1985-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1986" : helpers.makeTestYear("Australia/Hobart", [ + ["1986-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1986-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1986-10-18T15:59:59+00:00", "01:59:59", "EST", -600], + ["1986-10-18T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1987" : helpers.makeTestYear("Australia/Hobart", [ + ["1987-03-14T15:59:59+00:00", "02:59:59", "EST", -660], + ["1987-03-14T16:00:00+00:00", "02:00:00", "EST", -600], + ["1987-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1987-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1988" : helpers.makeTestYear("Australia/Hobart", [ + ["1988-03-19T15:59:59+00:00", "02:59:59", "EST", -660], + ["1988-03-19T16:00:00+00:00", "02:00:00", "EST", -600], + ["1988-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1988-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1989" : helpers.makeTestYear("Australia/Hobart", [ + ["1989-03-18T15:59:59+00:00", "02:59:59", "EST", -660], + ["1989-03-18T16:00:00+00:00", "02:00:00", "EST", -600], + ["1989-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1989-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1990" : helpers.makeTestYear("Australia/Hobart", [ + ["1990-03-17T15:59:59+00:00", "02:59:59", "EST", -660], + ["1990-03-17T16:00:00+00:00", "02:00:00", "EST", -600], + ["1990-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1990-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1991" : helpers.makeTestYear("Australia/Hobart", [ + ["1991-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1991-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1991-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["1991-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1992" : helpers.makeTestYear("Australia/Hobart", [ + ["1992-03-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1992-03-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1992-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["1992-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1993" : helpers.makeTestYear("Australia/Hobart", [ + ["1993-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1993-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1993-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1993-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1994" : helpers.makeTestYear("Australia/Hobart", [ + ["1994-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1994-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1994-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["1994-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1995" : helpers.makeTestYear("Australia/Hobart", [ + ["1995-03-25T15:59:59+00:00", "02:59:59", "EST", -660], + ["1995-03-25T16:00:00+00:00", "02:00:00", "EST", -600], + ["1995-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1995-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1996" : helpers.makeTestYear("Australia/Hobart", [ + ["1996-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1996-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1996-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["1996-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1997" : helpers.makeTestYear("Australia/Hobart", [ + ["1997-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["1997-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["1997-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["1997-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1998" : helpers.makeTestYear("Australia/Hobart", [ + ["1998-03-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1998-03-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1998-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["1998-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1999" : helpers.makeTestYear("Australia/Hobart", [ + ["1999-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1999-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1999-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1999-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2000" : helpers.makeTestYear("Australia/Hobart", [ + ["2000-03-25T15:59:59+00:00", "02:59:59", "EST", -660], + ["2000-03-25T16:00:00+00:00", "02:00:00", "EST", -600], + ["2000-08-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["2000-08-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2001" : helpers.makeTestYear("Australia/Hobart", [ + ["2001-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2001-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2001-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2001-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2002" : helpers.makeTestYear("Australia/Hobart", [ + ["2002-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["2002-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["2002-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2002-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2003" : helpers.makeTestYear("Australia/Hobart", [ + ["2003-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["2003-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["2003-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2003-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2004" : helpers.makeTestYear("Australia/Hobart", [ + ["2004-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["2004-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["2004-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2004-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2005" : helpers.makeTestYear("Australia/Hobart", [ + ["2005-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["2005-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["2005-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2005-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2006" : helpers.makeTestYear("Australia/Hobart", [ + ["2006-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2006-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2006-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2006-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2007" : helpers.makeTestYear("Australia/Hobart", [ + ["2007-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2007-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2007-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2007-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2008" : helpers.makeTestYear("Australia/Hobart", [ + ["2008-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2008-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2008-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2008-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2009" : helpers.makeTestYear("Australia/Hobart", [ + ["2009-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2009-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2009-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2009-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2010" : helpers.makeTestYear("Australia/Hobart", [ + ["2010-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2010-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2010-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2010-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2011" : helpers.makeTestYear("Australia/Hobart", [ + ["2011-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2011-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2011-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2011-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2012" : helpers.makeTestYear("Australia/Hobart", [ + ["2012-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2012-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2012-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2012-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2013" : helpers.makeTestYear("Australia/Hobart", [ + ["2013-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2013-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2013-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2013-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2014" : helpers.makeTestYear("Australia/Hobart", [ + ["2014-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2014-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2014-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2014-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2015" : helpers.makeTestYear("Australia/Hobart", [ + ["2015-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2015-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2015-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2015-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2016" : helpers.makeTestYear("Australia/Hobart", [ + ["2016-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2016-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2016-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2016-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2017" : helpers.makeTestYear("Australia/Hobart", [ + ["2017-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2017-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2017-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2017-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2018" : helpers.makeTestYear("Australia/Hobart", [ + ["2018-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2018-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2018-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2018-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2019" : helpers.makeTestYear("Australia/Hobart", [ + ["2019-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2019-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2019-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2019-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2020" : helpers.makeTestYear("Australia/Hobart", [ + ["2020-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2020-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2020-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2020-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2021" : helpers.makeTestYear("Australia/Hobart", [ + ["2021-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2021-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2021-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2021-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2022" : helpers.makeTestYear("Australia/Hobart", [ + ["2022-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2022-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2022-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2022-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2023" : helpers.makeTestYear("Australia/Hobart", [ + ["2023-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2023-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2023-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2023-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2024" : helpers.makeTestYear("Australia/Hobart", [ + ["2024-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2024-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2024-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2024-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2025" : helpers.makeTestYear("Australia/Hobart", [ + ["2025-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2025-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2025-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2025-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2026" : helpers.makeTestYear("Australia/Hobart", [ + ["2026-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2026-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2026-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2026-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2027" : helpers.makeTestYear("Australia/Hobart", [ + ["2027-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2027-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2027-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2027-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2028" : helpers.makeTestYear("Australia/Hobart", [ + ["2028-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2028-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2028-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2028-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2029" : helpers.makeTestYear("Australia/Hobart", [ + ["2029-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2029-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2029-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2029-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2030" : helpers.makeTestYear("Australia/Hobart", [ + ["2030-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2030-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2030-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2030-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2031" : helpers.makeTestYear("Australia/Hobart", [ + ["2031-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2031-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2031-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2031-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2032" : helpers.makeTestYear("Australia/Hobart", [ + ["2032-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2032-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2032-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2032-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2033" : helpers.makeTestYear("Australia/Hobart", [ + ["2033-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2033-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2033-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2033-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2034" : helpers.makeTestYear("Australia/Hobart", [ + ["2034-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2034-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2034-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2034-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2035" : helpers.makeTestYear("Australia/Hobart", [ + ["2035-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2035-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2035-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2035-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2036" : helpers.makeTestYear("Australia/Hobart", [ + ["2036-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2036-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2036-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2036-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2037" : helpers.makeTestYear("Australia/Hobart", [ + ["2037-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2037-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2037-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2037-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/lindeman.js b/tests/zones/australia/lindeman.js new file mode 100644 index 00000000..b482a2d3 --- /dev/null +++ b/tests/zones/australia/lindeman.js @@ -0,0 +1,87 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Lindeman"] = { + "1916" : helpers.makeTestYear("Australia/Lindeman", [ + ["1916-12-31T14:00:59+00:00", "00:00:59", "EST", -600], + ["1916-12-31T14:01:00+00:00", "01:01:00", "EST", -660] + ]), + + "1917" : helpers.makeTestYear("Australia/Lindeman", [ + ["1917-03-24T14:59:59+00:00", "01:59:59", "EST", -660], + ["1917-03-24T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1941" : helpers.makeTestYear("Australia/Lindeman", [ + ["1941-12-31T15:59:59+00:00", "01:59:59", "EST", -600], + ["1941-12-31T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1942" : helpers.makeTestYear("Australia/Lindeman", [ + ["1942-03-28T14:59:59+00:00", "01:59:59", "EST", -660], + ["1942-03-28T15:00:00+00:00", "01:00:00", "EST", -600], + ["1942-09-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1942-09-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1943" : helpers.makeTestYear("Australia/Lindeman", [ + ["1943-03-27T14:59:59+00:00", "01:59:59", "EST", -660], + ["1943-03-27T15:00:00+00:00", "01:00:00", "EST", -600], + ["1943-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1943-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1944" : helpers.makeTestYear("Australia/Lindeman", [ + ["1944-03-25T14:59:59+00:00", "01:59:59", "EST", -660], + ["1944-03-25T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1971" : helpers.makeTestYear("Australia/Lindeman", [ + ["1971-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1971-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1972" : helpers.makeTestYear("Australia/Lindeman", [ + ["1972-02-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1972-02-26T16:00:00+00:00", "02:00:00", "EST", -600] + ]), + + "1989" : helpers.makeTestYear("Australia/Lindeman", [ + ["1989-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1989-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1990" : helpers.makeTestYear("Australia/Lindeman", [ + ["1990-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1990-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1990-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1990-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1991" : helpers.makeTestYear("Australia/Lindeman", [ + ["1991-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1991-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1991-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1991-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1992" : helpers.makeTestYear("Australia/Lindeman", [ + ["1992-02-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["1992-02-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["1992-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1992-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1993" : helpers.makeTestYear("Australia/Lindeman", [ + ["1993-03-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["1993-03-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["1993-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1993-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1994" : helpers.makeTestYear("Australia/Lindeman", [ + ["1994-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1994-03-05T16:00:00+00:00", "02:00:00", "EST", -600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/lord_howe.js b/tests/zones/australia/lord_howe.js new file mode 100644 index 00000000..eae5888a --- /dev/null +++ b/tests/zones/australia/lord_howe.js @@ -0,0 +1,404 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Lord_Howe"] = { + "1981" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1981-02-28T13:59:59+00:00", "23:59:59", "EST", -600], + ["1981-02-28T14:00:00+00:00", "00:30:00", "LHST", -630], + ["1981-10-24T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1981-10-24T15:30:00+00:00", "03:00:00", "LHST", -690] + ]), + + "1982" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1982-03-06T14:29:59+00:00", "01:59:59", "LHST", -690], + ["1982-03-06T14:30:00+00:00", "01:00:00", "LHST", -630], + ["1982-10-30T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1982-10-30T15:30:00+00:00", "03:00:00", "LHST", -690] + ]), + + "1983" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1983-03-05T14:29:59+00:00", "01:59:59", "LHST", -690], + ["1983-03-05T14:30:00+00:00", "01:00:00", "LHST", -630], + ["1983-10-29T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1983-10-29T15:30:00+00:00", "03:00:00", "LHST", -690] + ]), + + "1984" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1984-03-03T14:29:59+00:00", "01:59:59", "LHST", -690], + ["1984-03-03T14:30:00+00:00", "01:00:00", "LHST", -630], + ["1984-10-27T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1984-10-27T15:30:00+00:00", "03:00:00", "LHST", -690] + ]), + + "1985" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1985-03-02T14:29:59+00:00", "01:59:59", "LHST", -690], + ["1985-03-02T14:30:00+00:00", "01:00:00", "LHST", -630], + ["1985-10-26T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1985-10-26T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1986" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1986-03-15T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1986-03-15T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1986-10-18T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1986-10-18T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1987" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1987-03-14T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1987-03-14T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1987-10-24T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1987-10-24T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1988" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1988-03-19T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1988-03-19T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1988-10-29T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1988-10-29T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1989" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1989-03-18T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1989-03-18T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1989-10-28T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1989-10-28T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1990" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1990-03-03T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1990-03-03T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1990-10-27T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1990-10-27T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1991" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1991-03-02T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1991-03-02T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1991-10-26T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1991-10-26T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1992" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1992-02-29T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1992-02-29T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1992-10-24T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1992-10-24T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1993" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1993-03-06T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1993-03-06T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1993-10-30T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1993-10-30T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1994" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1994-03-05T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1994-03-05T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1994-10-29T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1994-10-29T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1995" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1995-03-04T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1995-03-04T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1995-10-28T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1995-10-28T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1996" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1996-03-30T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1996-03-30T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1996-10-26T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1996-10-26T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1997" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1997-03-29T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1997-03-29T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1997-10-25T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1997-10-25T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1998" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1998-03-28T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1998-03-28T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1998-10-24T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1998-10-24T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "1999" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["1999-03-27T14:59:59+00:00", "01:59:59", "LHST", -660], + ["1999-03-27T15:00:00+00:00", "01:30:00", "LHST", -630], + ["1999-10-30T15:29:59+00:00", "01:59:59", "LHST", -630], + ["1999-10-30T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2000" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2000-03-25T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2000-03-25T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2000-08-26T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2000-08-26T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2001" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2001-03-24T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2001-03-24T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2001-10-27T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2001-10-27T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2002" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2002-03-30T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2002-03-30T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2002-10-26T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2002-10-26T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2003" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2003-03-29T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2003-03-29T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2003-10-25T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2003-10-25T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2004" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2004-03-27T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2004-03-27T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2004-10-30T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2004-10-30T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2005" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2005-03-26T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2005-03-26T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2005-10-29T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2005-10-29T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2006" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2006-04-01T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2006-04-01T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2006-10-28T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2006-10-28T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2007" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2007-03-24T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2007-03-24T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2007-10-27T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2007-10-27T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2008" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2008-04-05T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2008-04-05T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2008-10-04T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2008-10-04T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2009" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2009-04-04T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2009-04-04T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2009-10-03T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2009-10-03T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2010" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2010-04-03T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2010-04-03T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2010-10-02T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2010-10-02T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2011" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2011-04-02T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2011-04-02T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2011-10-01T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2011-10-01T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2012" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2012-03-31T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2012-03-31T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2012-10-06T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2012-10-06T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2013" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2013-04-06T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2013-04-06T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2013-10-05T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2013-10-05T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2014" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2014-04-05T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2014-04-05T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2014-10-04T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2014-10-04T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2015" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2015-04-04T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2015-04-04T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2015-10-03T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2015-10-03T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2016" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2016-04-02T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2016-04-02T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2016-10-01T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2016-10-01T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2017" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2017-04-01T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2017-04-01T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2017-09-30T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2017-09-30T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2018" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2018-03-31T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2018-03-31T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2018-10-06T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2018-10-06T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2019" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2019-04-06T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2019-04-06T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2019-10-05T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2019-10-05T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2020" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2020-04-04T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2020-04-04T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2020-10-03T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2020-10-03T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2021" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2021-04-03T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2021-04-03T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2021-10-02T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2021-10-02T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2022" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2022-04-02T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2022-04-02T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2022-10-01T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2022-10-01T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2023" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2023-04-01T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2023-04-01T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2023-09-30T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2023-09-30T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2024" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2024-04-06T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2024-04-06T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2024-10-05T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2024-10-05T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2025" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2025-04-05T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2025-04-05T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2025-10-04T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2025-10-04T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2026" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2026-04-04T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2026-04-04T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2026-10-03T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2026-10-03T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2027" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2027-04-03T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2027-04-03T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2027-10-02T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2027-10-02T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2028" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2028-04-01T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2028-04-01T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2028-09-30T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2028-09-30T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2029" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2029-03-31T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2029-03-31T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2029-10-06T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2029-10-06T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2030" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2030-04-06T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2030-04-06T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2030-10-05T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2030-10-05T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2031" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2031-04-05T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2031-04-05T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2031-10-04T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2031-10-04T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2032" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2032-04-03T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2032-04-03T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2032-10-02T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2032-10-02T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2033" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2033-04-02T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2033-04-02T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2033-10-01T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2033-10-01T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2034" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2034-04-01T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2034-04-01T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2034-09-30T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2034-09-30T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2035" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2035-03-31T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2035-03-31T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2035-10-06T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2035-10-06T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2036" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2036-04-05T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2036-04-05T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2036-10-04T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2036-10-04T15:30:00+00:00", "02:30:00", "LHST", -660] + ]), + + "2037" : helpers.makeTestYear("Australia/Lord_Howe", [ + ["2037-04-04T14:59:59+00:00", "01:59:59", "LHST", -660], + ["2037-04-04T15:00:00+00:00", "01:30:00", "LHST", -630], + ["2037-10-03T15:29:59+00:00", "01:59:59", "LHST", -630], + ["2037-10-03T15:30:00+00:00", "02:30:00", "LHST", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/melbourne.js b/tests/zones/australia/melbourne.js new file mode 100644 index 00000000..9072197a --- /dev/null +++ b/tests/zones/australia/melbourne.js @@ -0,0 +1,506 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Melbourne"] = { + "1916" : helpers.makeTestYear("Australia/Melbourne", [ + ["1916-12-31T14:00:59+00:00", "00:00:59", "EST", -600], + ["1916-12-31T14:01:00+00:00", "01:01:00", "EST", -660] + ]), + + "1917" : helpers.makeTestYear("Australia/Melbourne", [ + ["1917-03-24T14:59:59+00:00", "01:59:59", "EST", -660], + ["1917-03-24T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1941" : helpers.makeTestYear("Australia/Melbourne", [ + ["1941-12-31T15:59:59+00:00", "01:59:59", "EST", -600], + ["1941-12-31T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1942" : helpers.makeTestYear("Australia/Melbourne", [ + ["1942-03-28T14:59:59+00:00", "01:59:59", "EST", -660], + ["1942-03-28T15:00:00+00:00", "01:00:00", "EST", -600], + ["1942-09-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1942-09-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1943" : helpers.makeTestYear("Australia/Melbourne", [ + ["1943-03-27T14:59:59+00:00", "01:59:59", "EST", -660], + ["1943-03-27T15:00:00+00:00", "01:00:00", "EST", -600], + ["1943-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1943-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1944" : helpers.makeTestYear("Australia/Melbourne", [ + ["1944-03-25T14:59:59+00:00", "01:59:59", "EST", -660], + ["1944-03-25T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1971" : helpers.makeTestYear("Australia/Melbourne", [ + ["1971-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1971-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1972" : helpers.makeTestYear("Australia/Melbourne", [ + ["1972-02-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1972-02-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1972-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1972-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1973" : helpers.makeTestYear("Australia/Melbourne", [ + ["1973-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1973-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1973-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1973-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1974" : helpers.makeTestYear("Australia/Melbourne", [ + ["1974-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1974-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1974-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1974-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1975" : helpers.makeTestYear("Australia/Melbourne", [ + ["1975-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1975-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1975-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1975-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1976" : helpers.makeTestYear("Australia/Melbourne", [ + ["1976-03-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["1976-03-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["1976-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1976-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1977" : helpers.makeTestYear("Australia/Melbourne", [ + ["1977-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1977-03-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["1977-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1977-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1978" : helpers.makeTestYear("Australia/Melbourne", [ + ["1978-03-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["1978-03-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["1978-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1978-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1979" : helpers.makeTestYear("Australia/Melbourne", [ + ["1979-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1979-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1979-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1979-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1980" : helpers.makeTestYear("Australia/Melbourne", [ + ["1980-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1980-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1980-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1980-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1981" : helpers.makeTestYear("Australia/Melbourne", [ + ["1981-02-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1981-02-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1981-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1981-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1982" : helpers.makeTestYear("Australia/Melbourne", [ + ["1982-03-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["1982-03-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["1982-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1982-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1983" : helpers.makeTestYear("Australia/Melbourne", [ + ["1983-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1983-03-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["1983-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1983-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1984" : helpers.makeTestYear("Australia/Melbourne", [ + ["1984-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1984-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1984-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1984-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1985" : helpers.makeTestYear("Australia/Melbourne", [ + ["1985-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1985-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1985-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1985-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1986" : helpers.makeTestYear("Australia/Melbourne", [ + ["1986-03-15T15:59:59+00:00", "02:59:59", "EST", -660], + ["1986-03-15T16:00:00+00:00", "02:00:00", "EST", -600], + ["1986-10-18T15:59:59+00:00", "01:59:59", "EST", -600], + ["1986-10-18T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1987" : helpers.makeTestYear("Australia/Melbourne", [ + ["1987-03-14T15:59:59+00:00", "02:59:59", "EST", -660], + ["1987-03-14T16:00:00+00:00", "02:00:00", "EST", -600], + ["1987-10-17T15:59:59+00:00", "01:59:59", "EST", -600], + ["1987-10-17T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1988" : helpers.makeTestYear("Australia/Melbourne", [ + ["1988-03-19T15:59:59+00:00", "02:59:59", "EST", -660], + ["1988-03-19T16:00:00+00:00", "02:00:00", "EST", -600], + ["1988-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1988-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1989" : helpers.makeTestYear("Australia/Melbourne", [ + ["1989-03-18T15:59:59+00:00", "02:59:59", "EST", -660], + ["1989-03-18T16:00:00+00:00", "02:00:00", "EST", -600], + ["1989-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1989-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1990" : helpers.makeTestYear("Australia/Melbourne", [ + ["1990-03-17T15:59:59+00:00", "02:59:59", "EST", -660], + ["1990-03-17T16:00:00+00:00", "02:00:00", "EST", -600], + ["1990-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1990-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1991" : helpers.makeTestYear("Australia/Melbourne", [ + ["1991-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1991-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1991-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1991-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1992" : helpers.makeTestYear("Australia/Melbourne", [ + ["1992-02-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["1992-02-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["1992-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1992-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1993" : helpers.makeTestYear("Australia/Melbourne", [ + ["1993-03-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["1993-03-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["1993-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1993-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1994" : helpers.makeTestYear("Australia/Melbourne", [ + ["1994-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1994-03-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["1994-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1994-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1995" : helpers.makeTestYear("Australia/Melbourne", [ + ["1995-03-25T15:59:59+00:00", "02:59:59", "EST", -660], + ["1995-03-25T16:00:00+00:00", "02:00:00", "EST", -600], + ["1995-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1995-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1996" : helpers.makeTestYear("Australia/Melbourne", [ + ["1996-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1996-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1996-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1996-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1997" : helpers.makeTestYear("Australia/Melbourne", [ + ["1997-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["1997-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["1997-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1997-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1998" : helpers.makeTestYear("Australia/Melbourne", [ + ["1998-03-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1998-03-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1998-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1998-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1999" : helpers.makeTestYear("Australia/Melbourne", [ + ["1999-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1999-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1999-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1999-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2000" : helpers.makeTestYear("Australia/Melbourne", [ + ["2000-03-25T15:59:59+00:00", "02:59:59", "EST", -660], + ["2000-03-25T16:00:00+00:00", "02:00:00", "EST", -600], + ["2000-08-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["2000-08-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2001" : helpers.makeTestYear("Australia/Melbourne", [ + ["2001-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2001-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2001-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["2001-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2002" : helpers.makeTestYear("Australia/Melbourne", [ + ["2002-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["2002-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["2002-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["2002-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2003" : helpers.makeTestYear("Australia/Melbourne", [ + ["2003-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["2003-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["2003-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["2003-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2004" : helpers.makeTestYear("Australia/Melbourne", [ + ["2004-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["2004-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["2004-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2004-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2005" : helpers.makeTestYear("Australia/Melbourne", [ + ["2005-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["2005-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["2005-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["2005-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2006" : helpers.makeTestYear("Australia/Melbourne", [ + ["2006-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2006-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2006-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["2006-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2007" : helpers.makeTestYear("Australia/Melbourne", [ + ["2007-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2007-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2007-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["2007-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2008" : helpers.makeTestYear("Australia/Melbourne", [ + ["2008-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2008-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2008-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2008-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2009" : helpers.makeTestYear("Australia/Melbourne", [ + ["2009-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2009-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2009-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2009-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2010" : helpers.makeTestYear("Australia/Melbourne", [ + ["2010-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2010-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2010-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2010-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2011" : helpers.makeTestYear("Australia/Melbourne", [ + ["2011-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2011-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2011-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2011-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2012" : helpers.makeTestYear("Australia/Melbourne", [ + ["2012-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2012-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2012-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2012-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2013" : helpers.makeTestYear("Australia/Melbourne", [ + ["2013-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2013-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2013-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2013-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2014" : helpers.makeTestYear("Australia/Melbourne", [ + ["2014-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2014-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2014-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2014-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2015" : helpers.makeTestYear("Australia/Melbourne", [ + ["2015-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2015-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2015-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2015-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2016" : helpers.makeTestYear("Australia/Melbourne", [ + ["2016-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2016-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2016-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2016-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2017" : helpers.makeTestYear("Australia/Melbourne", [ + ["2017-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2017-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2017-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2017-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2018" : helpers.makeTestYear("Australia/Melbourne", [ + ["2018-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2018-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2018-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2018-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2019" : helpers.makeTestYear("Australia/Melbourne", [ + ["2019-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2019-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2019-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2019-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2020" : helpers.makeTestYear("Australia/Melbourne", [ + ["2020-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2020-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2020-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2020-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2021" : helpers.makeTestYear("Australia/Melbourne", [ + ["2021-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2021-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2021-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2021-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2022" : helpers.makeTestYear("Australia/Melbourne", [ + ["2022-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2022-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2022-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2022-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2023" : helpers.makeTestYear("Australia/Melbourne", [ + ["2023-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2023-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2023-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2023-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2024" : helpers.makeTestYear("Australia/Melbourne", [ + ["2024-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2024-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2024-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2024-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2025" : helpers.makeTestYear("Australia/Melbourne", [ + ["2025-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2025-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2025-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2025-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2026" : helpers.makeTestYear("Australia/Melbourne", [ + ["2026-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2026-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2026-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2026-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2027" : helpers.makeTestYear("Australia/Melbourne", [ + ["2027-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2027-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2027-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2027-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2028" : helpers.makeTestYear("Australia/Melbourne", [ + ["2028-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2028-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2028-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2028-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2029" : helpers.makeTestYear("Australia/Melbourne", [ + ["2029-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2029-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2029-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2029-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2030" : helpers.makeTestYear("Australia/Melbourne", [ + ["2030-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2030-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2030-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2030-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2031" : helpers.makeTestYear("Australia/Melbourne", [ + ["2031-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2031-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2031-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2031-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2032" : helpers.makeTestYear("Australia/Melbourne", [ + ["2032-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2032-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2032-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2032-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2033" : helpers.makeTestYear("Australia/Melbourne", [ + ["2033-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2033-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2033-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2033-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2034" : helpers.makeTestYear("Australia/Melbourne", [ + ["2034-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2034-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2034-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2034-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2035" : helpers.makeTestYear("Australia/Melbourne", [ + ["2035-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2035-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2035-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2035-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2036" : helpers.makeTestYear("Australia/Melbourne", [ + ["2036-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2036-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2036-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2036-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2037" : helpers.makeTestYear("Australia/Melbourne", [ + ["2037-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2037-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2037-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2037-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/perth.js b/tests/zones/australia/perth.js new file mode 100644 index 00000000..4bc73660 --- /dev/null +++ b/tests/zones/australia/perth.js @@ -0,0 +1,86 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Perth"] = { + "1916" : helpers.makeTestYear("Australia/Perth", [ + ["1916-12-31T16:00:59+00:00", "00:00:59", "WST", -480], + ["1916-12-31T16:01:00+00:00", "01:01:00", "WST", -540] + ]), + + "1917" : helpers.makeTestYear("Australia/Perth", [ + ["1917-03-24T16:59:59+00:00", "01:59:59", "WST", -540], + ["1917-03-24T17:00:00+00:00", "01:00:00", "WST", -480] + ]), + + "1941" : helpers.makeTestYear("Australia/Perth", [ + ["1941-12-31T17:59:59+00:00", "01:59:59", "WST", -480], + ["1941-12-31T18:00:00+00:00", "03:00:00", "WST", -540] + ]), + + "1942" : helpers.makeTestYear("Australia/Perth", [ + ["1942-03-28T16:59:59+00:00", "01:59:59", "WST", -540], + ["1942-03-28T17:00:00+00:00", "01:00:00", "WST", -480], + ["1942-09-26T17:59:59+00:00", "01:59:59", "WST", -480], + ["1942-09-26T18:00:00+00:00", "03:00:00", "WST", -540] + ]), + + "1943" : helpers.makeTestYear("Australia/Perth", [ + ["1943-03-27T16:59:59+00:00", "01:59:59", "WST", -540], + ["1943-03-27T17:00:00+00:00", "01:00:00", "WST", -480] + ]), + + "1974" : helpers.makeTestYear("Australia/Perth", [ + ["1974-10-26T17:59:59+00:00", "01:59:59", "WST", -480], + ["1974-10-26T18:00:00+00:00", "03:00:00", "WST", -540] + ]), + + "1975" : helpers.makeTestYear("Australia/Perth", [ + ["1975-03-01T17:59:59+00:00", "02:59:59", "WST", -540], + ["1975-03-01T18:00:00+00:00", "02:00:00", "WST", -480] + ]), + + "1983" : helpers.makeTestYear("Australia/Perth", [ + ["1983-10-29T17:59:59+00:00", "01:59:59", "WST", -480], + ["1983-10-29T18:00:00+00:00", "03:00:00", "WST", -540] + ]), + + "1984" : helpers.makeTestYear("Australia/Perth", [ + ["1984-03-03T17:59:59+00:00", "02:59:59", "WST", -540], + ["1984-03-03T18:00:00+00:00", "02:00:00", "WST", -480] + ]), + + "1991" : helpers.makeTestYear("Australia/Perth", [ + ["1991-11-16T17:59:59+00:00", "01:59:59", "WST", -480], + ["1991-11-16T18:00:00+00:00", "03:00:00", "WST", -540] + ]), + + "1992" : helpers.makeTestYear("Australia/Perth", [ + ["1992-02-29T17:59:59+00:00", "02:59:59", "WST", -540], + ["1992-02-29T18:00:00+00:00", "02:00:00", "WST", -480] + ]), + + "2006" : helpers.makeTestYear("Australia/Perth", [ + ["2006-12-02T17:59:59+00:00", "01:59:59", "WST", -480], + ["2006-12-02T18:00:00+00:00", "03:00:00", "WST", -540] + ]), + + "2007" : helpers.makeTestYear("Australia/Perth", [ + ["2007-03-24T17:59:59+00:00", "02:59:59", "WST", -540], + ["2007-03-24T18:00:00+00:00", "02:00:00", "WST", -480], + ["2007-10-27T17:59:59+00:00", "01:59:59", "WST", -480], + ["2007-10-27T18:00:00+00:00", "03:00:00", "WST", -540] + ]), + + "2008" : helpers.makeTestYear("Australia/Perth", [ + ["2008-03-29T17:59:59+00:00", "02:59:59", "WST", -540], + ["2008-03-29T18:00:00+00:00", "02:00:00", "WST", -480], + ["2008-10-25T17:59:59+00:00", "01:59:59", "WST", -480], + ["2008-10-25T18:00:00+00:00", "03:00:00", "WST", -540] + ]), + + "2009" : helpers.makeTestYear("Australia/Perth", [ + ["2009-03-28T17:59:59+00:00", "02:59:59", "WST", -540], + ["2009-03-28T18:00:00+00:00", "02:00:00", "WST", -480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/australia/sydney.js b/tests/zones/australia/sydney.js new file mode 100644 index 00000000..e5025126 --- /dev/null +++ b/tests/zones/australia/sydney.js @@ -0,0 +1,506 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Australia/Sydney"] = { + "1916" : helpers.makeTestYear("Australia/Sydney", [ + ["1916-12-31T14:00:59+00:00", "00:00:59", "EST", -600], + ["1916-12-31T14:01:00+00:00", "01:01:00", "EST", -660] + ]), + + "1917" : helpers.makeTestYear("Australia/Sydney", [ + ["1917-03-24T14:59:59+00:00", "01:59:59", "EST", -660], + ["1917-03-24T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1941" : helpers.makeTestYear("Australia/Sydney", [ + ["1941-12-31T15:59:59+00:00", "01:59:59", "EST", -600], + ["1941-12-31T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1942" : helpers.makeTestYear("Australia/Sydney", [ + ["1942-03-28T14:59:59+00:00", "01:59:59", "EST", -660], + ["1942-03-28T15:00:00+00:00", "01:00:00", "EST", -600], + ["1942-09-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1942-09-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1943" : helpers.makeTestYear("Australia/Sydney", [ + ["1943-03-27T14:59:59+00:00", "01:59:59", "EST", -660], + ["1943-03-27T15:00:00+00:00", "01:00:00", "EST", -600], + ["1943-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["1943-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1944" : helpers.makeTestYear("Australia/Sydney", [ + ["1944-03-25T14:59:59+00:00", "01:59:59", "EST", -660], + ["1944-03-25T15:00:00+00:00", "01:00:00", "EST", -600] + ]), + + "1971" : helpers.makeTestYear("Australia/Sydney", [ + ["1971-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1971-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1972" : helpers.makeTestYear("Australia/Sydney", [ + ["1972-02-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["1972-02-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["1972-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1972-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1973" : helpers.makeTestYear("Australia/Sydney", [ + ["1973-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1973-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1973-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1973-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1974" : helpers.makeTestYear("Australia/Sydney", [ + ["1974-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1974-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1974-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1974-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1975" : helpers.makeTestYear("Australia/Sydney", [ + ["1975-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1975-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1975-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1975-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1976" : helpers.makeTestYear("Australia/Sydney", [ + ["1976-03-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["1976-03-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["1976-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1976-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1977" : helpers.makeTestYear("Australia/Sydney", [ + ["1977-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1977-03-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["1977-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1977-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1978" : helpers.makeTestYear("Australia/Sydney", [ + ["1978-03-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["1978-03-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["1978-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1978-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1979" : helpers.makeTestYear("Australia/Sydney", [ + ["1979-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1979-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1979-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1979-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1980" : helpers.makeTestYear("Australia/Sydney", [ + ["1980-03-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["1980-03-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["1980-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1980-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1981" : helpers.makeTestYear("Australia/Sydney", [ + ["1981-02-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1981-02-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1981-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1981-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1982" : helpers.makeTestYear("Australia/Sydney", [ + ["1982-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1982-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1982-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1982-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1983" : helpers.makeTestYear("Australia/Sydney", [ + ["1983-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1983-03-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["1983-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1983-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1984" : helpers.makeTestYear("Australia/Sydney", [ + ["1984-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1984-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1984-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1984-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1985" : helpers.makeTestYear("Australia/Sydney", [ + ["1985-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1985-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1985-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1985-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1986" : helpers.makeTestYear("Australia/Sydney", [ + ["1986-03-15T15:59:59+00:00", "02:59:59", "EST", -660], + ["1986-03-15T16:00:00+00:00", "02:00:00", "EST", -600], + ["1986-10-18T15:59:59+00:00", "01:59:59", "EST", -600], + ["1986-10-18T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1987" : helpers.makeTestYear("Australia/Sydney", [ + ["1987-03-14T15:59:59+00:00", "02:59:59", "EST", -660], + ["1987-03-14T16:00:00+00:00", "02:00:00", "EST", -600], + ["1987-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1987-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1988" : helpers.makeTestYear("Australia/Sydney", [ + ["1988-03-19T15:59:59+00:00", "02:59:59", "EST", -660], + ["1988-03-19T16:00:00+00:00", "02:00:00", "EST", -600], + ["1988-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1988-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1989" : helpers.makeTestYear("Australia/Sydney", [ + ["1989-03-18T15:59:59+00:00", "02:59:59", "EST", -660], + ["1989-03-18T16:00:00+00:00", "02:00:00", "EST", -600], + ["1989-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1989-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1990" : helpers.makeTestYear("Australia/Sydney", [ + ["1990-03-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["1990-03-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["1990-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["1990-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1991" : helpers.makeTestYear("Australia/Sydney", [ + ["1991-03-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["1991-03-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["1991-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1991-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1992" : helpers.makeTestYear("Australia/Sydney", [ + ["1992-02-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["1992-02-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["1992-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1992-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1993" : helpers.makeTestYear("Australia/Sydney", [ + ["1993-03-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["1993-03-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["1993-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1993-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1994" : helpers.makeTestYear("Australia/Sydney", [ + ["1994-03-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["1994-03-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["1994-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["1994-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1995" : helpers.makeTestYear("Australia/Sydney", [ + ["1995-03-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["1995-03-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["1995-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["1995-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1996" : helpers.makeTestYear("Australia/Sydney", [ + ["1996-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["1996-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["1996-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["1996-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1997" : helpers.makeTestYear("Australia/Sydney", [ + ["1997-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["1997-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["1997-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["1997-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1998" : helpers.makeTestYear("Australia/Sydney", [ + ["1998-03-28T15:59:59+00:00", "02:59:59", "EST", -660], + ["1998-03-28T16:00:00+00:00", "02:00:00", "EST", -600], + ["1998-10-24T15:59:59+00:00", "01:59:59", "EST", -600], + ["1998-10-24T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "1999" : helpers.makeTestYear("Australia/Sydney", [ + ["1999-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["1999-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["1999-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["1999-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2000" : helpers.makeTestYear("Australia/Sydney", [ + ["2000-03-25T15:59:59+00:00", "02:59:59", "EST", -660], + ["2000-03-25T16:00:00+00:00", "02:00:00", "EST", -600], + ["2000-08-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["2000-08-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2001" : helpers.makeTestYear("Australia/Sydney", [ + ["2001-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2001-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2001-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["2001-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2002" : helpers.makeTestYear("Australia/Sydney", [ + ["2002-03-30T15:59:59+00:00", "02:59:59", "EST", -660], + ["2002-03-30T16:00:00+00:00", "02:00:00", "EST", -600], + ["2002-10-26T15:59:59+00:00", "01:59:59", "EST", -600], + ["2002-10-26T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2003" : helpers.makeTestYear("Australia/Sydney", [ + ["2003-03-29T15:59:59+00:00", "02:59:59", "EST", -660], + ["2003-03-29T16:00:00+00:00", "02:00:00", "EST", -600], + ["2003-10-25T15:59:59+00:00", "01:59:59", "EST", -600], + ["2003-10-25T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2004" : helpers.makeTestYear("Australia/Sydney", [ + ["2004-03-27T15:59:59+00:00", "02:59:59", "EST", -660], + ["2004-03-27T16:00:00+00:00", "02:00:00", "EST", -600], + ["2004-10-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2004-10-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2005" : helpers.makeTestYear("Australia/Sydney", [ + ["2005-03-26T15:59:59+00:00", "02:59:59", "EST", -660], + ["2005-03-26T16:00:00+00:00", "02:00:00", "EST", -600], + ["2005-10-29T15:59:59+00:00", "01:59:59", "EST", -600], + ["2005-10-29T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2006" : helpers.makeTestYear("Australia/Sydney", [ + ["2006-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2006-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2006-10-28T15:59:59+00:00", "01:59:59", "EST", -600], + ["2006-10-28T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2007" : helpers.makeTestYear("Australia/Sydney", [ + ["2007-03-24T15:59:59+00:00", "02:59:59", "EST", -660], + ["2007-03-24T16:00:00+00:00", "02:00:00", "EST", -600], + ["2007-10-27T15:59:59+00:00", "01:59:59", "EST", -600], + ["2007-10-27T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2008" : helpers.makeTestYear("Australia/Sydney", [ + ["2008-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2008-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2008-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2008-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2009" : helpers.makeTestYear("Australia/Sydney", [ + ["2009-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2009-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2009-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2009-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2010" : helpers.makeTestYear("Australia/Sydney", [ + ["2010-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2010-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2010-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2010-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2011" : helpers.makeTestYear("Australia/Sydney", [ + ["2011-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2011-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2011-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2011-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2012" : helpers.makeTestYear("Australia/Sydney", [ + ["2012-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2012-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2012-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2012-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2013" : helpers.makeTestYear("Australia/Sydney", [ + ["2013-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2013-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2013-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2013-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2014" : helpers.makeTestYear("Australia/Sydney", [ + ["2014-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2014-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2014-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2014-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2015" : helpers.makeTestYear("Australia/Sydney", [ + ["2015-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2015-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2015-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2015-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2016" : helpers.makeTestYear("Australia/Sydney", [ + ["2016-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2016-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2016-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2016-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2017" : helpers.makeTestYear("Australia/Sydney", [ + ["2017-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2017-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2017-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2017-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2018" : helpers.makeTestYear("Australia/Sydney", [ + ["2018-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2018-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2018-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2018-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2019" : helpers.makeTestYear("Australia/Sydney", [ + ["2019-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2019-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2019-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2019-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2020" : helpers.makeTestYear("Australia/Sydney", [ + ["2020-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2020-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2020-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2020-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2021" : helpers.makeTestYear("Australia/Sydney", [ + ["2021-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2021-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2021-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2021-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2022" : helpers.makeTestYear("Australia/Sydney", [ + ["2022-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2022-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2022-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2022-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2023" : helpers.makeTestYear("Australia/Sydney", [ + ["2023-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2023-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2023-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2023-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2024" : helpers.makeTestYear("Australia/Sydney", [ + ["2024-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2024-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2024-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2024-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2025" : helpers.makeTestYear("Australia/Sydney", [ + ["2025-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2025-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2025-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2025-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2026" : helpers.makeTestYear("Australia/Sydney", [ + ["2026-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2026-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2026-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2026-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2027" : helpers.makeTestYear("Australia/Sydney", [ + ["2027-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2027-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2027-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2027-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2028" : helpers.makeTestYear("Australia/Sydney", [ + ["2028-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2028-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2028-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2028-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2029" : helpers.makeTestYear("Australia/Sydney", [ + ["2029-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2029-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2029-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2029-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2030" : helpers.makeTestYear("Australia/Sydney", [ + ["2030-04-06T15:59:59+00:00", "02:59:59", "EST", -660], + ["2030-04-06T16:00:00+00:00", "02:00:00", "EST", -600], + ["2030-10-05T15:59:59+00:00", "01:59:59", "EST", -600], + ["2030-10-05T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2031" : helpers.makeTestYear("Australia/Sydney", [ + ["2031-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2031-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2031-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2031-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2032" : helpers.makeTestYear("Australia/Sydney", [ + ["2032-04-03T15:59:59+00:00", "02:59:59", "EST", -660], + ["2032-04-03T16:00:00+00:00", "02:00:00", "EST", -600], + ["2032-10-02T15:59:59+00:00", "01:59:59", "EST", -600], + ["2032-10-02T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2033" : helpers.makeTestYear("Australia/Sydney", [ + ["2033-04-02T15:59:59+00:00", "02:59:59", "EST", -660], + ["2033-04-02T16:00:00+00:00", "02:00:00", "EST", -600], + ["2033-10-01T15:59:59+00:00", "01:59:59", "EST", -600], + ["2033-10-01T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2034" : helpers.makeTestYear("Australia/Sydney", [ + ["2034-04-01T15:59:59+00:00", "02:59:59", "EST", -660], + ["2034-04-01T16:00:00+00:00", "02:00:00", "EST", -600], + ["2034-09-30T15:59:59+00:00", "01:59:59", "EST", -600], + ["2034-09-30T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2035" : helpers.makeTestYear("Australia/Sydney", [ + ["2035-03-31T15:59:59+00:00", "02:59:59", "EST", -660], + ["2035-03-31T16:00:00+00:00", "02:00:00", "EST", -600], + ["2035-10-06T15:59:59+00:00", "01:59:59", "EST", -600], + ["2035-10-06T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2036" : helpers.makeTestYear("Australia/Sydney", [ + ["2036-04-05T15:59:59+00:00", "02:59:59", "EST", -660], + ["2036-04-05T16:00:00+00:00", "02:00:00", "EST", -600], + ["2036-10-04T15:59:59+00:00", "01:59:59", "EST", -600], + ["2036-10-04T16:00:00+00:00", "03:00:00", "EST", -660] + ]), + + "2037" : helpers.makeTestYear("Australia/Sydney", [ + ["2037-04-04T15:59:59+00:00", "02:59:59", "EST", -660], + ["2037-04-04T16:00:00+00:00", "02:00:00", "EST", -600], + ["2037-10-03T15:59:59+00:00", "01:59:59", "EST", -600], + ["2037-10-03T16:00:00+00:00", "03:00:00", "EST", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/cet.js b/tests/zones/cet.js new file mode 100644 index 00000000..2ef8364d --- /dev/null +++ b/tests/zones/cet.js @@ -0,0 +1,484 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["CET"] = { + "1916" : helpers.makeTestYear("CET", [ + ["1916-04-30T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-04-30T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("CET", [ + ["1917-04-16T00:59:59+00:00", "01:59:59", "CET", -60], + ["1917-04-16T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1917-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1917-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("CET", [ + ["1918-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("CET", [ + ["1940-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1940-04-01T01:00:00+00:00", "03:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("CET", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("CET", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("CET", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("CET", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("CET", [ + ["1977-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1977-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1977-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1977-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("CET", [ + ["1978-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1978-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1978-10-01T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1978-10-01T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("CET", [ + ["1979-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1979-04-01T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1979-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1979-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("CET", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("CET", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("CET", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("CET", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("CET", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("CET", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("CET", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("CET", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("CET", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("CET", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("CET", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("CET", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("CET", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("CET", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("CET", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("CET", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("CET", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("CET", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("CET", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("CET", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("CET", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("CET", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("CET", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("CET", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("CET", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("CET", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("CET", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("CET", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("CET", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("CET", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("CET", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("CET", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("CET", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("CET", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("CET", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("CET", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("CET", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("CET", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("CET", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("CET", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("CET", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("CET", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("CET", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("CET", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("CET", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("CET", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("CET", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("CET", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("CET", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("CET", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("CET", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("CET", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("CET", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("CET", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("CET", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("CET", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("CET", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("CET", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/cst6cdt.js b/tests/zones/cst6cdt.js new file mode 100644 index 00000000..215cd8dd --- /dev/null +++ b/tests/zones/cst6cdt.js @@ -0,0 +1,528 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["CST6CDT"] = { + "1918" : helpers.makeTestYear("CST6CDT", [ + ["1918-03-31T07:59:59+00:00", "01:59:59", "CST", 360], + ["1918-03-31T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1918-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1919" : helpers.makeTestYear("CST6CDT", [ + ["1919-03-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1919-03-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1919-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1919-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1942" : helpers.makeTestYear("CST6CDT", [ + ["1942-02-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["1942-02-09T08:00:00+00:00", "03:00:00", "CWT", 300] + ]), + + "1945" : helpers.makeTestYear("CST6CDT", [ + ["1945-08-14T22:59:59+00:00", "17:59:59", "CWT", 300], + ["1945-08-14T23:00:00+00:00", "18:00:00", "CPT", 300], + ["1945-09-30T06:59:59+00:00", "01:59:59", "CPT", 300], + ["1945-09-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1967" : helpers.makeTestYear("CST6CDT", [ + ["1967-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1967-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1967-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1967-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1968" : helpers.makeTestYear("CST6CDT", [ + ["1968-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1968-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1968-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1968-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1969" : helpers.makeTestYear("CST6CDT", [ + ["1969-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1969-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1969-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1969-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1970" : helpers.makeTestYear("CST6CDT", [ + ["1970-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1970-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1970-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1970-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1971" : helpers.makeTestYear("CST6CDT", [ + ["1971-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1971-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1971-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1971-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1972" : helpers.makeTestYear("CST6CDT", [ + ["1972-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1972-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1972-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1972-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1973" : helpers.makeTestYear("CST6CDT", [ + ["1973-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1973-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1973-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1973-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1974" : helpers.makeTestYear("CST6CDT", [ + ["1974-01-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1974-01-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1974-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1974-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1975" : helpers.makeTestYear("CST6CDT", [ + ["1975-02-23T07:59:59+00:00", "01:59:59", "CST", 360], + ["1975-02-23T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1975-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1975-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1976" : helpers.makeTestYear("CST6CDT", [ + ["1976-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1976-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1976-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1976-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1977" : helpers.makeTestYear("CST6CDT", [ + ["1977-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1977-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1977-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1977-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1978" : helpers.makeTestYear("CST6CDT", [ + ["1978-04-30T07:59:59+00:00", "01:59:59", "CST", 360], + ["1978-04-30T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1978-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1978-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1979" : helpers.makeTestYear("CST6CDT", [ + ["1979-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1979-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1979-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1979-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1980" : helpers.makeTestYear("CST6CDT", [ + ["1980-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1980-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1980-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1980-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1981" : helpers.makeTestYear("CST6CDT", [ + ["1981-04-26T07:59:59+00:00", "01:59:59", "CST", 360], + ["1981-04-26T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1981-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1981-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1982" : helpers.makeTestYear("CST6CDT", [ + ["1982-04-25T07:59:59+00:00", "01:59:59", "CST", 360], + ["1982-04-25T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1982-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1982-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1983" : helpers.makeTestYear("CST6CDT", [ + ["1983-04-24T07:59:59+00:00", "01:59:59", "CST", 360], + ["1983-04-24T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1983-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1983-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1984" : helpers.makeTestYear("CST6CDT", [ + ["1984-04-29T07:59:59+00:00", "01:59:59", "CST", 360], + ["1984-04-29T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1984-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1984-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1985" : helpers.makeTestYear("CST6CDT", [ + ["1985-04-28T07:59:59+00:00", "01:59:59", "CST", 360], + ["1985-04-28T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1985-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1985-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1986" : helpers.makeTestYear("CST6CDT", [ + ["1986-04-27T07:59:59+00:00", "01:59:59", "CST", 360], + ["1986-04-27T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1986-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1986-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1987" : helpers.makeTestYear("CST6CDT", [ + ["1987-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1987-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1987-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1987-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1988" : helpers.makeTestYear("CST6CDT", [ + ["1988-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1988-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1988-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1988-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1989" : helpers.makeTestYear("CST6CDT", [ + ["1989-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1989-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1989-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1989-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1990" : helpers.makeTestYear("CST6CDT", [ + ["1990-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["1990-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1990-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1990-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1991" : helpers.makeTestYear("CST6CDT", [ + ["1991-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1991-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1991-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1991-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1992" : helpers.makeTestYear("CST6CDT", [ + ["1992-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1992-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1992-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1992-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1993" : helpers.makeTestYear("CST6CDT", [ + ["1993-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1993-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1993-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1993-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1994" : helpers.makeTestYear("CST6CDT", [ + ["1994-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["1994-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1994-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1994-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1995" : helpers.makeTestYear("CST6CDT", [ + ["1995-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["1995-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1995-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1995-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1996" : helpers.makeTestYear("CST6CDT", [ + ["1996-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["1996-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1996-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1996-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1997" : helpers.makeTestYear("CST6CDT", [ + ["1997-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["1997-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1997-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1997-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1998" : helpers.makeTestYear("CST6CDT", [ + ["1998-04-05T07:59:59+00:00", "01:59:59", "CST", 360], + ["1998-04-05T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1998-10-25T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1998-10-25T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "1999" : helpers.makeTestYear("CST6CDT", [ + ["1999-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["1999-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["1999-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["1999-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2000" : helpers.makeTestYear("CST6CDT", [ + ["2000-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2000-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2000-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2000-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2001" : helpers.makeTestYear("CST6CDT", [ + ["2001-04-01T07:59:59+00:00", "01:59:59", "CST", 360], + ["2001-04-01T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2001-10-28T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2001-10-28T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2002" : helpers.makeTestYear("CST6CDT", [ + ["2002-04-07T07:59:59+00:00", "01:59:59", "CST", 360], + ["2002-04-07T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2002-10-27T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2002-10-27T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2003" : helpers.makeTestYear("CST6CDT", [ + ["2003-04-06T07:59:59+00:00", "01:59:59", "CST", 360], + ["2003-04-06T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2003-10-26T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2003-10-26T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2004" : helpers.makeTestYear("CST6CDT", [ + ["2004-04-04T07:59:59+00:00", "01:59:59", "CST", 360], + ["2004-04-04T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2004-10-31T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2004-10-31T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2005" : helpers.makeTestYear("CST6CDT", [ + ["2005-04-03T07:59:59+00:00", "01:59:59", "CST", 360], + ["2005-04-03T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2005-10-30T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2005-10-30T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2006" : helpers.makeTestYear("CST6CDT", [ + ["2006-04-02T07:59:59+00:00", "01:59:59", "CST", 360], + ["2006-04-02T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2006-10-29T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2006-10-29T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2007" : helpers.makeTestYear("CST6CDT", [ + ["2007-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2007-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2007-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2007-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2008" : helpers.makeTestYear("CST6CDT", [ + ["2008-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2008-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2008-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2008-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2009" : helpers.makeTestYear("CST6CDT", [ + ["2009-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2009-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2009-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2009-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2010" : helpers.makeTestYear("CST6CDT", [ + ["2010-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2010-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2010-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2010-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2011" : helpers.makeTestYear("CST6CDT", [ + ["2011-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2011-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2011-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2011-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2012" : helpers.makeTestYear("CST6CDT", [ + ["2012-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2012-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2012-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2012-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2013" : helpers.makeTestYear("CST6CDT", [ + ["2013-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2013-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2013-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2013-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2014" : helpers.makeTestYear("CST6CDT", [ + ["2014-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2014-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2014-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2014-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2015" : helpers.makeTestYear("CST6CDT", [ + ["2015-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2015-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2015-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2015-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2016" : helpers.makeTestYear("CST6CDT", [ + ["2016-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2016-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2016-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2016-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2017" : helpers.makeTestYear("CST6CDT", [ + ["2017-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2017-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2017-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2017-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2018" : helpers.makeTestYear("CST6CDT", [ + ["2018-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2018-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2018-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2018-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2019" : helpers.makeTestYear("CST6CDT", [ + ["2019-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2019-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2019-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2019-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2020" : helpers.makeTestYear("CST6CDT", [ + ["2020-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2020-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2020-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2020-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2021" : helpers.makeTestYear("CST6CDT", [ + ["2021-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2021-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2021-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2021-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2022" : helpers.makeTestYear("CST6CDT", [ + ["2022-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2022-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2022-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2022-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2023" : helpers.makeTestYear("CST6CDT", [ + ["2023-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2023-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2023-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2023-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2024" : helpers.makeTestYear("CST6CDT", [ + ["2024-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2024-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2024-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2024-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2025" : helpers.makeTestYear("CST6CDT", [ + ["2025-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2025-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2025-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2025-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2026" : helpers.makeTestYear("CST6CDT", [ + ["2026-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2026-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2026-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2026-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2027" : helpers.makeTestYear("CST6CDT", [ + ["2027-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2027-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2027-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2027-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2028" : helpers.makeTestYear("CST6CDT", [ + ["2028-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2028-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2028-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2028-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2029" : helpers.makeTestYear("CST6CDT", [ + ["2029-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2029-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2029-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2029-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2030" : helpers.makeTestYear("CST6CDT", [ + ["2030-03-10T07:59:59+00:00", "01:59:59", "CST", 360], + ["2030-03-10T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2030-11-03T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2030-11-03T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2031" : helpers.makeTestYear("CST6CDT", [ + ["2031-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2031-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2031-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2031-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2032" : helpers.makeTestYear("CST6CDT", [ + ["2032-03-14T07:59:59+00:00", "01:59:59", "CST", 360], + ["2032-03-14T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2032-11-07T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2032-11-07T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2033" : helpers.makeTestYear("CST6CDT", [ + ["2033-03-13T07:59:59+00:00", "01:59:59", "CST", 360], + ["2033-03-13T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2033-11-06T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2033-11-06T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2034" : helpers.makeTestYear("CST6CDT", [ + ["2034-03-12T07:59:59+00:00", "01:59:59", "CST", 360], + ["2034-03-12T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2034-11-05T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2034-11-05T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2035" : helpers.makeTestYear("CST6CDT", [ + ["2035-03-11T07:59:59+00:00", "01:59:59", "CST", 360], + ["2035-03-11T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2035-11-04T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2035-11-04T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2036" : helpers.makeTestYear("CST6CDT", [ + ["2036-03-09T07:59:59+00:00", "01:59:59", "CST", 360], + ["2036-03-09T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2036-11-02T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2036-11-02T07:00:00+00:00", "01:00:00", "CST", 360] + ]), + + "2037" : helpers.makeTestYear("CST6CDT", [ + ["2037-03-08T07:59:59+00:00", "01:59:59", "CST", 360], + ["2037-03-08T08:00:00+00:00", "03:00:00", "CDT", 300], + ["2037-11-01T06:59:59+00:00", "01:59:59", "CDT", 300], + ["2037-11-01T07:00:00+00:00", "01:00:00", "CST", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/eet.js b/tests/zones/eet.js new file mode 100644 index 00000000..76e41ae4 --- /dev/null +++ b/tests/zones/eet.js @@ -0,0 +1,432 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["EET"] = { + "1977" : helpers.makeTestYear("EET", [ + ["1977-04-03T00:59:59+00:00", "02:59:59", "EET", -120], + ["1977-04-03T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1977-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1977-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1978" : helpers.makeTestYear("EET", [ + ["1978-04-02T00:59:59+00:00", "02:59:59", "EET", -120], + ["1978-04-02T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1978-10-01T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1978-10-01T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1979" : helpers.makeTestYear("EET", [ + ["1979-04-01T00:59:59+00:00", "02:59:59", "EET", -120], + ["1979-04-01T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1979-09-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1979-09-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1980" : helpers.makeTestYear("EET", [ + ["1980-04-06T00:59:59+00:00", "02:59:59", "EET", -120], + ["1980-04-06T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1980-09-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1980-09-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1981" : helpers.makeTestYear("EET", [ + ["1981-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1981-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1981-09-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1981-09-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1982" : helpers.makeTestYear("EET", [ + ["1982-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1982-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1982-09-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1982-09-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1983" : helpers.makeTestYear("EET", [ + ["1983-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["1983-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1983-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1983-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1984" : helpers.makeTestYear("EET", [ + ["1984-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["1984-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1984-09-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1984-09-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1985" : helpers.makeTestYear("EET", [ + ["1985-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1985-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1985-09-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1985-09-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("EET", [ + ["1986-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1986-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1986-09-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1986-09-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("EET", [ + ["1987-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1987-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1987-09-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1987-09-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("EET", [ + ["1988-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["1988-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1988-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1988-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("EET", [ + ["1989-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["1989-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1989-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1989-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("EET", [ + ["1990-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["1990-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1990-09-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1990-09-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("EET", [ + ["1991-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1991-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1991-09-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1991-09-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("EET", [ + ["1992-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1992-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1992-09-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1992-09-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("EET", [ + ["1993-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1993-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1993-09-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1993-09-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("EET", [ + ["1994-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["1994-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1994-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1994-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("EET", [ + ["1995-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["1995-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1995-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1995-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("EET", [ + ["1996-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1996-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1996-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1996-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("EET", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("EET", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("EET", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("EET", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("EET", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("EET", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("EET", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("EET", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("EET", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("EET", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("EET", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("EET", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("EET", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("EET", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("EET", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("EET", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("EET", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("EET", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("EET", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("EET", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("EET", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("EET", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("EET", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("EET", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("EET", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("EET", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("EET", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("EET", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("EET", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("EET", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("EET", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("EET", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("EET", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("EET", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("EET", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("EET", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("EET", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("EET", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("EET", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("EET", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("EET", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/est.js b/tests/zones/est.js new file mode 100644 index 00000000..308d108a --- /dev/null +++ b/tests/zones/est.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["EST"] = { + +}; \ No newline at end of file diff --git a/tests/zones/est5edt.js b/tests/zones/est5edt.js new file mode 100644 index 00000000..f7c21190 --- /dev/null +++ b/tests/zones/est5edt.js @@ -0,0 +1,528 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["EST5EDT"] = { + "1918" : helpers.makeTestYear("EST5EDT", [ + ["1918-03-31T06:59:59+00:00", "01:59:59", "EST", 300], + ["1918-03-31T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1918-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1918-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1919" : helpers.makeTestYear("EST5EDT", [ + ["1919-03-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1919-03-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1919-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1919-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1942" : helpers.makeTestYear("EST5EDT", [ + ["1942-02-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["1942-02-09T07:00:00+00:00", "03:00:00", "EWT", 240] + ]), + + "1945" : helpers.makeTestYear("EST5EDT", [ + ["1945-08-14T22:59:59+00:00", "18:59:59", "EWT", 240], + ["1945-08-14T23:00:00+00:00", "19:00:00", "EPT", 240], + ["1945-09-30T05:59:59+00:00", "01:59:59", "EPT", 240], + ["1945-09-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1967" : helpers.makeTestYear("EST5EDT", [ + ["1967-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1967-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1967-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1967-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1968" : helpers.makeTestYear("EST5EDT", [ + ["1968-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1968-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1968-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1968-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1969" : helpers.makeTestYear("EST5EDT", [ + ["1969-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1969-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1969-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1969-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1970" : helpers.makeTestYear("EST5EDT", [ + ["1970-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1970-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1970-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1970-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1971" : helpers.makeTestYear("EST5EDT", [ + ["1971-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1971-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1971-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1971-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1972" : helpers.makeTestYear("EST5EDT", [ + ["1972-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1972-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1972-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1972-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1973" : helpers.makeTestYear("EST5EDT", [ + ["1973-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1973-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1973-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1973-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1974" : helpers.makeTestYear("EST5EDT", [ + ["1974-01-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1974-01-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1974-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1974-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1975" : helpers.makeTestYear("EST5EDT", [ + ["1975-02-23T06:59:59+00:00", "01:59:59", "EST", 300], + ["1975-02-23T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1975-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1975-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1976" : helpers.makeTestYear("EST5EDT", [ + ["1976-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1976-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1976-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1976-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1977" : helpers.makeTestYear("EST5EDT", [ + ["1977-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1977-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1977-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1977-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1978" : helpers.makeTestYear("EST5EDT", [ + ["1978-04-30T06:59:59+00:00", "01:59:59", "EST", 300], + ["1978-04-30T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1978-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1978-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1979" : helpers.makeTestYear("EST5EDT", [ + ["1979-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1979-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1979-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1979-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1980" : helpers.makeTestYear("EST5EDT", [ + ["1980-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1980-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1980-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1980-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1981" : helpers.makeTestYear("EST5EDT", [ + ["1981-04-26T06:59:59+00:00", "01:59:59", "EST", 300], + ["1981-04-26T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1981-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1981-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1982" : helpers.makeTestYear("EST5EDT", [ + ["1982-04-25T06:59:59+00:00", "01:59:59", "EST", 300], + ["1982-04-25T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1982-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1982-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1983" : helpers.makeTestYear("EST5EDT", [ + ["1983-04-24T06:59:59+00:00", "01:59:59", "EST", 300], + ["1983-04-24T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1983-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1983-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1984" : helpers.makeTestYear("EST5EDT", [ + ["1984-04-29T06:59:59+00:00", "01:59:59", "EST", 300], + ["1984-04-29T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1984-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1984-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1985" : helpers.makeTestYear("EST5EDT", [ + ["1985-04-28T06:59:59+00:00", "01:59:59", "EST", 300], + ["1985-04-28T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1985-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1985-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1986" : helpers.makeTestYear("EST5EDT", [ + ["1986-04-27T06:59:59+00:00", "01:59:59", "EST", 300], + ["1986-04-27T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1986-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1986-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1987" : helpers.makeTestYear("EST5EDT", [ + ["1987-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1987-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1987-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1987-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1988" : helpers.makeTestYear("EST5EDT", [ + ["1988-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1988-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1988-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1988-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1989" : helpers.makeTestYear("EST5EDT", [ + ["1989-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1989-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1989-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1989-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1990" : helpers.makeTestYear("EST5EDT", [ + ["1990-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["1990-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1990-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1990-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1991" : helpers.makeTestYear("EST5EDT", [ + ["1991-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1991-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1991-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1991-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1992" : helpers.makeTestYear("EST5EDT", [ + ["1992-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1992-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1992-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1992-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1993" : helpers.makeTestYear("EST5EDT", [ + ["1993-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1993-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1993-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1993-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1994" : helpers.makeTestYear("EST5EDT", [ + ["1994-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["1994-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1994-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1994-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1995" : helpers.makeTestYear("EST5EDT", [ + ["1995-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["1995-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1995-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1995-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1996" : helpers.makeTestYear("EST5EDT", [ + ["1996-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["1996-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1996-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1996-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1997" : helpers.makeTestYear("EST5EDT", [ + ["1997-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["1997-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1997-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1997-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1998" : helpers.makeTestYear("EST5EDT", [ + ["1998-04-05T06:59:59+00:00", "01:59:59", "EST", 300], + ["1998-04-05T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1998-10-25T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1998-10-25T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "1999" : helpers.makeTestYear("EST5EDT", [ + ["1999-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["1999-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["1999-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["1999-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2000" : helpers.makeTestYear("EST5EDT", [ + ["2000-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2000-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2000-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2000-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2001" : helpers.makeTestYear("EST5EDT", [ + ["2001-04-01T06:59:59+00:00", "01:59:59", "EST", 300], + ["2001-04-01T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2001-10-28T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2001-10-28T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2002" : helpers.makeTestYear("EST5EDT", [ + ["2002-04-07T06:59:59+00:00", "01:59:59", "EST", 300], + ["2002-04-07T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2002-10-27T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2002-10-27T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2003" : helpers.makeTestYear("EST5EDT", [ + ["2003-04-06T06:59:59+00:00", "01:59:59", "EST", 300], + ["2003-04-06T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2003-10-26T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2003-10-26T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2004" : helpers.makeTestYear("EST5EDT", [ + ["2004-04-04T06:59:59+00:00", "01:59:59", "EST", 300], + ["2004-04-04T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2004-10-31T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2004-10-31T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2005" : helpers.makeTestYear("EST5EDT", [ + ["2005-04-03T06:59:59+00:00", "01:59:59", "EST", 300], + ["2005-04-03T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2005-10-30T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2005-10-30T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2006" : helpers.makeTestYear("EST5EDT", [ + ["2006-04-02T06:59:59+00:00", "01:59:59", "EST", 300], + ["2006-04-02T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2006-10-29T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2006-10-29T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2007" : helpers.makeTestYear("EST5EDT", [ + ["2007-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2007-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2007-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2007-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2008" : helpers.makeTestYear("EST5EDT", [ + ["2008-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2008-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2008-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2008-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2009" : helpers.makeTestYear("EST5EDT", [ + ["2009-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2009-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2009-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2009-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2010" : helpers.makeTestYear("EST5EDT", [ + ["2010-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2010-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2010-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2010-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2011" : helpers.makeTestYear("EST5EDT", [ + ["2011-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2011-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2011-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2011-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2012" : helpers.makeTestYear("EST5EDT", [ + ["2012-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2012-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2012-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2012-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2013" : helpers.makeTestYear("EST5EDT", [ + ["2013-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2013-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2013-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2013-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2014" : helpers.makeTestYear("EST5EDT", [ + ["2014-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2014-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2014-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2014-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2015" : helpers.makeTestYear("EST5EDT", [ + ["2015-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2015-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2015-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2015-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2016" : helpers.makeTestYear("EST5EDT", [ + ["2016-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2016-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2016-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2016-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2017" : helpers.makeTestYear("EST5EDT", [ + ["2017-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2017-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2017-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2017-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2018" : helpers.makeTestYear("EST5EDT", [ + ["2018-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2018-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2018-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2018-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2019" : helpers.makeTestYear("EST5EDT", [ + ["2019-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2019-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2019-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2019-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2020" : helpers.makeTestYear("EST5EDT", [ + ["2020-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2020-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2020-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2020-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2021" : helpers.makeTestYear("EST5EDT", [ + ["2021-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2021-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2021-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2021-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2022" : helpers.makeTestYear("EST5EDT", [ + ["2022-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2022-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2022-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2022-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2023" : helpers.makeTestYear("EST5EDT", [ + ["2023-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2023-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2023-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2023-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2024" : helpers.makeTestYear("EST5EDT", [ + ["2024-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2024-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2024-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2024-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2025" : helpers.makeTestYear("EST5EDT", [ + ["2025-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2025-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2025-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2025-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2026" : helpers.makeTestYear("EST5EDT", [ + ["2026-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2026-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2026-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2026-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2027" : helpers.makeTestYear("EST5EDT", [ + ["2027-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2027-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2027-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2027-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2028" : helpers.makeTestYear("EST5EDT", [ + ["2028-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2028-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2028-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2028-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2029" : helpers.makeTestYear("EST5EDT", [ + ["2029-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2029-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2029-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2029-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2030" : helpers.makeTestYear("EST5EDT", [ + ["2030-03-10T06:59:59+00:00", "01:59:59", "EST", 300], + ["2030-03-10T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2030-11-03T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2030-11-03T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2031" : helpers.makeTestYear("EST5EDT", [ + ["2031-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2031-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2031-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2031-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2032" : helpers.makeTestYear("EST5EDT", [ + ["2032-03-14T06:59:59+00:00", "01:59:59", "EST", 300], + ["2032-03-14T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2032-11-07T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2032-11-07T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2033" : helpers.makeTestYear("EST5EDT", [ + ["2033-03-13T06:59:59+00:00", "01:59:59", "EST", 300], + ["2033-03-13T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2033-11-06T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2033-11-06T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2034" : helpers.makeTestYear("EST5EDT", [ + ["2034-03-12T06:59:59+00:00", "01:59:59", "EST", 300], + ["2034-03-12T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2034-11-05T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2034-11-05T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2035" : helpers.makeTestYear("EST5EDT", [ + ["2035-03-11T06:59:59+00:00", "01:59:59", "EST", 300], + ["2035-03-11T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2035-11-04T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2035-11-04T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2036" : helpers.makeTestYear("EST5EDT", [ + ["2036-03-09T06:59:59+00:00", "01:59:59", "EST", 300], + ["2036-03-09T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2036-11-02T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2036-11-02T06:00:00+00:00", "01:00:00", "EST", 300] + ]), + + "2037" : helpers.makeTestYear("EST5EDT", [ + ["2037-03-08T06:59:59+00:00", "01:59:59", "EST", 300], + ["2037-03-08T07:00:00+00:00", "03:00:00", "EDT", 240], + ["2037-11-01T05:59:59+00:00", "01:59:59", "EDT", 240], + ["2037-11-01T06:00:00+00:00", "01:00:00", "EST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/amsterdam.js b/tests/zones/europe/amsterdam.js new file mode 100644 index 00000000..54f51153 --- /dev/null +++ b/tests/zones/europe/amsterdam.js @@ -0,0 +1,633 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Amsterdam"] = { + "1916" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1916-04-30T23:40:27+00:00", "23:59:59", "AMT", -1172 / 60], + ["1916-04-30T23:40:28+00:00", "01:00:00", "NST", -4772 / 60], + ["1916-09-30T22:40:27+00:00", "23:59:59", "NST", -4772 / 60], + ["1916-09-30T22:40:28+00:00", "23:00:00", "AMT", -1172 / 60] + ]), + + "1917" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1917-04-16T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1917-04-16T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1917-09-17T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1917-09-17T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1918" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1918-04-01T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1918-04-01T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1918-09-30T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1918-09-30T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1919" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1919-04-07T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1919-04-07T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1919-09-29T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1919-09-29T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1920" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1920-04-05T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1920-04-05T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1920-09-27T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1920-09-27T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1921" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1921-04-04T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1921-04-04T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1921-09-26T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1921-09-26T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1922" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1922-03-26T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1922-03-26T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1922-10-08T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1922-10-08T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1923" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1923-06-01T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1923-06-01T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1923-10-07T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1923-10-07T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1924" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1924-03-30T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1924-03-30T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1924-10-05T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1924-10-05T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1925" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1925-06-05T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1925-06-05T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1925-10-04T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1925-10-04T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1926" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1926-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1926-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1926-10-03T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1926-10-03T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1927" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1927-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1927-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1927-10-02T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1927-10-02T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1928" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1928-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1928-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1928-10-07T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1928-10-07T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1929" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1929-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1929-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1929-10-06T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1929-10-06T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1930" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1930-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1930-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1930-10-05T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1930-10-05T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1931" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1931-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1931-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1931-10-04T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1931-10-04T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1932" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1932-05-22T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1932-05-22T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1932-10-02T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1932-10-02T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1933" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1933-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1933-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1933-10-08T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1933-10-08T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1934" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1934-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1934-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1934-10-07T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1934-10-07T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1935" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1935-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1935-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1935-10-06T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1935-10-06T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1936" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1936-05-15T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1936-05-15T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1936-10-04T01:40:27+00:00", "02:59:59", "NST", -4772 / 60], + ["1936-10-04T01:40:28+00:00", "02:00:00", "AMT", -1172 / 60] + ]), + + "1937" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1937-05-22T01:40:27+00:00", "01:59:59", "AMT", -1172 / 60], + ["1937-05-22T01:40:28+00:00", "03:00:00", "NST", -4772 / 60], + ["1937-06-30T22:40:27+00:00", "23:59:59", "NST", -4772 / 60], + ["1937-06-30T22:40:28+00:00", "00:00:28", "NEST", -80], + ["1937-10-03T01:39:59+00:00", "02:59:59", "NEST", -80], + ["1937-10-03T01:40:00+00:00", "02:00:00", "NET", -20] + ]), + + "1938" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1938-05-15T01:39:59+00:00", "01:59:59", "NET", -20], + ["1938-05-15T01:40:00+00:00", "03:00:00", "NEST", -80], + ["1938-10-02T01:39:59+00:00", "02:59:59", "NEST", -80], + ["1938-10-02T01:40:00+00:00", "02:00:00", "NET", -20] + ]), + + "1939" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1939-05-15T01:39:59+00:00", "01:59:59", "NET", -20], + ["1939-05-15T01:40:00+00:00", "03:00:00", "NEST", -80], + ["1939-10-08T01:39:59+00:00", "02:59:59", "NEST", -80], + ["1939-10-08T01:40:00+00:00", "02:00:00", "NET", -20] + ]), + + "1940" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1940-05-15T23:39:59+00:00", "23:59:59", "NET", -20], + ["1940-05-15T23:40:00+00:00", "01:40:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1977-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1977-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1977-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1977-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1978-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1978-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1978-10-01T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1978-10-01T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1979-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1979-04-01T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1979-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1979-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Amsterdam", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Amsterdam", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/andorra.js b/tests/zones/europe/andorra.js new file mode 100644 index 00000000..0fba928d --- /dev/null +++ b/tests/zones/europe/andorra.js @@ -0,0 +1,381 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Andorra"] = { + "1946" : helpers.makeTestYear("Europe/Andorra", [ + ["1946-09-29T23:59:59+00:00", "23:59:59", "WET", 0], + ["1946-09-30T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Andorra", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Andorra", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Andorra", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Andorra", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Andorra", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Andorra", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Andorra", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Andorra", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Andorra", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Andorra", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Andorra", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Andorra", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Andorra", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Andorra", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Andorra", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Andorra", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Andorra", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Andorra", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Andorra", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Andorra", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Andorra", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Andorra", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Andorra", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Andorra", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Andorra", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Andorra", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Andorra", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Andorra", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Andorra", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Andorra", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Andorra", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Andorra", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Andorra", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Andorra", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Andorra", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Andorra", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Andorra", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Andorra", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Andorra", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Andorra", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Andorra", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Andorra", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Andorra", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Andorra", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Andorra", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Andorra", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Andorra", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Andorra", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Andorra", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Andorra", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Andorra", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Andorra", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Andorra", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/athens.js b/tests/zones/europe/athens.js new file mode 100644 index 00000000..36cbed2d --- /dev/null +++ b/tests/zones/europe/athens.js @@ -0,0 +1,489 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Athens"] = { + "1916" : helpers.makeTestYear("Europe/Athens", [ + ["1916-07-27T22:26:07+00:00", "00:00:59", "AMT", -5692 / 60], + ["1916-07-27T22:26:08+00:00", "00:26:08", "EET", -120] + ]), + + "1932" : helpers.makeTestYear("Europe/Athens", [ + ["1932-07-06T21:59:59+00:00", "23:59:59", "EET", -120], + ["1932-07-06T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1932-08-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1932-08-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1941" : helpers.makeTestYear("Europe/Athens", [ + ["1941-04-06T21:59:59+00:00", "23:59:59", "EET", -120], + ["1941-04-06T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1941-04-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1941-04-29T21:00:00+00:00", "23:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Athens", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Athens", [ + ["1943-03-29T22:59:59+00:00", "23:59:59", "CET", -60], + ["1943-03-29T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1943-10-03T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1943-10-03T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Athens", [ + ["1944-04-03T22:59:59+00:00", "23:59:59", "CET", -60], + ["1944-04-03T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1952" : helpers.makeTestYear("Europe/Athens", [ + ["1952-06-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1952-06-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1952-11-01T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1952-11-01T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1975" : helpers.makeTestYear("Europe/Athens", [ + ["1975-04-11T21:59:59+00:00", "23:59:59", "EET", -120], + ["1975-04-11T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1975-11-25T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1975-11-25T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1976" : helpers.makeTestYear("Europe/Athens", [ + ["1976-04-10T23:59:59+00:00", "01:59:59", "EET", -120], + ["1976-04-11T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1976-10-09T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1976-10-10T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1977" : helpers.makeTestYear("Europe/Athens", [ + ["1977-04-02T23:59:59+00:00", "01:59:59", "EET", -120], + ["1977-04-03T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1977-09-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1977-09-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1978" : helpers.makeTestYear("Europe/Athens", [ + ["1978-04-01T23:59:59+00:00", "01:59:59", "EET", -120], + ["1978-04-02T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1978-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1978-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1979" : helpers.makeTestYear("Europe/Athens", [ + ["1979-04-01T06:59:59+00:00", "08:59:59", "EET", -120], + ["1979-04-01T07:00:00+00:00", "10:00:00", "EEST", -180], + ["1979-09-28T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1979-09-28T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1980" : helpers.makeTestYear("Europe/Athens", [ + ["1980-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1980-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1980-09-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1980-09-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1981" : helpers.makeTestYear("Europe/Athens", [ + ["1981-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1981-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1981-09-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1981-09-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1982" : helpers.makeTestYear("Europe/Athens", [ + ["1982-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1982-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1982-09-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1982-09-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1983" : helpers.makeTestYear("Europe/Athens", [ + ["1983-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["1983-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1983-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1983-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1984" : helpers.makeTestYear("Europe/Athens", [ + ["1984-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["1984-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1984-09-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1984-09-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1985" : helpers.makeTestYear("Europe/Athens", [ + ["1985-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1985-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1985-09-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1985-09-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Europe/Athens", [ + ["1986-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1986-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1986-09-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1986-09-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Europe/Athens", [ + ["1987-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1987-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1987-09-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1987-09-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Europe/Athens", [ + ["1988-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["1988-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1988-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1988-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Europe/Athens", [ + ["1989-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["1989-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1989-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1989-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Europe/Athens", [ + ["1990-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["1990-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1990-09-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1990-09-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Europe/Athens", [ + ["1991-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1991-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1991-09-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1991-09-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Athens", [ + ["1992-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1992-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1992-09-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1992-09-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Athens", [ + ["1993-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1993-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1993-09-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1993-09-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Athens", [ + ["1994-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["1994-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1994-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1994-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Athens", [ + ["1995-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["1995-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1995-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1995-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Athens", [ + ["1996-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1996-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1996-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1996-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Athens", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Athens", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Athens", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Athens", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Athens", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Athens", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Athens", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Athens", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Athens", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Athens", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Athens", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Athens", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Athens", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Athens", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Athens", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Athens", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Athens", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Athens", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Athens", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Athens", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Athens", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Athens", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Athens", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Athens", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Athens", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Athens", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Athens", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Athens", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Athens", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Athens", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Athens", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Athens", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Athens", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Athens", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Athens", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Athens", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Athens", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Athens", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Athens", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Athens", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Athens", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/belgrade.js b/tests/zones/europe/belgrade.js new file mode 100644 index 00000000..e675fe1b --- /dev/null +++ b/tests/zones/europe/belgrade.js @@ -0,0 +1,421 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Belgrade"] = { + "1941" : helpers.makeTestYear("Europe/Belgrade", [ + ["1941-04-18T21:59:59+00:00", "22:59:59", "CET", -60], + ["1941-04-18T22:00:00+00:00", "00:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Belgrade", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Belgrade", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Belgrade", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Belgrade", [ + ["1945-05-08T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-05-08T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Belgrade", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Belgrade", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Belgrade", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Belgrade", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Belgrade", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Belgrade", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Belgrade", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Belgrade", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Belgrade", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Belgrade", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Belgrade", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Belgrade", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Belgrade", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Belgrade", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Belgrade", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Belgrade", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Belgrade", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Belgrade", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Belgrade", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Belgrade", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Belgrade", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Belgrade", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Belgrade", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Belgrade", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Belgrade", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Belgrade", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Belgrade", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Belgrade", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Belgrade", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Belgrade", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Belgrade", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Belgrade", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Belgrade", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Belgrade", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Belgrade", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Belgrade", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Belgrade", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Belgrade", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Belgrade", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Belgrade", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Belgrade", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Belgrade", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Belgrade", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Belgrade", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Belgrade", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Belgrade", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Belgrade", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Belgrade", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Belgrade", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Belgrade", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Belgrade", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Belgrade", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Belgrade", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Belgrade", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Belgrade", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/berlin.js b/tests/zones/europe/berlin.js new file mode 100644 index 00000000..3dd4abc3 --- /dev/null +++ b/tests/zones/europe/berlin.js @@ -0,0 +1,499 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Berlin"] = { + "1916" : helpers.makeTestYear("Europe/Berlin", [ + ["1916-04-30T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-04-30T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Berlin", [ + ["1917-04-16T00:59:59+00:00", "01:59:59", "CET", -60], + ["1917-04-16T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1917-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1917-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Berlin", [ + ["1918-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Berlin", [ + ["1940-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1940-04-01T01:00:00+00:00", "03:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Berlin", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Berlin", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Berlin", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Berlin", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-05-23T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1945-05-24T00:00:00+00:00", "03:00:00", "CEMT", -180], + ["1945-09-23T23:59:59+00:00", "02:59:59", "CEMT", -180], + ["1945-09-24T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1945-11-18T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-11-18T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Berlin", [ + ["1946-04-14T00:59:59+00:00", "01:59:59", "CET", -60], + ["1946-04-14T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1946-10-07T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-10-07T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1947" : helpers.makeTestYear("Europe/Berlin", [ + ["1947-04-06T01:59:59+00:00", "02:59:59", "CET", -60], + ["1947-04-06T02:00:00+00:00", "04:00:00", "CEST", -120], + ["1947-05-11T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1947-05-11T01:00:00+00:00", "04:00:00", "CEMT", -180], + ["1947-06-28T23:59:59+00:00", "02:59:59", "CEMT", -180], + ["1947-06-29T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1947-10-05T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1947-10-05T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1948" : helpers.makeTestYear("Europe/Berlin", [ + ["1948-04-18T00:59:59+00:00", "01:59:59", "CET", -60], + ["1948-04-18T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1948-10-03T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1948-10-03T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1949" : helpers.makeTestYear("Europe/Berlin", [ + ["1949-04-10T00:59:59+00:00", "01:59:59", "CET", -60], + ["1949-04-10T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1949-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1949-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Berlin", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Berlin", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Berlin", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Berlin", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Berlin", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Berlin", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Berlin", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Berlin", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Berlin", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Berlin", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Berlin", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Berlin", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Berlin", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Berlin", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Berlin", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Berlin", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Berlin", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Berlin", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Berlin", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Berlin", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Berlin", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Berlin", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Berlin", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Berlin", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Berlin", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Berlin", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Berlin", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Berlin", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Berlin", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Berlin", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Berlin", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Berlin", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Berlin", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Berlin", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Berlin", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Berlin", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Berlin", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Berlin", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Berlin", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Berlin", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Berlin", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Berlin", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Berlin", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Berlin", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Berlin", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Berlin", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Berlin", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Berlin", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Berlin", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Berlin", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Berlin", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Berlin", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Berlin", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Berlin", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Berlin", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Berlin", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Berlin", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Berlin", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/brussels.js b/tests/zones/europe/brussels.js new file mode 100644 index 00000000..d4b728db --- /dev/null +++ b/tests/zones/europe/brussels.js @@ -0,0 +1,647 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Brussels"] = { + "1914" : helpers.makeTestYear("Europe/Brussels", [ + ["1914-11-07T23:59:59+00:00", "23:59:59", "WET", 0], + ["1914-11-08T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1916" : helpers.makeTestYear("Europe/Brussels", [ + ["1916-04-30T22:59:59+00:00", "23:59:59", "CET", -60], + ["1916-04-30T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Brussels", [ + ["1917-04-16T00:59:59+00:00", "01:59:59", "CET", -60], + ["1917-04-16T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1917-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1917-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Brussels", [ + ["1918-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-16T01:00:00+00:00", "02:00:00", "CET", -60], + ["1918-11-11T10:59:59+00:00", "11:59:59", "CET", -60], + ["1918-11-11T11:00:00+00:00", "11:00:00", "WET", 0] + ]), + + "1919" : helpers.makeTestYear("Europe/Brussels", [ + ["1919-03-01T22:59:59+00:00", "22:59:59", "WET", 0], + ["1919-03-01T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1919-10-04T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1919-10-04T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1920" : helpers.makeTestYear("Europe/Brussels", [ + ["1920-02-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1920-02-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1920-10-23T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1920-10-23T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1921" : helpers.makeTestYear("Europe/Brussels", [ + ["1921-03-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1921-03-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1921-10-25T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1921-10-25T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1922" : helpers.makeTestYear("Europe/Brussels", [ + ["1922-03-25T22:59:59+00:00", "22:59:59", "WET", 0], + ["1922-03-25T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1922-10-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1922-10-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1923" : helpers.makeTestYear("Europe/Brussels", [ + ["1923-04-21T22:59:59+00:00", "22:59:59", "WET", 0], + ["1923-04-21T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1923-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1923-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1924" : helpers.makeTestYear("Europe/Brussels", [ + ["1924-03-29T22:59:59+00:00", "22:59:59", "WET", 0], + ["1924-03-29T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1924-10-04T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1924-10-04T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1925" : helpers.makeTestYear("Europe/Brussels", [ + ["1925-04-04T22:59:59+00:00", "22:59:59", "WET", 0], + ["1925-04-04T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1925-10-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1925-10-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1926" : helpers.makeTestYear("Europe/Brussels", [ + ["1926-04-17T22:59:59+00:00", "22:59:59", "WET", 0], + ["1926-04-17T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1926-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1926-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1927" : helpers.makeTestYear("Europe/Brussels", [ + ["1927-04-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1927-04-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1927-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1927-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1928" : helpers.makeTestYear("Europe/Brussels", [ + ["1928-04-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1928-04-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1928-10-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1928-10-07T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1929" : helpers.makeTestYear("Europe/Brussels", [ + ["1929-04-21T01:59:59+00:00", "01:59:59", "WET", 0], + ["1929-04-21T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1929-10-06T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1929-10-06T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1930" : helpers.makeTestYear("Europe/Brussels", [ + ["1930-04-13T01:59:59+00:00", "01:59:59", "WET", 0], + ["1930-04-13T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1930-10-05T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1930-10-05T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1931" : helpers.makeTestYear("Europe/Brussels", [ + ["1931-04-19T01:59:59+00:00", "01:59:59", "WET", 0], + ["1931-04-19T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1931-10-04T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1931-10-04T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1932" : helpers.makeTestYear("Europe/Brussels", [ + ["1932-04-03T01:59:59+00:00", "01:59:59", "WET", 0], + ["1932-04-03T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1932-10-02T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1932-10-02T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1933" : helpers.makeTestYear("Europe/Brussels", [ + ["1933-03-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["1933-03-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1933-10-08T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1933-10-08T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1934" : helpers.makeTestYear("Europe/Brussels", [ + ["1934-04-08T01:59:59+00:00", "01:59:59", "WET", 0], + ["1934-04-08T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1934-10-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1934-10-07T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1935" : helpers.makeTestYear("Europe/Brussels", [ + ["1935-03-31T01:59:59+00:00", "01:59:59", "WET", 0], + ["1935-03-31T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1935-10-06T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1935-10-06T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1936" : helpers.makeTestYear("Europe/Brussels", [ + ["1936-04-19T01:59:59+00:00", "01:59:59", "WET", 0], + ["1936-04-19T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1936-10-04T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1936-10-04T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1937" : helpers.makeTestYear("Europe/Brussels", [ + ["1937-04-04T01:59:59+00:00", "01:59:59", "WET", 0], + ["1937-04-04T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1937-10-03T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1937-10-03T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1938" : helpers.makeTestYear("Europe/Brussels", [ + ["1938-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["1938-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1938-10-02T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1938-10-02T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1939" : helpers.makeTestYear("Europe/Brussels", [ + ["1939-04-16T01:59:59+00:00", "01:59:59", "WET", 0], + ["1939-04-16T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1939-11-19T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1939-11-19T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1940" : helpers.makeTestYear("Europe/Brussels", [ + ["1940-02-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["1940-02-25T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1940-05-20T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1940-05-20T02:00:00+00:00", "04:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Brussels", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Brussels", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Brussels", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Brussels", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Brussels", [ + ["1946-05-19T00:59:59+00:00", "01:59:59", "CET", -60], + ["1946-05-19T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1946-10-07T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-10-07T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Brussels", [ + ["1977-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1977-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1977-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1977-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Brussels", [ + ["1978-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1978-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1978-10-01T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1978-10-01T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Brussels", [ + ["1979-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1979-04-01T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1979-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1979-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Brussels", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Brussels", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Brussels", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Brussels", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Brussels", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Brussels", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Brussels", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Brussels", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Brussels", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Brussels", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Brussels", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Brussels", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Brussels", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Brussels", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Brussels", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Brussels", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Brussels", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Brussels", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Brussels", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Brussels", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Brussels", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Brussels", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Brussels", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Brussels", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Brussels", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Brussels", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Brussels", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Brussels", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Brussels", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Brussels", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Brussels", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Brussels", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Brussels", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Brussels", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Brussels", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Brussels", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Brussels", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Brussels", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Brussels", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Brussels", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Brussels", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Brussels", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Brussels", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Brussels", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Brussels", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Brussels", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Brussels", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Brussels", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Brussels", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Brussels", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Brussels", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Brussels", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Brussels", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Brussels", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Brussels", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Brussels", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Brussels", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Brussels", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/bucharest.js b/tests/zones/europe/bucharest.js new file mode 100644 index 00000000..8a575a71 --- /dev/null +++ b/tests/zones/europe/bucharest.js @@ -0,0 +1,479 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Bucharest"] = { + "1931" : helpers.makeTestYear("Europe/Bucharest", [ + ["1931-07-23T22:15:35+00:00", "23:59:59", "BMT", -6264 / 60], + ["1931-07-23T22:15:36+00:00", "00:15:36", "EET", -120] + ]), + + "1932" : helpers.makeTestYear("Europe/Bucharest", [ + ["1932-05-20T21:59:59+00:00", "23:59:59", "EET", -120], + ["1932-05-20T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1932-10-01T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1932-10-01T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1933" : helpers.makeTestYear("Europe/Bucharest", [ + ["1933-04-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["1933-04-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1933-09-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1933-09-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1934" : helpers.makeTestYear("Europe/Bucharest", [ + ["1934-04-07T21:59:59+00:00", "23:59:59", "EET", -120], + ["1934-04-07T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1934-10-06T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1934-10-06T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1935" : helpers.makeTestYear("Europe/Bucharest", [ + ["1935-04-06T21:59:59+00:00", "23:59:59", "EET", -120], + ["1935-04-06T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1935-10-05T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1935-10-05T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1936" : helpers.makeTestYear("Europe/Bucharest", [ + ["1936-04-04T21:59:59+00:00", "23:59:59", "EET", -120], + ["1936-04-04T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1936-10-03T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1936-10-03T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1937" : helpers.makeTestYear("Europe/Bucharest", [ + ["1937-04-03T21:59:59+00:00", "23:59:59", "EET", -120], + ["1937-04-03T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1937-10-02T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1937-10-02T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1938" : helpers.makeTestYear("Europe/Bucharest", [ + ["1938-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1938-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1938-10-01T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1938-10-01T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1939" : helpers.makeTestYear("Europe/Bucharest", [ + ["1939-04-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["1939-04-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1939-09-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1939-09-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1979" : helpers.makeTestYear("Europe/Bucharest", [ + ["1979-05-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1979-05-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1979-09-29T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1979-09-29T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1980" : helpers.makeTestYear("Europe/Bucharest", [ + ["1980-04-05T20:59:59+00:00", "22:59:59", "EET", -120], + ["1980-04-05T21:00:00+00:00", "00:00:00", "EEST", -180], + ["1980-09-27T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1980-09-27T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1981" : helpers.makeTestYear("Europe/Bucharest", [ + ["1981-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1981-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1981-09-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1981-09-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1982" : helpers.makeTestYear("Europe/Bucharest", [ + ["1982-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["1982-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1982-09-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1982-09-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1983" : helpers.makeTestYear("Europe/Bucharest", [ + ["1983-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1983-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1983-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1983-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1984" : helpers.makeTestYear("Europe/Bucharest", [ + ["1984-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["1984-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1984-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1984-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1985" : helpers.makeTestYear("Europe/Bucharest", [ + ["1985-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1985-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1985-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1985-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Europe/Bucharest", [ + ["1986-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["1986-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1986-09-27T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1986-09-28T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Europe/Bucharest", [ + ["1987-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1987-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1987-09-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1987-09-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Europe/Bucharest", [ + ["1988-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1988-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1988-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1988-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Europe/Bucharest", [ + ["1989-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["1989-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1989-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1989-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Europe/Bucharest", [ + ["1990-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["1990-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1990-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1990-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Europe/Bucharest", [ + ["1991-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1991-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1991-09-28T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1991-09-28T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Bucharest", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-26T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1992-09-26T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Bucharest", [ + ["1993-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-25T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1993-09-25T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Bucharest", [ + ["1994-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Bucharest", [ + ["1995-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1995-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1995-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1995-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Bucharest", [ + ["1996-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1996-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Bucharest", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Bucharest", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Bucharest", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Bucharest", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Bucharest", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Bucharest", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Bucharest", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Bucharest", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Bucharest", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Bucharest", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Bucharest", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Bucharest", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Bucharest", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Bucharest", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Bucharest", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Bucharest", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Bucharest", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Bucharest", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Bucharest", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Bucharest", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Bucharest", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Bucharest", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Bucharest", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Bucharest", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Bucharest", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Bucharest", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Bucharest", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Bucharest", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Bucharest", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Bucharest", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Bucharest", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Bucharest", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Bucharest", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Bucharest", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Bucharest", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Bucharest", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Bucharest", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Bucharest", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Bucharest", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Bucharest", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Bucharest", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/budapest.js b/tests/zones/europe/budapest.js new file mode 100644 index 00000000..fb764255 --- /dev/null +++ b/tests/zones/europe/budapest.js @@ -0,0 +1,540 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Budapest"] = { + "1916" : helpers.makeTestYear("Europe/Budapest", [ + ["1916-04-30T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-04-30T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Budapest", [ + ["1917-04-16T00:59:59+00:00", "01:59:59", "CET", -60], + ["1917-04-16T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1917-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1917-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Budapest", [ + ["1918-04-01T01:59:59+00:00", "02:59:59", "CET", -60], + ["1918-04-01T02:00:00+00:00", "04:00:00", "CEST", -120], + ["1918-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1919" : helpers.makeTestYear("Europe/Budapest", [ + ["1919-04-15T01:59:59+00:00", "02:59:59", "CET", -60], + ["1919-04-15T02:00:00+00:00", "04:00:00", "CEST", -120], + ["1919-09-15T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1919-09-15T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1920" : helpers.makeTestYear("Europe/Budapest", [ + ["1920-04-05T01:59:59+00:00", "02:59:59", "CET", -60], + ["1920-04-05T02:00:00+00:00", "04:00:00", "CEST", -120], + ["1920-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1920-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1941" : helpers.makeTestYear("Europe/Budapest", [ + ["1941-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1941-04-06T01:00:00+00:00", "03:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Budapest", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Budapest", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Budapest", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Budapest", [ + ["1945-05-01T21:59:59+00:00", "22:59:59", "CET", -60], + ["1945-05-01T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1945-11-02T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1945-11-02T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Budapest", [ + ["1946-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1946-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1946-10-06T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-10-06T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1947" : helpers.makeTestYear("Europe/Budapest", [ + ["1947-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1947-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1947-10-05T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1947-10-05T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1948" : helpers.makeTestYear("Europe/Budapest", [ + ["1948-04-04T00:59:59+00:00", "01:59:59", "CET", -60], + ["1948-04-04T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1948-10-03T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1948-10-03T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1949" : helpers.makeTestYear("Europe/Budapest", [ + ["1949-04-10T00:59:59+00:00", "01:59:59", "CET", -60], + ["1949-04-10T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1949-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1949-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1950" : helpers.makeTestYear("Europe/Budapest", [ + ["1950-04-17T00:59:59+00:00", "01:59:59", "CET", -60], + ["1950-04-17T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1950-10-23T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1950-10-23T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1954" : helpers.makeTestYear("Europe/Budapest", [ + ["1954-05-22T22:59:59+00:00", "23:59:59", "CET", -60], + ["1954-05-22T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1954-10-02T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1954-10-02T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1955" : helpers.makeTestYear("Europe/Budapest", [ + ["1955-05-22T22:59:59+00:00", "23:59:59", "CET", -60], + ["1955-05-22T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1955-10-02T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1955-10-02T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1956" : helpers.makeTestYear("Europe/Budapest", [ + ["1956-06-02T22:59:59+00:00", "23:59:59", "CET", -60], + ["1956-06-02T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1956-09-29T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1956-09-29T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1957" : helpers.makeTestYear("Europe/Budapest", [ + ["1957-06-01T23:59:59+00:00", "00:59:59", "CET", -60], + ["1957-06-02T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1957-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1957-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Budapest", [ + ["1980-04-05T23:59:59+00:00", "00:59:59", "CET", -60], + ["1980-04-06T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Budapest", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Budapest", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Budapest", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Budapest", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Budapest", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Budapest", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Budapest", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Budapest", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Budapest", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Budapest", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Budapest", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Budapest", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Budapest", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Budapest", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Budapest", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Budapest", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Budapest", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Budapest", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Budapest", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Budapest", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Budapest", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Budapest", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Budapest", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Budapest", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Budapest", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Budapest", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Budapest", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Budapest", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Budapest", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Budapest", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Budapest", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Budapest", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Budapest", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Budapest", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Budapest", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Budapest", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Budapest", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Budapest", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Budapest", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Budapest", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Budapest", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Budapest", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Budapest", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Budapest", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Budapest", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Budapest", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Budapest", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Budapest", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Budapest", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Budapest", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Budapest", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Budapest", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Budapest", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Budapest", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Budapest", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Budapest", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Budapest", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/chisinau.js b/tests/zones/europe/chisinau.js new file mode 100644 index 00000000..37c9d724 --- /dev/null +++ b/tests/zones/europe/chisinau.js @@ -0,0 +1,497 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Chisinau"] = { + "1918" : helpers.makeTestYear("Europe/Chisinau", [ + ["1918-02-14T22:04:59+00:00", "23:59:59", "CMT", -115], + ["1918-02-14T22:05:00+00:00", "23:49:24", "BMT", -6264 / 60] + ]), + + "1931" : helpers.makeTestYear("Europe/Chisinau", [ + ["1931-07-23T22:15:35+00:00", "23:59:59", "BMT", -6264 / 60], + ["1931-07-23T22:15:36+00:00", "00:15:36", "EET", -120] + ]), + + "1932" : helpers.makeTestYear("Europe/Chisinau", [ + ["1932-05-20T21:59:59+00:00", "23:59:59", "EET", -120], + ["1932-05-20T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1932-10-01T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1932-10-01T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1933" : helpers.makeTestYear("Europe/Chisinau", [ + ["1933-04-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["1933-04-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1933-09-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1933-09-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1934" : helpers.makeTestYear("Europe/Chisinau", [ + ["1934-04-07T21:59:59+00:00", "23:59:59", "EET", -120], + ["1934-04-07T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1934-10-06T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1934-10-06T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1935" : helpers.makeTestYear("Europe/Chisinau", [ + ["1935-04-06T21:59:59+00:00", "23:59:59", "EET", -120], + ["1935-04-06T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1935-10-05T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1935-10-05T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1936" : helpers.makeTestYear("Europe/Chisinau", [ + ["1936-04-04T21:59:59+00:00", "23:59:59", "EET", -120], + ["1936-04-04T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1936-10-03T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1936-10-03T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1937" : helpers.makeTestYear("Europe/Chisinau", [ + ["1937-04-03T21:59:59+00:00", "23:59:59", "EET", -120], + ["1937-04-03T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1937-10-02T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1937-10-02T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1938" : helpers.makeTestYear("Europe/Chisinau", [ + ["1938-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1938-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1938-10-01T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1938-10-01T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1939" : helpers.makeTestYear("Europe/Chisinau", [ + ["1939-04-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["1939-04-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1939-09-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1939-09-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1940" : helpers.makeTestYear("Europe/Chisinau", [ + ["1940-08-14T21:59:59+00:00", "23:59:59", "EET", -120], + ["1940-08-14T22:00:00+00:00", "01:00:00", "EEST", -180] + ]), + + "1941" : helpers.makeTestYear("Europe/Chisinau", [ + ["1941-07-16T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1941-07-16T21:00:00+00:00", "23:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Chisinau", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Chisinau", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Chisinau", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-08-23T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1944-08-23T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Chisinau", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Chisinau", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Chisinau", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Chisinau", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Chisinau", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Chisinau", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Chisinau", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Chisinau", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Chisinau", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Chisinau", [ + ["1990-05-05T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1990-05-05T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Europe/Chisinau", [ + ["1991-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1991-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1991-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1991-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Chisinau", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Chisinau", [ + ["1993-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Chisinau", [ + ["1994-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Chisinau", [ + ["1995-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1995-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1995-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1995-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Chisinau", [ + ["1996-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1996-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Chisinau", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Chisinau", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Chisinau", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Chisinau", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Chisinau", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Chisinau", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Chisinau", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Chisinau", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Chisinau", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Chisinau", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Chisinau", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Chisinau", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Chisinau", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Chisinau", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Chisinau", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Chisinau", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Chisinau", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Chisinau", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Chisinau", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Chisinau", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Chisinau", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Chisinau", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Chisinau", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Chisinau", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Chisinau", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Chisinau", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Chisinau", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Chisinau", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Chisinau", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Chisinau", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Chisinau", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Chisinau", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Chisinau", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Chisinau", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Chisinau", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Chisinau", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Chisinau", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Chisinau", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Chisinau", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Chisinau", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Chisinau", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/copenhagen.js b/tests/zones/europe/copenhagen.js new file mode 100644 index 00000000..5706d00c --- /dev/null +++ b/tests/zones/europe/copenhagen.js @@ -0,0 +1,470 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Copenhagen"] = { + "1916" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1916-05-14T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-05-14T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T20:59:59+00:00", "22:59:59", "CEST", -120], + ["1916-09-30T21:00:00+00:00", "22:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1940-05-14T22:59:59+00:00", "23:59:59", "CET", -60], + ["1940-05-14T23:00:00+00:00", "01:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-08-15T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-08-15T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1946-05-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1946-05-01T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1946-09-01T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-09-01T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1947" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1947-05-04T00:59:59+00:00", "01:59:59", "CET", -60], + ["1947-05-04T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1947-08-10T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1947-08-10T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1948" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1948-05-09T00:59:59+00:00", "01:59:59", "CET", -60], + ["1948-05-09T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1948-08-08T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1948-08-08T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Copenhagen", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Copenhagen", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/dublin.js b/tests/zones/europe/dublin.js new file mode 100644 index 00000000..6be3fe63 --- /dev/null +++ b/tests/zones/europe/dublin.js @@ -0,0 +1,804 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Dublin"] = { + "1916" : helpers.makeTestYear("Europe/Dublin", [ + ["1916-05-21T02:25:20+00:00", "01:59:59", "DMT", 1521 / 60], + ["1916-05-21T02:25:21+00:00", "03:00:00", "IST", -2079 / 60], + ["1916-10-01T02:25:20+00:00", "02:59:59", "IST", -2079 / 60], + ["1916-10-01T02:25:21+00:00", "02:25:21", "GMT", 0] + ]), + + "1917" : helpers.makeTestYear("Europe/Dublin", [ + ["1917-04-08T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1917-04-08T02:00:00+00:00", "03:00:00", "BST", -60], + ["1917-09-17T01:59:59+00:00", "02:59:59", "BST", -60], + ["1917-09-17T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1918" : helpers.makeTestYear("Europe/Dublin", [ + ["1918-03-24T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1918-03-24T02:00:00+00:00", "03:00:00", "BST", -60], + ["1918-09-30T01:59:59+00:00", "02:59:59", "BST", -60], + ["1918-09-30T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1919" : helpers.makeTestYear("Europe/Dublin", [ + ["1919-03-30T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1919-03-30T02:00:00+00:00", "03:00:00", "BST", -60], + ["1919-09-29T01:59:59+00:00", "02:59:59", "BST", -60], + ["1919-09-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1920" : helpers.makeTestYear("Europe/Dublin", [ + ["1920-03-28T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1920-03-28T02:00:00+00:00", "03:00:00", "BST", -60], + ["1920-10-25T01:59:59+00:00", "02:59:59", "BST", -60], + ["1920-10-25T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1921" : helpers.makeTestYear("Europe/Dublin", [ + ["1921-04-03T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1921-04-03T02:00:00+00:00", "03:00:00", "BST", -60], + ["1921-10-03T01:59:59+00:00", "02:59:59", "BST", -60], + ["1921-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1922" : helpers.makeTestYear("Europe/Dublin", [ + ["1922-03-26T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1922-03-26T02:00:00+00:00", "03:00:00", "IST", -60], + ["1922-10-08T01:59:59+00:00", "02:59:59", "IST", -60], + ["1922-10-08T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1923" : helpers.makeTestYear("Europe/Dublin", [ + ["1923-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1923-04-22T02:00:00+00:00", "03:00:00", "IST", -60], + ["1923-09-16T01:59:59+00:00", "02:59:59", "IST", -60], + ["1923-09-16T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1924" : helpers.makeTestYear("Europe/Dublin", [ + ["1924-04-13T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1924-04-13T02:00:00+00:00", "03:00:00", "IST", -60], + ["1924-09-21T01:59:59+00:00", "02:59:59", "IST", -60], + ["1924-09-21T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1925" : helpers.makeTestYear("Europe/Dublin", [ + ["1925-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1925-04-19T02:00:00+00:00", "03:00:00", "IST", -60], + ["1925-10-04T01:59:59+00:00", "02:59:59", "IST", -60], + ["1925-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1926" : helpers.makeTestYear("Europe/Dublin", [ + ["1926-04-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1926-04-18T02:00:00+00:00", "03:00:00", "IST", -60], + ["1926-10-03T01:59:59+00:00", "02:59:59", "IST", -60], + ["1926-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1927" : helpers.makeTestYear("Europe/Dublin", [ + ["1927-04-10T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1927-04-10T02:00:00+00:00", "03:00:00", "IST", -60], + ["1927-10-02T01:59:59+00:00", "02:59:59", "IST", -60], + ["1927-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1928" : helpers.makeTestYear("Europe/Dublin", [ + ["1928-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1928-04-22T02:00:00+00:00", "03:00:00", "IST", -60], + ["1928-10-07T01:59:59+00:00", "02:59:59", "IST", -60], + ["1928-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1929" : helpers.makeTestYear("Europe/Dublin", [ + ["1929-04-21T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1929-04-21T02:00:00+00:00", "03:00:00", "IST", -60], + ["1929-10-06T01:59:59+00:00", "02:59:59", "IST", -60], + ["1929-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1930" : helpers.makeTestYear("Europe/Dublin", [ + ["1930-04-13T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1930-04-13T02:00:00+00:00", "03:00:00", "IST", -60], + ["1930-10-05T01:59:59+00:00", "02:59:59", "IST", -60], + ["1930-10-05T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1931" : helpers.makeTestYear("Europe/Dublin", [ + ["1931-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1931-04-19T02:00:00+00:00", "03:00:00", "IST", -60], + ["1931-10-04T01:59:59+00:00", "02:59:59", "IST", -60], + ["1931-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1932" : helpers.makeTestYear("Europe/Dublin", [ + ["1932-04-17T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1932-04-17T02:00:00+00:00", "03:00:00", "IST", -60], + ["1932-10-02T01:59:59+00:00", "02:59:59", "IST", -60], + ["1932-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1933" : helpers.makeTestYear("Europe/Dublin", [ + ["1933-04-09T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1933-04-09T02:00:00+00:00", "03:00:00", "IST", -60], + ["1933-10-08T01:59:59+00:00", "02:59:59", "IST", -60], + ["1933-10-08T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1934" : helpers.makeTestYear("Europe/Dublin", [ + ["1934-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1934-04-22T02:00:00+00:00", "03:00:00", "IST", -60], + ["1934-10-07T01:59:59+00:00", "02:59:59", "IST", -60], + ["1934-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1935" : helpers.makeTestYear("Europe/Dublin", [ + ["1935-04-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1935-04-14T02:00:00+00:00", "03:00:00", "IST", -60], + ["1935-10-06T01:59:59+00:00", "02:59:59", "IST", -60], + ["1935-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1936" : helpers.makeTestYear("Europe/Dublin", [ + ["1936-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1936-04-19T02:00:00+00:00", "03:00:00", "IST", -60], + ["1936-10-04T01:59:59+00:00", "02:59:59", "IST", -60], + ["1936-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1937" : helpers.makeTestYear("Europe/Dublin", [ + ["1937-04-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1937-04-18T02:00:00+00:00", "03:00:00", "IST", -60], + ["1937-10-03T01:59:59+00:00", "02:59:59", "IST", -60], + ["1937-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1938" : helpers.makeTestYear("Europe/Dublin", [ + ["1938-04-10T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1938-04-10T02:00:00+00:00", "03:00:00", "IST", -60], + ["1938-10-02T01:59:59+00:00", "02:59:59", "IST", -60], + ["1938-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1939" : helpers.makeTestYear("Europe/Dublin", [ + ["1939-04-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1939-04-16T02:00:00+00:00", "03:00:00", "IST", -60], + ["1939-11-19T01:59:59+00:00", "02:59:59", "IST", -60], + ["1939-11-19T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1940" : helpers.makeTestYear("Europe/Dublin", [ + ["1940-02-25T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1940-02-25T02:00:00+00:00", "03:00:00", "IST", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Dublin", [ + ["1946-10-06T00:59:59+00:00", "01:59:59", "IST", -60], + ["1946-10-06T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1947" : helpers.makeTestYear("Europe/Dublin", [ + ["1947-03-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1947-03-16T02:00:00+00:00", "03:00:00", "IST", -60], + ["1947-11-02T00:59:59+00:00", "01:59:59", "IST", -60], + ["1947-11-02T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1948" : helpers.makeTestYear("Europe/Dublin", [ + ["1948-04-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1948-04-18T02:00:00+00:00", "03:00:00", "IST", -60], + ["1948-10-31T01:59:59+00:00", "02:59:59", "IST", -60], + ["1948-10-31T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1949" : helpers.makeTestYear("Europe/Dublin", [ + ["1949-04-03T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1949-04-03T02:00:00+00:00", "03:00:00", "IST", -60], + ["1949-10-30T01:59:59+00:00", "02:59:59", "IST", -60], + ["1949-10-30T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1950" : helpers.makeTestYear("Europe/Dublin", [ + ["1950-04-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1950-04-16T02:00:00+00:00", "03:00:00", "IST", -60], + ["1950-10-22T01:59:59+00:00", "02:59:59", "IST", -60], + ["1950-10-22T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1951" : helpers.makeTestYear("Europe/Dublin", [ + ["1951-04-15T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1951-04-15T02:00:00+00:00", "03:00:00", "IST", -60], + ["1951-10-21T01:59:59+00:00", "02:59:59", "IST", -60], + ["1951-10-21T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1952" : helpers.makeTestYear("Europe/Dublin", [ + ["1952-04-20T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1952-04-20T02:00:00+00:00", "03:00:00", "IST", -60], + ["1952-10-26T01:59:59+00:00", "02:59:59", "IST", -60], + ["1952-10-26T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1953" : helpers.makeTestYear("Europe/Dublin", [ + ["1953-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1953-04-19T02:00:00+00:00", "03:00:00", "IST", -60], + ["1953-10-04T01:59:59+00:00", "02:59:59", "IST", -60], + ["1953-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1954" : helpers.makeTestYear("Europe/Dublin", [ + ["1954-04-11T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1954-04-11T02:00:00+00:00", "03:00:00", "IST", -60], + ["1954-10-03T01:59:59+00:00", "02:59:59", "IST", -60], + ["1954-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1955" : helpers.makeTestYear("Europe/Dublin", [ + ["1955-04-17T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1955-04-17T02:00:00+00:00", "03:00:00", "IST", -60], + ["1955-10-02T01:59:59+00:00", "02:59:59", "IST", -60], + ["1955-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1956" : helpers.makeTestYear("Europe/Dublin", [ + ["1956-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1956-04-22T02:00:00+00:00", "03:00:00", "IST", -60], + ["1956-10-07T01:59:59+00:00", "02:59:59", "IST", -60], + ["1956-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1957" : helpers.makeTestYear("Europe/Dublin", [ + ["1957-04-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1957-04-14T02:00:00+00:00", "03:00:00", "IST", -60], + ["1957-10-06T01:59:59+00:00", "02:59:59", "IST", -60], + ["1957-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1958" : helpers.makeTestYear("Europe/Dublin", [ + ["1958-04-20T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1958-04-20T02:00:00+00:00", "03:00:00", "IST", -60], + ["1958-10-05T01:59:59+00:00", "02:59:59", "IST", -60], + ["1958-10-05T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1959" : helpers.makeTestYear("Europe/Dublin", [ + ["1959-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1959-04-19T02:00:00+00:00", "03:00:00", "IST", -60], + ["1959-10-04T01:59:59+00:00", "02:59:59", "IST", -60], + ["1959-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1960" : helpers.makeTestYear("Europe/Dublin", [ + ["1960-04-10T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1960-04-10T02:00:00+00:00", "03:00:00", "IST", -60], + ["1960-10-02T01:59:59+00:00", "02:59:59", "IST", -60], + ["1960-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1961" : helpers.makeTestYear("Europe/Dublin", [ + ["1961-03-26T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1961-03-26T02:00:00+00:00", "03:00:00", "IST", -60], + ["1961-10-29T01:59:59+00:00", "02:59:59", "IST", -60], + ["1961-10-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1962" : helpers.makeTestYear("Europe/Dublin", [ + ["1962-03-25T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1962-03-25T02:00:00+00:00", "03:00:00", "IST", -60], + ["1962-10-28T01:59:59+00:00", "02:59:59", "IST", -60], + ["1962-10-28T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1963" : helpers.makeTestYear("Europe/Dublin", [ + ["1963-03-31T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1963-03-31T02:00:00+00:00", "03:00:00", "IST", -60], + ["1963-10-27T01:59:59+00:00", "02:59:59", "IST", -60], + ["1963-10-27T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1964" : helpers.makeTestYear("Europe/Dublin", [ + ["1964-03-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1964-03-22T02:00:00+00:00", "03:00:00", "IST", -60], + ["1964-10-25T01:59:59+00:00", "02:59:59", "IST", -60], + ["1964-10-25T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1965" : helpers.makeTestYear("Europe/Dublin", [ + ["1965-03-21T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1965-03-21T02:00:00+00:00", "03:00:00", "IST", -60], + ["1965-10-24T01:59:59+00:00", "02:59:59", "IST", -60], + ["1965-10-24T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1966" : helpers.makeTestYear("Europe/Dublin", [ + ["1966-03-20T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1966-03-20T02:00:00+00:00", "03:00:00", "IST", -60], + ["1966-10-23T01:59:59+00:00", "02:59:59", "IST", -60], + ["1966-10-23T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1967" : helpers.makeTestYear("Europe/Dublin", [ + ["1967-03-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1967-03-19T02:00:00+00:00", "03:00:00", "IST", -60], + ["1967-10-29T01:59:59+00:00", "02:59:59", "IST", -60], + ["1967-10-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1968" : helpers.makeTestYear("Europe/Dublin", [ + ["1968-02-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1968-02-18T02:00:00+00:00", "03:00:00", "IST", -60], + ["1968-10-26T22:59:59+00:00", "23:59:59", "IST", -60], + ["1968-10-26T23:00:00+00:00", "00:00:00", "IST", -60] + ]), + + "1971" : helpers.makeTestYear("Europe/Dublin", [ + ["1971-10-31T01:59:59+00:00", "02:59:59", "IST", -60], + ["1971-10-31T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1972" : helpers.makeTestYear("Europe/Dublin", [ + ["1972-03-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1972-03-19T02:00:00+00:00", "03:00:00", "IST", -60], + ["1972-10-29T01:59:59+00:00", "02:59:59", "IST", -60], + ["1972-10-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1973" : helpers.makeTestYear("Europe/Dublin", [ + ["1973-03-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1973-03-18T02:00:00+00:00", "03:00:00", "IST", -60], + ["1973-10-28T01:59:59+00:00", "02:59:59", "IST", -60], + ["1973-10-28T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1974" : helpers.makeTestYear("Europe/Dublin", [ + ["1974-03-17T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1974-03-17T02:00:00+00:00", "03:00:00", "IST", -60], + ["1974-10-27T01:59:59+00:00", "02:59:59", "IST", -60], + ["1974-10-27T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1975" : helpers.makeTestYear("Europe/Dublin", [ + ["1975-03-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1975-03-16T02:00:00+00:00", "03:00:00", "IST", -60], + ["1975-10-26T01:59:59+00:00", "02:59:59", "IST", -60], + ["1975-10-26T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1976" : helpers.makeTestYear("Europe/Dublin", [ + ["1976-03-21T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1976-03-21T02:00:00+00:00", "03:00:00", "IST", -60], + ["1976-10-24T01:59:59+00:00", "02:59:59", "IST", -60], + ["1976-10-24T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1977" : helpers.makeTestYear("Europe/Dublin", [ + ["1977-03-20T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1977-03-20T02:00:00+00:00", "03:00:00", "IST", -60], + ["1977-10-23T01:59:59+00:00", "02:59:59", "IST", -60], + ["1977-10-23T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1978" : helpers.makeTestYear("Europe/Dublin", [ + ["1978-03-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1978-03-19T02:00:00+00:00", "03:00:00", "IST", -60], + ["1978-10-29T01:59:59+00:00", "02:59:59", "IST", -60], + ["1978-10-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1979" : helpers.makeTestYear("Europe/Dublin", [ + ["1979-03-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1979-03-18T02:00:00+00:00", "03:00:00", "IST", -60], + ["1979-10-28T01:59:59+00:00", "02:59:59", "IST", -60], + ["1979-10-28T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1980" : helpers.makeTestYear("Europe/Dublin", [ + ["1980-03-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1980-03-16T02:00:00+00:00", "03:00:00", "IST", -60], + ["1980-10-26T01:59:59+00:00", "02:59:59", "IST", -60], + ["1980-10-26T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1981" : helpers.makeTestYear("Europe/Dublin", [ + ["1981-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1981-03-29T01:00:00+00:00", "02:00:00", "IST", -60], + ["1981-10-25T00:59:59+00:00", "01:59:59", "IST", -60], + ["1981-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1982" : helpers.makeTestYear("Europe/Dublin", [ + ["1982-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1982-03-28T01:00:00+00:00", "02:00:00", "IST", -60], + ["1982-10-24T00:59:59+00:00", "01:59:59", "IST", -60], + ["1982-10-24T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1983" : helpers.makeTestYear("Europe/Dublin", [ + ["1983-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1983-03-27T01:00:00+00:00", "02:00:00", "IST", -60], + ["1983-10-23T00:59:59+00:00", "01:59:59", "IST", -60], + ["1983-10-23T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1984" : helpers.makeTestYear("Europe/Dublin", [ + ["1984-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1984-03-25T01:00:00+00:00", "02:00:00", "IST", -60], + ["1984-10-28T00:59:59+00:00", "01:59:59", "IST", -60], + ["1984-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1985" : helpers.makeTestYear("Europe/Dublin", [ + ["1985-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1985-03-31T01:00:00+00:00", "02:00:00", "IST", -60], + ["1985-10-27T00:59:59+00:00", "01:59:59", "IST", -60], + ["1985-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1986" : helpers.makeTestYear("Europe/Dublin", [ + ["1986-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1986-03-30T01:00:00+00:00", "02:00:00", "IST", -60], + ["1986-10-26T00:59:59+00:00", "01:59:59", "IST", -60], + ["1986-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1987" : helpers.makeTestYear("Europe/Dublin", [ + ["1987-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1987-03-29T01:00:00+00:00", "02:00:00", "IST", -60], + ["1987-10-25T00:59:59+00:00", "01:59:59", "IST", -60], + ["1987-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1988" : helpers.makeTestYear("Europe/Dublin", [ + ["1988-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1988-03-27T01:00:00+00:00", "02:00:00", "IST", -60], + ["1988-10-23T00:59:59+00:00", "01:59:59", "IST", -60], + ["1988-10-23T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1989" : helpers.makeTestYear("Europe/Dublin", [ + ["1989-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1989-03-26T01:00:00+00:00", "02:00:00", "IST", -60], + ["1989-10-29T00:59:59+00:00", "01:59:59", "IST", -60], + ["1989-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1990" : helpers.makeTestYear("Europe/Dublin", [ + ["1990-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1990-03-25T01:00:00+00:00", "02:00:00", "IST", -60], + ["1990-10-28T00:59:59+00:00", "01:59:59", "IST", -60], + ["1990-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1991" : helpers.makeTestYear("Europe/Dublin", [ + ["1991-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1991-03-31T01:00:00+00:00", "02:00:00", "IST", -60], + ["1991-10-27T00:59:59+00:00", "01:59:59", "IST", -60], + ["1991-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1992" : helpers.makeTestYear("Europe/Dublin", [ + ["1992-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1992-03-29T01:00:00+00:00", "02:00:00", "IST", -60], + ["1992-10-25T00:59:59+00:00", "01:59:59", "IST", -60], + ["1992-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1993" : helpers.makeTestYear("Europe/Dublin", [ + ["1993-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1993-03-28T01:00:00+00:00", "02:00:00", "IST", -60], + ["1993-10-24T00:59:59+00:00", "01:59:59", "IST", -60], + ["1993-10-24T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1994" : helpers.makeTestYear("Europe/Dublin", [ + ["1994-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1994-03-27T01:00:00+00:00", "02:00:00", "IST", -60], + ["1994-10-23T00:59:59+00:00", "01:59:59", "IST", -60], + ["1994-10-23T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1995" : helpers.makeTestYear("Europe/Dublin", [ + ["1995-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1995-03-26T01:00:00+00:00", "02:00:00", "IST", -60], + ["1995-10-22T00:59:59+00:00", "01:59:59", "IST", -60], + ["1995-10-22T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1996" : helpers.makeTestYear("Europe/Dublin", [ + ["1996-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1996-03-31T01:00:00+00:00", "02:00:00", "IST", -60], + ["1996-10-27T00:59:59+00:00", "01:59:59", "IST", -60], + ["1996-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1997" : helpers.makeTestYear("Europe/Dublin", [ + ["1997-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1997-03-30T01:00:00+00:00", "02:00:00", "IST", -60], + ["1997-10-26T00:59:59+00:00", "01:59:59", "IST", -60], + ["1997-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1998" : helpers.makeTestYear("Europe/Dublin", [ + ["1998-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1998-03-29T01:00:00+00:00", "02:00:00", "IST", -60], + ["1998-10-25T00:59:59+00:00", "01:59:59", "IST", -60], + ["1998-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1999" : helpers.makeTestYear("Europe/Dublin", [ + ["1999-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1999-03-28T01:00:00+00:00", "02:00:00", "IST", -60], + ["1999-10-31T00:59:59+00:00", "01:59:59", "IST", -60], + ["1999-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2000" : helpers.makeTestYear("Europe/Dublin", [ + ["2000-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2000-03-26T01:00:00+00:00", "02:00:00", "IST", -60], + ["2000-10-29T00:59:59+00:00", "01:59:59", "IST", -60], + ["2000-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2001" : helpers.makeTestYear("Europe/Dublin", [ + ["2001-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2001-03-25T01:00:00+00:00", "02:00:00", "IST", -60], + ["2001-10-28T00:59:59+00:00", "01:59:59", "IST", -60], + ["2001-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2002" : helpers.makeTestYear("Europe/Dublin", [ + ["2002-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2002-03-31T01:00:00+00:00", "02:00:00", "IST", -60], + ["2002-10-27T00:59:59+00:00", "01:59:59", "IST", -60], + ["2002-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2003" : helpers.makeTestYear("Europe/Dublin", [ + ["2003-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2003-03-30T01:00:00+00:00", "02:00:00", "IST", -60], + ["2003-10-26T00:59:59+00:00", "01:59:59", "IST", -60], + ["2003-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2004" : helpers.makeTestYear("Europe/Dublin", [ + ["2004-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2004-03-28T01:00:00+00:00", "02:00:00", "IST", -60], + ["2004-10-31T00:59:59+00:00", "01:59:59", "IST", -60], + ["2004-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2005" : helpers.makeTestYear("Europe/Dublin", [ + ["2005-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2005-03-27T01:00:00+00:00", "02:00:00", "IST", -60], + ["2005-10-30T00:59:59+00:00", "01:59:59", "IST", -60], + ["2005-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2006" : helpers.makeTestYear("Europe/Dublin", [ + ["2006-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2006-03-26T01:00:00+00:00", "02:00:00", "IST", -60], + ["2006-10-29T00:59:59+00:00", "01:59:59", "IST", -60], + ["2006-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2007" : helpers.makeTestYear("Europe/Dublin", [ + ["2007-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2007-03-25T01:00:00+00:00", "02:00:00", "IST", -60], + ["2007-10-28T00:59:59+00:00", "01:59:59", "IST", -60], + ["2007-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2008" : helpers.makeTestYear("Europe/Dublin", [ + ["2008-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2008-03-30T01:00:00+00:00", "02:00:00", "IST", -60], + ["2008-10-26T00:59:59+00:00", "01:59:59", "IST", -60], + ["2008-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2009" : helpers.makeTestYear("Europe/Dublin", [ + ["2009-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2009-03-29T01:00:00+00:00", "02:00:00", "IST", -60], + ["2009-10-25T00:59:59+00:00", "01:59:59", "IST", -60], + ["2009-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2010" : helpers.makeTestYear("Europe/Dublin", [ + ["2010-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2010-03-28T01:00:00+00:00", "02:00:00", "IST", -60], + ["2010-10-31T00:59:59+00:00", "01:59:59", "IST", -60], + ["2010-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2011" : helpers.makeTestYear("Europe/Dublin", [ + ["2011-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2011-03-27T01:00:00+00:00", "02:00:00", "IST", -60], + ["2011-10-30T00:59:59+00:00", "01:59:59", "IST", -60], + ["2011-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2012" : helpers.makeTestYear("Europe/Dublin", [ + ["2012-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2012-03-25T01:00:00+00:00", "02:00:00", "IST", -60], + ["2012-10-28T00:59:59+00:00", "01:59:59", "IST", -60], + ["2012-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2013" : helpers.makeTestYear("Europe/Dublin", [ + ["2013-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2013-03-31T01:00:00+00:00", "02:00:00", "IST", -60], + ["2013-10-27T00:59:59+00:00", "01:59:59", "IST", -60], + ["2013-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2014" : helpers.makeTestYear("Europe/Dublin", [ + ["2014-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2014-03-30T01:00:00+00:00", "02:00:00", "IST", -60], + ["2014-10-26T00:59:59+00:00", "01:59:59", "IST", -60], + ["2014-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2015" : helpers.makeTestYear("Europe/Dublin", [ + ["2015-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2015-03-29T01:00:00+00:00", "02:00:00", "IST", -60], + ["2015-10-25T00:59:59+00:00", "01:59:59", "IST", -60], + ["2015-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2016" : helpers.makeTestYear("Europe/Dublin", [ + ["2016-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2016-03-27T01:00:00+00:00", "02:00:00", "IST", -60], + ["2016-10-30T00:59:59+00:00", "01:59:59", "IST", -60], + ["2016-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2017" : helpers.makeTestYear("Europe/Dublin", [ + ["2017-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2017-03-26T01:00:00+00:00", "02:00:00", "IST", -60], + ["2017-10-29T00:59:59+00:00", "01:59:59", "IST", -60], + ["2017-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2018" : helpers.makeTestYear("Europe/Dublin", [ + ["2018-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2018-03-25T01:00:00+00:00", "02:00:00", "IST", -60], + ["2018-10-28T00:59:59+00:00", "01:59:59", "IST", -60], + ["2018-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2019" : helpers.makeTestYear("Europe/Dublin", [ + ["2019-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2019-03-31T01:00:00+00:00", "02:00:00", "IST", -60], + ["2019-10-27T00:59:59+00:00", "01:59:59", "IST", -60], + ["2019-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2020" : helpers.makeTestYear("Europe/Dublin", [ + ["2020-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2020-03-29T01:00:00+00:00", "02:00:00", "IST", -60], + ["2020-10-25T00:59:59+00:00", "01:59:59", "IST", -60], + ["2020-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2021" : helpers.makeTestYear("Europe/Dublin", [ + ["2021-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2021-03-28T01:00:00+00:00", "02:00:00", "IST", -60], + ["2021-10-31T00:59:59+00:00", "01:59:59", "IST", -60], + ["2021-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2022" : helpers.makeTestYear("Europe/Dublin", [ + ["2022-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2022-03-27T01:00:00+00:00", "02:00:00", "IST", -60], + ["2022-10-30T00:59:59+00:00", "01:59:59", "IST", -60], + ["2022-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2023" : helpers.makeTestYear("Europe/Dublin", [ + ["2023-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2023-03-26T01:00:00+00:00", "02:00:00", "IST", -60], + ["2023-10-29T00:59:59+00:00", "01:59:59", "IST", -60], + ["2023-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2024" : helpers.makeTestYear("Europe/Dublin", [ + ["2024-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2024-03-31T01:00:00+00:00", "02:00:00", "IST", -60], + ["2024-10-27T00:59:59+00:00", "01:59:59", "IST", -60], + ["2024-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2025" : helpers.makeTestYear("Europe/Dublin", [ + ["2025-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2025-03-30T01:00:00+00:00", "02:00:00", "IST", -60], + ["2025-10-26T00:59:59+00:00", "01:59:59", "IST", -60], + ["2025-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2026" : helpers.makeTestYear("Europe/Dublin", [ + ["2026-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2026-03-29T01:00:00+00:00", "02:00:00", "IST", -60], + ["2026-10-25T00:59:59+00:00", "01:59:59", "IST", -60], + ["2026-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2027" : helpers.makeTestYear("Europe/Dublin", [ + ["2027-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2027-03-28T01:00:00+00:00", "02:00:00", "IST", -60], + ["2027-10-31T00:59:59+00:00", "01:59:59", "IST", -60], + ["2027-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2028" : helpers.makeTestYear("Europe/Dublin", [ + ["2028-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2028-03-26T01:00:00+00:00", "02:00:00", "IST", -60], + ["2028-10-29T00:59:59+00:00", "01:59:59", "IST", -60], + ["2028-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2029" : helpers.makeTestYear("Europe/Dublin", [ + ["2029-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2029-03-25T01:00:00+00:00", "02:00:00", "IST", -60], + ["2029-10-28T00:59:59+00:00", "01:59:59", "IST", -60], + ["2029-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2030" : helpers.makeTestYear("Europe/Dublin", [ + ["2030-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2030-03-31T01:00:00+00:00", "02:00:00", "IST", -60], + ["2030-10-27T00:59:59+00:00", "01:59:59", "IST", -60], + ["2030-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2031" : helpers.makeTestYear("Europe/Dublin", [ + ["2031-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2031-03-30T01:00:00+00:00", "02:00:00", "IST", -60], + ["2031-10-26T00:59:59+00:00", "01:59:59", "IST", -60], + ["2031-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2032" : helpers.makeTestYear("Europe/Dublin", [ + ["2032-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2032-03-28T01:00:00+00:00", "02:00:00", "IST", -60], + ["2032-10-31T00:59:59+00:00", "01:59:59", "IST", -60], + ["2032-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2033" : helpers.makeTestYear("Europe/Dublin", [ + ["2033-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2033-03-27T01:00:00+00:00", "02:00:00", "IST", -60], + ["2033-10-30T00:59:59+00:00", "01:59:59", "IST", -60], + ["2033-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2034" : helpers.makeTestYear("Europe/Dublin", [ + ["2034-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2034-03-26T01:00:00+00:00", "02:00:00", "IST", -60], + ["2034-10-29T00:59:59+00:00", "01:59:59", "IST", -60], + ["2034-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2035" : helpers.makeTestYear("Europe/Dublin", [ + ["2035-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2035-03-25T01:00:00+00:00", "02:00:00", "IST", -60], + ["2035-10-28T00:59:59+00:00", "01:59:59", "IST", -60], + ["2035-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2036" : helpers.makeTestYear("Europe/Dublin", [ + ["2036-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2036-03-30T01:00:00+00:00", "02:00:00", "IST", -60], + ["2036-10-26T00:59:59+00:00", "01:59:59", "IST", -60], + ["2036-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2037" : helpers.makeTestYear("Europe/Dublin", [ + ["2037-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2037-03-29T01:00:00+00:00", "02:00:00", "IST", -60], + ["2037-10-25T00:59:59+00:00", "01:59:59", "IST", -60], + ["2037-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/gibraltar.js b/tests/zones/europe/gibraltar.js new file mode 100644 index 00000000..393adf46 --- /dev/null +++ b/tests/zones/europe/gibraltar.js @@ -0,0 +1,693 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Gibraltar"] = { + "1916" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1916-05-21T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1916-05-21T02:00:00+00:00", "03:00:00", "BST", -60], + ["1916-10-01T01:59:59+00:00", "02:59:59", "BST", -60], + ["1916-10-01T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1917" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1917-04-08T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1917-04-08T02:00:00+00:00", "03:00:00", "BST", -60], + ["1917-09-17T01:59:59+00:00", "02:59:59", "BST", -60], + ["1917-09-17T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1918" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1918-03-24T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1918-03-24T02:00:00+00:00", "03:00:00", "BST", -60], + ["1918-09-30T01:59:59+00:00", "02:59:59", "BST", -60], + ["1918-09-30T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1919" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1919-03-30T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1919-03-30T02:00:00+00:00", "03:00:00", "BST", -60], + ["1919-09-29T01:59:59+00:00", "02:59:59", "BST", -60], + ["1919-09-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1920" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1920-03-28T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1920-03-28T02:00:00+00:00", "03:00:00", "BST", -60], + ["1920-10-25T01:59:59+00:00", "02:59:59", "BST", -60], + ["1920-10-25T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1921" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1921-04-03T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1921-04-03T02:00:00+00:00", "03:00:00", "BST", -60], + ["1921-10-03T01:59:59+00:00", "02:59:59", "BST", -60], + ["1921-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1922" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1922-03-26T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1922-03-26T02:00:00+00:00", "03:00:00", "BST", -60], + ["1922-10-08T01:59:59+00:00", "02:59:59", "BST", -60], + ["1922-10-08T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1923" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1923-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1923-04-22T02:00:00+00:00", "03:00:00", "BST", -60], + ["1923-09-16T01:59:59+00:00", "02:59:59", "BST", -60], + ["1923-09-16T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1924" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1924-04-13T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1924-04-13T02:00:00+00:00", "03:00:00", "BST", -60], + ["1924-09-21T01:59:59+00:00", "02:59:59", "BST", -60], + ["1924-09-21T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1925" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1925-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1925-04-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1925-10-04T01:59:59+00:00", "02:59:59", "BST", -60], + ["1925-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1926" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1926-04-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1926-04-18T02:00:00+00:00", "03:00:00", "BST", -60], + ["1926-10-03T01:59:59+00:00", "02:59:59", "BST", -60], + ["1926-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1927" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1927-04-10T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1927-04-10T02:00:00+00:00", "03:00:00", "BST", -60], + ["1927-10-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1927-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1928" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1928-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1928-04-22T02:00:00+00:00", "03:00:00", "BST", -60], + ["1928-10-07T01:59:59+00:00", "02:59:59", "BST", -60], + ["1928-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1929" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1929-04-21T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1929-04-21T02:00:00+00:00", "03:00:00", "BST", -60], + ["1929-10-06T01:59:59+00:00", "02:59:59", "BST", -60], + ["1929-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1930" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1930-04-13T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1930-04-13T02:00:00+00:00", "03:00:00", "BST", -60], + ["1930-10-05T01:59:59+00:00", "02:59:59", "BST", -60], + ["1930-10-05T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1931" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1931-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1931-04-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1931-10-04T01:59:59+00:00", "02:59:59", "BST", -60], + ["1931-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1932" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1932-04-17T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1932-04-17T02:00:00+00:00", "03:00:00", "BST", -60], + ["1932-10-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1932-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1933" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1933-04-09T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1933-04-09T02:00:00+00:00", "03:00:00", "BST", -60], + ["1933-10-08T01:59:59+00:00", "02:59:59", "BST", -60], + ["1933-10-08T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1934" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1934-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1934-04-22T02:00:00+00:00", "03:00:00", "BST", -60], + ["1934-10-07T01:59:59+00:00", "02:59:59", "BST", -60], + ["1934-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1935" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1935-04-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1935-04-14T02:00:00+00:00", "03:00:00", "BST", -60], + ["1935-10-06T01:59:59+00:00", "02:59:59", "BST", -60], + ["1935-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1936" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1936-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1936-04-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1936-10-04T01:59:59+00:00", "02:59:59", "BST", -60], + ["1936-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1937" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1937-04-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1937-04-18T02:00:00+00:00", "03:00:00", "BST", -60], + ["1937-10-03T01:59:59+00:00", "02:59:59", "BST", -60], + ["1937-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1938" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1938-04-10T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1938-04-10T02:00:00+00:00", "03:00:00", "BST", -60], + ["1938-10-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1938-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1939" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1939-04-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1939-04-16T02:00:00+00:00", "03:00:00", "BST", -60], + ["1939-11-19T01:59:59+00:00", "02:59:59", "BST", -60], + ["1939-11-19T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1940" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1940-02-25T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1940-02-25T02:00:00+00:00", "03:00:00", "BST", -60] + ]), + + "1941" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1941-05-04T00:59:59+00:00", "01:59:59", "BST", -60], + ["1941-05-04T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1941-08-10T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1941-08-10T01:00:00+00:00", "02:00:00", "BST", -60] + ]), + + "1942" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1942-04-05T00:59:59+00:00", "01:59:59", "BST", -60], + ["1942-04-05T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1942-08-09T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1942-08-09T01:00:00+00:00", "02:00:00", "BST", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1943-04-04T00:59:59+00:00", "01:59:59", "BST", -60], + ["1943-04-04T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1943-08-15T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1943-08-15T01:00:00+00:00", "02:00:00", "BST", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1944-04-02T00:59:59+00:00", "01:59:59", "BST", -60], + ["1944-04-02T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1944-09-17T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1944-09-17T01:00:00+00:00", "02:00:00", "BST", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "BST", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1945-07-15T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1945-07-15T01:00:00+00:00", "02:00:00", "BST", -60], + ["1945-10-07T01:59:59+00:00", "02:59:59", "BST", -60], + ["1945-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1946" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1946-04-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1946-04-14T02:00:00+00:00", "03:00:00", "BST", -60], + ["1946-10-06T01:59:59+00:00", "02:59:59", "BST", -60], + ["1946-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1947" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1947-03-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1947-03-16T02:00:00+00:00", "03:00:00", "BST", -60], + ["1947-04-13T00:59:59+00:00", "01:59:59", "BST", -60], + ["1947-04-13T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1947-08-10T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1947-08-10T01:00:00+00:00", "02:00:00", "BST", -60], + ["1947-11-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1947-11-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1948" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1948-03-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1948-03-14T02:00:00+00:00", "03:00:00", "BST", -60], + ["1948-10-31T01:59:59+00:00", "02:59:59", "BST", -60], + ["1948-10-31T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1949" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1949-04-03T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1949-04-03T02:00:00+00:00", "03:00:00", "BST", -60], + ["1949-10-30T01:59:59+00:00", "02:59:59", "BST", -60], + ["1949-10-30T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1950" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1950-04-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1950-04-16T02:00:00+00:00", "03:00:00", "BST", -60], + ["1950-10-22T01:59:59+00:00", "02:59:59", "BST", -60], + ["1950-10-22T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1951" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1951-04-15T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1951-04-15T02:00:00+00:00", "03:00:00", "BST", -60], + ["1951-10-21T01:59:59+00:00", "02:59:59", "BST", -60], + ["1951-10-21T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1952" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1952-04-20T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1952-04-20T02:00:00+00:00", "03:00:00", "BST", -60], + ["1952-10-26T01:59:59+00:00", "02:59:59", "BST", -60], + ["1952-10-26T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1953" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1953-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1953-04-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1953-10-04T01:59:59+00:00", "02:59:59", "BST", -60], + ["1953-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1954" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1954-04-11T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1954-04-11T02:00:00+00:00", "03:00:00", "BST", -60], + ["1954-10-03T01:59:59+00:00", "02:59:59", "BST", -60], + ["1954-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1955" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1955-04-17T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1955-04-17T02:00:00+00:00", "03:00:00", "BST", -60], + ["1955-10-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1955-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1956" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1956-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1956-04-22T02:00:00+00:00", "03:00:00", "BST", -60], + ["1956-10-07T01:59:59+00:00", "02:59:59", "BST", -60], + ["1956-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1957" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1957-04-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1957-04-14T02:00:00+00:00", "03:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Gibraltar", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Gibraltar", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/helsinki.js b/tests/zones/europe/helsinki.js new file mode 100644 index 00000000..793313ac --- /dev/null +++ b/tests/zones/europe/helsinki.js @@ -0,0 +1,416 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Helsinki"] = { + "1921" : helpers.makeTestYear("Europe/Helsinki", [ + ["1921-04-30T22:20:07+00:00", "23:59:59", "HMT", -5992 / 60], + ["1921-04-30T22:20:08+00:00", "00:20:08", "EET", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Helsinki", [ + ["1942-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1942-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1942-10-02T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1942-10-02T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1981" : helpers.makeTestYear("Europe/Helsinki", [ + ["1981-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1981-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1981-09-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1981-09-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1982" : helpers.makeTestYear("Europe/Helsinki", [ + ["1982-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["1982-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1982-09-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1982-09-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1983" : helpers.makeTestYear("Europe/Helsinki", [ + ["1983-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["1983-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1983-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1983-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1984" : helpers.makeTestYear("Europe/Helsinki", [ + ["1984-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["1984-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1984-09-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1984-09-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1985" : helpers.makeTestYear("Europe/Helsinki", [ + ["1985-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1985-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1985-09-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1985-09-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Europe/Helsinki", [ + ["1986-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1986-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1986-09-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1986-09-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Europe/Helsinki", [ + ["1987-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1987-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1987-09-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1987-09-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Europe/Helsinki", [ + ["1988-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["1988-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1988-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1988-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Europe/Helsinki", [ + ["1989-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["1989-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1989-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1989-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Europe/Helsinki", [ + ["1990-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["1990-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1990-09-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1990-09-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Europe/Helsinki", [ + ["1991-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1991-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1991-09-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1991-09-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Helsinki", [ + ["1992-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1992-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1992-09-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1992-09-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Helsinki", [ + ["1993-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1993-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1993-09-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1993-09-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Helsinki", [ + ["1994-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["1994-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1994-09-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1994-09-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Helsinki", [ + ["1995-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["1995-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1995-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1995-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Helsinki", [ + ["1996-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1996-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1996-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1996-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Helsinki", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Helsinki", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Helsinki", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Helsinki", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Helsinki", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Helsinki", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Helsinki", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Helsinki", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Helsinki", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Helsinki", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Helsinki", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Helsinki", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Helsinki", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Helsinki", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Helsinki", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Helsinki", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Helsinki", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Helsinki", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Helsinki", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Helsinki", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Helsinki", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Helsinki", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Helsinki", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Helsinki", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Helsinki", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Helsinki", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Helsinki", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Helsinki", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Helsinki", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Helsinki", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Helsinki", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Helsinki", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Helsinki", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Helsinki", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Helsinki", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Helsinki", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Helsinki", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Helsinki", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Helsinki", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Helsinki", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Helsinki", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/istanbul.js b/tests/zones/europe/istanbul.js new file mode 100644 index 00000000..7658f7d3 --- /dev/null +++ b/tests/zones/europe/istanbul.js @@ -0,0 +1,603 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Istanbul"] = { + "1910" : helpers.makeTestYear("Europe/Istanbul", [ + ["1910-09-30T22:03:03+00:00", "23:59:59", "IMT", -7016 / 60], + ["1910-09-30T22:03:04+00:00", "00:03:04", "EET", -120] + ]), + + "1916" : helpers.makeTestYear("Europe/Istanbul", [ + ["1916-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1916-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1916-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1916-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1920" : helpers.makeTestYear("Europe/Istanbul", [ + ["1920-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1920-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1920-10-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1920-10-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1921" : helpers.makeTestYear("Europe/Istanbul", [ + ["1921-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1921-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1921-10-02T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1921-10-02T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1922" : helpers.makeTestYear("Europe/Istanbul", [ + ["1922-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1922-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1922-10-07T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1922-10-07T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1924" : helpers.makeTestYear("Europe/Istanbul", [ + ["1924-05-12T21:59:59+00:00", "23:59:59", "EET", -120], + ["1924-05-12T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1924-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1924-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1925" : helpers.makeTestYear("Europe/Istanbul", [ + ["1925-04-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1925-04-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1925-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1925-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1940" : helpers.makeTestYear("Europe/Istanbul", [ + ["1940-06-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1940-06-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1940-10-04T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1940-10-04T21:00:00+00:00", "23:00:00", "EET", -120], + ["1940-11-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1940-11-30T22:00:00+00:00", "01:00:00", "EEST", -180] + ]), + + "1941" : helpers.makeTestYear("Europe/Istanbul", [ + ["1941-09-20T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1941-09-20T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Istanbul", [ + ["1942-03-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1942-03-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1942-10-31T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1942-10-31T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1945" : helpers.makeTestYear("Europe/Istanbul", [ + ["1945-04-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["1945-04-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1945-10-07T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1945-10-07T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1946" : helpers.makeTestYear("Europe/Istanbul", [ + ["1946-05-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1946-05-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1946-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1946-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1947" : helpers.makeTestYear("Europe/Istanbul", [ + ["1947-04-19T21:59:59+00:00", "23:59:59", "EET", -120], + ["1947-04-19T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1947-10-04T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1947-10-04T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1948" : helpers.makeTestYear("Europe/Istanbul", [ + ["1948-04-17T21:59:59+00:00", "23:59:59", "EET", -120], + ["1948-04-17T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1948-10-02T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1948-10-02T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1949" : helpers.makeTestYear("Europe/Istanbul", [ + ["1949-04-09T21:59:59+00:00", "23:59:59", "EET", -120], + ["1949-04-09T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1949-10-01T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1949-10-01T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1950" : helpers.makeTestYear("Europe/Istanbul", [ + ["1950-04-18T21:59:59+00:00", "23:59:59", "EET", -120], + ["1950-04-18T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1950-10-07T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1950-10-07T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1951" : helpers.makeTestYear("Europe/Istanbul", [ + ["1951-04-21T21:59:59+00:00", "23:59:59", "EET", -120], + ["1951-04-21T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1951-10-07T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1951-10-07T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1962" : helpers.makeTestYear("Europe/Istanbul", [ + ["1962-07-14T21:59:59+00:00", "23:59:59", "EET", -120], + ["1962-07-14T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1962-10-07T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1962-10-07T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1964" : helpers.makeTestYear("Europe/Istanbul", [ + ["1964-05-14T21:59:59+00:00", "23:59:59", "EET", -120], + ["1964-05-14T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1964-09-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1964-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1970" : helpers.makeTestYear("Europe/Istanbul", [ + ["1970-05-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1970-05-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1970-10-03T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1970-10-03T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1971" : helpers.makeTestYear("Europe/Istanbul", [ + ["1971-05-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["1971-05-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1971-10-02T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1971-10-02T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1972" : helpers.makeTestYear("Europe/Istanbul", [ + ["1972-05-06T21:59:59+00:00", "23:59:59", "EET", -120], + ["1972-05-06T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1972-10-07T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1972-10-07T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1973" : helpers.makeTestYear("Europe/Istanbul", [ + ["1973-06-02T22:59:59+00:00", "00:59:59", "EET", -120], + ["1973-06-02T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1973-11-03T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1973-11-04T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1974" : helpers.makeTestYear("Europe/Istanbul", [ + ["1974-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1974-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1974-11-03T01:59:59+00:00", "04:59:59", "EEST", -180], + ["1974-11-03T02:00:00+00:00", "04:00:00", "EET", -120] + ]), + + "1975" : helpers.makeTestYear("Europe/Istanbul", [ + ["1975-03-29T21:59:59+00:00", "23:59:59", "EET", -120], + ["1975-03-29T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1975-10-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1975-10-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1976" : helpers.makeTestYear("Europe/Istanbul", [ + ["1976-05-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1976-05-31T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1976-10-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1976-10-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1977" : helpers.makeTestYear("Europe/Istanbul", [ + ["1977-04-02T21:59:59+00:00", "23:59:59", "EET", -120], + ["1977-04-02T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1977-10-15T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1977-10-15T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1978" : helpers.makeTestYear("Europe/Istanbul", [ + ["1978-04-01T21:59:59+00:00", "23:59:59", "EET", -120], + ["1978-04-01T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1978-10-14T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1978-10-14T21:00:00+00:00", "01:00:00", "TRST", -240] + ]), + + "1979" : helpers.makeTestYear("Europe/Istanbul", [ + ["1979-10-14T19:59:59+00:00", "23:59:59", "TRST", -240], + ["1979-10-14T20:00:00+00:00", "23:00:00", "TRT", -180] + ]), + + "1980" : helpers.makeTestYear("Europe/Istanbul", [ + ["1980-04-05T23:59:59+00:00", "02:59:59", "TRT", -180], + ["1980-04-06T00:00:00+00:00", "04:00:00", "TRST", -240], + ["1980-10-12T19:59:59+00:00", "23:59:59", "TRST", -240], + ["1980-10-12T20:00:00+00:00", "23:00:00", "TRT", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Istanbul", [ + ["1981-03-28T23:59:59+00:00", "02:59:59", "TRT", -180], + ["1981-03-29T00:00:00+00:00", "04:00:00", "TRST", -240], + ["1981-10-11T19:59:59+00:00", "23:59:59", "TRST", -240], + ["1981-10-11T20:00:00+00:00", "23:00:00", "TRT", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Istanbul", [ + ["1982-03-27T23:59:59+00:00", "02:59:59", "TRT", -180], + ["1982-03-28T00:00:00+00:00", "04:00:00", "TRST", -240], + ["1982-10-10T19:59:59+00:00", "23:59:59", "TRST", -240], + ["1982-10-10T20:00:00+00:00", "23:00:00", "TRT", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Istanbul", [ + ["1983-07-30T20:59:59+00:00", "23:59:59", "TRT", -180], + ["1983-07-30T21:00:00+00:00", "01:00:00", "TRST", -240], + ["1983-10-01T19:59:59+00:00", "23:59:59", "TRST", -240], + ["1983-10-01T20:00:00+00:00", "23:00:00", "TRT", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Istanbul", [ + ["1985-04-19T20:59:59+00:00", "23:59:59", "TRT", -180], + ["1985-04-19T21:00:00+00:00", "00:00:00", "EEST", -180], + ["1985-09-27T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1985-09-27T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Europe/Istanbul", [ + ["1986-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["1986-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1986-09-27T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1986-09-28T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Europe/Istanbul", [ + ["1987-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1987-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1987-09-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1987-09-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Europe/Istanbul", [ + ["1988-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1988-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1988-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1988-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Europe/Istanbul", [ + ["1989-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["1989-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1989-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1989-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Europe/Istanbul", [ + ["1990-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["1990-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1990-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1990-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Europe/Istanbul", [ + ["1991-03-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1991-03-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1991-09-28T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1991-09-28T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Istanbul", [ + ["1992-03-28T22:59:59+00:00", "00:59:59", "EET", -120], + ["1992-03-28T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1992-09-26T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1992-09-26T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Istanbul", [ + ["1993-03-27T22:59:59+00:00", "00:59:59", "EET", -120], + ["1993-03-27T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1993-09-25T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1993-09-25T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Istanbul", [ + ["1994-03-26T22:59:59+00:00", "00:59:59", "EET", -120], + ["1994-03-26T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1994-09-24T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1994-09-24T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Istanbul", [ + ["1995-03-25T22:59:59+00:00", "00:59:59", "EET", -120], + ["1995-03-25T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1995-09-23T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1995-09-23T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Istanbul", [ + ["1996-03-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["1996-03-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1996-10-26T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1996-10-26T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Istanbul", [ + ["1997-03-29T22:59:59+00:00", "00:59:59", "EET", -120], + ["1997-03-29T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1997-10-25T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1997-10-25T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Istanbul", [ + ["1998-03-28T22:59:59+00:00", "00:59:59", "EET", -120], + ["1998-03-28T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1998-10-24T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1998-10-24T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Istanbul", [ + ["1999-03-27T22:59:59+00:00", "00:59:59", "EET", -120], + ["1999-03-27T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1999-10-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1999-10-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Istanbul", [ + ["2000-03-25T22:59:59+00:00", "00:59:59", "EET", -120], + ["2000-03-25T23:00:00+00:00", "02:00:00", "EEST", -180], + ["2000-10-28T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2000-10-28T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Istanbul", [ + ["2001-03-24T22:59:59+00:00", "00:59:59", "EET", -120], + ["2001-03-24T23:00:00+00:00", "02:00:00", "EEST", -180], + ["2001-10-27T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2001-10-27T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Istanbul", [ + ["2002-03-30T22:59:59+00:00", "00:59:59", "EET", -120], + ["2002-03-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["2002-10-26T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2002-10-26T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Istanbul", [ + ["2003-03-29T22:59:59+00:00", "00:59:59", "EET", -120], + ["2003-03-29T23:00:00+00:00", "02:00:00", "EEST", -180], + ["2003-10-25T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2003-10-25T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Istanbul", [ + ["2004-03-27T22:59:59+00:00", "00:59:59", "EET", -120], + ["2004-03-27T23:00:00+00:00", "02:00:00", "EEST", -180], + ["2004-10-30T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2004-10-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Istanbul", [ + ["2005-03-26T22:59:59+00:00", "00:59:59", "EET", -120], + ["2005-03-26T23:00:00+00:00", "02:00:00", "EEST", -180], + ["2005-10-29T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2005-10-29T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Istanbul", [ + ["2006-03-25T22:59:59+00:00", "00:59:59", "EET", -120], + ["2006-03-25T23:00:00+00:00", "02:00:00", "EEST", -180], + ["2006-10-28T22:59:59+00:00", "01:59:59", "EEST", -180], + ["2006-10-28T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Istanbul", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Istanbul", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Istanbul", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Istanbul", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Istanbul", [ + ["2011-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Istanbul", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Istanbul", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Istanbul", [ + ["2014-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Istanbul", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Istanbul", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Istanbul", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Istanbul", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Istanbul", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Istanbul", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Istanbul", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Istanbul", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Istanbul", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Istanbul", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Istanbul", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Istanbul", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Istanbul", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Istanbul", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Istanbul", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Istanbul", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Istanbul", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Istanbul", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Istanbul", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Istanbul", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Istanbul", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Istanbul", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Istanbul", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/kaliningrad.js b/tests/zones/europe/kaliningrad.js new file mode 100644 index 00000000..d4266505 --- /dev/null +++ b/tests/zones/europe/kaliningrad.js @@ -0,0 +1,276 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Kaliningrad"] = { + "1916" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1916-04-30T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-04-30T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1917-04-16T00:59:59+00:00", "01:59:59", "CET", -60], + ["1917-04-16T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1917-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1917-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1918-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1940-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1940-04-01T01:00:00+00:00", "03:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60], + ["1944-12-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1944-12-31T23:00:00+00:00", "01:00:00", "CET", -120] + ]), + + "1945" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1945-04-28T21:59:59+00:00", "23:59:59", "CET", -120], + ["1945-04-28T22:00:00+00:00", "01:00:00", "CEST", -180], + ["1945-10-31T20:59:59+00:00", "23:59:59", "CEST", -180], + ["1945-10-31T21:00:00+00:00", "23:00:00", "CET", -120], + ["1945-12-31T21:59:59+00:00", "23:59:59", "CET", -120], + ["1945-12-31T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1990-03-24T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1990-03-24T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1990-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1990-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1991" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1991-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1991-03-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1991-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1991-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1992-03-28T20:59:59+00:00", "22:59:59", "EET", -120], + ["1992-03-28T21:00:00+00:00", "00:00:00", "EEST", -180], + ["1992-09-26T19:59:59+00:00", "22:59:59", "EEST", -180], + ["1992-09-26T20:00:00+00:00", "22:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1993-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["1993-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1993-09-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1993-09-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1994-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1994-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1994-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1994-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1995-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["1995-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1995-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1995-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1996-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1996-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1996-10-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1996-10-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1997-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["1997-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1997-10-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1997-10-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1998-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1998-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1998-10-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1998-10-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["1999-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["1999-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1999-10-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1999-10-31T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2000-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["2000-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2000-10-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2000-10-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2001-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["2001-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2001-10-27T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2001-10-28T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2002-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["2002-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2002-10-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2002-10-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2003-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["2003-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2003-10-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2003-10-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2004-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["2004-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2004-10-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2004-10-31T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2005-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["2005-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2005-10-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2005-10-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2006-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["2006-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2006-10-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2006-10-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2007-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["2007-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2007-10-27T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2007-10-28T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2008-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["2008-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2008-10-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2008-10-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2009-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["2009-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2009-10-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2009-10-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2010-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["2010-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2010-10-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2010-10-31T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Kaliningrad", [ + ["2011-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["2011-03-27T00:00:00+00:00", "03:00:00", "FET", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/kiev.js b/tests/zones/europe/kiev.js new file mode 100644 index 00000000..7a4683ae --- /dev/null +++ b/tests/zones/europe/kiev.js @@ -0,0 +1,431 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Kiev"] = { + "1924" : helpers.makeTestYear("Europe/Kiev", [ + ["1924-05-01T21:57:55+00:00", "23:59:59", "KMT", -7324 / 60], + ["1924-05-01T21:57:56+00:00", "23:57:56", "EET", -120] + ]), + + "1930" : helpers.makeTestYear("Europe/Kiev", [ + ["1930-06-20T21:59:59+00:00", "23:59:59", "EET", -120], + ["1930-06-20T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1941" : helpers.makeTestYear("Europe/Kiev", [ + ["1941-09-19T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1941-09-19T21:00:00+00:00", "23:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Kiev", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Kiev", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60], + ["1943-11-05T22:59:59+00:00", "23:59:59", "CET", -60], + ["1943-11-05T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Kiev", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Kiev", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Kiev", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Kiev", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Kiev", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Kiev", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Kiev", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Kiev", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Kiev", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Kiev", [ + ["1990-03-24T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1990-03-24T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1990-06-30T21:59:59+00:00", "01:59:59", "MSD", -240], + ["1990-06-30T22:00:00+00:00", "01:00:00", "EEST", -180] + ]), + + "1991" : helpers.makeTestYear("Europe/Kiev", [ + ["1991-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1991-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Kiev", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Kiev", [ + ["1993-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Kiev", [ + ["1994-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Kiev", [ + ["1995-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["1995-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1995-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1995-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Kiev", [ + ["1996-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1996-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1996-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1996-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Kiev", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Kiev", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Kiev", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Kiev", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Kiev", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Kiev", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Kiev", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Kiev", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Kiev", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Kiev", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Kiev", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Kiev", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Kiev", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Kiev", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Kiev", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Kiev", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Kiev", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Kiev", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Kiev", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Kiev", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Kiev", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Kiev", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Kiev", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Kiev", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Kiev", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Kiev", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Kiev", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Kiev", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Kiev", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Kiev", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Kiev", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Kiev", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Kiev", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Kiev", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Kiev", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Kiev", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Kiev", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Kiev", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Kiev", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Kiev", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Kiev", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/lisbon.js b/tests/zones/europe/lisbon.js new file mode 100644 index 00000000..76077246 --- /dev/null +++ b/tests/zones/europe/lisbon.js @@ -0,0 +1,771 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Lisbon"] = { + "1912" : helpers.makeTestYear("Europe/Lisbon", [ + ["1912-01-01T00:36:31+00:00", "23:59:59", "LMT", 2192 / 60], + ["1912-01-01T00:36:32+00:00", "00:36:32", "WET", 0] + ]), + + "1916" : helpers.makeTestYear("Europe/Lisbon", [ + ["1916-06-17T22:59:59+00:00", "22:59:59", "WET", 0], + ["1916-06-17T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1916-10-31T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1916-11-01T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1917" : helpers.makeTestYear("Europe/Lisbon", [ + ["1917-02-28T22:59:59+00:00", "22:59:59", "WET", 0], + ["1917-02-28T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1917-10-14T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1917-10-14T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1918" : helpers.makeTestYear("Europe/Lisbon", [ + ["1918-03-01T22:59:59+00:00", "22:59:59", "WET", 0], + ["1918-03-01T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1918-10-14T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1918-10-14T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1919" : helpers.makeTestYear("Europe/Lisbon", [ + ["1919-02-28T22:59:59+00:00", "22:59:59", "WET", 0], + ["1919-02-28T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1919-10-14T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1919-10-14T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1920" : helpers.makeTestYear("Europe/Lisbon", [ + ["1920-02-29T22:59:59+00:00", "22:59:59", "WET", 0], + ["1920-02-29T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1920-10-14T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1920-10-14T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1921" : helpers.makeTestYear("Europe/Lisbon", [ + ["1921-02-28T22:59:59+00:00", "22:59:59", "WET", 0], + ["1921-02-28T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1921-10-14T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1921-10-14T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1924" : helpers.makeTestYear("Europe/Lisbon", [ + ["1924-04-16T22:59:59+00:00", "22:59:59", "WET", 0], + ["1924-04-16T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1924-10-14T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1924-10-14T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1926" : helpers.makeTestYear("Europe/Lisbon", [ + ["1926-04-17T22:59:59+00:00", "22:59:59", "WET", 0], + ["1926-04-17T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1926-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1926-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1927" : helpers.makeTestYear("Europe/Lisbon", [ + ["1927-04-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1927-04-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1927-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1927-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1928" : helpers.makeTestYear("Europe/Lisbon", [ + ["1928-04-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1928-04-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1928-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1928-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1929" : helpers.makeTestYear("Europe/Lisbon", [ + ["1929-04-20T22:59:59+00:00", "22:59:59", "WET", 0], + ["1929-04-20T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1929-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1929-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1931" : helpers.makeTestYear("Europe/Lisbon", [ + ["1931-04-18T22:59:59+00:00", "22:59:59", "WET", 0], + ["1931-04-18T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1931-10-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1931-10-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1932" : helpers.makeTestYear("Europe/Lisbon", [ + ["1932-04-02T22:59:59+00:00", "22:59:59", "WET", 0], + ["1932-04-02T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1932-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1932-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1934" : helpers.makeTestYear("Europe/Lisbon", [ + ["1934-04-07T22:59:59+00:00", "22:59:59", "WET", 0], + ["1934-04-07T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1934-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1934-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1935" : helpers.makeTestYear("Europe/Lisbon", [ + ["1935-03-30T22:59:59+00:00", "22:59:59", "WET", 0], + ["1935-03-30T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1935-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1935-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1936" : helpers.makeTestYear("Europe/Lisbon", [ + ["1936-04-18T22:59:59+00:00", "22:59:59", "WET", 0], + ["1936-04-18T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1936-10-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1936-10-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1937" : helpers.makeTestYear("Europe/Lisbon", [ + ["1937-04-03T22:59:59+00:00", "22:59:59", "WET", 0], + ["1937-04-03T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1937-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1937-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1938" : helpers.makeTestYear("Europe/Lisbon", [ + ["1938-03-26T22:59:59+00:00", "22:59:59", "WET", 0], + ["1938-03-26T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1938-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1938-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1939" : helpers.makeTestYear("Europe/Lisbon", [ + ["1939-04-15T22:59:59+00:00", "22:59:59", "WET", 0], + ["1939-04-15T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1939-11-18T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1939-11-18T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1940" : helpers.makeTestYear("Europe/Lisbon", [ + ["1940-02-24T22:59:59+00:00", "22:59:59", "WET", 0], + ["1940-02-24T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1940-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1940-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1941" : helpers.makeTestYear("Europe/Lisbon", [ + ["1941-04-05T22:59:59+00:00", "22:59:59", "WET", 0], + ["1941-04-05T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1941-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1941-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1942" : helpers.makeTestYear("Europe/Lisbon", [ + ["1942-03-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1942-03-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1942-04-25T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1942-04-25T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1942-08-15T21:59:59+00:00", "23:59:59", "WEMT", -120], + ["1942-08-15T22:00:00+00:00", "23:00:00", "WEST", -60], + ["1942-10-24T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1942-10-24T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1943" : helpers.makeTestYear("Europe/Lisbon", [ + ["1943-03-13T22:59:59+00:00", "22:59:59", "WET", 0], + ["1943-03-13T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1943-04-17T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1943-04-17T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1943-08-28T21:59:59+00:00", "23:59:59", "WEMT", -120], + ["1943-08-28T22:00:00+00:00", "23:00:00", "WEST", -60], + ["1943-10-30T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1943-10-30T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1944" : helpers.makeTestYear("Europe/Lisbon", [ + ["1944-03-11T22:59:59+00:00", "22:59:59", "WET", 0], + ["1944-03-11T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1944-04-22T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1944-04-22T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1944-08-26T21:59:59+00:00", "23:59:59", "WEMT", -120], + ["1944-08-26T22:00:00+00:00", "23:00:00", "WEST", -60], + ["1944-10-28T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1944-10-28T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1945" : helpers.makeTestYear("Europe/Lisbon", [ + ["1945-03-10T22:59:59+00:00", "22:59:59", "WET", 0], + ["1945-03-10T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1945-04-21T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1945-04-21T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1945-08-25T21:59:59+00:00", "23:59:59", "WEMT", -120], + ["1945-08-25T22:00:00+00:00", "23:00:00", "WEST", -60], + ["1945-10-27T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1945-10-27T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1946" : helpers.makeTestYear("Europe/Lisbon", [ + ["1946-04-06T22:59:59+00:00", "22:59:59", "WET", 0], + ["1946-04-06T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1946-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1946-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1947" : helpers.makeTestYear("Europe/Lisbon", [ + ["1947-04-06T01:59:59+00:00", "01:59:59", "WET", 0], + ["1947-04-06T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1947-10-05T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1947-10-05T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1948" : helpers.makeTestYear("Europe/Lisbon", [ + ["1948-04-04T01:59:59+00:00", "01:59:59", "WET", 0], + ["1948-04-04T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1948-10-03T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1948-10-03T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1949" : helpers.makeTestYear("Europe/Lisbon", [ + ["1949-04-03T01:59:59+00:00", "01:59:59", "WET", 0], + ["1949-04-03T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1949-10-02T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1949-10-02T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1951" : helpers.makeTestYear("Europe/Lisbon", [ + ["1951-04-01T01:59:59+00:00", "01:59:59", "WET", 0], + ["1951-04-01T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1951-10-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1951-10-07T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1952" : helpers.makeTestYear("Europe/Lisbon", [ + ["1952-04-06T01:59:59+00:00", "01:59:59", "WET", 0], + ["1952-04-06T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1952-10-05T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1952-10-05T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1953" : helpers.makeTestYear("Europe/Lisbon", [ + ["1953-04-05T01:59:59+00:00", "01:59:59", "WET", 0], + ["1953-04-05T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1953-10-04T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1953-10-04T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1954" : helpers.makeTestYear("Europe/Lisbon", [ + ["1954-04-04T01:59:59+00:00", "01:59:59", "WET", 0], + ["1954-04-04T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1954-10-03T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1954-10-03T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1955" : helpers.makeTestYear("Europe/Lisbon", [ + ["1955-04-03T01:59:59+00:00", "01:59:59", "WET", 0], + ["1955-04-03T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1955-10-02T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1955-10-02T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1956" : helpers.makeTestYear("Europe/Lisbon", [ + ["1956-04-01T01:59:59+00:00", "01:59:59", "WET", 0], + ["1956-04-01T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1956-10-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1956-10-07T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1957" : helpers.makeTestYear("Europe/Lisbon", [ + ["1957-04-07T01:59:59+00:00", "01:59:59", "WET", 0], + ["1957-04-07T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1957-10-06T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1957-10-06T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1958" : helpers.makeTestYear("Europe/Lisbon", [ + ["1958-04-06T01:59:59+00:00", "01:59:59", "WET", 0], + ["1958-04-06T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1958-10-05T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1958-10-05T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1959" : helpers.makeTestYear("Europe/Lisbon", [ + ["1959-04-05T01:59:59+00:00", "01:59:59", "WET", 0], + ["1959-04-05T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1959-10-04T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1959-10-04T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1960" : helpers.makeTestYear("Europe/Lisbon", [ + ["1960-04-03T01:59:59+00:00", "01:59:59", "WET", 0], + ["1960-04-03T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1960-10-02T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1960-10-02T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1961" : helpers.makeTestYear("Europe/Lisbon", [ + ["1961-04-02T01:59:59+00:00", "01:59:59", "WET", 0], + ["1961-04-02T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1961-10-01T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1961-10-01T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1962" : helpers.makeTestYear("Europe/Lisbon", [ + ["1962-04-01T01:59:59+00:00", "01:59:59", "WET", 0], + ["1962-04-01T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1962-10-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1962-10-07T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1963" : helpers.makeTestYear("Europe/Lisbon", [ + ["1963-04-07T01:59:59+00:00", "01:59:59", "WET", 0], + ["1963-04-07T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1963-10-06T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1963-10-06T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1964" : helpers.makeTestYear("Europe/Lisbon", [ + ["1964-04-05T01:59:59+00:00", "01:59:59", "WET", 0], + ["1964-04-05T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1964-10-04T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1964-10-04T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1965" : helpers.makeTestYear("Europe/Lisbon", [ + ["1965-04-04T01:59:59+00:00", "01:59:59", "WET", 0], + ["1965-04-04T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1965-10-03T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1965-10-03T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1966" : helpers.makeTestYear("Europe/Lisbon", [ + ["1966-04-03T01:59:59+00:00", "01:59:59", "WET", 0], + ["1966-04-03T02:00:00+00:00", "03:00:00", "CET", -60] + ]), + + "1976" : helpers.makeTestYear("Europe/Lisbon", [ + ["1976-09-25T23:59:59+00:00", "00:59:59", "CET", -60], + ["1976-09-26T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1977" : helpers.makeTestYear("Europe/Lisbon", [ + ["1977-03-26T23:59:59+00:00", "23:59:59", "WET", 0], + ["1977-03-27T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1977-09-24T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1977-09-25T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1978" : helpers.makeTestYear("Europe/Lisbon", [ + ["1978-04-01T23:59:59+00:00", "23:59:59", "WET", 0], + ["1978-04-02T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1978-09-30T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1978-10-01T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1979" : helpers.makeTestYear("Europe/Lisbon", [ + ["1979-03-31T23:59:59+00:00", "23:59:59", "WET", 0], + ["1979-04-01T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1979-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1979-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1980" : helpers.makeTestYear("Europe/Lisbon", [ + ["1980-03-29T23:59:59+00:00", "23:59:59", "WET", 0], + ["1980-03-30T00:00:00+00:00", "01:00:00", "WEST", -60], + ["1980-09-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1980-09-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1981" : helpers.makeTestYear("Europe/Lisbon", [ + ["1981-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1981-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1981-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1981-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1982" : helpers.makeTestYear("Europe/Lisbon", [ + ["1982-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1982-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1982-09-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1982-09-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1983" : helpers.makeTestYear("Europe/Lisbon", [ + ["1983-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["1983-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1983-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1983-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1984" : helpers.makeTestYear("Europe/Lisbon", [ + ["1984-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1984-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1984-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1984-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1985" : helpers.makeTestYear("Europe/Lisbon", [ + ["1985-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1985-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1985-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1985-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1986" : helpers.makeTestYear("Europe/Lisbon", [ + ["1986-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1986-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1986-09-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1986-09-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1987" : helpers.makeTestYear("Europe/Lisbon", [ + ["1987-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1987-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1987-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1987-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1988" : helpers.makeTestYear("Europe/Lisbon", [ + ["1988-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1988-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1988-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1988-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1989" : helpers.makeTestYear("Europe/Lisbon", [ + ["1989-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["1989-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1989-09-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1989-09-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1990" : helpers.makeTestYear("Europe/Lisbon", [ + ["1990-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1990-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1990-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1990-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1991" : helpers.makeTestYear("Europe/Lisbon", [ + ["1991-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1991-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1991-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1991-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1992" : helpers.makeTestYear("Europe/Lisbon", [ + ["1992-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1992-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1992-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Lisbon", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Lisbon", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Lisbon", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Lisbon", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1996-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1996-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1997" : helpers.makeTestYear("Europe/Lisbon", [ + ["1997-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1997-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1997-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1997-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1998" : helpers.makeTestYear("Europe/Lisbon", [ + ["1998-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1998-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1998-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1998-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1999" : helpers.makeTestYear("Europe/Lisbon", [ + ["1999-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1999-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1999-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1999-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2000" : helpers.makeTestYear("Europe/Lisbon", [ + ["2000-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2000-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2000-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2000-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2001" : helpers.makeTestYear("Europe/Lisbon", [ + ["2001-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2001-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2001-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2001-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2002" : helpers.makeTestYear("Europe/Lisbon", [ + ["2002-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2002-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2002-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2002-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2003" : helpers.makeTestYear("Europe/Lisbon", [ + ["2003-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2003-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2003-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2003-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2004" : helpers.makeTestYear("Europe/Lisbon", [ + ["2004-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2004-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2004-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2004-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2005" : helpers.makeTestYear("Europe/Lisbon", [ + ["2005-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2005-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2005-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2005-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2006" : helpers.makeTestYear("Europe/Lisbon", [ + ["2006-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2006-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2006-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2006-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2007" : helpers.makeTestYear("Europe/Lisbon", [ + ["2007-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2007-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2007-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2007-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2008" : helpers.makeTestYear("Europe/Lisbon", [ + ["2008-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2008-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2008-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2008-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2009" : helpers.makeTestYear("Europe/Lisbon", [ + ["2009-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2009-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2009-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2009-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2010" : helpers.makeTestYear("Europe/Lisbon", [ + ["2010-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2010-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2010-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2010-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2011" : helpers.makeTestYear("Europe/Lisbon", [ + ["2011-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2011-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2011-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2011-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2012" : helpers.makeTestYear("Europe/Lisbon", [ + ["2012-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2012-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2012-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2012-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2013" : helpers.makeTestYear("Europe/Lisbon", [ + ["2013-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2013-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2013-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2013-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2014" : helpers.makeTestYear("Europe/Lisbon", [ + ["2014-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2014-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2014-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2014-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2015" : helpers.makeTestYear("Europe/Lisbon", [ + ["2015-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2015-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2015-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2015-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2016" : helpers.makeTestYear("Europe/Lisbon", [ + ["2016-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2016-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2016-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2016-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2017" : helpers.makeTestYear("Europe/Lisbon", [ + ["2017-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2017-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2017-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2017-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2018" : helpers.makeTestYear("Europe/Lisbon", [ + ["2018-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2018-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2018-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2018-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2019" : helpers.makeTestYear("Europe/Lisbon", [ + ["2019-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2019-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2019-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2019-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2020" : helpers.makeTestYear("Europe/Lisbon", [ + ["2020-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2020-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2020-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2020-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2021" : helpers.makeTestYear("Europe/Lisbon", [ + ["2021-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2021-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2021-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2021-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2022" : helpers.makeTestYear("Europe/Lisbon", [ + ["2022-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2022-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2022-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2022-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2023" : helpers.makeTestYear("Europe/Lisbon", [ + ["2023-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2023-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2023-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2023-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2024" : helpers.makeTestYear("Europe/Lisbon", [ + ["2024-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2024-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2024-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2024-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2025" : helpers.makeTestYear("Europe/Lisbon", [ + ["2025-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2025-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2025-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2025-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2026" : helpers.makeTestYear("Europe/Lisbon", [ + ["2026-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2026-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2026-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2026-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2027" : helpers.makeTestYear("Europe/Lisbon", [ + ["2027-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2027-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2027-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2027-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2028" : helpers.makeTestYear("Europe/Lisbon", [ + ["2028-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2028-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2028-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2028-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2029" : helpers.makeTestYear("Europe/Lisbon", [ + ["2029-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2029-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2029-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2029-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2030" : helpers.makeTestYear("Europe/Lisbon", [ + ["2030-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2030-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2030-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2030-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2031" : helpers.makeTestYear("Europe/Lisbon", [ + ["2031-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2031-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2031-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2031-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2032" : helpers.makeTestYear("Europe/Lisbon", [ + ["2032-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2032-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2032-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2032-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2033" : helpers.makeTestYear("Europe/Lisbon", [ + ["2033-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2033-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2033-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2033-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2034" : helpers.makeTestYear("Europe/Lisbon", [ + ["2034-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2034-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2034-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2034-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2035" : helpers.makeTestYear("Europe/Lisbon", [ + ["2035-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2035-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2035-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2035-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2036" : helpers.makeTestYear("Europe/Lisbon", [ + ["2036-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2036-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2036-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2036-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2037" : helpers.makeTestYear("Europe/Lisbon", [ + ["2037-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2037-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2037-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2037-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/london.js b/tests/zones/europe/london.js new file mode 100644 index 00000000..784805d6 --- /dev/null +++ b/tests/zones/europe/london.js @@ -0,0 +1,847 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/London"] = { + "1916" : helpers.makeTestYear("Europe/London", [ + ["1916-05-21T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1916-05-21T02:00:00+00:00", "03:00:00", "BST", -60], + ["1916-10-01T01:59:59+00:00", "02:59:59", "BST", -60], + ["1916-10-01T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1917" : helpers.makeTestYear("Europe/London", [ + ["1917-04-08T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1917-04-08T02:00:00+00:00", "03:00:00", "BST", -60], + ["1917-09-17T01:59:59+00:00", "02:59:59", "BST", -60], + ["1917-09-17T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1918" : helpers.makeTestYear("Europe/London", [ + ["1918-03-24T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1918-03-24T02:00:00+00:00", "03:00:00", "BST", -60], + ["1918-09-30T01:59:59+00:00", "02:59:59", "BST", -60], + ["1918-09-30T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1919" : helpers.makeTestYear("Europe/London", [ + ["1919-03-30T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1919-03-30T02:00:00+00:00", "03:00:00", "BST", -60], + ["1919-09-29T01:59:59+00:00", "02:59:59", "BST", -60], + ["1919-09-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1920" : helpers.makeTestYear("Europe/London", [ + ["1920-03-28T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1920-03-28T02:00:00+00:00", "03:00:00", "BST", -60], + ["1920-10-25T01:59:59+00:00", "02:59:59", "BST", -60], + ["1920-10-25T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1921" : helpers.makeTestYear("Europe/London", [ + ["1921-04-03T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1921-04-03T02:00:00+00:00", "03:00:00", "BST", -60], + ["1921-10-03T01:59:59+00:00", "02:59:59", "BST", -60], + ["1921-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1922" : helpers.makeTestYear("Europe/London", [ + ["1922-03-26T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1922-03-26T02:00:00+00:00", "03:00:00", "BST", -60], + ["1922-10-08T01:59:59+00:00", "02:59:59", "BST", -60], + ["1922-10-08T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1923" : helpers.makeTestYear("Europe/London", [ + ["1923-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1923-04-22T02:00:00+00:00", "03:00:00", "BST", -60], + ["1923-09-16T01:59:59+00:00", "02:59:59", "BST", -60], + ["1923-09-16T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1924" : helpers.makeTestYear("Europe/London", [ + ["1924-04-13T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1924-04-13T02:00:00+00:00", "03:00:00", "BST", -60], + ["1924-09-21T01:59:59+00:00", "02:59:59", "BST", -60], + ["1924-09-21T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1925" : helpers.makeTestYear("Europe/London", [ + ["1925-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1925-04-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1925-10-04T01:59:59+00:00", "02:59:59", "BST", -60], + ["1925-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1926" : helpers.makeTestYear("Europe/London", [ + ["1926-04-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1926-04-18T02:00:00+00:00", "03:00:00", "BST", -60], + ["1926-10-03T01:59:59+00:00", "02:59:59", "BST", -60], + ["1926-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1927" : helpers.makeTestYear("Europe/London", [ + ["1927-04-10T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1927-04-10T02:00:00+00:00", "03:00:00", "BST", -60], + ["1927-10-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1927-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1928" : helpers.makeTestYear("Europe/London", [ + ["1928-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1928-04-22T02:00:00+00:00", "03:00:00", "BST", -60], + ["1928-10-07T01:59:59+00:00", "02:59:59", "BST", -60], + ["1928-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1929" : helpers.makeTestYear("Europe/London", [ + ["1929-04-21T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1929-04-21T02:00:00+00:00", "03:00:00", "BST", -60], + ["1929-10-06T01:59:59+00:00", "02:59:59", "BST", -60], + ["1929-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1930" : helpers.makeTestYear("Europe/London", [ + ["1930-04-13T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1930-04-13T02:00:00+00:00", "03:00:00", "BST", -60], + ["1930-10-05T01:59:59+00:00", "02:59:59", "BST", -60], + ["1930-10-05T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1931" : helpers.makeTestYear("Europe/London", [ + ["1931-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1931-04-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1931-10-04T01:59:59+00:00", "02:59:59", "BST", -60], + ["1931-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1932" : helpers.makeTestYear("Europe/London", [ + ["1932-04-17T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1932-04-17T02:00:00+00:00", "03:00:00", "BST", -60], + ["1932-10-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1932-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1933" : helpers.makeTestYear("Europe/London", [ + ["1933-04-09T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1933-04-09T02:00:00+00:00", "03:00:00", "BST", -60], + ["1933-10-08T01:59:59+00:00", "02:59:59", "BST", -60], + ["1933-10-08T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1934" : helpers.makeTestYear("Europe/London", [ + ["1934-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1934-04-22T02:00:00+00:00", "03:00:00", "BST", -60], + ["1934-10-07T01:59:59+00:00", "02:59:59", "BST", -60], + ["1934-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1935" : helpers.makeTestYear("Europe/London", [ + ["1935-04-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1935-04-14T02:00:00+00:00", "03:00:00", "BST", -60], + ["1935-10-06T01:59:59+00:00", "02:59:59", "BST", -60], + ["1935-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1936" : helpers.makeTestYear("Europe/London", [ + ["1936-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1936-04-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1936-10-04T01:59:59+00:00", "02:59:59", "BST", -60], + ["1936-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1937" : helpers.makeTestYear("Europe/London", [ + ["1937-04-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1937-04-18T02:00:00+00:00", "03:00:00", "BST", -60], + ["1937-10-03T01:59:59+00:00", "02:59:59", "BST", -60], + ["1937-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1938" : helpers.makeTestYear("Europe/London", [ + ["1938-04-10T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1938-04-10T02:00:00+00:00", "03:00:00", "BST", -60], + ["1938-10-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1938-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1939" : helpers.makeTestYear("Europe/London", [ + ["1939-04-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1939-04-16T02:00:00+00:00", "03:00:00", "BST", -60], + ["1939-11-19T01:59:59+00:00", "02:59:59", "BST", -60], + ["1939-11-19T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1940" : helpers.makeTestYear("Europe/London", [ + ["1940-02-25T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1940-02-25T02:00:00+00:00", "03:00:00", "BST", -60] + ]), + + "1941" : helpers.makeTestYear("Europe/London", [ + ["1941-05-04T00:59:59+00:00", "01:59:59", "BST", -60], + ["1941-05-04T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1941-08-10T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1941-08-10T01:00:00+00:00", "02:00:00", "BST", -60] + ]), + + "1942" : helpers.makeTestYear("Europe/London", [ + ["1942-04-05T00:59:59+00:00", "01:59:59", "BST", -60], + ["1942-04-05T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1942-08-09T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1942-08-09T01:00:00+00:00", "02:00:00", "BST", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/London", [ + ["1943-04-04T00:59:59+00:00", "01:59:59", "BST", -60], + ["1943-04-04T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1943-08-15T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1943-08-15T01:00:00+00:00", "02:00:00", "BST", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/London", [ + ["1944-04-02T00:59:59+00:00", "01:59:59", "BST", -60], + ["1944-04-02T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1944-09-17T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1944-09-17T01:00:00+00:00", "02:00:00", "BST", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/London", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "BST", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1945-07-15T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1945-07-15T01:00:00+00:00", "02:00:00", "BST", -60], + ["1945-10-07T01:59:59+00:00", "02:59:59", "BST", -60], + ["1945-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1946" : helpers.makeTestYear("Europe/London", [ + ["1946-04-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1946-04-14T02:00:00+00:00", "03:00:00", "BST", -60], + ["1946-10-06T01:59:59+00:00", "02:59:59", "BST", -60], + ["1946-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1947" : helpers.makeTestYear("Europe/London", [ + ["1947-03-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1947-03-16T02:00:00+00:00", "03:00:00", "BST", -60], + ["1947-04-13T00:59:59+00:00", "01:59:59", "BST", -60], + ["1947-04-13T01:00:00+00:00", "03:00:00", "BDST", -120], + ["1947-08-10T00:59:59+00:00", "02:59:59", "BDST", -120], + ["1947-08-10T01:00:00+00:00", "02:00:00", "BST", -60], + ["1947-11-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1947-11-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1948" : helpers.makeTestYear("Europe/London", [ + ["1948-03-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1948-03-14T02:00:00+00:00", "03:00:00", "BST", -60], + ["1948-10-31T01:59:59+00:00", "02:59:59", "BST", -60], + ["1948-10-31T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1949" : helpers.makeTestYear("Europe/London", [ + ["1949-04-03T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1949-04-03T02:00:00+00:00", "03:00:00", "BST", -60], + ["1949-10-30T01:59:59+00:00", "02:59:59", "BST", -60], + ["1949-10-30T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1950" : helpers.makeTestYear("Europe/London", [ + ["1950-04-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1950-04-16T02:00:00+00:00", "03:00:00", "BST", -60], + ["1950-10-22T01:59:59+00:00", "02:59:59", "BST", -60], + ["1950-10-22T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1951" : helpers.makeTestYear("Europe/London", [ + ["1951-04-15T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1951-04-15T02:00:00+00:00", "03:00:00", "BST", -60], + ["1951-10-21T01:59:59+00:00", "02:59:59", "BST", -60], + ["1951-10-21T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1952" : helpers.makeTestYear("Europe/London", [ + ["1952-04-20T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1952-04-20T02:00:00+00:00", "03:00:00", "BST", -60], + ["1952-10-26T01:59:59+00:00", "02:59:59", "BST", -60], + ["1952-10-26T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1953" : helpers.makeTestYear("Europe/London", [ + ["1953-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1953-04-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1953-10-04T01:59:59+00:00", "02:59:59", "BST", -60], + ["1953-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1954" : helpers.makeTestYear("Europe/London", [ + ["1954-04-11T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1954-04-11T02:00:00+00:00", "03:00:00", "BST", -60], + ["1954-10-03T01:59:59+00:00", "02:59:59", "BST", -60], + ["1954-10-03T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1955" : helpers.makeTestYear("Europe/London", [ + ["1955-04-17T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1955-04-17T02:00:00+00:00", "03:00:00", "BST", -60], + ["1955-10-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1955-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1956" : helpers.makeTestYear("Europe/London", [ + ["1956-04-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1956-04-22T02:00:00+00:00", "03:00:00", "BST", -60], + ["1956-10-07T01:59:59+00:00", "02:59:59", "BST", -60], + ["1956-10-07T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1957" : helpers.makeTestYear("Europe/London", [ + ["1957-04-14T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1957-04-14T02:00:00+00:00", "03:00:00", "BST", -60], + ["1957-10-06T01:59:59+00:00", "02:59:59", "BST", -60], + ["1957-10-06T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1958" : helpers.makeTestYear("Europe/London", [ + ["1958-04-20T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1958-04-20T02:00:00+00:00", "03:00:00", "BST", -60], + ["1958-10-05T01:59:59+00:00", "02:59:59", "BST", -60], + ["1958-10-05T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1959" : helpers.makeTestYear("Europe/London", [ + ["1959-04-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1959-04-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1959-10-04T01:59:59+00:00", "02:59:59", "BST", -60], + ["1959-10-04T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1960" : helpers.makeTestYear("Europe/London", [ + ["1960-04-10T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1960-04-10T02:00:00+00:00", "03:00:00", "BST", -60], + ["1960-10-02T01:59:59+00:00", "02:59:59", "BST", -60], + ["1960-10-02T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1961" : helpers.makeTestYear("Europe/London", [ + ["1961-03-26T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1961-03-26T02:00:00+00:00", "03:00:00", "BST", -60], + ["1961-10-29T01:59:59+00:00", "02:59:59", "BST", -60], + ["1961-10-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1962" : helpers.makeTestYear("Europe/London", [ + ["1962-03-25T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1962-03-25T02:00:00+00:00", "03:00:00", "BST", -60], + ["1962-10-28T01:59:59+00:00", "02:59:59", "BST", -60], + ["1962-10-28T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1963" : helpers.makeTestYear("Europe/London", [ + ["1963-03-31T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1963-03-31T02:00:00+00:00", "03:00:00", "BST", -60], + ["1963-10-27T01:59:59+00:00", "02:59:59", "BST", -60], + ["1963-10-27T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1964" : helpers.makeTestYear("Europe/London", [ + ["1964-03-22T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1964-03-22T02:00:00+00:00", "03:00:00", "BST", -60], + ["1964-10-25T01:59:59+00:00", "02:59:59", "BST", -60], + ["1964-10-25T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1965" : helpers.makeTestYear("Europe/London", [ + ["1965-03-21T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1965-03-21T02:00:00+00:00", "03:00:00", "BST", -60], + ["1965-10-24T01:59:59+00:00", "02:59:59", "BST", -60], + ["1965-10-24T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1966" : helpers.makeTestYear("Europe/London", [ + ["1966-03-20T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1966-03-20T02:00:00+00:00", "03:00:00", "BST", -60], + ["1966-10-23T01:59:59+00:00", "02:59:59", "BST", -60], + ["1966-10-23T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1967" : helpers.makeTestYear("Europe/London", [ + ["1967-03-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1967-03-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1967-10-29T01:59:59+00:00", "02:59:59", "BST", -60], + ["1967-10-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1968" : helpers.makeTestYear("Europe/London", [ + ["1968-02-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1968-02-18T02:00:00+00:00", "03:00:00", "BST", -60], + ["1968-10-26T22:59:59+00:00", "23:59:59", "BST", -60], + ["1968-10-26T23:00:00+00:00", "00:00:00", "BST", -60] + ]), + + "1971" : helpers.makeTestYear("Europe/London", [ + ["1971-10-31T01:59:59+00:00", "02:59:59", "BST", -60], + ["1971-10-31T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1972" : helpers.makeTestYear("Europe/London", [ + ["1972-03-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1972-03-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1972-10-29T01:59:59+00:00", "02:59:59", "BST", -60], + ["1972-10-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1973" : helpers.makeTestYear("Europe/London", [ + ["1973-03-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1973-03-18T02:00:00+00:00", "03:00:00", "BST", -60], + ["1973-10-28T01:59:59+00:00", "02:59:59", "BST", -60], + ["1973-10-28T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1974" : helpers.makeTestYear("Europe/London", [ + ["1974-03-17T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1974-03-17T02:00:00+00:00", "03:00:00", "BST", -60], + ["1974-10-27T01:59:59+00:00", "02:59:59", "BST", -60], + ["1974-10-27T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1975" : helpers.makeTestYear("Europe/London", [ + ["1975-03-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1975-03-16T02:00:00+00:00", "03:00:00", "BST", -60], + ["1975-10-26T01:59:59+00:00", "02:59:59", "BST", -60], + ["1975-10-26T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1976" : helpers.makeTestYear("Europe/London", [ + ["1976-03-21T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1976-03-21T02:00:00+00:00", "03:00:00", "BST", -60], + ["1976-10-24T01:59:59+00:00", "02:59:59", "BST", -60], + ["1976-10-24T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1977" : helpers.makeTestYear("Europe/London", [ + ["1977-03-20T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1977-03-20T02:00:00+00:00", "03:00:00", "BST", -60], + ["1977-10-23T01:59:59+00:00", "02:59:59", "BST", -60], + ["1977-10-23T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1978" : helpers.makeTestYear("Europe/London", [ + ["1978-03-19T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1978-03-19T02:00:00+00:00", "03:00:00", "BST", -60], + ["1978-10-29T01:59:59+00:00", "02:59:59", "BST", -60], + ["1978-10-29T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1979" : helpers.makeTestYear("Europe/London", [ + ["1979-03-18T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1979-03-18T02:00:00+00:00", "03:00:00", "BST", -60], + ["1979-10-28T01:59:59+00:00", "02:59:59", "BST", -60], + ["1979-10-28T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1980" : helpers.makeTestYear("Europe/London", [ + ["1980-03-16T01:59:59+00:00", "01:59:59", "GMT", 0], + ["1980-03-16T02:00:00+00:00", "03:00:00", "BST", -60], + ["1980-10-26T01:59:59+00:00", "02:59:59", "BST", -60], + ["1980-10-26T02:00:00+00:00", "02:00:00", "GMT", 0] + ]), + + "1981" : helpers.makeTestYear("Europe/London", [ + ["1981-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1981-03-29T01:00:00+00:00", "02:00:00", "BST", -60], + ["1981-10-25T00:59:59+00:00", "01:59:59", "BST", -60], + ["1981-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1982" : helpers.makeTestYear("Europe/London", [ + ["1982-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1982-03-28T01:00:00+00:00", "02:00:00", "BST", -60], + ["1982-10-24T00:59:59+00:00", "01:59:59", "BST", -60], + ["1982-10-24T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1983" : helpers.makeTestYear("Europe/London", [ + ["1983-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1983-03-27T01:00:00+00:00", "02:00:00", "BST", -60], + ["1983-10-23T00:59:59+00:00", "01:59:59", "BST", -60], + ["1983-10-23T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1984" : helpers.makeTestYear("Europe/London", [ + ["1984-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1984-03-25T01:00:00+00:00", "02:00:00", "BST", -60], + ["1984-10-28T00:59:59+00:00", "01:59:59", "BST", -60], + ["1984-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1985" : helpers.makeTestYear("Europe/London", [ + ["1985-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1985-03-31T01:00:00+00:00", "02:00:00", "BST", -60], + ["1985-10-27T00:59:59+00:00", "01:59:59", "BST", -60], + ["1985-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1986" : helpers.makeTestYear("Europe/London", [ + ["1986-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1986-03-30T01:00:00+00:00", "02:00:00", "BST", -60], + ["1986-10-26T00:59:59+00:00", "01:59:59", "BST", -60], + ["1986-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1987" : helpers.makeTestYear("Europe/London", [ + ["1987-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1987-03-29T01:00:00+00:00", "02:00:00", "BST", -60], + ["1987-10-25T00:59:59+00:00", "01:59:59", "BST", -60], + ["1987-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1988" : helpers.makeTestYear("Europe/London", [ + ["1988-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1988-03-27T01:00:00+00:00", "02:00:00", "BST", -60], + ["1988-10-23T00:59:59+00:00", "01:59:59", "BST", -60], + ["1988-10-23T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1989" : helpers.makeTestYear("Europe/London", [ + ["1989-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1989-03-26T01:00:00+00:00", "02:00:00", "BST", -60], + ["1989-10-29T00:59:59+00:00", "01:59:59", "BST", -60], + ["1989-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1990" : helpers.makeTestYear("Europe/London", [ + ["1990-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1990-03-25T01:00:00+00:00", "02:00:00", "BST", -60], + ["1990-10-28T00:59:59+00:00", "01:59:59", "BST", -60], + ["1990-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1991" : helpers.makeTestYear("Europe/London", [ + ["1991-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1991-03-31T01:00:00+00:00", "02:00:00", "BST", -60], + ["1991-10-27T00:59:59+00:00", "01:59:59", "BST", -60], + ["1991-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1992" : helpers.makeTestYear("Europe/London", [ + ["1992-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1992-03-29T01:00:00+00:00", "02:00:00", "BST", -60], + ["1992-10-25T00:59:59+00:00", "01:59:59", "BST", -60], + ["1992-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1993" : helpers.makeTestYear("Europe/London", [ + ["1993-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1993-03-28T01:00:00+00:00", "02:00:00", "BST", -60], + ["1993-10-24T00:59:59+00:00", "01:59:59", "BST", -60], + ["1993-10-24T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1994" : helpers.makeTestYear("Europe/London", [ + ["1994-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1994-03-27T01:00:00+00:00", "02:00:00", "BST", -60], + ["1994-10-23T00:59:59+00:00", "01:59:59", "BST", -60], + ["1994-10-23T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1995" : helpers.makeTestYear("Europe/London", [ + ["1995-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1995-03-26T01:00:00+00:00", "02:00:00", "BST", -60], + ["1995-10-22T00:59:59+00:00", "01:59:59", "BST", -60], + ["1995-10-22T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1996" : helpers.makeTestYear("Europe/London", [ + ["1996-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1996-03-31T01:00:00+00:00", "02:00:00", "BST", -60], + ["1996-10-27T00:59:59+00:00", "01:59:59", "BST", -60], + ["1996-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1997" : helpers.makeTestYear("Europe/London", [ + ["1997-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1997-03-30T01:00:00+00:00", "02:00:00", "BST", -60], + ["1997-10-26T00:59:59+00:00", "01:59:59", "BST", -60], + ["1997-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1998" : helpers.makeTestYear("Europe/London", [ + ["1998-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1998-03-29T01:00:00+00:00", "02:00:00", "BST", -60], + ["1998-10-25T00:59:59+00:00", "01:59:59", "BST", -60], + ["1998-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "1999" : helpers.makeTestYear("Europe/London", [ + ["1999-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["1999-03-28T01:00:00+00:00", "02:00:00", "BST", -60], + ["1999-10-31T00:59:59+00:00", "01:59:59", "BST", -60], + ["1999-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2000" : helpers.makeTestYear("Europe/London", [ + ["2000-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2000-03-26T01:00:00+00:00", "02:00:00", "BST", -60], + ["2000-10-29T00:59:59+00:00", "01:59:59", "BST", -60], + ["2000-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2001" : helpers.makeTestYear("Europe/London", [ + ["2001-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2001-03-25T01:00:00+00:00", "02:00:00", "BST", -60], + ["2001-10-28T00:59:59+00:00", "01:59:59", "BST", -60], + ["2001-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2002" : helpers.makeTestYear("Europe/London", [ + ["2002-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2002-03-31T01:00:00+00:00", "02:00:00", "BST", -60], + ["2002-10-27T00:59:59+00:00", "01:59:59", "BST", -60], + ["2002-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2003" : helpers.makeTestYear("Europe/London", [ + ["2003-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2003-03-30T01:00:00+00:00", "02:00:00", "BST", -60], + ["2003-10-26T00:59:59+00:00", "01:59:59", "BST", -60], + ["2003-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2004" : helpers.makeTestYear("Europe/London", [ + ["2004-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2004-03-28T01:00:00+00:00", "02:00:00", "BST", -60], + ["2004-10-31T00:59:59+00:00", "01:59:59", "BST", -60], + ["2004-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2005" : helpers.makeTestYear("Europe/London", [ + ["2005-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2005-03-27T01:00:00+00:00", "02:00:00", "BST", -60], + ["2005-10-30T00:59:59+00:00", "01:59:59", "BST", -60], + ["2005-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2006" : helpers.makeTestYear("Europe/London", [ + ["2006-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2006-03-26T01:00:00+00:00", "02:00:00", "BST", -60], + ["2006-10-29T00:59:59+00:00", "01:59:59", "BST", -60], + ["2006-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2007" : helpers.makeTestYear("Europe/London", [ + ["2007-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2007-03-25T01:00:00+00:00", "02:00:00", "BST", -60], + ["2007-10-28T00:59:59+00:00", "01:59:59", "BST", -60], + ["2007-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2008" : helpers.makeTestYear("Europe/London", [ + ["2008-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2008-03-30T01:00:00+00:00", "02:00:00", "BST", -60], + ["2008-10-26T00:59:59+00:00", "01:59:59", "BST", -60], + ["2008-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2009" : helpers.makeTestYear("Europe/London", [ + ["2009-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2009-03-29T01:00:00+00:00", "02:00:00", "BST", -60], + ["2009-10-25T00:59:59+00:00", "01:59:59", "BST", -60], + ["2009-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2010" : helpers.makeTestYear("Europe/London", [ + ["2010-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2010-03-28T01:00:00+00:00", "02:00:00", "BST", -60], + ["2010-10-31T00:59:59+00:00", "01:59:59", "BST", -60], + ["2010-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2011" : helpers.makeTestYear("Europe/London", [ + ["2011-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2011-03-27T01:00:00+00:00", "02:00:00", "BST", -60], + ["2011-10-30T00:59:59+00:00", "01:59:59", "BST", -60], + ["2011-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2012" : helpers.makeTestYear("Europe/London", [ + ["2012-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2012-03-25T01:00:00+00:00", "02:00:00", "BST", -60], + ["2012-10-28T00:59:59+00:00", "01:59:59", "BST", -60], + ["2012-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2013" : helpers.makeTestYear("Europe/London", [ + ["2013-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2013-03-31T01:00:00+00:00", "02:00:00", "BST", -60], + ["2013-10-27T00:59:59+00:00", "01:59:59", "BST", -60], + ["2013-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2014" : helpers.makeTestYear("Europe/London", [ + ["2014-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2014-03-30T01:00:00+00:00", "02:00:00", "BST", -60], + ["2014-10-26T00:59:59+00:00", "01:59:59", "BST", -60], + ["2014-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2015" : helpers.makeTestYear("Europe/London", [ + ["2015-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2015-03-29T01:00:00+00:00", "02:00:00", "BST", -60], + ["2015-10-25T00:59:59+00:00", "01:59:59", "BST", -60], + ["2015-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2016" : helpers.makeTestYear("Europe/London", [ + ["2016-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2016-03-27T01:00:00+00:00", "02:00:00", "BST", -60], + ["2016-10-30T00:59:59+00:00", "01:59:59", "BST", -60], + ["2016-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2017" : helpers.makeTestYear("Europe/London", [ + ["2017-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2017-03-26T01:00:00+00:00", "02:00:00", "BST", -60], + ["2017-10-29T00:59:59+00:00", "01:59:59", "BST", -60], + ["2017-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2018" : helpers.makeTestYear("Europe/London", [ + ["2018-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2018-03-25T01:00:00+00:00", "02:00:00", "BST", -60], + ["2018-10-28T00:59:59+00:00", "01:59:59", "BST", -60], + ["2018-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2019" : helpers.makeTestYear("Europe/London", [ + ["2019-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2019-03-31T01:00:00+00:00", "02:00:00", "BST", -60], + ["2019-10-27T00:59:59+00:00", "01:59:59", "BST", -60], + ["2019-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2020" : helpers.makeTestYear("Europe/London", [ + ["2020-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2020-03-29T01:00:00+00:00", "02:00:00", "BST", -60], + ["2020-10-25T00:59:59+00:00", "01:59:59", "BST", -60], + ["2020-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2021" : helpers.makeTestYear("Europe/London", [ + ["2021-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2021-03-28T01:00:00+00:00", "02:00:00", "BST", -60], + ["2021-10-31T00:59:59+00:00", "01:59:59", "BST", -60], + ["2021-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2022" : helpers.makeTestYear("Europe/London", [ + ["2022-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2022-03-27T01:00:00+00:00", "02:00:00", "BST", -60], + ["2022-10-30T00:59:59+00:00", "01:59:59", "BST", -60], + ["2022-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2023" : helpers.makeTestYear("Europe/London", [ + ["2023-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2023-03-26T01:00:00+00:00", "02:00:00", "BST", -60], + ["2023-10-29T00:59:59+00:00", "01:59:59", "BST", -60], + ["2023-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2024" : helpers.makeTestYear("Europe/London", [ + ["2024-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2024-03-31T01:00:00+00:00", "02:00:00", "BST", -60], + ["2024-10-27T00:59:59+00:00", "01:59:59", "BST", -60], + ["2024-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2025" : helpers.makeTestYear("Europe/London", [ + ["2025-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2025-03-30T01:00:00+00:00", "02:00:00", "BST", -60], + ["2025-10-26T00:59:59+00:00", "01:59:59", "BST", -60], + ["2025-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2026" : helpers.makeTestYear("Europe/London", [ + ["2026-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2026-03-29T01:00:00+00:00", "02:00:00", "BST", -60], + ["2026-10-25T00:59:59+00:00", "01:59:59", "BST", -60], + ["2026-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2027" : helpers.makeTestYear("Europe/London", [ + ["2027-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2027-03-28T01:00:00+00:00", "02:00:00", "BST", -60], + ["2027-10-31T00:59:59+00:00", "01:59:59", "BST", -60], + ["2027-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2028" : helpers.makeTestYear("Europe/London", [ + ["2028-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2028-03-26T01:00:00+00:00", "02:00:00", "BST", -60], + ["2028-10-29T00:59:59+00:00", "01:59:59", "BST", -60], + ["2028-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2029" : helpers.makeTestYear("Europe/London", [ + ["2029-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2029-03-25T01:00:00+00:00", "02:00:00", "BST", -60], + ["2029-10-28T00:59:59+00:00", "01:59:59", "BST", -60], + ["2029-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2030" : helpers.makeTestYear("Europe/London", [ + ["2030-03-31T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2030-03-31T01:00:00+00:00", "02:00:00", "BST", -60], + ["2030-10-27T00:59:59+00:00", "01:59:59", "BST", -60], + ["2030-10-27T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2031" : helpers.makeTestYear("Europe/London", [ + ["2031-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2031-03-30T01:00:00+00:00", "02:00:00", "BST", -60], + ["2031-10-26T00:59:59+00:00", "01:59:59", "BST", -60], + ["2031-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2032" : helpers.makeTestYear("Europe/London", [ + ["2032-03-28T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2032-03-28T01:00:00+00:00", "02:00:00", "BST", -60], + ["2032-10-31T00:59:59+00:00", "01:59:59", "BST", -60], + ["2032-10-31T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2033" : helpers.makeTestYear("Europe/London", [ + ["2033-03-27T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2033-03-27T01:00:00+00:00", "02:00:00", "BST", -60], + ["2033-10-30T00:59:59+00:00", "01:59:59", "BST", -60], + ["2033-10-30T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2034" : helpers.makeTestYear("Europe/London", [ + ["2034-03-26T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2034-03-26T01:00:00+00:00", "02:00:00", "BST", -60], + ["2034-10-29T00:59:59+00:00", "01:59:59", "BST", -60], + ["2034-10-29T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2035" : helpers.makeTestYear("Europe/London", [ + ["2035-03-25T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2035-03-25T01:00:00+00:00", "02:00:00", "BST", -60], + ["2035-10-28T00:59:59+00:00", "01:59:59", "BST", -60], + ["2035-10-28T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2036" : helpers.makeTestYear("Europe/London", [ + ["2036-03-30T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2036-03-30T01:00:00+00:00", "02:00:00", "BST", -60], + ["2036-10-26T00:59:59+00:00", "01:59:59", "BST", -60], + ["2036-10-26T01:00:00+00:00", "01:00:00", "GMT", 0] + ]), + + "2037" : helpers.makeTestYear("Europe/London", [ + ["2037-03-29T00:59:59+00:00", "00:59:59", "GMT", 0], + ["2037-03-29T01:00:00+00:00", "02:00:00", "BST", -60], + ["2037-10-25T00:59:59+00:00", "01:59:59", "BST", -60], + ["2037-10-25T01:00:00+00:00", "01:00:00", "GMT", 0] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/luxembourg.js b/tests/zones/europe/luxembourg.js new file mode 100644 index 00000000..a45dacee --- /dev/null +++ b/tests/zones/europe/luxembourg.js @@ -0,0 +1,647 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Luxembourg"] = { + "1904" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1904-05-31T23:35:23+00:00", "23:59:59", "LMT", -1476 / 60], + ["1904-05-31T23:35:24+00:00", "00:35:24", "CET", -60] + ]), + + "1916" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1916-05-14T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-05-14T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1917-04-28T21:59:59+00:00", "22:59:59", "CET", -60], + ["1917-04-28T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1917-09-16T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1917-09-16T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1918-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-16T01:00:00+00:00", "02:00:00", "CET", -60], + ["1918-11-24T22:59:59+00:00", "23:59:59", "CET", -60], + ["1918-11-24T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1919" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1919-03-01T22:59:59+00:00", "22:59:59", "WET", 0], + ["1919-03-01T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1919-10-05T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1919-10-05T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1920" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1920-02-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1920-02-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1920-10-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1920-10-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1921" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1921-03-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1921-03-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1921-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1921-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1922" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1922-03-25T22:59:59+00:00", "22:59:59", "WET", 0], + ["1922-03-25T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1922-10-07T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1922-10-08T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1923" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1923-04-21T22:59:59+00:00", "22:59:59", "WET", 0], + ["1923-04-21T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1923-10-07T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1923-10-07T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1924" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1924-03-29T22:59:59+00:00", "22:59:59", "WET", 0], + ["1924-03-29T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1924-10-04T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1924-10-05T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1925" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1925-04-05T22:59:59+00:00", "22:59:59", "WET", 0], + ["1925-04-05T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1925-10-03T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1925-10-04T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1926" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1926-04-17T22:59:59+00:00", "22:59:59", "WET", 0], + ["1926-04-17T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1926-10-02T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1926-10-03T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1927" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1927-04-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1927-04-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1927-10-01T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1927-10-02T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1928" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1928-04-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1928-04-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1928-10-06T23:59:59+00:00", "00:59:59", "WEST", -60], + ["1928-10-07T00:00:00+00:00", "00:00:00", "WET", 0] + ]), + + "1929" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1929-04-20T22:59:59+00:00", "22:59:59", "WET", 0], + ["1929-04-20T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1929-10-06T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1929-10-06T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1930" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1930-04-13T01:59:59+00:00", "01:59:59", "WET", 0], + ["1930-04-13T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1930-10-05T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1930-10-05T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1931" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1931-04-19T01:59:59+00:00", "01:59:59", "WET", 0], + ["1931-04-19T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1931-10-04T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1931-10-04T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1932" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1932-04-03T01:59:59+00:00", "01:59:59", "WET", 0], + ["1932-04-03T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1932-10-02T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1932-10-02T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1933" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1933-03-26T01:59:59+00:00", "01:59:59", "WET", 0], + ["1933-03-26T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1933-10-08T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1933-10-08T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1934" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1934-04-08T01:59:59+00:00", "01:59:59", "WET", 0], + ["1934-04-08T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1934-10-07T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1934-10-07T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1935" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1935-03-31T01:59:59+00:00", "01:59:59", "WET", 0], + ["1935-03-31T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1935-10-06T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1935-10-06T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1936" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1936-04-19T01:59:59+00:00", "01:59:59", "WET", 0], + ["1936-04-19T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1936-10-04T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1936-10-04T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1937" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1937-04-04T01:59:59+00:00", "01:59:59", "WET", 0], + ["1937-04-04T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1937-10-03T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1937-10-03T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1938" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1938-03-27T01:59:59+00:00", "01:59:59", "WET", 0], + ["1938-03-27T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1938-10-02T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1938-10-02T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1939" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1939-04-16T01:59:59+00:00", "01:59:59", "WET", 0], + ["1939-04-16T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1939-11-19T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1939-11-19T02:00:00+00:00", "02:00:00", "WET", 0] + ]), + + "1940" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1940-02-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["1940-02-25T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1940-05-14T01:59:59+00:00", "02:59:59", "WEST", -60], + ["1940-05-14T02:00:00+00:00", "04:00:00", "WEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "WEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "WET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "WET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "WEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "WEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "WET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "WET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "WEST", -120], + ["1944-09-18T00:59:59+00:00", "02:59:59", "WEST", -120], + ["1944-09-18T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1946-05-19T00:59:59+00:00", "01:59:59", "CET", -60], + ["1946-05-19T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1946-10-07T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-10-07T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1977-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1977-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1977-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1977-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1978-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1978-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1978-10-01T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1978-10-01T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1979-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1979-04-01T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1979-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1979-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Luxembourg", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Luxembourg", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/madrid.js b/tests/zones/europe/madrid.js new file mode 100644 index 00000000..56dafa1f --- /dev/null +++ b/tests/zones/europe/madrid.js @@ -0,0 +1,577 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Madrid"] = { + "1917" : helpers.makeTestYear("Europe/Madrid", [ + ["1917-05-05T22:59:59+00:00", "22:59:59", "WET", 0], + ["1917-05-05T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1917-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1917-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1918" : helpers.makeTestYear("Europe/Madrid", [ + ["1918-04-15T22:59:59+00:00", "22:59:59", "WET", 0], + ["1918-04-15T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1918-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1918-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1919" : helpers.makeTestYear("Europe/Madrid", [ + ["1919-04-05T22:59:59+00:00", "22:59:59", "WET", 0], + ["1919-04-05T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1919-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1919-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1924" : helpers.makeTestYear("Europe/Madrid", [ + ["1924-04-16T22:59:59+00:00", "22:59:59", "WET", 0], + ["1924-04-16T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1924-10-04T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1924-10-04T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1926" : helpers.makeTestYear("Europe/Madrid", [ + ["1926-04-17T22:59:59+00:00", "22:59:59", "WET", 0], + ["1926-04-17T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1926-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1926-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1927" : helpers.makeTestYear("Europe/Madrid", [ + ["1927-04-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1927-04-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1927-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1927-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1928" : helpers.makeTestYear("Europe/Madrid", [ + ["1928-04-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1928-04-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1928-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1928-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1929" : helpers.makeTestYear("Europe/Madrid", [ + ["1929-04-20T22:59:59+00:00", "22:59:59", "WET", 0], + ["1929-04-20T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1929-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1929-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1937" : helpers.makeTestYear("Europe/Madrid", [ + ["1937-05-22T22:59:59+00:00", "22:59:59", "WET", 0], + ["1937-05-22T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1937-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1937-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1938" : helpers.makeTestYear("Europe/Madrid", [ + ["1938-03-22T22:59:59+00:00", "22:59:59", "WET", 0], + ["1938-03-22T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1938-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1938-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1939" : helpers.makeTestYear("Europe/Madrid", [ + ["1939-04-15T22:59:59+00:00", "22:59:59", "WET", 0], + ["1939-04-15T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1939-10-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1939-10-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1940" : helpers.makeTestYear("Europe/Madrid", [ + ["1940-03-16T22:59:59+00:00", "22:59:59", "WET", 0], + ["1940-03-16T23:00:00+00:00", "00:00:00", "WEST", -60] + ]), + + "1942" : helpers.makeTestYear("Europe/Madrid", [ + ["1942-05-02T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1942-05-02T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1942-09-01T21:59:59+00:00", "23:59:59", "WEMT", -120], + ["1942-09-01T22:00:00+00:00", "23:00:00", "WEST", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Madrid", [ + ["1943-04-17T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1943-04-17T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1943-10-03T21:59:59+00:00", "23:59:59", "WEMT", -120], + ["1943-10-03T22:00:00+00:00", "23:00:00", "WEST", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Madrid", [ + ["1944-04-15T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1944-04-15T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1944-10-10T21:59:59+00:00", "23:59:59", "WEMT", -120], + ["1944-10-10T22:00:00+00:00", "23:00:00", "WEST", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Madrid", [ + ["1945-04-14T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1945-04-14T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1945-09-29T22:59:59+00:00", "00:59:59", "WEMT", -120], + ["1945-09-29T23:00:00+00:00", "00:00:00", "WEST", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Madrid", [ + ["1946-04-13T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1946-04-13T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1946-09-29T21:59:59+00:00", "23:59:59", "WEMT", -120], + ["1946-09-29T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1949" : helpers.makeTestYear("Europe/Madrid", [ + ["1949-04-30T21:59:59+00:00", "22:59:59", "CET", -60], + ["1949-04-30T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1949-09-29T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1949-09-29T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1974" : helpers.makeTestYear("Europe/Madrid", [ + ["1974-04-13T21:59:59+00:00", "22:59:59", "CET", -60], + ["1974-04-13T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1974-10-05T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1974-10-05T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1975" : helpers.makeTestYear("Europe/Madrid", [ + ["1975-04-19T21:59:59+00:00", "22:59:59", "CET", -60], + ["1975-04-19T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1975-10-04T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1975-10-04T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1976" : helpers.makeTestYear("Europe/Madrid", [ + ["1976-03-27T21:59:59+00:00", "22:59:59", "CET", -60], + ["1976-03-27T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1976-09-25T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1976-09-25T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Madrid", [ + ["1977-04-02T21:59:59+00:00", "22:59:59", "CET", -60], + ["1977-04-02T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1977-09-24T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1977-09-24T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Madrid", [ + ["1978-04-02T21:59:59+00:00", "22:59:59", "CET", -60], + ["1978-04-02T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1978-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1978-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Madrid", [ + ["1979-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1979-04-01T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1979-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1979-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Madrid", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Madrid", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Madrid", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Madrid", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Madrid", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Madrid", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Madrid", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Madrid", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Madrid", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Madrid", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Madrid", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Madrid", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Madrid", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Madrid", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Madrid", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Madrid", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Madrid", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Madrid", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Madrid", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Madrid", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Madrid", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Madrid", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Madrid", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Madrid", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Madrid", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Madrid", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Madrid", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Madrid", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Madrid", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Madrid", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Madrid", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Madrid", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Madrid", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Madrid", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Madrid", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Madrid", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Madrid", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Madrid", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Madrid", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Madrid", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Madrid", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Madrid", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Madrid", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Madrid", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Madrid", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Madrid", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Madrid", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Madrid", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Madrid", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Madrid", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Madrid", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Madrid", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Madrid", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Madrid", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Madrid", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Madrid", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Madrid", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Madrid", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/malta.js b/tests/zones/europe/malta.js new file mode 100644 index 00000000..131f201b --- /dev/null +++ b/tests/zones/europe/malta.js @@ -0,0 +1,596 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Malta"] = { + "1916" : helpers.makeTestYear("Europe/Malta", [ + ["1916-06-02T22:59:59+00:00", "23:59:59", "CET", -60], + ["1916-06-02T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Malta", [ + ["1917-03-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1917-03-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1917-09-29T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1917-09-29T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Malta", [ + ["1918-03-09T22:59:59+00:00", "23:59:59", "CET", -60], + ["1918-03-09T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1918-10-05T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1918-10-05T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1919" : helpers.makeTestYear("Europe/Malta", [ + ["1919-03-01T22:59:59+00:00", "23:59:59", "CET", -60], + ["1919-03-01T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1919-10-04T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1919-10-04T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1920" : helpers.makeTestYear("Europe/Malta", [ + ["1920-03-20T22:59:59+00:00", "23:59:59", "CET", -60], + ["1920-03-20T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1920-09-18T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1920-09-18T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Malta", [ + ["1940-06-14T22:59:59+00:00", "23:59:59", "CET", -60], + ["1940-06-14T23:00:00+00:00", "01:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Malta", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Malta", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Malta", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Malta", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-09-14T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1945-09-14T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Malta", [ + ["1946-03-17T00:59:59+00:00", "01:59:59", "CET", -60], + ["1946-03-17T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1946-10-06T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-10-06T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1947" : helpers.makeTestYear("Europe/Malta", [ + ["1947-03-15T22:59:59+00:00", "23:59:59", "CET", -60], + ["1947-03-15T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1947-10-04T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1947-10-04T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1948" : helpers.makeTestYear("Europe/Malta", [ + ["1948-02-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1948-02-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1948-10-03T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1948-10-03T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1966" : helpers.makeTestYear("Europe/Malta", [ + ["1966-05-21T22:59:59+00:00", "23:59:59", "CET", -60], + ["1966-05-21T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1966-09-24T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1966-09-24T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1967" : helpers.makeTestYear("Europe/Malta", [ + ["1967-05-27T22:59:59+00:00", "23:59:59", "CET", -60], + ["1967-05-27T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1967-09-23T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1967-09-23T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1968" : helpers.makeTestYear("Europe/Malta", [ + ["1968-05-25T22:59:59+00:00", "23:59:59", "CET", -60], + ["1968-05-25T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1968-09-21T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1968-09-21T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1969" : helpers.makeTestYear("Europe/Malta", [ + ["1969-05-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1969-05-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1969-09-27T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1969-09-27T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1970" : helpers.makeTestYear("Europe/Malta", [ + ["1970-05-30T22:59:59+00:00", "23:59:59", "CET", -60], + ["1970-05-30T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1970-09-26T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1970-09-26T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1971" : helpers.makeTestYear("Europe/Malta", [ + ["1971-05-22T22:59:59+00:00", "23:59:59", "CET", -60], + ["1971-05-22T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1971-09-25T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1971-09-25T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1972" : helpers.makeTestYear("Europe/Malta", [ + ["1972-05-27T22:59:59+00:00", "23:59:59", "CET", -60], + ["1972-05-27T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1972-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1972-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1973" : helpers.makeTestYear("Europe/Malta", [ + ["1973-03-30T22:59:59+00:00", "23:59:59", "CET", -60], + ["1973-03-30T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1973-09-28T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1973-09-28T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1974" : helpers.makeTestYear("Europe/Malta", [ + ["1974-04-20T22:59:59+00:00", "23:59:59", "CET", -60], + ["1974-04-20T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1974-09-15T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1974-09-15T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1975" : helpers.makeTestYear("Europe/Malta", [ + ["1975-04-20T00:59:59+00:00", "01:59:59", "CET", -60], + ["1975-04-20T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1975-09-20T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1975-09-21T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1976" : helpers.makeTestYear("Europe/Malta", [ + ["1976-04-18T00:59:59+00:00", "01:59:59", "CET", -60], + ["1976-04-18T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1976-09-18T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1976-09-19T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Malta", [ + ["1977-04-17T00:59:59+00:00", "01:59:59", "CET", -60], + ["1977-04-17T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1977-09-17T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1977-09-18T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Malta", [ + ["1978-04-16T00:59:59+00:00", "01:59:59", "CET", -60], + ["1978-04-16T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1978-09-16T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1978-09-17T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Malta", [ + ["1979-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1979-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1979-09-15T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1979-09-16T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Malta", [ + ["1980-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-20T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1980-09-21T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Malta", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Malta", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Malta", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Malta", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Malta", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Malta", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Malta", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Malta", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Malta", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Malta", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Malta", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Malta", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Malta", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Malta", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Malta", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Malta", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Malta", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Malta", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Malta", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Malta", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Malta", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Malta", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Malta", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Malta", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Malta", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Malta", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Malta", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Malta", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Malta", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Malta", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Malta", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Malta", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Malta", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Malta", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Malta", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Malta", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Malta", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Malta", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Malta", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Malta", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Malta", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Malta", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Malta", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Malta", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Malta", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Malta", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Malta", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Malta", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Malta", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Malta", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Malta", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Malta", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Malta", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Malta", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Malta", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Malta", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Malta", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/minsk.js b/tests/zones/europe/minsk.js new file mode 100644 index 00000000..040760ae --- /dev/null +++ b/tests/zones/europe/minsk.js @@ -0,0 +1,247 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Minsk"] = { + "1924" : helpers.makeTestYear("Europe/Minsk", [ + ["1924-05-01T22:09:59+00:00", "23:59:59", "MMT", -110], + ["1924-05-01T22:10:00+00:00", "00:10:00", "EET", -120] + ]), + + "1930" : helpers.makeTestYear("Europe/Minsk", [ + ["1930-06-20T21:59:59+00:00", "23:59:59", "EET", -120], + ["1930-06-20T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1941" : helpers.makeTestYear("Europe/Minsk", [ + ["1941-06-27T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1941-06-27T21:00:00+00:00", "23:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Minsk", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Minsk", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Minsk", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-07-02T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1944-07-02T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Minsk", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Minsk", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Minsk", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Minsk", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Minsk", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Minsk", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Minsk", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Minsk", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Minsk", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1991" : helpers.makeTestYear("Europe/Minsk", [ + ["1991-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1991-03-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1991-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1991-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Minsk", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-26T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1992-09-26T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Minsk", [ + ["1993-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["1993-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1993-09-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1993-09-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Minsk", [ + ["1994-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1994-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1994-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1994-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Minsk", [ + ["1995-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["1995-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1995-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1995-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Minsk", [ + ["1996-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1996-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1996-10-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1996-10-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Minsk", [ + ["1997-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["1997-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1997-10-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1997-10-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Minsk", [ + ["1998-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1998-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1998-10-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1998-10-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Minsk", [ + ["1999-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["1999-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1999-10-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1999-10-31T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Minsk", [ + ["2000-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["2000-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2000-10-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2000-10-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Minsk", [ + ["2001-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["2001-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2001-10-27T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2001-10-28T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Minsk", [ + ["2002-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["2002-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2002-10-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2002-10-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Minsk", [ + ["2003-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["2003-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2003-10-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2003-10-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Minsk", [ + ["2004-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["2004-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2004-10-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2004-10-31T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Minsk", [ + ["2005-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["2005-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2005-10-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2005-10-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Minsk", [ + ["2006-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["2006-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2006-10-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2006-10-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Minsk", [ + ["2007-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["2007-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2007-10-27T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2007-10-28T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Minsk", [ + ["2008-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["2008-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2008-10-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2008-10-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Minsk", [ + ["2009-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["2009-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2009-10-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2009-10-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Minsk", [ + ["2010-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["2010-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["2010-10-30T23:59:59+00:00", "02:59:59", "EEST", -180], + ["2010-10-31T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Minsk", [ + ["2011-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["2011-03-27T00:00:00+00:00", "03:00:00", "FET", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/monaco.js b/tests/zones/europe/monaco.js new file mode 100644 index 00000000..31fba1b4 --- /dev/null +++ b/tests/zones/europe/monaco.js @@ -0,0 +1,652 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Monaco"] = { + "1911" : helpers.makeTestYear("Europe/Monaco", [ + ["1911-03-10T23:50:38+00:00", "23:59:59", "PMT", -561 / 60], + ["1911-03-10T23:50:39+00:00", "23:50:39", "WET", 0] + ]), + + "1916" : helpers.makeTestYear("Europe/Monaco", [ + ["1916-06-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1916-06-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1916-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1916-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1917" : helpers.makeTestYear("Europe/Monaco", [ + ["1917-03-24T22:59:59+00:00", "22:59:59", "WET", 0], + ["1917-03-24T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1917-10-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1917-10-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1918" : helpers.makeTestYear("Europe/Monaco", [ + ["1918-03-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1918-03-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1918-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1918-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1919" : helpers.makeTestYear("Europe/Monaco", [ + ["1919-03-01T22:59:59+00:00", "22:59:59", "WET", 0], + ["1919-03-01T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1919-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1919-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1920" : helpers.makeTestYear("Europe/Monaco", [ + ["1920-02-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1920-02-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1920-10-23T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1920-10-23T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1921" : helpers.makeTestYear("Europe/Monaco", [ + ["1921-03-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1921-03-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1921-10-25T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1921-10-25T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1922" : helpers.makeTestYear("Europe/Monaco", [ + ["1922-03-25T22:59:59+00:00", "22:59:59", "WET", 0], + ["1922-03-25T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1922-10-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1922-10-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1923" : helpers.makeTestYear("Europe/Monaco", [ + ["1923-05-26T22:59:59+00:00", "22:59:59", "WET", 0], + ["1923-05-26T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1923-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1923-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1924" : helpers.makeTestYear("Europe/Monaco", [ + ["1924-03-29T22:59:59+00:00", "22:59:59", "WET", 0], + ["1924-03-29T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1924-10-04T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1924-10-04T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1925" : helpers.makeTestYear("Europe/Monaco", [ + ["1925-04-04T22:59:59+00:00", "22:59:59", "WET", 0], + ["1925-04-04T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1925-10-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1925-10-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1926" : helpers.makeTestYear("Europe/Monaco", [ + ["1926-04-17T22:59:59+00:00", "22:59:59", "WET", 0], + ["1926-04-17T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1926-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1926-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1927" : helpers.makeTestYear("Europe/Monaco", [ + ["1927-04-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1927-04-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1927-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1927-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1928" : helpers.makeTestYear("Europe/Monaco", [ + ["1928-04-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1928-04-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1928-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1928-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1929" : helpers.makeTestYear("Europe/Monaco", [ + ["1929-04-20T22:59:59+00:00", "22:59:59", "WET", 0], + ["1929-04-20T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1929-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1929-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1930" : helpers.makeTestYear("Europe/Monaco", [ + ["1930-04-12T22:59:59+00:00", "22:59:59", "WET", 0], + ["1930-04-12T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1930-10-04T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1930-10-04T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1931" : helpers.makeTestYear("Europe/Monaco", [ + ["1931-04-18T22:59:59+00:00", "22:59:59", "WET", 0], + ["1931-04-18T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1931-10-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1931-10-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1932" : helpers.makeTestYear("Europe/Monaco", [ + ["1932-04-02T22:59:59+00:00", "22:59:59", "WET", 0], + ["1932-04-02T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1932-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1932-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1933" : helpers.makeTestYear("Europe/Monaco", [ + ["1933-03-25T22:59:59+00:00", "22:59:59", "WET", 0], + ["1933-03-25T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1933-10-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1933-10-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1934" : helpers.makeTestYear("Europe/Monaco", [ + ["1934-04-07T22:59:59+00:00", "22:59:59", "WET", 0], + ["1934-04-07T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1934-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1934-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1935" : helpers.makeTestYear("Europe/Monaco", [ + ["1935-03-30T22:59:59+00:00", "22:59:59", "WET", 0], + ["1935-03-30T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1935-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1935-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1936" : helpers.makeTestYear("Europe/Monaco", [ + ["1936-04-18T22:59:59+00:00", "22:59:59", "WET", 0], + ["1936-04-18T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1936-10-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1936-10-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1937" : helpers.makeTestYear("Europe/Monaco", [ + ["1937-04-03T22:59:59+00:00", "22:59:59", "WET", 0], + ["1937-04-03T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1937-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1937-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1938" : helpers.makeTestYear("Europe/Monaco", [ + ["1938-03-26T22:59:59+00:00", "22:59:59", "WET", 0], + ["1938-03-26T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1938-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1938-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1939" : helpers.makeTestYear("Europe/Monaco", [ + ["1939-04-15T22:59:59+00:00", "22:59:59", "WET", 0], + ["1939-04-15T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1939-11-18T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1939-11-18T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1940" : helpers.makeTestYear("Europe/Monaco", [ + ["1940-02-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["1940-02-25T02:00:00+00:00", "03:00:00", "WEST", -60] + ]), + + "1941" : helpers.makeTestYear("Europe/Monaco", [ + ["1941-05-04T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1941-05-04T23:00:00+00:00", "01:00:00", "WEMT", -120], + ["1941-10-05T21:59:59+00:00", "23:59:59", "WEMT", -120], + ["1941-10-05T22:00:00+00:00", "23:00:00", "WEST", -60] + ]), + + "1942" : helpers.makeTestYear("Europe/Monaco", [ + ["1942-03-08T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1942-03-08T23:00:00+00:00", "01:00:00", "WEMT", -120], + ["1942-11-02T00:59:59+00:00", "02:59:59", "WEMT", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "WEST", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Monaco", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "WEMT", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "WEMT", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "WEST", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Monaco", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "WEMT", -120], + ["1944-10-07T22:59:59+00:00", "00:59:59", "WEMT", -120], + ["1944-10-07T23:00:00+00:00", "00:00:00", "WEST", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Monaco", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "WEMT", -120], + ["1945-09-16T00:59:59+00:00", "02:59:59", "WEMT", -120], + ["1945-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1976" : helpers.makeTestYear("Europe/Monaco", [ + ["1976-03-27T23:59:59+00:00", "00:59:59", "CET", -60], + ["1976-03-28T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1976-09-25T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1976-09-25T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Monaco", [ + ["1977-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1977-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1977-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1977-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Monaco", [ + ["1978-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1978-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1978-10-01T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1978-10-01T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Monaco", [ + ["1979-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1979-04-01T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1979-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1979-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Monaco", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Monaco", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Monaco", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Monaco", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Monaco", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Monaco", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Monaco", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Monaco", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Monaco", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Monaco", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Monaco", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Monaco", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Monaco", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Monaco", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Monaco", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Monaco", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Monaco", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Monaco", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Monaco", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Monaco", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Monaco", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Monaco", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Monaco", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Monaco", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Monaco", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Monaco", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Monaco", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Monaco", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Monaco", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Monaco", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Monaco", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Monaco", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Monaco", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Monaco", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Monaco", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Monaco", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Monaco", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Monaco", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Monaco", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Monaco", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Monaco", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Monaco", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Monaco", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Monaco", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Monaco", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Monaco", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Monaco", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Monaco", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Monaco", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Monaco", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Monaco", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Monaco", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Monaco", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Monaco", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Monaco", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Monaco", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Monaco", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Monaco", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/moscow.js b/tests/zones/europe/moscow.js new file mode 100644 index 00000000..c9f39bf9 --- /dev/null +++ b/tests/zones/europe/moscow.js @@ -0,0 +1,271 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Moscow"] = { + "1916" : helpers.makeTestYear("Europe/Moscow", [ + ["1916-07-02T21:29:59+00:00", "23:59:59", "MMT", -150], + ["1916-07-02T21:30:00+00:00", "00:00:48", "MMT", -9048 / 60] + ]), + + "1917" : helpers.makeTestYear("Europe/Moscow", [ + ["1917-07-01T20:29:11+00:00", "22:59:59", "MMT", -9048 / 60], + ["1917-07-01T20:29:12+00:00", "00:00:00", "MST", -12648 / 60], + ["1917-12-27T20:29:11+00:00", "23:59:59", "MST", -12648 / 60], + ["1917-12-27T20:29:12+00:00", "23:00:00", "MMT", -9048 / 60] + ]), + + "1918" : helpers.makeTestYear("Europe/Moscow", [ + ["1918-05-31T19:29:11+00:00", "21:59:59", "MMT", -9048 / 60], + ["1918-05-31T19:29:12+00:00", "00:00:00", "MDST", -16248 / 60], + ["1918-09-15T20:29:11+00:00", "00:59:59", "MDST", -16248 / 60], + ["1918-09-15T20:29:12+00:00", "00:00:00", "MST", -12648 / 60] + ]), + + "1919" : helpers.makeTestYear("Europe/Moscow", [ + ["1919-05-31T19:29:11+00:00", "22:59:59", "MST", -12648 / 60], + ["1919-05-31T19:29:12+00:00", "00:00:00", "MDST", -16248 / 60], + ["1919-06-30T21:29:11+00:00", "01:59:59", "MDST", -16248 / 60], + ["1919-06-30T21:29:12+00:00", "01:29:12", "MSD", -240], + ["1919-08-15T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1919-08-15T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1921" : helpers.makeTestYear("Europe/Moscow", [ + ["1921-02-14T19:59:59+00:00", "22:59:59", "MSK", -180], + ["1921-02-14T20:00:00+00:00", "00:00:00", "MSD", -240], + ["1921-03-20T18:59:59+00:00", "22:59:59", "MSD", -240], + ["1921-03-20T19:00:00+00:00", "00:00:00", "MSD", -300], + ["1921-08-31T18:59:59+00:00", "23:59:59", "MSD", -300], + ["1921-08-31T19:00:00+00:00", "23:00:00", "MSD", -240], + ["1921-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1921-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1922" : helpers.makeTestYear("Europe/Moscow", [ + ["1922-09-30T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1922-09-30T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1930" : helpers.makeTestYear("Europe/Moscow", [ + ["1930-06-20T21:59:59+00:00", "23:59:59", "EET", -120], + ["1930-06-20T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Moscow", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Moscow", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Moscow", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Moscow", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Moscow", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Moscow", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Moscow", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Moscow", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Moscow", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Moscow", [ + ["1990-03-24T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1990-03-24T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1990-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1990-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1991" : helpers.makeTestYear("Europe/Moscow", [ + ["1991-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1991-03-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1991-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1991-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Moscow", [ + ["1992-01-18T23:59:59+00:00", "01:59:59", "EET", -120], + ["1992-01-19T00:00:00+00:00", "03:00:00", "MSK", -180], + ["1992-03-28T19:59:59+00:00", "22:59:59", "MSK", -180], + ["1992-03-28T20:00:00+00:00", "00:00:00", "MSD", -240], + ["1992-09-26T18:59:59+00:00", "22:59:59", "MSD", -240], + ["1992-09-26T19:00:00+00:00", "22:00:00", "MSK", -180] + ]), + + "1993" : helpers.makeTestYear("Europe/Moscow", [ + ["1993-03-27T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1993-03-27T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1993-09-25T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1993-09-25T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1994" : helpers.makeTestYear("Europe/Moscow", [ + ["1994-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1994-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1994-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1994-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1995" : helpers.makeTestYear("Europe/Moscow", [ + ["1995-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1995-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1995-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1995-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1996" : helpers.makeTestYear("Europe/Moscow", [ + ["1996-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1996-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1996-10-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1996-10-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1997" : helpers.makeTestYear("Europe/Moscow", [ + ["1997-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1997-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1997-10-25T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1997-10-25T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1998" : helpers.makeTestYear("Europe/Moscow", [ + ["1998-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1998-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1998-10-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1998-10-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1999" : helpers.makeTestYear("Europe/Moscow", [ + ["1999-03-27T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1999-03-27T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1999-10-30T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1999-10-30T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2000" : helpers.makeTestYear("Europe/Moscow", [ + ["2000-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2000-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2000-10-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2000-10-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2001" : helpers.makeTestYear("Europe/Moscow", [ + ["2001-03-24T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2001-03-24T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2001-10-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2001-10-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2002" : helpers.makeTestYear("Europe/Moscow", [ + ["2002-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2002-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2002-10-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2002-10-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2003" : helpers.makeTestYear("Europe/Moscow", [ + ["2003-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2003-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2003-10-25T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2003-10-25T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2004" : helpers.makeTestYear("Europe/Moscow", [ + ["2004-03-27T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2004-03-27T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2004-10-30T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2004-10-30T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2005" : helpers.makeTestYear("Europe/Moscow", [ + ["2005-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2005-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2005-10-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2005-10-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2006" : helpers.makeTestYear("Europe/Moscow", [ + ["2006-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2006-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2006-10-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2006-10-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2007" : helpers.makeTestYear("Europe/Moscow", [ + ["2007-03-24T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2007-03-24T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2007-10-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2007-10-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2008" : helpers.makeTestYear("Europe/Moscow", [ + ["2008-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2008-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2008-10-25T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2008-10-25T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2009" : helpers.makeTestYear("Europe/Moscow", [ + ["2009-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2009-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2009-10-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2009-10-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2010" : helpers.makeTestYear("Europe/Moscow", [ + ["2010-03-27T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2010-03-27T23:00:00+00:00", "03:00:00", "MSD", -240], + ["2010-10-30T22:59:59+00:00", "02:59:59", "MSD", -240], + ["2010-10-30T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "2011" : helpers.makeTestYear("Europe/Moscow", [ + ["2011-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["2011-03-26T23:00:00+00:00", "03:00:00", "MSK", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/oslo.js b/tests/zones/europe/oslo.js new file mode 100644 index 00000000..6745cb8e --- /dev/null +++ b/tests/zones/europe/oslo.js @@ -0,0 +1,498 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Oslo"] = { + "1916" : helpers.makeTestYear("Europe/Oslo", [ + ["1916-05-21T23:59:59+00:00", "00:59:59", "CET", -60], + ["1916-05-22T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1916-09-29T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1916-09-29T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Oslo", [ + ["1940-08-10T21:59:59+00:00", "22:59:59", "CET", -60], + ["1940-08-10T22:00:00+00:00", "00:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Oslo", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Oslo", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Oslo", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Oslo", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-10-01T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-10-01T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1959" : helpers.makeTestYear("Europe/Oslo", [ + ["1959-03-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1959-03-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1959-09-20T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1959-09-20T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1960" : helpers.makeTestYear("Europe/Oslo", [ + ["1960-03-20T00:59:59+00:00", "01:59:59", "CET", -60], + ["1960-03-20T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1960-09-18T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1960-09-18T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1961" : helpers.makeTestYear("Europe/Oslo", [ + ["1961-03-19T00:59:59+00:00", "01:59:59", "CET", -60], + ["1961-03-19T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1961-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1961-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1962" : helpers.makeTestYear("Europe/Oslo", [ + ["1962-03-18T00:59:59+00:00", "01:59:59", "CET", -60], + ["1962-03-18T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1962-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1962-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1963" : helpers.makeTestYear("Europe/Oslo", [ + ["1963-03-17T00:59:59+00:00", "01:59:59", "CET", -60], + ["1963-03-17T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1963-09-15T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1963-09-15T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1964" : helpers.makeTestYear("Europe/Oslo", [ + ["1964-03-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1964-03-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1964-09-20T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1964-09-20T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1965" : helpers.makeTestYear("Europe/Oslo", [ + ["1965-04-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1965-04-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1965-09-19T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1965-09-19T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Oslo", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Oslo", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Oslo", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Oslo", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Oslo", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Oslo", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Oslo", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Oslo", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Oslo", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Oslo", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Oslo", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Oslo", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Oslo", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Oslo", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Oslo", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Oslo", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Oslo", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Oslo", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Oslo", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Oslo", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Oslo", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Oslo", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Oslo", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Oslo", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Oslo", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Oslo", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Oslo", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Oslo", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Oslo", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Oslo", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Oslo", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Oslo", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Oslo", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Oslo", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Oslo", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Oslo", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Oslo", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Oslo", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Oslo", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Oslo", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Oslo", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Oslo", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Oslo", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Oslo", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Oslo", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Oslo", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Oslo", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Oslo", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Oslo", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Oslo", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Oslo", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Oslo", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Oslo", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Oslo", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Oslo", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Oslo", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Oslo", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Oslo", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/paris.js b/tests/zones/europe/paris.js new file mode 100644 index 00000000..925b7d4c --- /dev/null +++ b/tests/zones/europe/paris.js @@ -0,0 +1,647 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Paris"] = { + "1911" : helpers.makeTestYear("Europe/Paris", [ + ["1911-03-10T23:51:38+00:00", "00:00:59", "PMT", -561 / 60], + ["1911-03-10T23:51:39+00:00", "23:51:39", "WET", 0] + ]), + + "1916" : helpers.makeTestYear("Europe/Paris", [ + ["1916-06-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1916-06-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1916-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1916-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1917" : helpers.makeTestYear("Europe/Paris", [ + ["1917-03-24T22:59:59+00:00", "22:59:59", "WET", 0], + ["1917-03-24T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1917-10-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1917-10-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1918" : helpers.makeTestYear("Europe/Paris", [ + ["1918-03-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1918-03-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1918-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1918-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1919" : helpers.makeTestYear("Europe/Paris", [ + ["1919-03-01T22:59:59+00:00", "22:59:59", "WET", 0], + ["1919-03-01T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1919-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1919-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1920" : helpers.makeTestYear("Europe/Paris", [ + ["1920-02-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1920-02-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1920-10-23T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1920-10-23T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1921" : helpers.makeTestYear("Europe/Paris", [ + ["1921-03-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1921-03-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1921-10-25T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1921-10-25T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1922" : helpers.makeTestYear("Europe/Paris", [ + ["1922-03-25T22:59:59+00:00", "22:59:59", "WET", 0], + ["1922-03-25T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1922-10-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1922-10-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1923" : helpers.makeTestYear("Europe/Paris", [ + ["1923-05-26T22:59:59+00:00", "22:59:59", "WET", 0], + ["1923-05-26T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1923-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1923-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1924" : helpers.makeTestYear("Europe/Paris", [ + ["1924-03-29T22:59:59+00:00", "22:59:59", "WET", 0], + ["1924-03-29T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1924-10-04T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1924-10-04T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1925" : helpers.makeTestYear("Europe/Paris", [ + ["1925-04-04T22:59:59+00:00", "22:59:59", "WET", 0], + ["1925-04-04T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1925-10-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1925-10-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1926" : helpers.makeTestYear("Europe/Paris", [ + ["1926-04-17T22:59:59+00:00", "22:59:59", "WET", 0], + ["1926-04-17T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1926-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1926-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1927" : helpers.makeTestYear("Europe/Paris", [ + ["1927-04-09T22:59:59+00:00", "22:59:59", "WET", 0], + ["1927-04-09T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1927-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1927-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1928" : helpers.makeTestYear("Europe/Paris", [ + ["1928-04-14T22:59:59+00:00", "22:59:59", "WET", 0], + ["1928-04-14T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1928-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1928-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1929" : helpers.makeTestYear("Europe/Paris", [ + ["1929-04-20T22:59:59+00:00", "22:59:59", "WET", 0], + ["1929-04-20T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1929-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1929-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1930" : helpers.makeTestYear("Europe/Paris", [ + ["1930-04-12T22:59:59+00:00", "22:59:59", "WET", 0], + ["1930-04-12T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1930-10-04T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1930-10-04T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1931" : helpers.makeTestYear("Europe/Paris", [ + ["1931-04-18T22:59:59+00:00", "22:59:59", "WET", 0], + ["1931-04-18T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1931-10-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1931-10-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1932" : helpers.makeTestYear("Europe/Paris", [ + ["1932-04-02T22:59:59+00:00", "22:59:59", "WET", 0], + ["1932-04-02T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1932-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1932-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1933" : helpers.makeTestYear("Europe/Paris", [ + ["1933-03-25T22:59:59+00:00", "22:59:59", "WET", 0], + ["1933-03-25T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1933-10-07T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1933-10-07T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1934" : helpers.makeTestYear("Europe/Paris", [ + ["1934-04-07T22:59:59+00:00", "22:59:59", "WET", 0], + ["1934-04-07T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1934-10-06T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1934-10-06T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1935" : helpers.makeTestYear("Europe/Paris", [ + ["1935-03-30T22:59:59+00:00", "22:59:59", "WET", 0], + ["1935-03-30T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1935-10-05T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1935-10-05T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1936" : helpers.makeTestYear("Europe/Paris", [ + ["1936-04-18T22:59:59+00:00", "22:59:59", "WET", 0], + ["1936-04-18T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1936-10-03T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1936-10-03T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1937" : helpers.makeTestYear("Europe/Paris", [ + ["1937-04-03T22:59:59+00:00", "22:59:59", "WET", 0], + ["1937-04-03T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1937-10-02T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1937-10-02T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1938" : helpers.makeTestYear("Europe/Paris", [ + ["1938-03-26T22:59:59+00:00", "22:59:59", "WET", 0], + ["1938-03-26T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1938-10-01T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1938-10-01T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1939" : helpers.makeTestYear("Europe/Paris", [ + ["1939-04-15T22:59:59+00:00", "22:59:59", "WET", 0], + ["1939-04-15T23:00:00+00:00", "00:00:00", "WEST", -60], + ["1939-11-18T22:59:59+00:00", "23:59:59", "WEST", -60], + ["1939-11-18T23:00:00+00:00", "23:00:00", "WET", 0] + ]), + + "1940" : helpers.makeTestYear("Europe/Paris", [ + ["1940-02-25T01:59:59+00:00", "01:59:59", "WET", 0], + ["1940-02-25T02:00:00+00:00", "03:00:00", "WEST", -60], + ["1940-06-14T21:59:59+00:00", "22:59:59", "WEST", -60], + ["1940-06-14T22:00:00+00:00", "00:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Paris", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Paris", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Paris", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-08-24T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1944-08-24T22:00:00+00:00", "00:00:00", "WEMT", -120], + ["1944-10-07T22:59:59+00:00", "00:59:59", "WEMT", -120], + ["1944-10-07T23:00:00+00:00", "00:00:00", "WEST", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Paris", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "WEMT", -120], + ["1945-09-16T00:59:59+00:00", "02:59:59", "WEMT", -120], + ["1945-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1976" : helpers.makeTestYear("Europe/Paris", [ + ["1976-03-27T23:59:59+00:00", "00:59:59", "CET", -60], + ["1976-03-28T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1976-09-25T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1976-09-25T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Paris", [ + ["1977-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1977-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1977-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1977-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Paris", [ + ["1978-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1978-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1978-10-01T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1978-10-01T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Paris", [ + ["1979-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1979-04-01T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1979-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1979-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Paris", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Paris", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Paris", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Paris", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Paris", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Paris", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Paris", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Paris", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Paris", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Paris", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Paris", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Paris", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Paris", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Paris", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Paris", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Paris", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Paris", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Paris", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Paris", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Paris", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Paris", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Paris", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Paris", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Paris", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Paris", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Paris", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Paris", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Paris", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Paris", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Paris", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Paris", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Paris", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Paris", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Paris", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Paris", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Paris", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Paris", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Paris", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Paris", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Paris", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Paris", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Paris", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Paris", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Paris", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Paris", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Paris", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Paris", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Paris", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Paris", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Paris", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Paris", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Paris", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Paris", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Paris", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Paris", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Paris", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Paris", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Paris", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/prague.js b/tests/zones/europe/prague.js new file mode 100644 index 00000000..c0b9a80a --- /dev/null +++ b/tests/zones/europe/prague.js @@ -0,0 +1,498 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Prague"] = { + "1916" : helpers.makeTestYear("Europe/Prague", [ + ["1916-04-30T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-04-30T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Prague", [ + ["1917-04-16T00:59:59+00:00", "01:59:59", "CET", -60], + ["1917-04-16T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1917-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1917-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Prague", [ + ["1918-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Prague", [ + ["1940-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1940-04-01T01:00:00+00:00", "03:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Prague", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Prague", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Prague", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Prague", [ + ["1945-04-08T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-08T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-11-18T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-11-18T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Prague", [ + ["1946-05-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1946-05-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1946-10-06T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-10-06T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1947" : helpers.makeTestYear("Europe/Prague", [ + ["1947-04-20T00:59:59+00:00", "01:59:59", "CET", -60], + ["1947-04-20T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1947-10-05T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1947-10-05T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1948" : helpers.makeTestYear("Europe/Prague", [ + ["1948-04-18T00:59:59+00:00", "01:59:59", "CET", -60], + ["1948-04-18T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1948-10-03T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1948-10-03T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1949" : helpers.makeTestYear("Europe/Prague", [ + ["1949-04-09T00:59:59+00:00", "01:59:59", "CET", -60], + ["1949-04-09T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1949-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1949-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Prague", [ + ["1979-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1979-04-01T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1979-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1979-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Prague", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Prague", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Prague", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Prague", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Prague", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Prague", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Prague", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Prague", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Prague", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Prague", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Prague", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Prague", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Prague", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Prague", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Prague", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Prague", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Prague", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Prague", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Prague", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Prague", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Prague", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Prague", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Prague", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Prague", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Prague", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Prague", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Prague", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Prague", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Prague", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Prague", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Prague", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Prague", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Prague", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Prague", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Prague", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Prague", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Prague", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Prague", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Prague", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Prague", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Prague", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Prague", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Prague", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Prague", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Prague", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Prague", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Prague", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Prague", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Prague", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Prague", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Prague", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Prague", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Prague", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Prague", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Prague", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Prague", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Prague", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Prague", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/riga.js b/tests/zones/europe/riga.js new file mode 100644 index 00000000..9f1e7d52 --- /dev/null +++ b/tests/zones/europe/riga.js @@ -0,0 +1,447 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Riga"] = { + "1918" : helpers.makeTestYear("Europe/Riga", [ + ["1918-04-15T00:23:35+00:00", "01:59:59", "RMT", -5784 / 60], + ["1918-04-15T00:23:36+00:00", "03:00:00", "LST", -9384 / 60], + ["1918-09-16T00:23:35+00:00", "02:59:59", "LST", -9384 / 60], + ["1918-09-16T00:23:36+00:00", "02:00:00", "RMT", -5784 / 60] + ]), + + "1919" : helpers.makeTestYear("Europe/Riga", [ + ["1919-04-01T00:23:35+00:00", "01:59:59", "RMT", -5784 / 60], + ["1919-04-01T00:23:36+00:00", "03:00:00", "LST", -9384 / 60], + ["1919-05-22T00:23:35+00:00", "02:59:59", "LST", -9384 / 60], + ["1919-05-22T00:23:36+00:00", "02:00:00", "RMT", -5784 / 60] + ]), + + "1926" : helpers.makeTestYear("Europe/Riga", [ + ["1926-05-10T22:23:35+00:00", "23:59:59", "RMT", -5784 / 60], + ["1926-05-10T22:23:36+00:00", "00:23:36", "EET", -120] + ]), + + "1940" : helpers.makeTestYear("Europe/Riga", [ + ["1940-08-04T21:59:59+00:00", "23:59:59", "EET", -120], + ["1940-08-04T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1941" : helpers.makeTestYear("Europe/Riga", [ + ["1941-06-30T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1941-06-30T21:00:00+00:00", "23:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Riga", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Riga", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Riga", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60], + ["1944-10-12T22:59:59+00:00", "23:59:59", "CET", -60], + ["1944-10-12T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Riga", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Riga", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Riga", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Riga", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Riga", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Riga", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Riga", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Riga", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Riga", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1989-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1989-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Europe/Riga", [ + ["1990-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["1990-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1990-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1990-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Europe/Riga", [ + ["1991-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1991-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1991-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1991-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Riga", [ + ["1992-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1992-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1992-09-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1992-09-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Riga", [ + ["1993-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["1993-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1993-09-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1993-09-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Riga", [ + ["1994-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1994-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1994-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1994-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Riga", [ + ["1995-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["1995-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1995-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1995-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Riga", [ + ["1996-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1996-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1996-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1996-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Riga", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Riga", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Riga", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Riga", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Riga", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Riga", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Riga", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Riga", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Riga", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Riga", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Riga", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Riga", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Riga", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Riga", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Riga", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Riga", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Riga", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Riga", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Riga", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Riga", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Riga", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Riga", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Riga", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Riga", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Riga", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Riga", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Riga", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Riga", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Riga", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Riga", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Riga", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Riga", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Riga", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Riga", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Riga", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Riga", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Riga", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Riga", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Riga", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Riga", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/rome.js b/tests/zones/europe/rome.js new file mode 100644 index 00000000..50477437 --- /dev/null +++ b/tests/zones/europe/rome.js @@ -0,0 +1,596 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Rome"] = { + "1916" : helpers.makeTestYear("Europe/Rome", [ + ["1916-06-02T22:59:59+00:00", "23:59:59", "CET", -60], + ["1916-06-02T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Rome", [ + ["1917-03-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1917-03-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1917-09-29T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1917-09-29T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Rome", [ + ["1918-03-09T22:59:59+00:00", "23:59:59", "CET", -60], + ["1918-03-09T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1918-10-05T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1918-10-05T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1919" : helpers.makeTestYear("Europe/Rome", [ + ["1919-03-01T22:59:59+00:00", "23:59:59", "CET", -60], + ["1919-03-01T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1919-10-04T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1919-10-04T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1920" : helpers.makeTestYear("Europe/Rome", [ + ["1920-03-20T22:59:59+00:00", "23:59:59", "CET", -60], + ["1920-03-20T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1920-09-18T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1920-09-18T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Rome", [ + ["1940-06-14T22:59:59+00:00", "23:59:59", "CET", -60], + ["1940-06-14T23:00:00+00:00", "01:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Rome", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Rome", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Rome", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-09-16T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1944-09-16T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Rome", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-09-14T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1945-09-14T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Rome", [ + ["1946-03-17T00:59:59+00:00", "01:59:59", "CET", -60], + ["1946-03-17T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1946-10-06T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-10-06T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1947" : helpers.makeTestYear("Europe/Rome", [ + ["1947-03-15T22:59:59+00:00", "23:59:59", "CET", -60], + ["1947-03-15T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1947-10-04T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1947-10-04T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1948" : helpers.makeTestYear("Europe/Rome", [ + ["1948-02-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1948-02-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1948-10-03T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1948-10-03T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1966" : helpers.makeTestYear("Europe/Rome", [ + ["1966-05-21T22:59:59+00:00", "23:59:59", "CET", -60], + ["1966-05-21T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1966-09-24T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1966-09-24T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1967" : helpers.makeTestYear("Europe/Rome", [ + ["1967-05-27T22:59:59+00:00", "23:59:59", "CET", -60], + ["1967-05-27T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1967-09-23T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1967-09-23T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1968" : helpers.makeTestYear("Europe/Rome", [ + ["1968-05-25T22:59:59+00:00", "23:59:59", "CET", -60], + ["1968-05-25T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1968-09-21T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1968-09-21T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1969" : helpers.makeTestYear("Europe/Rome", [ + ["1969-05-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1969-05-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1969-09-27T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1969-09-27T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1970" : helpers.makeTestYear("Europe/Rome", [ + ["1970-05-30T22:59:59+00:00", "23:59:59", "CET", -60], + ["1970-05-30T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1970-09-26T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1970-09-26T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1971" : helpers.makeTestYear("Europe/Rome", [ + ["1971-05-22T22:59:59+00:00", "23:59:59", "CET", -60], + ["1971-05-22T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1971-09-25T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1971-09-25T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1972" : helpers.makeTestYear("Europe/Rome", [ + ["1972-05-27T22:59:59+00:00", "23:59:59", "CET", -60], + ["1972-05-27T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1972-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1972-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1973" : helpers.makeTestYear("Europe/Rome", [ + ["1973-06-02T22:59:59+00:00", "23:59:59", "CET", -60], + ["1973-06-02T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1973-09-29T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1973-09-29T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1974" : helpers.makeTestYear("Europe/Rome", [ + ["1974-05-25T22:59:59+00:00", "23:59:59", "CET", -60], + ["1974-05-25T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1974-09-28T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1974-09-28T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1975" : helpers.makeTestYear("Europe/Rome", [ + ["1975-05-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1975-05-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1975-09-27T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1975-09-27T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1976" : helpers.makeTestYear("Europe/Rome", [ + ["1976-05-29T22:59:59+00:00", "23:59:59", "CET", -60], + ["1976-05-29T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1976-09-25T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1976-09-25T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Rome", [ + ["1977-05-21T22:59:59+00:00", "23:59:59", "CET", -60], + ["1977-05-21T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1977-09-24T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1977-09-24T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Rome", [ + ["1978-05-27T22:59:59+00:00", "23:59:59", "CET", -60], + ["1978-05-27T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1978-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1978-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Rome", [ + ["1979-05-26T22:59:59+00:00", "23:59:59", "CET", -60], + ["1979-05-26T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1979-09-29T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1979-09-29T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Rome", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Rome", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Rome", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Rome", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Rome", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Rome", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Rome", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Rome", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Rome", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Rome", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Rome", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Rome", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Rome", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Rome", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Rome", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Rome", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Rome", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Rome", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Rome", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Rome", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Rome", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Rome", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Rome", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Rome", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Rome", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Rome", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Rome", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Rome", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Rome", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Rome", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Rome", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Rome", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Rome", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Rome", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Rome", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Rome", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Rome", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Rome", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Rome", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Rome", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Rome", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Rome", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Rome", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Rome", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Rome", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Rome", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Rome", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Rome", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Rome", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Rome", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Rome", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Rome", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Rome", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Rome", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Rome", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Rome", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Rome", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Rome", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/samara.js b/tests/zones/europe/samara.js new file mode 100644 index 00000000..b1d07f0f --- /dev/null +++ b/tests/zones/europe/samara.js @@ -0,0 +1,237 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Samara"] = { + "1919" : helpers.makeTestYear("Europe/Samara", [ + ["1919-06-30T22:39:23+00:00", "01:59:59", "LMT", -12036 / 60], + ["1919-06-30T22:39:24+00:00", "01:39:24", "SAMT", -180] + ]), + + "1930" : helpers.makeTestYear("Europe/Samara", [ + ["1930-06-20T20:59:59+00:00", "23:59:59", "SAMT", -180], + ["1930-06-20T21:00:00+00:00", "01:00:00", "SAMT", -240] + ]), + + "1935" : helpers.makeTestYear("Europe/Samara", [ + ["1935-01-26T19:59:59+00:00", "23:59:59", "SAMT", -240], + ["1935-01-26T20:00:00+00:00", "00:00:00", "KUYT", -240] + ]), + + "1981" : helpers.makeTestYear("Europe/Samara", [ + ["1981-03-31T19:59:59+00:00", "23:59:59", "KUYT", -240], + ["1981-03-31T20:00:00+00:00", "01:00:00", "KUYST", -300], + ["1981-09-30T18:59:59+00:00", "23:59:59", "KUYST", -300], + ["1981-09-30T19:00:00+00:00", "23:00:00", "KUYT", -240] + ]), + + "1982" : helpers.makeTestYear("Europe/Samara", [ + ["1982-03-31T19:59:59+00:00", "23:59:59", "KUYT", -240], + ["1982-03-31T20:00:00+00:00", "01:00:00", "KUYST", -300], + ["1982-09-30T18:59:59+00:00", "23:59:59", "KUYST", -300], + ["1982-09-30T19:00:00+00:00", "23:00:00", "KUYT", -240] + ]), + + "1983" : helpers.makeTestYear("Europe/Samara", [ + ["1983-03-31T19:59:59+00:00", "23:59:59", "KUYT", -240], + ["1983-03-31T20:00:00+00:00", "01:00:00", "KUYST", -300], + ["1983-09-30T18:59:59+00:00", "23:59:59", "KUYST", -300], + ["1983-09-30T19:00:00+00:00", "23:00:00", "KUYT", -240] + ]), + + "1984" : helpers.makeTestYear("Europe/Samara", [ + ["1984-03-31T19:59:59+00:00", "23:59:59", "KUYT", -240], + ["1984-03-31T20:00:00+00:00", "01:00:00", "KUYST", -300], + ["1984-09-29T21:59:59+00:00", "02:59:59", "KUYST", -300], + ["1984-09-29T22:00:00+00:00", "02:00:00", "KUYT", -240] + ]), + + "1985" : helpers.makeTestYear("Europe/Samara", [ + ["1985-03-30T21:59:59+00:00", "01:59:59", "KUYT", -240], + ["1985-03-30T22:00:00+00:00", "03:00:00", "KUYST", -300], + ["1985-09-28T21:59:59+00:00", "02:59:59", "KUYST", -300], + ["1985-09-28T22:00:00+00:00", "02:00:00", "KUYT", -240] + ]), + + "1986" : helpers.makeTestYear("Europe/Samara", [ + ["1986-03-29T21:59:59+00:00", "01:59:59", "KUYT", -240], + ["1986-03-29T22:00:00+00:00", "03:00:00", "KUYST", -300], + ["1986-09-27T21:59:59+00:00", "02:59:59", "KUYST", -300], + ["1986-09-27T22:00:00+00:00", "02:00:00", "KUYT", -240] + ]), + + "1987" : helpers.makeTestYear("Europe/Samara", [ + ["1987-03-28T21:59:59+00:00", "01:59:59", "KUYT", -240], + ["1987-03-28T22:00:00+00:00", "03:00:00", "KUYST", -300], + ["1987-09-26T21:59:59+00:00", "02:59:59", "KUYST", -300], + ["1987-09-26T22:00:00+00:00", "02:00:00", "KUYT", -240] + ]), + + "1988" : helpers.makeTestYear("Europe/Samara", [ + ["1988-03-26T21:59:59+00:00", "01:59:59", "KUYT", -240], + ["1988-03-26T22:00:00+00:00", "03:00:00", "KUYST", -300], + ["1988-09-24T21:59:59+00:00", "02:59:59", "KUYST", -300], + ["1988-09-24T22:00:00+00:00", "02:00:00", "KUYT", -240] + ]), + + "1989" : helpers.makeTestYear("Europe/Samara", [ + ["1989-03-25T21:59:59+00:00", "01:59:59", "KUYT", -240], + ["1989-03-25T22:00:00+00:00", "02:00:00", "KUYST", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "KUYST", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "KUYT", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Samara", [ + ["1990-03-24T22:59:59+00:00", "01:59:59", "KUYT", -180], + ["1990-03-24T23:00:00+00:00", "03:00:00", "KUYST", -240], + ["1990-09-29T22:59:59+00:00", "02:59:59", "KUYST", -240], + ["1990-09-29T23:00:00+00:00", "02:00:00", "KUYT", -180] + ]), + + "1991" : helpers.makeTestYear("Europe/Samara", [ + ["1991-03-30T22:59:59+00:00", "01:59:59", "KUYT", -180], + ["1991-03-30T23:00:00+00:00", "02:00:00", "KUYST", -180], + ["1991-09-28T23:59:59+00:00", "02:59:59", "KUYST", -180], + ["1991-09-29T00:00:00+00:00", "03:00:00", "KUYT", -180], + ["1991-10-19T23:59:59+00:00", "02:59:59", "KUYT", -180], + ["1991-10-20T00:00:00+00:00", "04:00:00", "SAMT", -240] + ]), + + "1992" : helpers.makeTestYear("Europe/Samara", [ + ["1992-03-28T18:59:59+00:00", "22:59:59", "SAMT", -240], + ["1992-03-28T19:00:00+00:00", "00:00:00", "SAMST", -300], + ["1992-09-26T17:59:59+00:00", "22:59:59", "SAMST", -300], + ["1992-09-26T18:00:00+00:00", "22:00:00", "SAMT", -240] + ]), + + "1993" : helpers.makeTestYear("Europe/Samara", [ + ["1993-03-27T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["1993-03-27T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["1993-09-25T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["1993-09-25T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "1994" : helpers.makeTestYear("Europe/Samara", [ + ["1994-03-26T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["1994-03-26T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["1994-09-24T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["1994-09-24T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "1995" : helpers.makeTestYear("Europe/Samara", [ + ["1995-03-25T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["1995-03-25T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["1995-09-23T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["1995-09-23T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "1996" : helpers.makeTestYear("Europe/Samara", [ + ["1996-03-30T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["1996-03-30T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["1996-10-26T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["1996-10-26T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "1997" : helpers.makeTestYear("Europe/Samara", [ + ["1997-03-29T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["1997-03-29T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["1997-10-25T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["1997-10-25T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "1998" : helpers.makeTestYear("Europe/Samara", [ + ["1998-03-28T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["1998-03-28T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["1998-10-24T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["1998-10-24T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "1999" : helpers.makeTestYear("Europe/Samara", [ + ["1999-03-27T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["1999-03-27T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["1999-10-30T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["1999-10-30T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2000" : helpers.makeTestYear("Europe/Samara", [ + ["2000-03-25T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2000-03-25T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2000-10-28T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2000-10-28T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2001" : helpers.makeTestYear("Europe/Samara", [ + ["2001-03-24T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2001-03-24T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2001-10-27T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2001-10-27T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2002" : helpers.makeTestYear("Europe/Samara", [ + ["2002-03-30T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2002-03-30T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2002-10-26T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2002-10-26T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2003" : helpers.makeTestYear("Europe/Samara", [ + ["2003-03-29T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2003-03-29T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2003-10-25T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2003-10-25T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2004" : helpers.makeTestYear("Europe/Samara", [ + ["2004-03-27T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2004-03-27T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2004-10-30T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2004-10-30T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2005" : helpers.makeTestYear("Europe/Samara", [ + ["2005-03-26T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2005-03-26T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2005-10-29T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2005-10-29T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2006" : helpers.makeTestYear("Europe/Samara", [ + ["2006-03-25T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2006-03-25T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2006-10-28T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2006-10-28T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2007" : helpers.makeTestYear("Europe/Samara", [ + ["2007-03-24T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2007-03-24T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2007-10-27T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2007-10-27T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2008" : helpers.makeTestYear("Europe/Samara", [ + ["2008-03-29T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2008-03-29T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2008-10-25T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2008-10-25T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2009" : helpers.makeTestYear("Europe/Samara", [ + ["2009-03-28T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2009-03-28T22:00:00+00:00", "03:00:00", "SAMST", -300], + ["2009-10-24T21:59:59+00:00", "02:59:59", "SAMST", -300], + ["2009-10-24T22:00:00+00:00", "02:00:00", "SAMT", -240] + ]), + + "2010" : helpers.makeTestYear("Europe/Samara", [ + ["2010-03-27T21:59:59+00:00", "01:59:59", "SAMT", -240], + ["2010-03-27T22:00:00+00:00", "02:00:00", "SAMST", -240], + ["2010-10-30T22:59:59+00:00", "02:59:59", "SAMST", -240], + ["2010-10-30T23:00:00+00:00", "02:00:00", "SAMT", -180] + ]), + + "2011" : helpers.makeTestYear("Europe/Samara", [ + ["2011-03-26T22:59:59+00:00", "01:59:59", "SAMT", -180], + ["2011-03-26T23:00:00+00:00", "03:00:00", "SAMT", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/simferopol.js b/tests/zones/europe/simferopol.js new file mode 100644 index 00000000..a4e385c8 --- /dev/null +++ b/tests/zones/europe/simferopol.js @@ -0,0 +1,431 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Simferopol"] = { + "1924" : helpers.makeTestYear("Europe/Simferopol", [ + ["1924-05-01T21:43:59+00:00", "23:59:59", "SMT", -136], + ["1924-05-01T21:44:00+00:00", "23:44:00", "EET", -120] + ]), + + "1930" : helpers.makeTestYear("Europe/Simferopol", [ + ["1930-06-20T21:59:59+00:00", "23:59:59", "EET", -120], + ["1930-06-20T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1941" : helpers.makeTestYear("Europe/Simferopol", [ + ["1941-10-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1941-10-31T21:00:00+00:00", "23:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Simferopol", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Simferopol", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Simferopol", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-04-12T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1944-04-12T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Simferopol", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Simferopol", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Simferopol", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Simferopol", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Simferopol", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Simferopol", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Simferopol", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Simferopol", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Simferopol", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Simferopol", [ + ["1990-06-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1990-06-30T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Simferopol", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Simferopol", [ + ["1993-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Simferopol", [ + ["1994-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-04-30T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-04-30T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1994-09-24T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1994-09-24T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1995" : helpers.makeTestYear("Europe/Simferopol", [ + ["1995-03-25T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1995-03-25T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1995-09-23T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1995-09-23T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1996" : helpers.makeTestYear("Europe/Simferopol", [ + ["1996-03-30T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1996-03-30T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1996-10-26T23:59:59+00:00", "03:59:59", "MSD", -240], + ["1996-10-27T00:00:00+00:00", "03:00:00", "MSK", -180] + ]), + + "1997" : helpers.makeTestYear("Europe/Simferopol", [ + ["1997-03-30T00:59:59+00:00", "03:59:59", "MSK", -180], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Simferopol", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Simferopol", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Simferopol", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Simferopol", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Simferopol", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Simferopol", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Simferopol", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Simferopol", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Simferopol", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Simferopol", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Simferopol", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Simferopol", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Simferopol", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Simferopol", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Simferopol", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Simferopol", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Simferopol", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Simferopol", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Simferopol", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Simferopol", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Simferopol", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Simferopol", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Simferopol", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Simferopol", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Simferopol", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Simferopol", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Simferopol", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Simferopol", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Simferopol", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Simferopol", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Simferopol", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Simferopol", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Simferopol", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Simferopol", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Simferopol", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Simferopol", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Simferopol", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Simferopol", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Simferopol", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Simferopol", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/sofia.js b/tests/zones/europe/sofia.js new file mode 100644 index 00000000..b67bb486 --- /dev/null +++ b/tests/zones/europe/sofia.js @@ -0,0 +1,442 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Sofia"] = { + "1942" : helpers.makeTestYear("Europe/Sofia", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "EET", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Sofia", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Sofia", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Sofia", [ + ["1945-04-02T01:59:59+00:00", "02:59:59", "CET", -60], + ["1945-04-02T02:00:00+00:00", "04:00:00", "EET", -120] + ]), + + "1979" : helpers.makeTestYear("Europe/Sofia", [ + ["1979-03-31T20:59:59+00:00", "22:59:59", "EET", -120], + ["1979-03-31T21:00:00+00:00", "00:00:00", "EEST", -180], + ["1979-09-30T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1979-09-30T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1980" : helpers.makeTestYear("Europe/Sofia", [ + ["1980-04-05T20:59:59+00:00", "22:59:59", "EET", -120], + ["1980-04-05T21:00:00+00:00", "00:00:00", "EEST", -180], + ["1980-09-28T21:59:59+00:00", "00:59:59", "EEST", -180], + ["1980-09-28T22:00:00+00:00", "00:00:00", "EET", -120] + ]), + + "1981" : helpers.makeTestYear("Europe/Sofia", [ + ["1981-04-04T20:59:59+00:00", "22:59:59", "EET", -120], + ["1981-04-04T21:00:00+00:00", "00:00:00", "EEST", -180], + ["1981-09-26T22:59:59+00:00", "01:59:59", "EEST", -180], + ["1981-09-26T23:00:00+00:00", "01:00:00", "EET", -120] + ]), + + "1982" : helpers.makeTestYear("Europe/Sofia", [ + ["1982-04-03T20:59:59+00:00", "22:59:59", "EET", -120], + ["1982-04-03T21:00:00+00:00", "00:00:00", "EEST", -180], + ["1982-09-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1982-09-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1983" : helpers.makeTestYear("Europe/Sofia", [ + ["1983-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1983-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1983-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1983-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1984" : helpers.makeTestYear("Europe/Sofia", [ + ["1984-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["1984-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1984-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1984-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1985" : helpers.makeTestYear("Europe/Sofia", [ + ["1985-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1985-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1985-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1985-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1986" : helpers.makeTestYear("Europe/Sofia", [ + ["1986-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["1986-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1986-09-27T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1986-09-28T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1987" : helpers.makeTestYear("Europe/Sofia", [ + ["1987-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1987-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1987-09-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1987-09-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1988" : helpers.makeTestYear("Europe/Sofia", [ + ["1988-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1988-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1988-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1988-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1989" : helpers.makeTestYear("Europe/Sofia", [ + ["1989-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["1989-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1989-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1989-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Europe/Sofia", [ + ["1990-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["1990-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1990-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1990-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Europe/Sofia", [ + ["1991-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1991-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1991-09-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1991-09-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Sofia", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Sofia", [ + ["1993-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Sofia", [ + ["1994-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Sofia", [ + ["1995-03-25T21:59:59+00:00", "23:59:59", "EET", -120], + ["1995-03-25T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1995-09-23T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1995-09-23T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Sofia", [ + ["1996-03-30T21:59:59+00:00", "23:59:59", "EET", -120], + ["1996-03-30T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1996-10-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1996-10-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Sofia", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Sofia", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Sofia", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Sofia", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Sofia", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Sofia", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Sofia", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Sofia", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Sofia", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Sofia", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Sofia", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Sofia", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Sofia", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Sofia", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Sofia", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Sofia", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Sofia", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Sofia", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Sofia", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Sofia", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Sofia", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Sofia", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Sofia", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Sofia", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Sofia", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Sofia", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Sofia", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Sofia", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Sofia", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Sofia", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Sofia", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Sofia", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Sofia", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Sofia", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Sofia", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Sofia", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Sofia", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Sofia", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Sofia", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Sofia", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Sofia", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/stockholm.js b/tests/zones/europe/stockholm.js new file mode 100644 index 00000000..ef933248 --- /dev/null +++ b/tests/zones/europe/stockholm.js @@ -0,0 +1,418 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Stockholm"] = { + "1916" : helpers.makeTestYear("Europe/Stockholm", [ + ["1916-05-14T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-05-14T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Stockholm", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Stockholm", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Stockholm", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Stockholm", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Stockholm", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Stockholm", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Stockholm", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Stockholm", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Stockholm", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Stockholm", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Stockholm", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Stockholm", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Stockholm", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Stockholm", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Stockholm", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Stockholm", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Stockholm", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Stockholm", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Stockholm", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Stockholm", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Stockholm", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Stockholm", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Stockholm", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Stockholm", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Stockholm", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Stockholm", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Stockholm", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Stockholm", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Stockholm", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Stockholm", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Stockholm", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Stockholm", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Stockholm", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Stockholm", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Stockholm", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Stockholm", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Stockholm", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Stockholm", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Stockholm", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Stockholm", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Stockholm", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Stockholm", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Stockholm", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Stockholm", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Stockholm", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Stockholm", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Stockholm", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Stockholm", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Stockholm", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Stockholm", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Stockholm", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Stockholm", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Stockholm", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Stockholm", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Stockholm", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Stockholm", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Stockholm", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Stockholm", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/tallinn.js b/tests/zones/europe/tallinn.js new file mode 100644 index 00000000..bdae5728 --- /dev/null +++ b/tests/zones/europe/tallinn.js @@ -0,0 +1,438 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Tallinn"] = { + "1918" : helpers.makeTestYear("Europe/Tallinn", [ + ["1918-01-31T22:20:59+00:00", "23:59:59", "TMT", -99], + ["1918-01-31T22:21:00+00:00", "23:21:00", "CET", -60], + ["1918-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1919" : helpers.makeTestYear("Europe/Tallinn", [ + ["1919-06-30T22:59:59+00:00", "23:59:59", "CET", -60], + ["1919-06-30T23:00:00+00:00", "00:39:00", "TMT", -99] + ]), + + "1921" : helpers.makeTestYear("Europe/Tallinn", [ + ["1921-04-30T22:20:59+00:00", "23:59:59", "TMT", -99], + ["1921-04-30T22:21:00+00:00", "00:21:00", "EET", -120] + ]), + + "1940" : helpers.makeTestYear("Europe/Tallinn", [ + ["1940-08-05T21:59:59+00:00", "23:59:59", "EET", -120], + ["1940-08-05T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1941" : helpers.makeTestYear("Europe/Tallinn", [ + ["1941-09-14T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1941-09-14T21:00:00+00:00", "23:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Tallinn", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Tallinn", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Tallinn", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-09-21T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1944-09-21T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Tallinn", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Tallinn", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Tallinn", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Tallinn", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Tallinn", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Tallinn", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Tallinn", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Tallinn", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Tallinn", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1989-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1989-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1990" : helpers.makeTestYear("Europe/Tallinn", [ + ["1990-03-24T23:59:59+00:00", "01:59:59", "EET", -120], + ["1990-03-25T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1990-09-29T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1990-09-30T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1991" : helpers.makeTestYear("Europe/Tallinn", [ + ["1991-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1991-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1991-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1991-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Tallinn", [ + ["1992-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1992-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1992-09-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1992-09-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Tallinn", [ + ["1993-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["1993-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1993-09-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1993-09-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Tallinn", [ + ["1994-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1994-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1994-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1994-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Tallinn", [ + ["1995-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["1995-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1995-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1995-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Tallinn", [ + ["1996-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1996-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1996-10-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1996-10-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Tallinn", [ + ["1997-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["1997-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1997-10-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1997-10-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Tallinn", [ + ["1998-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1998-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Tallinn", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Tallinn", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Tallinn", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Tallinn", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Tallinn", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Tallinn", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Tallinn", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Tallinn", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Tallinn", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Tallinn", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Tallinn", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Tallinn", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Tallinn", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Tallinn", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Tallinn", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Tallinn", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Tallinn", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Tallinn", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Tallinn", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Tallinn", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Tallinn", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Tallinn", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Tallinn", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Tallinn", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Tallinn", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Tallinn", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Tallinn", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Tallinn", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Tallinn", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Tallinn", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Tallinn", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Tallinn", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Tallinn", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Tallinn", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Tallinn", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Tallinn", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Tallinn", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/tirane.js b/tests/zones/europe/tirane.js new file mode 100644 index 00000000..684c5724 --- /dev/null +++ b/tests/zones/europe/tirane.js @@ -0,0 +1,475 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Tirane"] = { + "1913" : helpers.makeTestYear("Europe/Tirane", [ + ["1913-12-31T22:40:39+00:00", "23:59:59", "LMT", -4760 / 60], + ["1913-12-31T22:40:40+00:00", "23:40:40", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Tirane", [ + ["1940-06-15T22:59:59+00:00", "23:59:59", "CET", -60], + ["1940-06-15T23:00:00+00:00", "01:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Tirane", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Tirane", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-04-10T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-04-10T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1974" : helpers.makeTestYear("Europe/Tirane", [ + ["1974-05-03T22:59:59+00:00", "23:59:59", "CET", -60], + ["1974-05-03T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1974-10-01T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1974-10-01T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1975" : helpers.makeTestYear("Europe/Tirane", [ + ["1975-04-30T22:59:59+00:00", "23:59:59", "CET", -60], + ["1975-04-30T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1975-10-01T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1975-10-01T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1976" : helpers.makeTestYear("Europe/Tirane", [ + ["1976-05-01T22:59:59+00:00", "23:59:59", "CET", -60], + ["1976-05-01T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1976-10-02T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1976-10-02T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Tirane", [ + ["1977-05-07T22:59:59+00:00", "23:59:59", "CET", -60], + ["1977-05-07T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1977-10-01T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1977-10-01T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Tirane", [ + ["1978-05-05T22:59:59+00:00", "23:59:59", "CET", -60], + ["1978-05-05T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1978-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1978-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Tirane", [ + ["1979-05-04T22:59:59+00:00", "23:59:59", "CET", -60], + ["1979-05-04T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1979-09-29T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1979-09-29T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Tirane", [ + ["1980-05-02T22:59:59+00:00", "23:59:59", "CET", -60], + ["1980-05-02T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1980-10-03T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1980-10-03T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Tirane", [ + ["1981-04-25T22:59:59+00:00", "23:59:59", "CET", -60], + ["1981-04-25T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1981-09-26T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1981-09-26T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Tirane", [ + ["1982-05-01T22:59:59+00:00", "23:59:59", "CET", -60], + ["1982-05-01T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1982-10-02T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1982-10-02T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Tirane", [ + ["1983-04-17T22:59:59+00:00", "23:59:59", "CET", -60], + ["1983-04-17T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1983-09-30T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1983-09-30T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Tirane", [ + ["1984-03-31T22:59:59+00:00", "23:59:59", "CET", -60], + ["1984-03-31T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Tirane", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Tirane", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Tirane", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Tirane", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Tirane", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Tirane", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Tirane", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Tirane", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Tirane", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Tirane", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Tirane", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Tirane", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Tirane", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Tirane", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Tirane", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Tirane", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Tirane", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Tirane", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Tirane", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Tirane", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Tirane", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Tirane", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Tirane", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Tirane", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Tirane", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Tirane", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Tirane", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Tirane", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Tirane", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Tirane", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Tirane", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Tirane", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Tirane", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Tirane", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Tirane", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Tirane", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Tirane", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Tirane", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Tirane", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Tirane", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Tirane", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Tirane", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Tirane", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Tirane", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Tirane", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Tirane", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Tirane", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Tirane", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Tirane", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Tirane", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Tirane", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Tirane", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Tirane", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/uzhgorod.js b/tests/zones/europe/uzhgorod.js new file mode 100644 index 00000000..04a3e3b6 --- /dev/null +++ b/tests/zones/europe/uzhgorod.js @@ -0,0 +1,429 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Uzhgorod"] = { + "1940" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1940-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1940-04-01T01:00:00+00:00", "03:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-25T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1944-10-25T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1945-06-28T22:59:59+00:00", "23:59:59", "CET", -60], + ["1945-06-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1990-06-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1990-06-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1991-03-31T01:59:59+00:00", "02:59:59", "CET", -60], + ["1991-03-31T02:00:00+00:00", "04:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1993-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1994-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1995-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["1995-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1995-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1995-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1996-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1996-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1996-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1996-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Uzhgorod", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/vaduz.js b/tests/zones/europe/vaduz.js new file mode 100644 index 00000000..0923e270 --- /dev/null +++ b/tests/zones/europe/vaduz.js @@ -0,0 +1,418 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Vaduz"] = { + "1941" : helpers.makeTestYear("Europe/Vaduz", [ + ["1941-05-04T23:59:59+00:00", "00:59:59", "CET", -60], + ["1941-05-05T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1941-10-05T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1941-10-06T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1942" : helpers.makeTestYear("Europe/Vaduz", [ + ["1942-05-03T23:59:59+00:00", "00:59:59", "CET", -60], + ["1942-05-04T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1942-10-04T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1942-10-05T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Vaduz", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Vaduz", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Vaduz", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Vaduz", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Vaduz", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Vaduz", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Vaduz", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Vaduz", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Vaduz", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Vaduz", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Vaduz", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Vaduz", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Vaduz", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Vaduz", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Vaduz", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Vaduz", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Vaduz", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Vaduz", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Vaduz", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Vaduz", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Vaduz", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Vaduz", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Vaduz", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Vaduz", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Vaduz", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Vaduz", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Vaduz", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Vaduz", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Vaduz", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Vaduz", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Vaduz", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Vaduz", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Vaduz", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Vaduz", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Vaduz", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Vaduz", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Vaduz", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Vaduz", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Vaduz", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Vaduz", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Vaduz", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Vaduz", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Vaduz", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Vaduz", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Vaduz", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Vaduz", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Vaduz", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Vaduz", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Vaduz", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Vaduz", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Vaduz", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Vaduz", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Vaduz", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Vaduz", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Vaduz", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Vaduz", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Vaduz", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/vienna.js b/tests/zones/europe/vienna.js new file mode 100644 index 00000000..9815071f --- /dev/null +++ b/tests/zones/europe/vienna.js @@ -0,0 +1,491 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Vienna"] = { + "1916" : helpers.makeTestYear("Europe/Vienna", [ + ["1916-04-30T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-04-30T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Vienna", [ + ["1917-04-16T00:59:59+00:00", "01:59:59", "CET", -60], + ["1917-04-16T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1917-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1917-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Vienna", [ + ["1918-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-16T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1920" : helpers.makeTestYear("Europe/Vienna", [ + ["1920-04-05T00:59:59+00:00", "01:59:59", "CET", -60], + ["1920-04-05T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1920-09-13T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1920-09-13T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Vienna", [ + ["1940-04-01T00:59:59+00:00", "01:59:59", "CET", -60], + ["1940-04-01T01:00:00+00:00", "03:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Vienna", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Vienna", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Vienna", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Vienna", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "CET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1945-04-12T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1945-04-12T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Vienna", [ + ["1946-04-14T00:59:59+00:00", "01:59:59", "CET", -60], + ["1946-04-14T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1946-10-06T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-10-06T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1947" : helpers.makeTestYear("Europe/Vienna", [ + ["1947-04-06T00:59:59+00:00", "01:59:59", "CET", -60], + ["1947-04-06T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1947-10-05T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1947-10-05T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1948" : helpers.makeTestYear("Europe/Vienna", [ + ["1948-04-18T00:59:59+00:00", "01:59:59", "CET", -60], + ["1948-04-18T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1948-10-03T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1948-10-03T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Vienna", [ + ["1980-04-05T22:59:59+00:00", "23:59:59", "CET", -60], + ["1980-04-05T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1980-09-27T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1980-09-27T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Vienna", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Vienna", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Vienna", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Vienna", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Vienna", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Vienna", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Vienna", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Vienna", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Vienna", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Vienna", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Vienna", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Vienna", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Vienna", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Vienna", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Vienna", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Vienna", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Vienna", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Vienna", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Vienna", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Vienna", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Vienna", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Vienna", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Vienna", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Vienna", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Vienna", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Vienna", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Vienna", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Vienna", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Vienna", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Vienna", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Vienna", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Vienna", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Vienna", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Vienna", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Vienna", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Vienna", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Vienna", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Vienna", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Vienna", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Vienna", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Vienna", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Vienna", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Vienna", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Vienna", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Vienna", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Vienna", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Vienna", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Vienna", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Vienna", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Vienna", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Vienna", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Vienna", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Vienna", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Vienna", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Vienna", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Vienna", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Vienna", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/vilnius.js b/tests/zones/europe/vilnius.js new file mode 100644 index 00000000..a93cb8db --- /dev/null +++ b/tests/zones/europe/vilnius.js @@ -0,0 +1,429 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Vilnius"] = { + "1916" : helpers.makeTestYear("Europe/Vilnius", [ + ["1916-12-31T22:35:59+00:00", "23:59:59", "WMT", -84], + ["1916-12-31T22:36:00+00:00", "00:11:36", "KMT", -5736 / 60] + ]), + + "1919" : helpers.makeTestYear("Europe/Vilnius", [ + ["1919-10-09T22:24:23+00:00", "23:59:59", "KMT", -5736 / 60], + ["1919-10-09T22:24:24+00:00", "23:24:24", "CET", -60] + ]), + + "1920" : helpers.makeTestYear("Europe/Vilnius", [ + ["1920-07-11T22:59:59+00:00", "23:59:59", "CET", -60], + ["1920-07-11T23:00:00+00:00", "01:00:00", "EET", -120], + ["1920-10-08T21:59:59+00:00", "23:59:59", "EET", -120], + ["1920-10-08T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Vilnius", [ + ["1940-08-02T22:59:59+00:00", "23:59:59", "CET", -60], + ["1940-08-02T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1941" : helpers.makeTestYear("Europe/Vilnius", [ + ["1941-06-23T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1941-06-23T21:00:00+00:00", "23:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Vilnius", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Vilnius", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Vilnius", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-07-31T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1944-07-31T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Vilnius", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Vilnius", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Vilnius", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Vilnius", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Vilnius", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Vilnius", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Vilnius", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Vilnius", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Vilnius", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Vilnius", [ + ["1990-03-24T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1990-03-24T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1990-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1990-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1991" : helpers.makeTestYear("Europe/Vilnius", [ + ["1991-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1991-03-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1991-09-28T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1991-09-29T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Vilnius", [ + ["1992-03-28T23:59:59+00:00", "01:59:59", "EET", -120], + ["1992-03-29T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1992-09-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1992-09-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Vilnius", [ + ["1993-03-27T23:59:59+00:00", "01:59:59", "EET", -120], + ["1993-03-28T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1993-09-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1993-09-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Vilnius", [ + ["1994-03-26T23:59:59+00:00", "01:59:59", "EET", -120], + ["1994-03-27T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1994-09-24T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1994-09-25T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Vilnius", [ + ["1995-03-25T23:59:59+00:00", "01:59:59", "EET", -120], + ["1995-03-26T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1995-09-23T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1995-09-24T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Vilnius", [ + ["1996-03-30T23:59:59+00:00", "01:59:59", "EET", -120], + ["1996-03-31T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1996-10-26T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1996-10-27T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Vilnius", [ + ["1997-03-29T23:59:59+00:00", "01:59:59", "EET", -120], + ["1997-03-30T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1997-10-25T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1997-10-26T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Vilnius", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Vilnius", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Vilnius", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Vilnius", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Vilnius", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Vilnius", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Vilnius", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Vilnius", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Vilnius", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Vilnius", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Vilnius", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Vilnius", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Vilnius", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Vilnius", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Vilnius", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Vilnius", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Vilnius", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Vilnius", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Vilnius", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Vilnius", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Vilnius", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Vilnius", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Vilnius", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Vilnius", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Vilnius", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Vilnius", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Vilnius", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Vilnius", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Vilnius", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Vilnius", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Vilnius", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Vilnius", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Vilnius", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Vilnius", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Vilnius", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Vilnius", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Vilnius", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/volgograd.js b/tests/zones/europe/volgograd.js new file mode 100644 index 00000000..989147a5 --- /dev/null +++ b/tests/zones/europe/volgograd.js @@ -0,0 +1,238 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Volgograd"] = { + "1920" : helpers.makeTestYear("Europe/Volgograd", [ + ["1920-01-02T21:02:19+00:00", "23:59:59", "LMT", -10660 / 60], + ["1920-01-02T21:02:20+00:00", "00:02:20", "TSAT", -180] + ]), + + "1925" : helpers.makeTestYear("Europe/Volgograd", [ + ["1925-04-05T20:59:59+00:00", "23:59:59", "TSAT", -180], + ["1925-04-05T21:00:00+00:00", "00:00:00", "STAT", -180] + ]), + + "1930" : helpers.makeTestYear("Europe/Volgograd", [ + ["1930-06-20T20:59:59+00:00", "23:59:59", "STAT", -180], + ["1930-06-20T21:00:00+00:00", "01:00:00", "STAT", -240] + ]), + + "1961" : helpers.makeTestYear("Europe/Volgograd", [ + ["1961-11-10T19:59:59+00:00", "23:59:59", "STAT", -240], + ["1961-11-10T20:00:00+00:00", "00:00:00", "VOLT", -240] + ]), + + "1981" : helpers.makeTestYear("Europe/Volgograd", [ + ["1981-03-31T19:59:59+00:00", "23:59:59", "VOLT", -240], + ["1981-03-31T20:00:00+00:00", "01:00:00", "VOLST", -300], + ["1981-09-30T18:59:59+00:00", "23:59:59", "VOLST", -300], + ["1981-09-30T19:00:00+00:00", "23:00:00", "VOLT", -240] + ]), + + "1982" : helpers.makeTestYear("Europe/Volgograd", [ + ["1982-03-31T19:59:59+00:00", "23:59:59", "VOLT", -240], + ["1982-03-31T20:00:00+00:00", "01:00:00", "VOLST", -300], + ["1982-09-30T18:59:59+00:00", "23:59:59", "VOLST", -300], + ["1982-09-30T19:00:00+00:00", "23:00:00", "VOLT", -240] + ]), + + "1983" : helpers.makeTestYear("Europe/Volgograd", [ + ["1983-03-31T19:59:59+00:00", "23:59:59", "VOLT", -240], + ["1983-03-31T20:00:00+00:00", "01:00:00", "VOLST", -300], + ["1983-09-30T18:59:59+00:00", "23:59:59", "VOLST", -300], + ["1983-09-30T19:00:00+00:00", "23:00:00", "VOLT", -240] + ]), + + "1984" : helpers.makeTestYear("Europe/Volgograd", [ + ["1984-03-31T19:59:59+00:00", "23:59:59", "VOLT", -240], + ["1984-03-31T20:00:00+00:00", "01:00:00", "VOLST", -300], + ["1984-09-29T21:59:59+00:00", "02:59:59", "VOLST", -300], + ["1984-09-29T22:00:00+00:00", "02:00:00", "VOLT", -240] + ]), + + "1985" : helpers.makeTestYear("Europe/Volgograd", [ + ["1985-03-30T21:59:59+00:00", "01:59:59", "VOLT", -240], + ["1985-03-30T22:00:00+00:00", "03:00:00", "VOLST", -300], + ["1985-09-28T21:59:59+00:00", "02:59:59", "VOLST", -300], + ["1985-09-28T22:00:00+00:00", "02:00:00", "VOLT", -240] + ]), + + "1986" : helpers.makeTestYear("Europe/Volgograd", [ + ["1986-03-29T21:59:59+00:00", "01:59:59", "VOLT", -240], + ["1986-03-29T22:00:00+00:00", "03:00:00", "VOLST", -300], + ["1986-09-27T21:59:59+00:00", "02:59:59", "VOLST", -300], + ["1986-09-27T22:00:00+00:00", "02:00:00", "VOLT", -240] + ]), + + "1987" : helpers.makeTestYear("Europe/Volgograd", [ + ["1987-03-28T21:59:59+00:00", "01:59:59", "VOLT", -240], + ["1987-03-28T22:00:00+00:00", "03:00:00", "VOLST", -300], + ["1987-09-26T21:59:59+00:00", "02:59:59", "VOLST", -300], + ["1987-09-26T22:00:00+00:00", "02:00:00", "VOLT", -240] + ]), + + "1988" : helpers.makeTestYear("Europe/Volgograd", [ + ["1988-03-26T21:59:59+00:00", "01:59:59", "VOLT", -240], + ["1988-03-26T22:00:00+00:00", "03:00:00", "VOLST", -300], + ["1988-09-24T21:59:59+00:00", "02:59:59", "VOLST", -300], + ["1988-09-24T22:00:00+00:00", "02:00:00", "VOLT", -240] + ]), + + "1989" : helpers.makeTestYear("Europe/Volgograd", [ + ["1989-03-25T21:59:59+00:00", "01:59:59", "VOLT", -240], + ["1989-03-25T22:00:00+00:00", "02:00:00", "VOLST", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Volgograd", [ + ["1990-03-24T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["1990-03-24T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["1990-09-29T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["1990-09-29T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "1991" : helpers.makeTestYear("Europe/Volgograd", [ + ["1991-03-30T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["1991-03-30T23:00:00+00:00", "03:00:00", "VOLT", -240] + ]), + + "1992" : helpers.makeTestYear("Europe/Volgograd", [ + ["1992-03-28T21:59:59+00:00", "01:59:59", "VOLT", -240], + ["1992-03-28T22:00:00+00:00", "02:00:00", "VOLST", -240], + ["1992-09-26T18:59:59+00:00", "22:59:59", "VOLST", -240], + ["1992-09-26T19:00:00+00:00", "22:00:00", "VOLT", -180] + ]), + + "1993" : helpers.makeTestYear("Europe/Volgograd", [ + ["1993-03-27T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["1993-03-27T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["1993-09-25T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["1993-09-25T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "1994" : helpers.makeTestYear("Europe/Volgograd", [ + ["1994-03-26T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["1994-03-26T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["1994-09-24T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["1994-09-24T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "1995" : helpers.makeTestYear("Europe/Volgograd", [ + ["1995-03-25T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["1995-03-25T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["1995-09-23T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["1995-09-23T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "1996" : helpers.makeTestYear("Europe/Volgograd", [ + ["1996-03-30T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["1996-03-30T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["1996-10-26T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["1996-10-26T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "1997" : helpers.makeTestYear("Europe/Volgograd", [ + ["1997-03-29T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["1997-03-29T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["1997-10-25T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["1997-10-25T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "1998" : helpers.makeTestYear("Europe/Volgograd", [ + ["1998-03-28T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["1998-03-28T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["1998-10-24T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["1998-10-24T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "1999" : helpers.makeTestYear("Europe/Volgograd", [ + ["1999-03-27T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["1999-03-27T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["1999-10-30T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["1999-10-30T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2000" : helpers.makeTestYear("Europe/Volgograd", [ + ["2000-03-25T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2000-03-25T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2000-10-28T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2000-10-28T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2001" : helpers.makeTestYear("Europe/Volgograd", [ + ["2001-03-24T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2001-03-24T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2001-10-27T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2001-10-27T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2002" : helpers.makeTestYear("Europe/Volgograd", [ + ["2002-03-30T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2002-03-30T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2002-10-26T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2002-10-26T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2003" : helpers.makeTestYear("Europe/Volgograd", [ + ["2003-03-29T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2003-03-29T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2003-10-25T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2003-10-25T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2004" : helpers.makeTestYear("Europe/Volgograd", [ + ["2004-03-27T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2004-03-27T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2004-10-30T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2004-10-30T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2005" : helpers.makeTestYear("Europe/Volgograd", [ + ["2005-03-26T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2005-03-26T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2005-10-29T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2005-10-29T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2006" : helpers.makeTestYear("Europe/Volgograd", [ + ["2006-03-25T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2006-03-25T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2006-10-28T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2006-10-28T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2007" : helpers.makeTestYear("Europe/Volgograd", [ + ["2007-03-24T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2007-03-24T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2007-10-27T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2007-10-27T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2008" : helpers.makeTestYear("Europe/Volgograd", [ + ["2008-03-29T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2008-03-29T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2008-10-25T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2008-10-25T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2009" : helpers.makeTestYear("Europe/Volgograd", [ + ["2009-03-28T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2009-03-28T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2009-10-24T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2009-10-24T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2010" : helpers.makeTestYear("Europe/Volgograd", [ + ["2010-03-27T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2010-03-27T23:00:00+00:00", "03:00:00", "VOLST", -240], + ["2010-10-30T22:59:59+00:00", "02:59:59", "VOLST", -240], + ["2010-10-30T23:00:00+00:00", "02:00:00", "VOLT", -180] + ]), + + "2011" : helpers.makeTestYear("Europe/Volgograd", [ + ["2011-03-26T22:59:59+00:00", "01:59:59", "VOLT", -180], + ["2011-03-26T23:00:00+00:00", "03:00:00", "VOLT", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/warsaw.js b/tests/zones/europe/warsaw.js new file mode 100644 index 00000000..c1626981 --- /dev/null +++ b/tests/zones/europe/warsaw.js @@ -0,0 +1,585 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Warsaw"] = { + "1915" : helpers.makeTestYear("Europe/Warsaw", [ + ["1915-08-04T22:35:59+00:00", "23:59:59", "WMT", -84], + ["1915-08-04T22:36:00+00:00", "23:36:00", "CET", -60] + ]), + + "1916" : helpers.makeTestYear("Europe/Warsaw", [ + ["1916-04-30T21:59:59+00:00", "22:59:59", "CET", -60], + ["1916-04-30T22:00:00+00:00", "00:00:00", "CEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "CEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "CET", -60] + ]), + + "1917" : helpers.makeTestYear("Europe/Warsaw", [ + ["1917-04-16T00:59:59+00:00", "01:59:59", "CET", -60], + ["1917-04-16T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1917-09-17T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1917-09-17T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1918" : helpers.makeTestYear("Europe/Warsaw", [ + ["1918-04-15T00:59:59+00:00", "01:59:59", "CET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1918-09-16T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1919" : helpers.makeTestYear("Europe/Warsaw", [ + ["1919-04-14T23:59:59+00:00", "01:59:59", "EET", -120], + ["1919-04-15T00:00:00+00:00", "03:00:00", "EEST", -180], + ["1919-09-15T23:59:59+00:00", "02:59:59", "EEST", -180], + ["1919-09-16T00:00:00+00:00", "02:00:00", "EET", -120] + ]), + + "1922" : helpers.makeTestYear("Europe/Warsaw", [ + ["1922-05-31T21:59:59+00:00", "23:59:59", "EET", -120], + ["1922-05-31T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1940" : helpers.makeTestYear("Europe/Warsaw", [ + ["1940-06-23T00:59:59+00:00", "01:59:59", "CET", -60], + ["1940-06-23T01:00:00+00:00", "03:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Warsaw", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Warsaw", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1944" : helpers.makeTestYear("Europe/Warsaw", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "CET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1944-10-03T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1944-10-04T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1945" : helpers.makeTestYear("Europe/Warsaw", [ + ["1945-04-28T22:59:59+00:00", "23:59:59", "CET", -60], + ["1945-04-28T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1945-10-31T21:59:59+00:00", "23:59:59", "CEST", -120], + ["1945-10-31T22:00:00+00:00", "23:00:00", "CET", -60] + ]), + + "1946" : helpers.makeTestYear("Europe/Warsaw", [ + ["1946-04-13T22:59:59+00:00", "23:59:59", "CET", -60], + ["1946-04-13T23:00:00+00:00", "01:00:00", "CEST", -120], + ["1946-10-07T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1946-10-07T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1947" : helpers.makeTestYear("Europe/Warsaw", [ + ["1947-05-04T00:59:59+00:00", "01:59:59", "CET", -60], + ["1947-05-04T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1947-10-05T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1947-10-05T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1948" : helpers.makeTestYear("Europe/Warsaw", [ + ["1948-04-18T00:59:59+00:00", "01:59:59", "CET", -60], + ["1948-04-18T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1948-10-03T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1948-10-03T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1949" : helpers.makeTestYear("Europe/Warsaw", [ + ["1949-04-10T00:59:59+00:00", "01:59:59", "CET", -60], + ["1949-04-10T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1949-10-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1949-10-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1957" : helpers.makeTestYear("Europe/Warsaw", [ + ["1957-06-01T23:59:59+00:00", "00:59:59", "CET", -60], + ["1957-06-02T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1957-09-28T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1957-09-29T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1958" : helpers.makeTestYear("Europe/Warsaw", [ + ["1958-03-29T23:59:59+00:00", "00:59:59", "CET", -60], + ["1958-03-30T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1958-09-27T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1958-09-28T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1959" : helpers.makeTestYear("Europe/Warsaw", [ + ["1959-05-30T23:59:59+00:00", "00:59:59", "CET", -60], + ["1959-05-31T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1959-10-03T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1959-10-04T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1960" : helpers.makeTestYear("Europe/Warsaw", [ + ["1960-04-02T23:59:59+00:00", "00:59:59", "CET", -60], + ["1960-04-03T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1960-10-01T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1960-10-02T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1961" : helpers.makeTestYear("Europe/Warsaw", [ + ["1961-05-27T23:59:59+00:00", "00:59:59", "CET", -60], + ["1961-05-28T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1961-09-30T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1961-10-01T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1962" : helpers.makeTestYear("Europe/Warsaw", [ + ["1962-05-26T23:59:59+00:00", "00:59:59", "CET", -60], + ["1962-05-27T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1962-09-29T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1962-09-30T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1963" : helpers.makeTestYear("Europe/Warsaw", [ + ["1963-05-25T23:59:59+00:00", "00:59:59", "CET", -60], + ["1963-05-26T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1963-09-28T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1963-09-29T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1964" : helpers.makeTestYear("Europe/Warsaw", [ + ["1964-05-30T23:59:59+00:00", "00:59:59", "CET", -60], + ["1964-05-31T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1964-09-26T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1964-09-27T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1977" : helpers.makeTestYear("Europe/Warsaw", [ + ["1977-04-02T23:59:59+00:00", "00:59:59", "CET", -60], + ["1977-04-03T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1977-09-24T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1977-09-25T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1978" : helpers.makeTestYear("Europe/Warsaw", [ + ["1978-04-01T23:59:59+00:00", "00:59:59", "CET", -60], + ["1978-04-02T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1978-09-30T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1978-10-01T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1979" : helpers.makeTestYear("Europe/Warsaw", [ + ["1979-03-31T23:59:59+00:00", "00:59:59", "CET", -60], + ["1979-04-01T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1979-09-29T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1979-09-30T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1980" : helpers.makeTestYear("Europe/Warsaw", [ + ["1980-04-05T23:59:59+00:00", "00:59:59", "CET", -60], + ["1980-04-06T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1980-09-27T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1980-09-28T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Warsaw", [ + ["1981-03-28T23:59:59+00:00", "00:59:59", "CET", -60], + ["1981-03-29T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1981-09-26T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1981-09-27T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Warsaw", [ + ["1982-03-27T23:59:59+00:00", "00:59:59", "CET", -60], + ["1982-03-28T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1982-09-25T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1982-09-26T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Warsaw", [ + ["1983-03-26T23:59:59+00:00", "00:59:59", "CET", -60], + ["1983-03-27T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1983-09-24T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1983-09-25T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Warsaw", [ + ["1984-03-24T23:59:59+00:00", "00:59:59", "CET", -60], + ["1984-03-25T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1984-09-29T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1984-09-30T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Warsaw", [ + ["1985-03-30T23:59:59+00:00", "00:59:59", "CET", -60], + ["1985-03-31T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1985-09-28T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1985-09-29T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Warsaw", [ + ["1986-03-29T23:59:59+00:00", "00:59:59", "CET", -60], + ["1986-03-30T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1986-09-27T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1986-09-28T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Warsaw", [ + ["1987-03-28T23:59:59+00:00", "00:59:59", "CET", -60], + ["1987-03-29T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1987-09-26T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1987-09-27T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Warsaw", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Warsaw", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Warsaw", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Warsaw", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Warsaw", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Warsaw", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Warsaw", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Warsaw", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Warsaw", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Warsaw", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Warsaw", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Warsaw", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Warsaw", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Warsaw", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Warsaw", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Warsaw", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Warsaw", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Warsaw", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Warsaw", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Warsaw", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Warsaw", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Warsaw", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Warsaw", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Warsaw", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Warsaw", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Warsaw", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Warsaw", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Warsaw", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Warsaw", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Warsaw", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Warsaw", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Warsaw", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Warsaw", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Warsaw", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Warsaw", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Warsaw", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Warsaw", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Warsaw", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Warsaw", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Warsaw", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Warsaw", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Warsaw", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Warsaw", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Warsaw", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Warsaw", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Warsaw", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Warsaw", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Warsaw", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Warsaw", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Warsaw", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/zaporozhye.js b/tests/zones/europe/zaporozhye.js new file mode 100644 index 00000000..4c98a0c0 --- /dev/null +++ b/tests/zones/europe/zaporozhye.js @@ -0,0 +1,433 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Zaporozhye"] = { + "1924" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1924-05-01T21:39:59+00:00", "23:59:59", "CUT", -140], + ["1924-05-01T21:40:00+00:00", "23:40:00", "EET", -120] + ]), + + "1930" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1930-06-20T21:59:59+00:00", "23:59:59", "EET", -120], + ["1930-06-20T22:00:00+00:00", "01:00:00", "MSK", -180] + ]), + + "1941" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1941-08-24T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1941-08-24T21:00:00+00:00", "23:00:00", "CEST", -120] + ]), + + "1942" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1943" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "CET", -60], + ["1943-10-24T22:59:59+00:00", "23:59:59", "CET", -60], + ["1943-10-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1981" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1981-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1981-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1981-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1981-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1982" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1982-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1982-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1982-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1982-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1983" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1983-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1983-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1983-09-30T19:59:59+00:00", "23:59:59", "MSD", -240], + ["1983-09-30T20:00:00+00:00", "23:00:00", "MSK", -180] + ]), + + "1984" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1984-03-31T20:59:59+00:00", "23:59:59", "MSK", -180], + ["1984-03-31T21:00:00+00:00", "01:00:00", "MSD", -240], + ["1984-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1984-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1985" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1985-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1985-03-30T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1985-09-28T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1985-09-28T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1986" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1986-03-29T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1986-03-29T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1986-09-27T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1986-09-27T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1987" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1987-03-28T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1987-03-28T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1987-09-26T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1987-09-26T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1988" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1988-03-26T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1988-03-26T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1988-09-24T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1988-09-24T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1989" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1989-03-25T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1989-03-25T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1989-09-23T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1989-09-23T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1990" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1990-03-24T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1990-03-24T23:00:00+00:00", "03:00:00", "MSD", -240], + ["1990-09-29T22:59:59+00:00", "02:59:59", "MSD", -240], + ["1990-09-29T23:00:00+00:00", "02:00:00", "MSK", -180] + ]), + + "1991" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1991-03-30T22:59:59+00:00", "01:59:59", "MSK", -180], + ["1991-03-30T23:00:00+00:00", "02:00:00", "EEST", -180], + ["1991-09-28T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1991-09-28T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1992" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1992-03-28T21:59:59+00:00", "23:59:59", "EET", -120], + ["1992-03-28T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1992-09-26T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1992-09-26T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1993" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1993-03-27T21:59:59+00:00", "23:59:59", "EET", -120], + ["1993-03-27T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1993-09-25T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1993-09-25T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1994" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1994-03-26T21:59:59+00:00", "23:59:59", "EET", -120], + ["1994-03-26T22:00:00+00:00", "01:00:00", "EEST", -180], + ["1994-09-24T20:59:59+00:00", "23:59:59", "EEST", -180], + ["1994-09-24T21:00:00+00:00", "23:00:00", "EET", -120] + ]), + + "1995" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1995-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["1995-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1995-09-24T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1995-09-24T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1996" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1996-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["1996-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1996-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1996-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1997" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1997-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["1997-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1997-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1997-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1998" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1998-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["1998-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1998-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1998-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "1999" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["1999-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["1999-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["1999-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["1999-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2000" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2000-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2000-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2000-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2000-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2001" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2001-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2001-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2001-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2001-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2002" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2002-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2002-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2002-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2002-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2003" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2003-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2003-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2003-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2003-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2004" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2004-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2004-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2004-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2004-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2005" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2005-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2005-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2005-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2005-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2006" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2006-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2006-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2006-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2006-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2007" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2007-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2007-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2007-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2007-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2008" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2008-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2008-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2008-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2008-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2009" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2009-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2009-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2009-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2009-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2010" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2010-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2010-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2010-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2010-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2011" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2011-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2011-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2011-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2011-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2012" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2012-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2012-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2012-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2012-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2013" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2013-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2013-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2013-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2013-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2014" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2014-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2014-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2014-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2014-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2015" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2015-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2015-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2015-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2015-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2016" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2016-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2016-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2016-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2016-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2017" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2017-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2017-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2017-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2017-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2018" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2018-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2018-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2018-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2018-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2019" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2019-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2019-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2019-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2019-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2020" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2020-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2020-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2020-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2020-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2021" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2021-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2021-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2021-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2021-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2022" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2022-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2022-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2022-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2022-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2023" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2023-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2023-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2023-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2023-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2024" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2024-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2024-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2024-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2024-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2025" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2025-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2025-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2025-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2025-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2026" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2026-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2026-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2026-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2026-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2027" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2027-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2027-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2027-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2027-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2028" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2028-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2028-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2028-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2028-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2029" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2029-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2029-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2029-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2029-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2030" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2030-03-31T00:59:59+00:00", "02:59:59", "EET", -120], + ["2030-03-31T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2030-10-27T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2030-10-27T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2031" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2031-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2031-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2031-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2031-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2032" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2032-03-28T00:59:59+00:00", "02:59:59", "EET", -120], + ["2032-03-28T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2032-10-31T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2032-10-31T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2033" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2033-03-27T00:59:59+00:00", "02:59:59", "EET", -120], + ["2033-03-27T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2033-10-30T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2033-10-30T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2034" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2034-03-26T00:59:59+00:00", "02:59:59", "EET", -120], + ["2034-03-26T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2034-10-29T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2034-10-29T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2035" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2035-03-25T00:59:59+00:00", "02:59:59", "EET", -120], + ["2035-03-25T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2035-10-28T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2035-10-28T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2036" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2036-03-30T00:59:59+00:00", "02:59:59", "EET", -120], + ["2036-03-30T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2036-10-26T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2036-10-26T01:00:00+00:00", "03:00:00", "EET", -120] + ]), + + "2037" : helpers.makeTestYear("Europe/Zaporozhye", [ + ["2037-03-29T00:59:59+00:00", "02:59:59", "EET", -120], + ["2037-03-29T01:00:00+00:00", "04:00:00", "EEST", -180], + ["2037-10-25T00:59:59+00:00", "03:59:59", "EEST", -180], + ["2037-10-25T01:00:00+00:00", "03:00:00", "EET", -120] + ]) +}; \ No newline at end of file diff --git a/tests/zones/europe/zurich.js b/tests/zones/europe/zurich.js new file mode 100644 index 00000000..b5bc50f2 --- /dev/null +++ b/tests/zones/europe/zurich.js @@ -0,0 +1,418 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Europe/Zurich"] = { + "1941" : helpers.makeTestYear("Europe/Zurich", [ + ["1941-05-04T23:59:59+00:00", "00:59:59", "CET", -60], + ["1941-05-05T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1941-10-05T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1941-10-06T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1942" : helpers.makeTestYear("Europe/Zurich", [ + ["1942-05-03T23:59:59+00:00", "00:59:59", "CET", -60], + ["1942-05-04T00:00:00+00:00", "02:00:00", "CEST", -120], + ["1942-10-04T23:59:59+00:00", "01:59:59", "CEST", -120], + ["1942-10-05T00:00:00+00:00", "01:00:00", "CET", -60] + ]), + + "1981" : helpers.makeTestYear("Europe/Zurich", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1982" : helpers.makeTestYear("Europe/Zurich", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1983" : helpers.makeTestYear("Europe/Zurich", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1984" : helpers.makeTestYear("Europe/Zurich", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1985" : helpers.makeTestYear("Europe/Zurich", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1986" : helpers.makeTestYear("Europe/Zurich", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1987" : helpers.makeTestYear("Europe/Zurich", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1988" : helpers.makeTestYear("Europe/Zurich", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1989" : helpers.makeTestYear("Europe/Zurich", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1990" : helpers.makeTestYear("Europe/Zurich", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1991" : helpers.makeTestYear("Europe/Zurich", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1992" : helpers.makeTestYear("Europe/Zurich", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1993" : helpers.makeTestYear("Europe/Zurich", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1994" : helpers.makeTestYear("Europe/Zurich", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1995" : helpers.makeTestYear("Europe/Zurich", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1996" : helpers.makeTestYear("Europe/Zurich", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1997" : helpers.makeTestYear("Europe/Zurich", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1998" : helpers.makeTestYear("Europe/Zurich", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "1999" : helpers.makeTestYear("Europe/Zurich", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2000" : helpers.makeTestYear("Europe/Zurich", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2001" : helpers.makeTestYear("Europe/Zurich", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2002" : helpers.makeTestYear("Europe/Zurich", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2003" : helpers.makeTestYear("Europe/Zurich", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2004" : helpers.makeTestYear("Europe/Zurich", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2005" : helpers.makeTestYear("Europe/Zurich", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2006" : helpers.makeTestYear("Europe/Zurich", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2007" : helpers.makeTestYear("Europe/Zurich", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2008" : helpers.makeTestYear("Europe/Zurich", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2009" : helpers.makeTestYear("Europe/Zurich", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2010" : helpers.makeTestYear("Europe/Zurich", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2011" : helpers.makeTestYear("Europe/Zurich", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2012" : helpers.makeTestYear("Europe/Zurich", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2013" : helpers.makeTestYear("Europe/Zurich", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2014" : helpers.makeTestYear("Europe/Zurich", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2015" : helpers.makeTestYear("Europe/Zurich", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2016" : helpers.makeTestYear("Europe/Zurich", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2017" : helpers.makeTestYear("Europe/Zurich", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2018" : helpers.makeTestYear("Europe/Zurich", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2019" : helpers.makeTestYear("Europe/Zurich", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2020" : helpers.makeTestYear("Europe/Zurich", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2021" : helpers.makeTestYear("Europe/Zurich", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2022" : helpers.makeTestYear("Europe/Zurich", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2023" : helpers.makeTestYear("Europe/Zurich", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2024" : helpers.makeTestYear("Europe/Zurich", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2025" : helpers.makeTestYear("Europe/Zurich", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2026" : helpers.makeTestYear("Europe/Zurich", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2027" : helpers.makeTestYear("Europe/Zurich", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2028" : helpers.makeTestYear("Europe/Zurich", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2029" : helpers.makeTestYear("Europe/Zurich", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2030" : helpers.makeTestYear("Europe/Zurich", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "CET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2031" : helpers.makeTestYear("Europe/Zurich", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2032" : helpers.makeTestYear("Europe/Zurich", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "CET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2033" : helpers.makeTestYear("Europe/Zurich", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "CET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2034" : helpers.makeTestYear("Europe/Zurich", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "CET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2035" : helpers.makeTestYear("Europe/Zurich", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "CET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2036" : helpers.makeTestYear("Europe/Zurich", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "CET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "CET", -60] + ]), + + "2037" : helpers.makeTestYear("Europe/Zurich", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "CET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "CEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "CEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "CET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/hst.js b/tests/zones/hst.js new file mode 100644 index 00000000..f57f278a --- /dev/null +++ b/tests/zones/hst.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["HST"] = { + +}; \ No newline at end of file diff --git a/tests/zones/indian/antananarivo.js b/tests/zones/indian/antananarivo.js new file mode 100644 index 00000000..2fe09a77 --- /dev/null +++ b/tests/zones/indian/antananarivo.js @@ -0,0 +1,17 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Antananarivo"] = { + "1911" : helpers.makeTestYear("Indian/Antananarivo", [ + ["1911-06-30T20:49:55+00:00", "23:59:59", "LMT", -11404 / 60], + ["1911-06-30T20:49:56+00:00", "23:49:56", "EAT", -180] + ]), + + "1954" : helpers.makeTestYear("Indian/Antananarivo", [ + ["1954-02-27T19:59:59+00:00", "22:59:59", "EAT", -180], + ["1954-02-27T20:00:00+00:00", "00:00:00", "EAST", -240], + ["1954-05-29T19:59:59+00:00", "23:59:59", "EAST", -240], + ["1954-05-29T20:00:00+00:00", "23:00:00", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/indian/chagos.js b/tests/zones/indian/chagos.js new file mode 100644 index 00000000..e9747e9b --- /dev/null +++ b/tests/zones/indian/chagos.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Chagos"] = { + "1906" : helpers.makeTestYear("Indian/Chagos", [ + ["1906-12-31T19:10:19+00:00", "23:59:59", "LMT", -17380 / 60], + ["1906-12-31T19:10:20+00:00", "00:10:20", "IOT", -300] + ]), + + "1995" : helpers.makeTestYear("Indian/Chagos", [ + ["1995-12-31T18:59:59+00:00", "23:59:59", "IOT", -300], + ["1995-12-31T19:00:00+00:00", "01:00:00", "IOT", -360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/indian/christmas.js b/tests/zones/indian/christmas.js new file mode 100644 index 00000000..aad180b7 --- /dev/null +++ b/tests/zones/indian/christmas.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Christmas"] = { + +}; \ No newline at end of file diff --git a/tests/zones/indian/cocos.js b/tests/zones/indian/cocos.js new file mode 100644 index 00000000..34e77cae --- /dev/null +++ b/tests/zones/indian/cocos.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Cocos"] = { + +}; \ No newline at end of file diff --git a/tests/zones/indian/comoro.js b/tests/zones/indian/comoro.js new file mode 100644 index 00000000..96f272f3 --- /dev/null +++ b/tests/zones/indian/comoro.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Comoro"] = { + "1911" : helpers.makeTestYear("Indian/Comoro", [ + ["1911-06-30T21:06:55+00:00", "23:59:59", "LMT", -10384 / 60], + ["1911-06-30T21:06:56+00:00", "00:06:56", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/indian/kerguelen.js b/tests/zones/indian/kerguelen.js new file mode 100644 index 00000000..9047335a --- /dev/null +++ b/tests/zones/indian/kerguelen.js @@ -0,0 +1,13 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Kerguelen"] = { + "1949" : helpers.makeTestYear("Indian/Kerguelen", [ + ["1949-12-31T23:59:59+00:00", "23:59:59", "zzz", 0] + ]), + + "1950" : helpers.makeTestYear("Indian/Kerguelen", [ + ["1950-01-01T00:00:00+00:00", "05:00:00", "TFT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/indian/mahe.js b/tests/zones/indian/mahe.js new file mode 100644 index 00000000..bf5573de --- /dev/null +++ b/tests/zones/indian/mahe.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Mahe"] = { + "1906" : helpers.makeTestYear("Indian/Mahe", [ + ["1906-05-31T20:18:11+00:00", "23:59:59", "LMT", -13308 / 60], + ["1906-05-31T20:18:12+00:00", "00:18:12", "SCT", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/indian/maldives.js b/tests/zones/indian/maldives.js new file mode 100644 index 00000000..24576ce4 --- /dev/null +++ b/tests/zones/indian/maldives.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Maldives"] = { + "1959" : helpers.makeTestYear("Indian/Maldives", [ + ["1959-12-31T19:05:59+00:00", "23:59:59", "MMT", -294], + ["1959-12-31T19:06:00+00:00", "00:06:00", "MVT", -300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/indian/mauritius.js b/tests/zones/indian/mauritius.js new file mode 100644 index 00000000..c0752625 --- /dev/null +++ b/tests/zones/indian/mauritius.js @@ -0,0 +1,30 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Mauritius"] = { + "1906" : helpers.makeTestYear("Indian/Mauritius", [ + ["1906-12-31T20:09:59+00:00", "23:59:59", "LMT", -230], + ["1906-12-31T20:10:00+00:00", "00:10:00", "MUT", -240] + ]), + + "1982" : helpers.makeTestYear("Indian/Mauritius", [ + ["1982-10-09T19:59:59+00:00", "23:59:59", "MUT", -240], + ["1982-10-09T20:00:00+00:00", "01:00:00", "MUST", -300] + ]), + + "1983" : helpers.makeTestYear("Indian/Mauritius", [ + ["1983-03-20T18:59:59+00:00", "23:59:59", "MUST", -300], + ["1983-03-20T19:00:00+00:00", "23:00:00", "MUT", -240] + ]), + + "2008" : helpers.makeTestYear("Indian/Mauritius", [ + ["2008-10-25T21:59:59+00:00", "01:59:59", "MUT", -240], + ["2008-10-25T22:00:00+00:00", "03:00:00", "MUST", -300] + ]), + + "2009" : helpers.makeTestYear("Indian/Mauritius", [ + ["2009-03-28T20:59:59+00:00", "01:59:59", "MUST", -300], + ["2009-03-28T21:00:00+00:00", "01:00:00", "MUT", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/indian/mayotte.js b/tests/zones/indian/mayotte.js new file mode 100644 index 00000000..0eeee765 --- /dev/null +++ b/tests/zones/indian/mayotte.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Mayotte"] = { + "1911" : helpers.makeTestYear("Indian/Mayotte", [ + ["1911-06-30T20:59:03+00:00", "23:59:59", "LMT", -10856 / 60], + ["1911-06-30T20:59:04+00:00", "23:59:04", "EAT", -180] + ]) +}; \ No newline at end of file diff --git a/tests/zones/indian/reunion.js b/tests/zones/indian/reunion.js new file mode 100644 index 00000000..495a5b49 --- /dev/null +++ b/tests/zones/indian/reunion.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Indian/Reunion"] = { + "1911" : helpers.makeTestYear("Indian/Reunion", [ + ["1911-05-31T20:18:07+00:00", "23:59:59", "LMT", -13312 / 60], + ["1911-05-31T20:18:08+00:00", "00:18:08", "RET", -240] + ]) +}; \ No newline at end of file diff --git a/tests/zones/met.js b/tests/zones/met.js new file mode 100644 index 00000000..43771482 --- /dev/null +++ b/tests/zones/met.js @@ -0,0 +1,484 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["MET"] = { + "1916" : helpers.makeTestYear("MET", [ + ["1916-04-30T21:59:59+00:00", "22:59:59", "MET", -60], + ["1916-04-30T22:00:00+00:00", "00:00:00", "MEST", -120], + ["1916-09-30T22:59:59+00:00", "00:59:59", "MEST", -120], + ["1916-09-30T23:00:00+00:00", "00:00:00", "MET", -60] + ]), + + "1917" : helpers.makeTestYear("MET", [ + ["1917-04-16T00:59:59+00:00", "01:59:59", "MET", -60], + ["1917-04-16T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1917-09-17T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1917-09-17T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1918" : helpers.makeTestYear("MET", [ + ["1918-04-15T00:59:59+00:00", "01:59:59", "MET", -60], + ["1918-04-15T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1918-09-16T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1918-09-16T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1940" : helpers.makeTestYear("MET", [ + ["1940-04-01T00:59:59+00:00", "01:59:59", "MET", -60], + ["1940-04-01T01:00:00+00:00", "03:00:00", "MEST", -120] + ]), + + "1942" : helpers.makeTestYear("MET", [ + ["1942-11-02T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1942-11-02T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1943" : helpers.makeTestYear("MET", [ + ["1943-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["1943-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1943-10-04T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1943-10-04T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1944" : helpers.makeTestYear("MET", [ + ["1944-04-03T00:59:59+00:00", "01:59:59", "MET", -60], + ["1944-04-03T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1944-10-02T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1944-10-02T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1945" : helpers.makeTestYear("MET", [ + ["1945-04-02T00:59:59+00:00", "01:59:59", "MET", -60], + ["1945-04-02T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1945-09-16T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1945-09-16T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1977" : helpers.makeTestYear("MET", [ + ["1977-04-03T00:59:59+00:00", "01:59:59", "MET", -60], + ["1977-04-03T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1977-09-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1977-09-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1978" : helpers.makeTestYear("MET", [ + ["1978-04-02T00:59:59+00:00", "01:59:59", "MET", -60], + ["1978-04-02T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1978-10-01T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1978-10-01T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1979" : helpers.makeTestYear("MET", [ + ["1979-04-01T00:59:59+00:00", "01:59:59", "MET", -60], + ["1979-04-01T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1979-09-30T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1979-09-30T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1980" : helpers.makeTestYear("MET", [ + ["1980-04-06T00:59:59+00:00", "01:59:59", "MET", -60], + ["1980-04-06T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1980-09-28T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1980-09-28T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1981" : helpers.makeTestYear("MET", [ + ["1981-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["1981-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1981-09-27T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1981-09-27T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1982" : helpers.makeTestYear("MET", [ + ["1982-03-28T00:59:59+00:00", "01:59:59", "MET", -60], + ["1982-03-28T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1982-09-26T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1982-09-26T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1983" : helpers.makeTestYear("MET", [ + ["1983-03-27T00:59:59+00:00", "01:59:59", "MET", -60], + ["1983-03-27T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1983-09-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1983-09-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1984" : helpers.makeTestYear("MET", [ + ["1984-03-25T00:59:59+00:00", "01:59:59", "MET", -60], + ["1984-03-25T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1984-09-30T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1984-09-30T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1985" : helpers.makeTestYear("MET", [ + ["1985-03-31T00:59:59+00:00", "01:59:59", "MET", -60], + ["1985-03-31T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1985-09-29T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1985-09-29T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1986" : helpers.makeTestYear("MET", [ + ["1986-03-30T00:59:59+00:00", "01:59:59", "MET", -60], + ["1986-03-30T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1986-09-28T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1986-09-28T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1987" : helpers.makeTestYear("MET", [ + ["1987-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["1987-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1987-09-27T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1987-09-27T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1988" : helpers.makeTestYear("MET", [ + ["1988-03-27T00:59:59+00:00", "01:59:59", "MET", -60], + ["1988-03-27T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1988-09-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1988-09-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1989" : helpers.makeTestYear("MET", [ + ["1989-03-26T00:59:59+00:00", "01:59:59", "MET", -60], + ["1989-03-26T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1989-09-24T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1989-09-24T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1990" : helpers.makeTestYear("MET", [ + ["1990-03-25T00:59:59+00:00", "01:59:59", "MET", -60], + ["1990-03-25T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1990-09-30T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1990-09-30T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1991" : helpers.makeTestYear("MET", [ + ["1991-03-31T00:59:59+00:00", "01:59:59", "MET", -60], + ["1991-03-31T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1991-09-29T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1991-09-29T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1992" : helpers.makeTestYear("MET", [ + ["1992-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["1992-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1992-09-27T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1992-09-27T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1993" : helpers.makeTestYear("MET", [ + ["1993-03-28T00:59:59+00:00", "01:59:59", "MET", -60], + ["1993-03-28T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1993-09-26T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1993-09-26T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1994" : helpers.makeTestYear("MET", [ + ["1994-03-27T00:59:59+00:00", "01:59:59", "MET", -60], + ["1994-03-27T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1994-09-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1994-09-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1995" : helpers.makeTestYear("MET", [ + ["1995-03-26T00:59:59+00:00", "01:59:59", "MET", -60], + ["1995-03-26T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1995-09-24T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1995-09-24T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1996" : helpers.makeTestYear("MET", [ + ["1996-03-31T00:59:59+00:00", "01:59:59", "MET", -60], + ["1996-03-31T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1996-10-27T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1996-10-27T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1997" : helpers.makeTestYear("MET", [ + ["1997-03-30T00:59:59+00:00", "01:59:59", "MET", -60], + ["1997-03-30T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1997-10-26T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1997-10-26T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1998" : helpers.makeTestYear("MET", [ + ["1998-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["1998-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1998-10-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1998-10-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "1999" : helpers.makeTestYear("MET", [ + ["1999-03-28T00:59:59+00:00", "01:59:59", "MET", -60], + ["1999-03-28T01:00:00+00:00", "03:00:00", "MEST", -120], + ["1999-10-31T00:59:59+00:00", "02:59:59", "MEST", -120], + ["1999-10-31T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2000" : helpers.makeTestYear("MET", [ + ["2000-03-26T00:59:59+00:00", "01:59:59", "MET", -60], + ["2000-03-26T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2000-10-29T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2000-10-29T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2001" : helpers.makeTestYear("MET", [ + ["2001-03-25T00:59:59+00:00", "01:59:59", "MET", -60], + ["2001-03-25T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2001-10-28T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2001-10-28T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2002" : helpers.makeTestYear("MET", [ + ["2002-03-31T00:59:59+00:00", "01:59:59", "MET", -60], + ["2002-03-31T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2002-10-27T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2002-10-27T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2003" : helpers.makeTestYear("MET", [ + ["2003-03-30T00:59:59+00:00", "01:59:59", "MET", -60], + ["2003-03-30T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2003-10-26T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2003-10-26T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2004" : helpers.makeTestYear("MET", [ + ["2004-03-28T00:59:59+00:00", "01:59:59", "MET", -60], + ["2004-03-28T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2004-10-31T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2004-10-31T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2005" : helpers.makeTestYear("MET", [ + ["2005-03-27T00:59:59+00:00", "01:59:59", "MET", -60], + ["2005-03-27T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2005-10-30T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2005-10-30T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2006" : helpers.makeTestYear("MET", [ + ["2006-03-26T00:59:59+00:00", "01:59:59", "MET", -60], + ["2006-03-26T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2006-10-29T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2006-10-29T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2007" : helpers.makeTestYear("MET", [ + ["2007-03-25T00:59:59+00:00", "01:59:59", "MET", -60], + ["2007-03-25T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2007-10-28T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2007-10-28T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2008" : helpers.makeTestYear("MET", [ + ["2008-03-30T00:59:59+00:00", "01:59:59", "MET", -60], + ["2008-03-30T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2008-10-26T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2008-10-26T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2009" : helpers.makeTestYear("MET", [ + ["2009-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["2009-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2009-10-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2009-10-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2010" : helpers.makeTestYear("MET", [ + ["2010-03-28T00:59:59+00:00", "01:59:59", "MET", -60], + ["2010-03-28T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2010-10-31T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2010-10-31T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2011" : helpers.makeTestYear("MET", [ + ["2011-03-27T00:59:59+00:00", "01:59:59", "MET", -60], + ["2011-03-27T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2011-10-30T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2011-10-30T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2012" : helpers.makeTestYear("MET", [ + ["2012-03-25T00:59:59+00:00", "01:59:59", "MET", -60], + ["2012-03-25T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2012-10-28T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2012-10-28T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2013" : helpers.makeTestYear("MET", [ + ["2013-03-31T00:59:59+00:00", "01:59:59", "MET", -60], + ["2013-03-31T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2013-10-27T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2013-10-27T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2014" : helpers.makeTestYear("MET", [ + ["2014-03-30T00:59:59+00:00", "01:59:59", "MET", -60], + ["2014-03-30T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2014-10-26T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2014-10-26T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2015" : helpers.makeTestYear("MET", [ + ["2015-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["2015-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2015-10-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2015-10-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2016" : helpers.makeTestYear("MET", [ + ["2016-03-27T00:59:59+00:00", "01:59:59", "MET", -60], + ["2016-03-27T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2016-10-30T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2016-10-30T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2017" : helpers.makeTestYear("MET", [ + ["2017-03-26T00:59:59+00:00", "01:59:59", "MET", -60], + ["2017-03-26T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2017-10-29T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2017-10-29T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2018" : helpers.makeTestYear("MET", [ + ["2018-03-25T00:59:59+00:00", "01:59:59", "MET", -60], + ["2018-03-25T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2018-10-28T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2018-10-28T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2019" : helpers.makeTestYear("MET", [ + ["2019-03-31T00:59:59+00:00", "01:59:59", "MET", -60], + ["2019-03-31T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2019-10-27T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2019-10-27T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2020" : helpers.makeTestYear("MET", [ + ["2020-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["2020-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2020-10-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2020-10-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2021" : helpers.makeTestYear("MET", [ + ["2021-03-28T00:59:59+00:00", "01:59:59", "MET", -60], + ["2021-03-28T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2021-10-31T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2021-10-31T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2022" : helpers.makeTestYear("MET", [ + ["2022-03-27T00:59:59+00:00", "01:59:59", "MET", -60], + ["2022-03-27T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2022-10-30T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2022-10-30T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2023" : helpers.makeTestYear("MET", [ + ["2023-03-26T00:59:59+00:00", "01:59:59", "MET", -60], + ["2023-03-26T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2023-10-29T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2023-10-29T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2024" : helpers.makeTestYear("MET", [ + ["2024-03-31T00:59:59+00:00", "01:59:59", "MET", -60], + ["2024-03-31T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2024-10-27T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2024-10-27T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2025" : helpers.makeTestYear("MET", [ + ["2025-03-30T00:59:59+00:00", "01:59:59", "MET", -60], + ["2025-03-30T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2025-10-26T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2025-10-26T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2026" : helpers.makeTestYear("MET", [ + ["2026-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["2026-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2026-10-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2026-10-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2027" : helpers.makeTestYear("MET", [ + ["2027-03-28T00:59:59+00:00", "01:59:59", "MET", -60], + ["2027-03-28T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2027-10-31T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2027-10-31T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2028" : helpers.makeTestYear("MET", [ + ["2028-03-26T00:59:59+00:00", "01:59:59", "MET", -60], + ["2028-03-26T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2028-10-29T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2028-10-29T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2029" : helpers.makeTestYear("MET", [ + ["2029-03-25T00:59:59+00:00", "01:59:59", "MET", -60], + ["2029-03-25T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2029-10-28T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2029-10-28T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2030" : helpers.makeTestYear("MET", [ + ["2030-03-31T00:59:59+00:00", "01:59:59", "MET", -60], + ["2030-03-31T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2030-10-27T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2030-10-27T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2031" : helpers.makeTestYear("MET", [ + ["2031-03-30T00:59:59+00:00", "01:59:59", "MET", -60], + ["2031-03-30T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2031-10-26T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2031-10-26T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2032" : helpers.makeTestYear("MET", [ + ["2032-03-28T00:59:59+00:00", "01:59:59", "MET", -60], + ["2032-03-28T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2032-10-31T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2032-10-31T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2033" : helpers.makeTestYear("MET", [ + ["2033-03-27T00:59:59+00:00", "01:59:59", "MET", -60], + ["2033-03-27T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2033-10-30T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2033-10-30T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2034" : helpers.makeTestYear("MET", [ + ["2034-03-26T00:59:59+00:00", "01:59:59", "MET", -60], + ["2034-03-26T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2034-10-29T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2034-10-29T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2035" : helpers.makeTestYear("MET", [ + ["2035-03-25T00:59:59+00:00", "01:59:59", "MET", -60], + ["2035-03-25T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2035-10-28T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2035-10-28T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2036" : helpers.makeTestYear("MET", [ + ["2036-03-30T00:59:59+00:00", "01:59:59", "MET", -60], + ["2036-03-30T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2036-10-26T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2036-10-26T01:00:00+00:00", "02:00:00", "MET", -60] + ]), + + "2037" : helpers.makeTestYear("MET", [ + ["2037-03-29T00:59:59+00:00", "01:59:59", "MET", -60], + ["2037-03-29T01:00:00+00:00", "03:00:00", "MEST", -120], + ["2037-10-25T00:59:59+00:00", "02:59:59", "MEST", -120], + ["2037-10-25T01:00:00+00:00", "02:00:00", "MET", -60] + ]) +}; \ No newline at end of file diff --git a/tests/zones/mst.js b/tests/zones/mst.js new file mode 100644 index 00000000..8effe8a9 --- /dev/null +++ b/tests/zones/mst.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["MST"] = { + +}; \ No newline at end of file diff --git a/tests/zones/mst7mdt.js b/tests/zones/mst7mdt.js new file mode 100644 index 00000000..a464f7da --- /dev/null +++ b/tests/zones/mst7mdt.js @@ -0,0 +1,528 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["MST7MDT"] = { + "1918" : helpers.makeTestYear("MST7MDT", [ + ["1918-03-31T08:59:59+00:00", "01:59:59", "MST", 420], + ["1918-03-31T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1918-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1918-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1919" : helpers.makeTestYear("MST7MDT", [ + ["1919-03-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1919-03-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1919-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1919-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1942" : helpers.makeTestYear("MST7MDT", [ + ["1942-02-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["1942-02-09T09:00:00+00:00", "03:00:00", "MWT", 360] + ]), + + "1945" : helpers.makeTestYear("MST7MDT", [ + ["1945-08-14T22:59:59+00:00", "16:59:59", "MWT", 360], + ["1945-08-14T23:00:00+00:00", "17:00:00", "MPT", 360], + ["1945-09-30T07:59:59+00:00", "01:59:59", "MPT", 360], + ["1945-09-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1967" : helpers.makeTestYear("MST7MDT", [ + ["1967-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1967-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1967-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1967-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1968" : helpers.makeTestYear("MST7MDT", [ + ["1968-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1968-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1968-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1968-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1969" : helpers.makeTestYear("MST7MDT", [ + ["1969-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1969-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1969-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1969-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1970" : helpers.makeTestYear("MST7MDT", [ + ["1970-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1970-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1970-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1970-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1971" : helpers.makeTestYear("MST7MDT", [ + ["1971-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1971-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1971-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1971-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1972" : helpers.makeTestYear("MST7MDT", [ + ["1972-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1972-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1972-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1972-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1973" : helpers.makeTestYear("MST7MDT", [ + ["1973-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1973-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1973-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1973-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1974" : helpers.makeTestYear("MST7MDT", [ + ["1974-01-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1974-01-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1974-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1974-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1975" : helpers.makeTestYear("MST7MDT", [ + ["1975-02-23T08:59:59+00:00", "01:59:59", "MST", 420], + ["1975-02-23T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1975-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1975-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1976" : helpers.makeTestYear("MST7MDT", [ + ["1976-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1976-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1976-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1976-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1977" : helpers.makeTestYear("MST7MDT", [ + ["1977-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1977-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1977-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1977-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1978" : helpers.makeTestYear("MST7MDT", [ + ["1978-04-30T08:59:59+00:00", "01:59:59", "MST", 420], + ["1978-04-30T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1978-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1978-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1979" : helpers.makeTestYear("MST7MDT", [ + ["1979-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1979-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1979-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1979-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1980" : helpers.makeTestYear("MST7MDT", [ + ["1980-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1980-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1980-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1980-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1981" : helpers.makeTestYear("MST7MDT", [ + ["1981-04-26T08:59:59+00:00", "01:59:59", "MST", 420], + ["1981-04-26T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1981-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1981-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1982" : helpers.makeTestYear("MST7MDT", [ + ["1982-04-25T08:59:59+00:00", "01:59:59", "MST", 420], + ["1982-04-25T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1982-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1982-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1983" : helpers.makeTestYear("MST7MDT", [ + ["1983-04-24T08:59:59+00:00", "01:59:59", "MST", 420], + ["1983-04-24T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1983-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1983-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1984" : helpers.makeTestYear("MST7MDT", [ + ["1984-04-29T08:59:59+00:00", "01:59:59", "MST", 420], + ["1984-04-29T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1984-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1984-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1985" : helpers.makeTestYear("MST7MDT", [ + ["1985-04-28T08:59:59+00:00", "01:59:59", "MST", 420], + ["1985-04-28T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1985-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1985-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1986" : helpers.makeTestYear("MST7MDT", [ + ["1986-04-27T08:59:59+00:00", "01:59:59", "MST", 420], + ["1986-04-27T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1986-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1986-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1987" : helpers.makeTestYear("MST7MDT", [ + ["1987-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1987-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1987-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1987-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1988" : helpers.makeTestYear("MST7MDT", [ + ["1988-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1988-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1988-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1988-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1989" : helpers.makeTestYear("MST7MDT", [ + ["1989-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1989-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1989-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1989-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1990" : helpers.makeTestYear("MST7MDT", [ + ["1990-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["1990-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1990-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1990-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1991" : helpers.makeTestYear("MST7MDT", [ + ["1991-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1991-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1991-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1991-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1992" : helpers.makeTestYear("MST7MDT", [ + ["1992-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1992-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1992-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1992-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1993" : helpers.makeTestYear("MST7MDT", [ + ["1993-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1993-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1993-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1993-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1994" : helpers.makeTestYear("MST7MDT", [ + ["1994-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["1994-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1994-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1994-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1995" : helpers.makeTestYear("MST7MDT", [ + ["1995-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["1995-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1995-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1995-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1996" : helpers.makeTestYear("MST7MDT", [ + ["1996-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["1996-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1996-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1996-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1997" : helpers.makeTestYear("MST7MDT", [ + ["1997-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["1997-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1997-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1997-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1998" : helpers.makeTestYear("MST7MDT", [ + ["1998-04-05T08:59:59+00:00", "01:59:59", "MST", 420], + ["1998-04-05T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1998-10-25T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1998-10-25T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "1999" : helpers.makeTestYear("MST7MDT", [ + ["1999-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["1999-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["1999-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["1999-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2000" : helpers.makeTestYear("MST7MDT", [ + ["2000-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2000-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2000-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2000-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2001" : helpers.makeTestYear("MST7MDT", [ + ["2001-04-01T08:59:59+00:00", "01:59:59", "MST", 420], + ["2001-04-01T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2001-10-28T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2001-10-28T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2002" : helpers.makeTestYear("MST7MDT", [ + ["2002-04-07T08:59:59+00:00", "01:59:59", "MST", 420], + ["2002-04-07T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2002-10-27T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2002-10-27T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2003" : helpers.makeTestYear("MST7MDT", [ + ["2003-04-06T08:59:59+00:00", "01:59:59", "MST", 420], + ["2003-04-06T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2003-10-26T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2003-10-26T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2004" : helpers.makeTestYear("MST7MDT", [ + ["2004-04-04T08:59:59+00:00", "01:59:59", "MST", 420], + ["2004-04-04T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2004-10-31T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2004-10-31T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2005" : helpers.makeTestYear("MST7MDT", [ + ["2005-04-03T08:59:59+00:00", "01:59:59", "MST", 420], + ["2005-04-03T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2005-10-30T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2005-10-30T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2006" : helpers.makeTestYear("MST7MDT", [ + ["2006-04-02T08:59:59+00:00", "01:59:59", "MST", 420], + ["2006-04-02T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2006-10-29T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2006-10-29T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2007" : helpers.makeTestYear("MST7MDT", [ + ["2007-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2007-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2007-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2007-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2008" : helpers.makeTestYear("MST7MDT", [ + ["2008-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2008-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2008-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2008-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2009" : helpers.makeTestYear("MST7MDT", [ + ["2009-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2009-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2009-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2009-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2010" : helpers.makeTestYear("MST7MDT", [ + ["2010-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2010-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2010-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2010-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2011" : helpers.makeTestYear("MST7MDT", [ + ["2011-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2011-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2011-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2011-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2012" : helpers.makeTestYear("MST7MDT", [ + ["2012-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2012-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2012-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2012-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2013" : helpers.makeTestYear("MST7MDT", [ + ["2013-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2013-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2013-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2013-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2014" : helpers.makeTestYear("MST7MDT", [ + ["2014-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2014-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2014-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2014-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2015" : helpers.makeTestYear("MST7MDT", [ + ["2015-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2015-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2015-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2015-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2016" : helpers.makeTestYear("MST7MDT", [ + ["2016-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2016-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2016-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2016-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2017" : helpers.makeTestYear("MST7MDT", [ + ["2017-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2017-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2017-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2017-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2018" : helpers.makeTestYear("MST7MDT", [ + ["2018-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2018-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2018-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2018-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2019" : helpers.makeTestYear("MST7MDT", [ + ["2019-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2019-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2019-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2019-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2020" : helpers.makeTestYear("MST7MDT", [ + ["2020-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2020-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2020-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2020-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2021" : helpers.makeTestYear("MST7MDT", [ + ["2021-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2021-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2021-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2021-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2022" : helpers.makeTestYear("MST7MDT", [ + ["2022-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2022-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2022-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2022-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2023" : helpers.makeTestYear("MST7MDT", [ + ["2023-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2023-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2023-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2023-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2024" : helpers.makeTestYear("MST7MDT", [ + ["2024-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2024-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2024-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2024-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2025" : helpers.makeTestYear("MST7MDT", [ + ["2025-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2025-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2025-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2025-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2026" : helpers.makeTestYear("MST7MDT", [ + ["2026-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2026-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2026-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2026-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2027" : helpers.makeTestYear("MST7MDT", [ + ["2027-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2027-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2027-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2027-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2028" : helpers.makeTestYear("MST7MDT", [ + ["2028-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2028-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2028-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2028-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2029" : helpers.makeTestYear("MST7MDT", [ + ["2029-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2029-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2029-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2029-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2030" : helpers.makeTestYear("MST7MDT", [ + ["2030-03-10T08:59:59+00:00", "01:59:59", "MST", 420], + ["2030-03-10T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2030-11-03T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2030-11-03T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2031" : helpers.makeTestYear("MST7MDT", [ + ["2031-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2031-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2031-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2031-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2032" : helpers.makeTestYear("MST7MDT", [ + ["2032-03-14T08:59:59+00:00", "01:59:59", "MST", 420], + ["2032-03-14T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2032-11-07T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2032-11-07T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2033" : helpers.makeTestYear("MST7MDT", [ + ["2033-03-13T08:59:59+00:00", "01:59:59", "MST", 420], + ["2033-03-13T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2033-11-06T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2033-11-06T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2034" : helpers.makeTestYear("MST7MDT", [ + ["2034-03-12T08:59:59+00:00", "01:59:59", "MST", 420], + ["2034-03-12T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2034-11-05T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2034-11-05T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2035" : helpers.makeTestYear("MST7MDT", [ + ["2035-03-11T08:59:59+00:00", "01:59:59", "MST", 420], + ["2035-03-11T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2035-11-04T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2035-11-04T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2036" : helpers.makeTestYear("MST7MDT", [ + ["2036-03-09T08:59:59+00:00", "01:59:59", "MST", 420], + ["2036-03-09T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2036-11-02T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2036-11-02T08:00:00+00:00", "01:00:00", "MST", 420] + ]), + + "2037" : helpers.makeTestYear("MST7MDT", [ + ["2037-03-08T08:59:59+00:00", "01:59:59", "MST", 420], + ["2037-03-08T09:00:00+00:00", "03:00:00", "MDT", 360], + ["2037-11-01T07:59:59+00:00", "01:59:59", "MDT", 360], + ["2037-11-01T08:00:00+00:00", "01:00:00", "MST", 420] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/apia.js b/tests/zones/pacific/apia.js new file mode 100644 index 00000000..9822f858 --- /dev/null +++ b/tests/zones/pacific/apia.js @@ -0,0 +1,211 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Apia"] = { + "1911" : helpers.makeTestYear("Pacific/Apia", [ + ["1911-01-01T11:26:55+00:00", "23:59:59", "LMT", 41216 / 60], + ["1911-01-01T11:26:56+00:00", "23:56:56", "SAMT", 690] + ]), + + "1950" : helpers.makeTestYear("Pacific/Apia", [ + ["1950-01-01T11:29:59+00:00", "23:59:59", "SAMT", 690], + ["1950-01-01T11:30:00+00:00", "00:30:00", "WST", 660] + ]), + + "2010" : helpers.makeTestYear("Pacific/Apia", [ + ["2010-09-26T10:59:59+00:00", "23:59:59", "WST", 660], + ["2010-09-26T11:00:00+00:00", "01:00:00", "WSDT", 600] + ]), + + "2011" : helpers.makeTestYear("Pacific/Apia", [ + ["2011-04-02T13:59:59+00:00", "03:59:59", "WSDT", 600], + ["2011-04-02T14:00:00+00:00", "03:00:00", "WST", 660], + ["2011-09-24T13:59:59+00:00", "02:59:59", "WST", 660], + ["2011-09-24T14:00:00+00:00", "04:00:00", "WSDT", 600], + ["2011-12-30T09:59:59+00:00", "23:59:59", "WSDT", 600], + ["2011-12-30T10:00:00+00:00", "00:00:00", "WSDT", -840] + ]), + + "2012" : helpers.makeTestYear("Pacific/Apia", [ + ["2012-03-31T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2012-03-31T14:00:00+00:00", "03:00:00", "WST", -780], + ["2012-09-29T13:59:59+00:00", "02:59:59", "WST", -780], + ["2012-09-29T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2013" : helpers.makeTestYear("Pacific/Apia", [ + ["2013-04-06T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2013-04-06T14:00:00+00:00", "03:00:00", "WST", -780], + ["2013-09-28T13:59:59+00:00", "02:59:59", "WST", -780], + ["2013-09-28T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2014" : helpers.makeTestYear("Pacific/Apia", [ + ["2014-04-05T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2014-04-05T14:00:00+00:00", "03:00:00", "WST", -780], + ["2014-09-27T13:59:59+00:00", "02:59:59", "WST", -780], + ["2014-09-27T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2015" : helpers.makeTestYear("Pacific/Apia", [ + ["2015-04-04T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2015-04-04T14:00:00+00:00", "03:00:00", "WST", -780], + ["2015-09-26T13:59:59+00:00", "02:59:59", "WST", -780], + ["2015-09-26T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2016" : helpers.makeTestYear("Pacific/Apia", [ + ["2016-04-02T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2016-04-02T14:00:00+00:00", "03:00:00", "WST", -780], + ["2016-09-24T13:59:59+00:00", "02:59:59", "WST", -780], + ["2016-09-24T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2017" : helpers.makeTestYear("Pacific/Apia", [ + ["2017-04-01T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2017-04-01T14:00:00+00:00", "03:00:00", "WST", -780], + ["2017-09-23T13:59:59+00:00", "02:59:59", "WST", -780], + ["2017-09-23T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2018" : helpers.makeTestYear("Pacific/Apia", [ + ["2018-03-31T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2018-03-31T14:00:00+00:00", "03:00:00", "WST", -780], + ["2018-09-29T13:59:59+00:00", "02:59:59", "WST", -780], + ["2018-09-29T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2019" : helpers.makeTestYear("Pacific/Apia", [ + ["2019-04-06T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2019-04-06T14:00:00+00:00", "03:00:00", "WST", -780], + ["2019-09-28T13:59:59+00:00", "02:59:59", "WST", -780], + ["2019-09-28T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2020" : helpers.makeTestYear("Pacific/Apia", [ + ["2020-04-04T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2020-04-04T14:00:00+00:00", "03:00:00", "WST", -780], + ["2020-09-26T13:59:59+00:00", "02:59:59", "WST", -780], + ["2020-09-26T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2021" : helpers.makeTestYear("Pacific/Apia", [ + ["2021-04-03T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2021-04-03T14:00:00+00:00", "03:00:00", "WST", -780], + ["2021-09-25T13:59:59+00:00", "02:59:59", "WST", -780], + ["2021-09-25T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2022" : helpers.makeTestYear("Pacific/Apia", [ + ["2022-04-02T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2022-04-02T14:00:00+00:00", "03:00:00", "WST", -780], + ["2022-09-24T13:59:59+00:00", "02:59:59", "WST", -780], + ["2022-09-24T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2023" : helpers.makeTestYear("Pacific/Apia", [ + ["2023-04-01T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2023-04-01T14:00:00+00:00", "03:00:00", "WST", -780], + ["2023-09-23T13:59:59+00:00", "02:59:59", "WST", -780], + ["2023-09-23T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2024" : helpers.makeTestYear("Pacific/Apia", [ + ["2024-04-06T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2024-04-06T14:00:00+00:00", "03:00:00", "WST", -780], + ["2024-09-28T13:59:59+00:00", "02:59:59", "WST", -780], + ["2024-09-28T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2025" : helpers.makeTestYear("Pacific/Apia", [ + ["2025-04-05T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2025-04-05T14:00:00+00:00", "03:00:00", "WST", -780], + ["2025-09-27T13:59:59+00:00", "02:59:59", "WST", -780], + ["2025-09-27T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2026" : helpers.makeTestYear("Pacific/Apia", [ + ["2026-04-04T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2026-04-04T14:00:00+00:00", "03:00:00", "WST", -780], + ["2026-09-26T13:59:59+00:00", "02:59:59", "WST", -780], + ["2026-09-26T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2027" : helpers.makeTestYear("Pacific/Apia", [ + ["2027-04-03T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2027-04-03T14:00:00+00:00", "03:00:00", "WST", -780], + ["2027-09-25T13:59:59+00:00", "02:59:59", "WST", -780], + ["2027-09-25T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2028" : helpers.makeTestYear("Pacific/Apia", [ + ["2028-04-01T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2028-04-01T14:00:00+00:00", "03:00:00", "WST", -780], + ["2028-09-23T13:59:59+00:00", "02:59:59", "WST", -780], + ["2028-09-23T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2029" : helpers.makeTestYear("Pacific/Apia", [ + ["2029-03-31T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2029-03-31T14:00:00+00:00", "03:00:00", "WST", -780], + ["2029-09-29T13:59:59+00:00", "02:59:59", "WST", -780], + ["2029-09-29T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2030" : helpers.makeTestYear("Pacific/Apia", [ + ["2030-04-06T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2030-04-06T14:00:00+00:00", "03:00:00", "WST", -780], + ["2030-09-28T13:59:59+00:00", "02:59:59", "WST", -780], + ["2030-09-28T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2031" : helpers.makeTestYear("Pacific/Apia", [ + ["2031-04-05T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2031-04-05T14:00:00+00:00", "03:00:00", "WST", -780], + ["2031-09-27T13:59:59+00:00", "02:59:59", "WST", -780], + ["2031-09-27T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2032" : helpers.makeTestYear("Pacific/Apia", [ + ["2032-04-03T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2032-04-03T14:00:00+00:00", "03:00:00", "WST", -780], + ["2032-09-25T13:59:59+00:00", "02:59:59", "WST", -780], + ["2032-09-25T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2033" : helpers.makeTestYear("Pacific/Apia", [ + ["2033-04-02T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2033-04-02T14:00:00+00:00", "03:00:00", "WST", -780], + ["2033-09-24T13:59:59+00:00", "02:59:59", "WST", -780], + ["2033-09-24T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2034" : helpers.makeTestYear("Pacific/Apia", [ + ["2034-04-01T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2034-04-01T14:00:00+00:00", "03:00:00", "WST", -780], + ["2034-09-23T13:59:59+00:00", "02:59:59", "WST", -780], + ["2034-09-23T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2035" : helpers.makeTestYear("Pacific/Apia", [ + ["2035-03-31T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2035-03-31T14:00:00+00:00", "03:00:00", "WST", -780], + ["2035-09-29T13:59:59+00:00", "02:59:59", "WST", -780], + ["2035-09-29T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2036" : helpers.makeTestYear("Pacific/Apia", [ + ["2036-04-05T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2036-04-05T14:00:00+00:00", "03:00:00", "WST", -780], + ["2036-09-27T13:59:59+00:00", "02:59:59", "WST", -780], + ["2036-09-27T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]), + + "2037" : helpers.makeTestYear("Pacific/Apia", [ + ["2037-04-04T13:59:59+00:00", "03:59:59", "WSDT", -840], + ["2037-04-04T14:00:00+00:00", "03:00:00", "WST", -780], + ["2037-09-26T13:59:59+00:00", "02:59:59", "WST", -780], + ["2037-09-26T14:00:00+00:00", "04:00:00", "WSDT", -840] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/auckland.js b/tests/zones/pacific/auckland.js new file mode 100644 index 00000000..0ec2d7b2 --- /dev/null +++ b/tests/zones/pacific/auckland.js @@ -0,0 +1,552 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Auckland"] = { + "1927" : helpers.makeTestYear("Pacific/Auckland", [ + ["1927-11-05T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1927-11-05T14:30:00+00:00", "03:00:00", "NZST", -750] + ]), + + "1928" : helpers.makeTestYear("Pacific/Auckland", [ + ["1928-03-03T13:29:59+00:00", "01:59:59", "NZST", -750], + ["1928-03-03T13:30:00+00:00", "01:00:00", "NZMT", -690], + ["1928-10-13T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1928-10-13T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1929" : helpers.makeTestYear("Pacific/Auckland", [ + ["1929-03-16T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1929-03-16T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1929-10-12T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1929-10-12T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1930" : helpers.makeTestYear("Pacific/Auckland", [ + ["1930-03-15T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1930-03-15T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1930-10-11T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1930-10-11T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1931" : helpers.makeTestYear("Pacific/Auckland", [ + ["1931-03-14T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1931-03-14T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1931-10-10T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1931-10-10T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1932" : helpers.makeTestYear("Pacific/Auckland", [ + ["1932-03-19T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1932-03-19T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1932-10-08T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1932-10-08T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1933" : helpers.makeTestYear("Pacific/Auckland", [ + ["1933-03-18T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1933-03-18T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1933-10-07T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1933-10-07T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1934" : helpers.makeTestYear("Pacific/Auckland", [ + ["1934-04-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1934-04-28T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1934-09-29T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1934-09-29T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1935" : helpers.makeTestYear("Pacific/Auckland", [ + ["1935-04-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1935-04-27T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1935-09-28T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1935-09-28T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1936" : helpers.makeTestYear("Pacific/Auckland", [ + ["1936-04-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1936-04-25T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1936-09-26T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1936-09-26T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1937" : helpers.makeTestYear("Pacific/Auckland", [ + ["1937-04-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1937-04-24T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1937-09-25T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1937-09-25T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1938" : helpers.makeTestYear("Pacific/Auckland", [ + ["1938-04-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1938-04-23T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1938-09-24T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1938-09-24T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1939" : helpers.makeTestYear("Pacific/Auckland", [ + ["1939-04-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1939-04-29T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1939-09-23T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1939-09-23T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1940" : helpers.makeTestYear("Pacific/Auckland", [ + ["1940-04-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1940-04-27T14:00:00+00:00", "01:30:00", "NZMT", -690], + ["1940-09-28T14:29:59+00:00", "01:59:59", "NZMT", -690], + ["1940-09-28T14:30:00+00:00", "02:30:00", "NZST", -720] + ]), + + "1945" : helpers.makeTestYear("Pacific/Auckland", [ + ["1945-12-31T11:59:59+00:00", "23:59:59", "NZST", -720], + ["1945-12-31T12:00:00+00:00", "00:00:00", "NZST", -720] + ]), + + "1974" : helpers.makeTestYear("Pacific/Auckland", [ + ["1974-11-02T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1974-11-02T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1975" : helpers.makeTestYear("Pacific/Auckland", [ + ["1975-02-22T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1975-02-22T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1975-10-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1975-10-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1976" : helpers.makeTestYear("Pacific/Auckland", [ + ["1976-03-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1976-03-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1976-10-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1976-10-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1977" : helpers.makeTestYear("Pacific/Auckland", [ + ["1977-03-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1977-03-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1977-10-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1977-10-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1978" : helpers.makeTestYear("Pacific/Auckland", [ + ["1978-03-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1978-03-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1978-10-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1978-10-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1979" : helpers.makeTestYear("Pacific/Auckland", [ + ["1979-03-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1979-03-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1979-10-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1979-10-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1980" : helpers.makeTestYear("Pacific/Auckland", [ + ["1980-03-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1980-03-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1980-10-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1980-10-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1981" : helpers.makeTestYear("Pacific/Auckland", [ + ["1981-02-28T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1981-02-28T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1981-10-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1981-10-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1982" : helpers.makeTestYear("Pacific/Auckland", [ + ["1982-03-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1982-03-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1982-10-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1982-10-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1983" : helpers.makeTestYear("Pacific/Auckland", [ + ["1983-03-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1983-03-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1983-10-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1983-10-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1984" : helpers.makeTestYear("Pacific/Auckland", [ + ["1984-03-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1984-03-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1984-10-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1984-10-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1985" : helpers.makeTestYear("Pacific/Auckland", [ + ["1985-03-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1985-03-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1985-10-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1985-10-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1986" : helpers.makeTestYear("Pacific/Auckland", [ + ["1986-03-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1986-03-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1986-10-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1986-10-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1987" : helpers.makeTestYear("Pacific/Auckland", [ + ["1987-02-28T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1987-02-28T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1987-10-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1987-10-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1988" : helpers.makeTestYear("Pacific/Auckland", [ + ["1988-03-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1988-03-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1988-10-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1988-10-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1989" : helpers.makeTestYear("Pacific/Auckland", [ + ["1989-03-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1989-03-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1989-10-07T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1989-10-07T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1990" : helpers.makeTestYear("Pacific/Auckland", [ + ["1990-03-17T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1990-03-17T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1990-10-06T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1990-10-06T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1991" : helpers.makeTestYear("Pacific/Auckland", [ + ["1991-03-16T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1991-03-16T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1991-10-05T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1991-10-05T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1992" : helpers.makeTestYear("Pacific/Auckland", [ + ["1992-03-14T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1992-03-14T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1992-10-03T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1992-10-03T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1993" : helpers.makeTestYear("Pacific/Auckland", [ + ["1993-03-20T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1993-03-20T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1993-10-02T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1993-10-02T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1994" : helpers.makeTestYear("Pacific/Auckland", [ + ["1994-03-19T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1994-03-19T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1994-10-01T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1994-10-01T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1995" : helpers.makeTestYear("Pacific/Auckland", [ + ["1995-03-18T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1995-03-18T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1995-09-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1995-09-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1996" : helpers.makeTestYear("Pacific/Auckland", [ + ["1996-03-16T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1996-03-16T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1996-10-05T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1996-10-05T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1997" : helpers.makeTestYear("Pacific/Auckland", [ + ["1997-03-15T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1997-03-15T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1997-10-04T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1997-10-04T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1998" : helpers.makeTestYear("Pacific/Auckland", [ + ["1998-03-14T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1998-03-14T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1998-10-03T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1998-10-03T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "1999" : helpers.makeTestYear("Pacific/Auckland", [ + ["1999-03-20T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["1999-03-20T14:00:00+00:00", "02:00:00", "NZST", -720], + ["1999-10-02T13:59:59+00:00", "01:59:59", "NZST", -720], + ["1999-10-02T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2000" : helpers.makeTestYear("Pacific/Auckland", [ + ["2000-03-18T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2000-03-18T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2000-09-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2000-09-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2001" : helpers.makeTestYear("Pacific/Auckland", [ + ["2001-03-17T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2001-03-17T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2001-10-06T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2001-10-06T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2002" : helpers.makeTestYear("Pacific/Auckland", [ + ["2002-03-16T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2002-03-16T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2002-10-05T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2002-10-05T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2003" : helpers.makeTestYear("Pacific/Auckland", [ + ["2003-03-15T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2003-03-15T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2003-10-04T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2003-10-04T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2004" : helpers.makeTestYear("Pacific/Auckland", [ + ["2004-03-20T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2004-03-20T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2004-10-02T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2004-10-02T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2005" : helpers.makeTestYear("Pacific/Auckland", [ + ["2005-03-19T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2005-03-19T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2005-10-01T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2005-10-01T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2006" : helpers.makeTestYear("Pacific/Auckland", [ + ["2006-03-18T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2006-03-18T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2006-09-30T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2006-09-30T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2007" : helpers.makeTestYear("Pacific/Auckland", [ + ["2007-03-17T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2007-03-17T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2007-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2007-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2008" : helpers.makeTestYear("Pacific/Auckland", [ + ["2008-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2008-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2008-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2008-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2009" : helpers.makeTestYear("Pacific/Auckland", [ + ["2009-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2009-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2009-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2009-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2010" : helpers.makeTestYear("Pacific/Auckland", [ + ["2010-04-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2010-04-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2010-09-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2010-09-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2011" : helpers.makeTestYear("Pacific/Auckland", [ + ["2011-04-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2011-04-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2011-09-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2011-09-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2012" : helpers.makeTestYear("Pacific/Auckland", [ + ["2012-03-31T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2012-03-31T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2012-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2012-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2013" : helpers.makeTestYear("Pacific/Auckland", [ + ["2013-04-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2013-04-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2013-09-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2013-09-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2014" : helpers.makeTestYear("Pacific/Auckland", [ + ["2014-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2014-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2014-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2014-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2015" : helpers.makeTestYear("Pacific/Auckland", [ + ["2015-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2015-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2015-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2015-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2016" : helpers.makeTestYear("Pacific/Auckland", [ + ["2016-04-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2016-04-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2016-09-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2016-09-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2017" : helpers.makeTestYear("Pacific/Auckland", [ + ["2017-04-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2017-04-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2017-09-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2017-09-23T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2018" : helpers.makeTestYear("Pacific/Auckland", [ + ["2018-03-31T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2018-03-31T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2018-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2018-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2019" : helpers.makeTestYear("Pacific/Auckland", [ + ["2019-04-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2019-04-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2019-09-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2019-09-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2020" : helpers.makeTestYear("Pacific/Auckland", [ + ["2020-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2020-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2020-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2020-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2021" : helpers.makeTestYear("Pacific/Auckland", [ + ["2021-04-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2021-04-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2021-09-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2021-09-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2022" : helpers.makeTestYear("Pacific/Auckland", [ + ["2022-04-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2022-04-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2022-09-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2022-09-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2023" : helpers.makeTestYear("Pacific/Auckland", [ + ["2023-04-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2023-04-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2023-09-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2023-09-23T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2024" : helpers.makeTestYear("Pacific/Auckland", [ + ["2024-04-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2024-04-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2024-09-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2024-09-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2025" : helpers.makeTestYear("Pacific/Auckland", [ + ["2025-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2025-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2025-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2025-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2026" : helpers.makeTestYear("Pacific/Auckland", [ + ["2026-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2026-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2026-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2026-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2027" : helpers.makeTestYear("Pacific/Auckland", [ + ["2027-04-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2027-04-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2027-09-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2027-09-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2028" : helpers.makeTestYear("Pacific/Auckland", [ + ["2028-04-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2028-04-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2028-09-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2028-09-23T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2029" : helpers.makeTestYear("Pacific/Auckland", [ + ["2029-03-31T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2029-03-31T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2029-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2029-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2030" : helpers.makeTestYear("Pacific/Auckland", [ + ["2030-04-06T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2030-04-06T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2030-09-28T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2030-09-28T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2031" : helpers.makeTestYear("Pacific/Auckland", [ + ["2031-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2031-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2031-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2031-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2032" : helpers.makeTestYear("Pacific/Auckland", [ + ["2032-04-03T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2032-04-03T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2032-09-25T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2032-09-25T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2033" : helpers.makeTestYear("Pacific/Auckland", [ + ["2033-04-02T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2033-04-02T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2033-09-24T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2033-09-24T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2034" : helpers.makeTestYear("Pacific/Auckland", [ + ["2034-04-01T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2034-04-01T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2034-09-23T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2034-09-23T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2035" : helpers.makeTestYear("Pacific/Auckland", [ + ["2035-03-31T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2035-03-31T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2035-09-29T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2035-09-29T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2036" : helpers.makeTestYear("Pacific/Auckland", [ + ["2036-04-05T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2036-04-05T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2036-09-27T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2036-09-27T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]), + + "2037" : helpers.makeTestYear("Pacific/Auckland", [ + ["2037-04-04T13:59:59+00:00", "02:59:59", "NZDT", -780], + ["2037-04-04T14:00:00+00:00", "02:00:00", "NZST", -720], + ["2037-09-26T13:59:59+00:00", "01:59:59", "NZST", -720], + ["2037-09-26T14:00:00+00:00", "03:00:00", "NZDT", -780] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/chatham.js b/tests/zones/pacific/chatham.js new file mode 100644 index 00000000..2b65308c --- /dev/null +++ b/tests/zones/pacific/chatham.js @@ -0,0 +1,456 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Chatham"] = { + "1956" : helpers.makeTestYear("Pacific/Chatham", [ + ["1956-12-31T11:46:11+00:00", "23:59:59", "LMT", -44028 / 60], + ["1956-12-31T11:46:12+00:00", "00:31:12", "CHAST", -765] + ]), + + "1974" : helpers.makeTestYear("Pacific/Chatham", [ + ["1974-11-02T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1974-11-02T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1975" : helpers.makeTestYear("Pacific/Chatham", [ + ["1975-02-22T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1975-02-22T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1975-10-25T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1975-10-25T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1976" : helpers.makeTestYear("Pacific/Chatham", [ + ["1976-03-06T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1976-03-06T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1976-10-30T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1976-10-30T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1977" : helpers.makeTestYear("Pacific/Chatham", [ + ["1977-03-05T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1977-03-05T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1977-10-29T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1977-10-29T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1978" : helpers.makeTestYear("Pacific/Chatham", [ + ["1978-03-04T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1978-03-04T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1978-10-28T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1978-10-28T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1979" : helpers.makeTestYear("Pacific/Chatham", [ + ["1979-03-03T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1979-03-03T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1979-10-27T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1979-10-27T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1980" : helpers.makeTestYear("Pacific/Chatham", [ + ["1980-03-01T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1980-03-01T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1980-10-25T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1980-10-25T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1981" : helpers.makeTestYear("Pacific/Chatham", [ + ["1981-02-28T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1981-02-28T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1981-10-24T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1981-10-24T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1982" : helpers.makeTestYear("Pacific/Chatham", [ + ["1982-03-06T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1982-03-06T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1982-10-30T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1982-10-30T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1983" : helpers.makeTestYear("Pacific/Chatham", [ + ["1983-03-05T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1983-03-05T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1983-10-29T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1983-10-29T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1984" : helpers.makeTestYear("Pacific/Chatham", [ + ["1984-03-03T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1984-03-03T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1984-10-27T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1984-10-27T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1985" : helpers.makeTestYear("Pacific/Chatham", [ + ["1985-03-02T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1985-03-02T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1985-10-26T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1985-10-26T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1986" : helpers.makeTestYear("Pacific/Chatham", [ + ["1986-03-01T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1986-03-01T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1986-10-25T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1986-10-25T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1987" : helpers.makeTestYear("Pacific/Chatham", [ + ["1987-02-28T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1987-02-28T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1987-10-24T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1987-10-24T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1988" : helpers.makeTestYear("Pacific/Chatham", [ + ["1988-03-05T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1988-03-05T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1988-10-29T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1988-10-29T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1989" : helpers.makeTestYear("Pacific/Chatham", [ + ["1989-03-04T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1989-03-04T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1989-10-07T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1989-10-07T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1990" : helpers.makeTestYear("Pacific/Chatham", [ + ["1990-03-17T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1990-03-17T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1990-10-06T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1990-10-06T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1991" : helpers.makeTestYear("Pacific/Chatham", [ + ["1991-03-16T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1991-03-16T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1991-10-05T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1991-10-05T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1992" : helpers.makeTestYear("Pacific/Chatham", [ + ["1992-03-14T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1992-03-14T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1992-10-03T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1992-10-03T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1993" : helpers.makeTestYear("Pacific/Chatham", [ + ["1993-03-20T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1993-03-20T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1993-10-02T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1993-10-02T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1994" : helpers.makeTestYear("Pacific/Chatham", [ + ["1994-03-19T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1994-03-19T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1994-10-01T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1994-10-01T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1995" : helpers.makeTestYear("Pacific/Chatham", [ + ["1995-03-18T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1995-03-18T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1995-09-30T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1995-09-30T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1996" : helpers.makeTestYear("Pacific/Chatham", [ + ["1996-03-16T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1996-03-16T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1996-10-05T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1996-10-05T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1997" : helpers.makeTestYear("Pacific/Chatham", [ + ["1997-03-15T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1997-03-15T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1997-10-04T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1997-10-04T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1998" : helpers.makeTestYear("Pacific/Chatham", [ + ["1998-03-14T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1998-03-14T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1998-10-03T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1998-10-03T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "1999" : helpers.makeTestYear("Pacific/Chatham", [ + ["1999-03-20T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["1999-03-20T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["1999-10-02T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["1999-10-02T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2000" : helpers.makeTestYear("Pacific/Chatham", [ + ["2000-03-18T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2000-03-18T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2000-09-30T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2000-09-30T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2001" : helpers.makeTestYear("Pacific/Chatham", [ + ["2001-03-17T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2001-03-17T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2001-10-06T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2001-10-06T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2002" : helpers.makeTestYear("Pacific/Chatham", [ + ["2002-03-16T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2002-03-16T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2002-10-05T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2002-10-05T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2003" : helpers.makeTestYear("Pacific/Chatham", [ + ["2003-03-15T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2003-03-15T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2003-10-04T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2003-10-04T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2004" : helpers.makeTestYear("Pacific/Chatham", [ + ["2004-03-20T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2004-03-20T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2004-10-02T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2004-10-02T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2005" : helpers.makeTestYear("Pacific/Chatham", [ + ["2005-03-19T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2005-03-19T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2005-10-01T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2005-10-01T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2006" : helpers.makeTestYear("Pacific/Chatham", [ + ["2006-03-18T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2006-03-18T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2006-09-30T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2006-09-30T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2007" : helpers.makeTestYear("Pacific/Chatham", [ + ["2007-03-17T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2007-03-17T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2007-09-29T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2007-09-29T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2008" : helpers.makeTestYear("Pacific/Chatham", [ + ["2008-04-05T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2008-04-05T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2008-09-27T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2008-09-27T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2009" : helpers.makeTestYear("Pacific/Chatham", [ + ["2009-04-04T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2009-04-04T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2009-09-26T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2009-09-26T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2010" : helpers.makeTestYear("Pacific/Chatham", [ + ["2010-04-03T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2010-04-03T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2010-09-25T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2010-09-25T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2011" : helpers.makeTestYear("Pacific/Chatham", [ + ["2011-04-02T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2011-04-02T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2011-09-24T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2011-09-24T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2012" : helpers.makeTestYear("Pacific/Chatham", [ + ["2012-03-31T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2012-03-31T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2012-09-29T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2012-09-29T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2013" : helpers.makeTestYear("Pacific/Chatham", [ + ["2013-04-06T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2013-04-06T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2013-09-28T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2013-09-28T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2014" : helpers.makeTestYear("Pacific/Chatham", [ + ["2014-04-05T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2014-04-05T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2014-09-27T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2014-09-27T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2015" : helpers.makeTestYear("Pacific/Chatham", [ + ["2015-04-04T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2015-04-04T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2015-09-26T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2015-09-26T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2016" : helpers.makeTestYear("Pacific/Chatham", [ + ["2016-04-02T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2016-04-02T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2016-09-24T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2016-09-24T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2017" : helpers.makeTestYear("Pacific/Chatham", [ + ["2017-04-01T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2017-04-01T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2017-09-23T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2017-09-23T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2018" : helpers.makeTestYear("Pacific/Chatham", [ + ["2018-03-31T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2018-03-31T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2018-09-29T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2018-09-29T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2019" : helpers.makeTestYear("Pacific/Chatham", [ + ["2019-04-06T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2019-04-06T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2019-09-28T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2019-09-28T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2020" : helpers.makeTestYear("Pacific/Chatham", [ + ["2020-04-04T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2020-04-04T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2020-09-26T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2020-09-26T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2021" : helpers.makeTestYear("Pacific/Chatham", [ + ["2021-04-03T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2021-04-03T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2021-09-25T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2021-09-25T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2022" : helpers.makeTestYear("Pacific/Chatham", [ + ["2022-04-02T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2022-04-02T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2022-09-24T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2022-09-24T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2023" : helpers.makeTestYear("Pacific/Chatham", [ + ["2023-04-01T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2023-04-01T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2023-09-23T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2023-09-23T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2024" : helpers.makeTestYear("Pacific/Chatham", [ + ["2024-04-06T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2024-04-06T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2024-09-28T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2024-09-28T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2025" : helpers.makeTestYear("Pacific/Chatham", [ + ["2025-04-05T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2025-04-05T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2025-09-27T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2025-09-27T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2026" : helpers.makeTestYear("Pacific/Chatham", [ + ["2026-04-04T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2026-04-04T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2026-09-26T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2026-09-26T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2027" : helpers.makeTestYear("Pacific/Chatham", [ + ["2027-04-03T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2027-04-03T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2027-09-25T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2027-09-25T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2028" : helpers.makeTestYear("Pacific/Chatham", [ + ["2028-04-01T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2028-04-01T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2028-09-23T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2028-09-23T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2029" : helpers.makeTestYear("Pacific/Chatham", [ + ["2029-03-31T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2029-03-31T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2029-09-29T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2029-09-29T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2030" : helpers.makeTestYear("Pacific/Chatham", [ + ["2030-04-06T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2030-04-06T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2030-09-28T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2030-09-28T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2031" : helpers.makeTestYear("Pacific/Chatham", [ + ["2031-04-05T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2031-04-05T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2031-09-27T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2031-09-27T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2032" : helpers.makeTestYear("Pacific/Chatham", [ + ["2032-04-03T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2032-04-03T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2032-09-25T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2032-09-25T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2033" : helpers.makeTestYear("Pacific/Chatham", [ + ["2033-04-02T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2033-04-02T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2033-09-24T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2033-09-24T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2034" : helpers.makeTestYear("Pacific/Chatham", [ + ["2034-04-01T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2034-04-01T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2034-09-23T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2034-09-23T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2035" : helpers.makeTestYear("Pacific/Chatham", [ + ["2035-03-31T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2035-03-31T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2035-09-29T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2035-09-29T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2036" : helpers.makeTestYear("Pacific/Chatham", [ + ["2036-04-05T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2036-04-05T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2036-09-27T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2036-09-27T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]), + + "2037" : helpers.makeTestYear("Pacific/Chatham", [ + ["2037-04-04T13:59:59+00:00", "03:44:59", "CHADT", -825], + ["2037-04-04T14:00:00+00:00", "02:45:00", "CHAST", -765], + ["2037-09-26T13:59:59+00:00", "02:44:59", "CHAST", -765], + ["2037-09-26T14:00:00+00:00", "03:45:00", "CHADT", -825] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/chuuk.js b/tests/zones/pacific/chuuk.js new file mode 100644 index 00000000..9f4b16c6 --- /dev/null +++ b/tests/zones/pacific/chuuk.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Chuuk"] = { + +}; \ No newline at end of file diff --git a/tests/zones/pacific/easter.js b/tests/zones/pacific/easter.js new file mode 100644 index 00000000..02449327 --- /dev/null +++ b/tests/zones/pacific/easter.js @@ -0,0 +1,510 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Easter"] = { + "1932" : helpers.makeTestYear("Pacific/Easter", [ + ["1932-09-01T07:17:27+00:00", "23:59:59", "EMT", 26248 / 60], + ["1932-09-01T07:17:28+00:00", "01:17:28", "EASST", 360] + ]), + + "1942" : helpers.makeTestYear("Pacific/Easter", [ + ["1942-06-01T03:59:59+00:00", "21:59:59", "EASST", 360], + ["1942-06-01T04:00:00+00:00", "21:00:00", "EAST", 420], + ["1942-08-01T04:59:59+00:00", "21:59:59", "EAST", 420], + ["1942-08-01T05:00:00+00:00", "23:00:00", "EASST", 360] + ]), + + "1946" : helpers.makeTestYear("Pacific/Easter", [ + ["1946-09-01T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1946-09-01T03:00:00+00:00", "20:00:00", "EAST", 420] + ]), + + "1968" : helpers.makeTestYear("Pacific/Easter", [ + ["1968-11-03T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1968-11-03T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1969" : helpers.makeTestYear("Pacific/Easter", [ + ["1969-03-30T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1969-03-30T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1969-11-23T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1969-11-23T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1970" : helpers.makeTestYear("Pacific/Easter", [ + ["1970-03-29T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1970-03-29T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1970-10-11T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1970-10-11T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1971" : helpers.makeTestYear("Pacific/Easter", [ + ["1971-03-14T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1971-03-14T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1971-10-10T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1971-10-10T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1972" : helpers.makeTestYear("Pacific/Easter", [ + ["1972-03-12T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1972-03-12T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1972-10-15T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1972-10-15T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1973" : helpers.makeTestYear("Pacific/Easter", [ + ["1973-03-11T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1973-03-11T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1973-09-30T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1973-09-30T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1974" : helpers.makeTestYear("Pacific/Easter", [ + ["1974-03-10T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1974-03-10T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1974-10-13T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1974-10-13T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1975" : helpers.makeTestYear("Pacific/Easter", [ + ["1975-03-09T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1975-03-09T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1975-10-12T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1975-10-12T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1976" : helpers.makeTestYear("Pacific/Easter", [ + ["1976-03-14T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1976-03-14T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1976-10-10T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1976-10-10T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1977" : helpers.makeTestYear("Pacific/Easter", [ + ["1977-03-13T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1977-03-13T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1977-10-09T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1977-10-09T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1978" : helpers.makeTestYear("Pacific/Easter", [ + ["1978-03-12T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1978-03-12T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1978-10-15T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1978-10-15T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1979" : helpers.makeTestYear("Pacific/Easter", [ + ["1979-03-11T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1979-03-11T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1979-10-14T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1979-10-14T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1980" : helpers.makeTestYear("Pacific/Easter", [ + ["1980-03-09T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1980-03-09T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1980-10-12T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1980-10-12T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1981" : helpers.makeTestYear("Pacific/Easter", [ + ["1981-03-15T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1981-03-15T03:00:00+00:00", "20:00:00", "EAST", 420], + ["1981-10-11T03:59:59+00:00", "20:59:59", "EAST", 420], + ["1981-10-11T04:00:00+00:00", "22:00:00", "EASST", 360] + ]), + + "1982" : helpers.makeTestYear("Pacific/Easter", [ + ["1982-03-14T02:59:59+00:00", "20:59:59", "EASST", 360], + ["1982-03-14T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1982-10-10T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1982-10-10T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1983" : helpers.makeTestYear("Pacific/Easter", [ + ["1983-03-13T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1983-03-13T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1983-10-09T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1983-10-09T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1984" : helpers.makeTestYear("Pacific/Easter", [ + ["1984-03-11T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1984-03-11T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1984-10-14T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1984-10-14T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1985" : helpers.makeTestYear("Pacific/Easter", [ + ["1985-03-10T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1985-03-10T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1985-10-13T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1985-10-13T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1986" : helpers.makeTestYear("Pacific/Easter", [ + ["1986-03-09T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1986-03-09T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1986-10-12T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1986-10-12T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1987" : helpers.makeTestYear("Pacific/Easter", [ + ["1987-04-12T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1987-04-12T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1987-10-11T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1987-10-11T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1988" : helpers.makeTestYear("Pacific/Easter", [ + ["1988-03-13T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1988-03-13T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1988-10-02T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1988-10-02T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1989" : helpers.makeTestYear("Pacific/Easter", [ + ["1989-03-12T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1989-03-12T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1989-10-15T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1989-10-15T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1990" : helpers.makeTestYear("Pacific/Easter", [ + ["1990-03-18T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1990-03-18T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1990-09-16T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1990-09-16T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1991" : helpers.makeTestYear("Pacific/Easter", [ + ["1991-03-10T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1991-03-10T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1991-10-13T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1991-10-13T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1992" : helpers.makeTestYear("Pacific/Easter", [ + ["1992-03-15T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1992-03-15T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1992-10-11T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1992-10-11T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1993" : helpers.makeTestYear("Pacific/Easter", [ + ["1993-03-14T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1993-03-14T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1993-10-10T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1993-10-10T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1994" : helpers.makeTestYear("Pacific/Easter", [ + ["1994-03-13T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1994-03-13T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1994-10-09T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1994-10-09T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1995" : helpers.makeTestYear("Pacific/Easter", [ + ["1995-03-12T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1995-03-12T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1995-10-15T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1995-10-15T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1996" : helpers.makeTestYear("Pacific/Easter", [ + ["1996-03-10T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1996-03-10T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1996-10-13T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1996-10-13T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1997" : helpers.makeTestYear("Pacific/Easter", [ + ["1997-03-30T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1997-03-30T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1997-10-12T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1997-10-12T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1998" : helpers.makeTestYear("Pacific/Easter", [ + ["1998-03-15T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1998-03-15T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1998-09-27T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1998-09-27T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "1999" : helpers.makeTestYear("Pacific/Easter", [ + ["1999-04-04T02:59:59+00:00", "21:59:59", "EASST", 300], + ["1999-04-04T03:00:00+00:00", "21:00:00", "EAST", 360], + ["1999-10-10T03:59:59+00:00", "21:59:59", "EAST", 360], + ["1999-10-10T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2000" : helpers.makeTestYear("Pacific/Easter", [ + ["2000-03-12T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2000-03-12T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2000-10-15T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2000-10-15T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2001" : helpers.makeTestYear("Pacific/Easter", [ + ["2001-03-11T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2001-03-11T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2001-10-14T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2001-10-14T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2002" : helpers.makeTestYear("Pacific/Easter", [ + ["2002-03-10T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2002-03-10T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2002-10-13T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2002-10-13T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2003" : helpers.makeTestYear("Pacific/Easter", [ + ["2003-03-09T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2003-03-09T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2003-10-12T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2003-10-12T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2004" : helpers.makeTestYear("Pacific/Easter", [ + ["2004-03-14T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2004-03-14T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2004-10-10T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2004-10-10T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2005" : helpers.makeTestYear("Pacific/Easter", [ + ["2005-03-13T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2005-03-13T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2005-10-09T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2005-10-09T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2006" : helpers.makeTestYear("Pacific/Easter", [ + ["2006-03-12T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2006-03-12T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2006-10-15T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2006-10-15T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2007" : helpers.makeTestYear("Pacific/Easter", [ + ["2007-03-11T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2007-03-11T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2007-10-14T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2007-10-14T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2008" : helpers.makeTestYear("Pacific/Easter", [ + ["2008-03-30T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2008-03-30T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2008-10-12T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2008-10-12T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2009" : helpers.makeTestYear("Pacific/Easter", [ + ["2009-03-15T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2009-03-15T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2009-10-11T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2009-10-11T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2010" : helpers.makeTestYear("Pacific/Easter", [ + ["2010-04-04T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2010-04-04T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2010-10-10T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2010-10-10T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2011" : helpers.makeTestYear("Pacific/Easter", [ + ["2011-05-08T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2011-05-08T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2011-08-21T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2011-08-21T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2012" : helpers.makeTestYear("Pacific/Easter", [ + ["2012-04-29T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2012-04-29T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2012-09-02T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2012-09-02T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2013" : helpers.makeTestYear("Pacific/Easter", [ + ["2013-04-28T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2013-04-28T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2013-09-08T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2013-09-08T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2014" : helpers.makeTestYear("Pacific/Easter", [ + ["2014-04-27T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2014-04-27T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2014-09-07T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2014-09-07T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2015" : helpers.makeTestYear("Pacific/Easter", [ + ["2015-04-26T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2015-04-26T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2015-09-06T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2015-09-06T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2016" : helpers.makeTestYear("Pacific/Easter", [ + ["2016-04-24T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2016-04-24T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2016-09-04T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2016-09-04T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2017" : helpers.makeTestYear("Pacific/Easter", [ + ["2017-04-23T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2017-04-23T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2017-09-03T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2017-09-03T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2018" : helpers.makeTestYear("Pacific/Easter", [ + ["2018-04-29T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2018-04-29T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2018-09-02T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2018-09-02T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2019" : helpers.makeTestYear("Pacific/Easter", [ + ["2019-04-28T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2019-04-28T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2019-09-08T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2019-09-08T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2020" : helpers.makeTestYear("Pacific/Easter", [ + ["2020-04-26T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2020-04-26T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2020-09-06T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2020-09-06T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2021" : helpers.makeTestYear("Pacific/Easter", [ + ["2021-04-25T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2021-04-25T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2021-09-05T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2021-09-05T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2022" : helpers.makeTestYear("Pacific/Easter", [ + ["2022-04-24T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2022-04-24T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2022-09-04T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2022-09-04T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2023" : helpers.makeTestYear("Pacific/Easter", [ + ["2023-04-23T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2023-04-23T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2023-09-03T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2023-09-03T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2024" : helpers.makeTestYear("Pacific/Easter", [ + ["2024-04-28T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2024-04-28T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2024-09-08T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2024-09-08T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2025" : helpers.makeTestYear("Pacific/Easter", [ + ["2025-04-27T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2025-04-27T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2025-09-07T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2025-09-07T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2026" : helpers.makeTestYear("Pacific/Easter", [ + ["2026-04-26T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2026-04-26T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2026-09-06T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2026-09-06T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2027" : helpers.makeTestYear("Pacific/Easter", [ + ["2027-04-25T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2027-04-25T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2027-09-05T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2027-09-05T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2028" : helpers.makeTestYear("Pacific/Easter", [ + ["2028-04-23T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2028-04-23T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2028-09-03T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2028-09-03T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2029" : helpers.makeTestYear("Pacific/Easter", [ + ["2029-04-29T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2029-04-29T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2029-09-02T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2029-09-02T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2030" : helpers.makeTestYear("Pacific/Easter", [ + ["2030-04-28T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2030-04-28T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2030-09-08T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2030-09-08T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2031" : helpers.makeTestYear("Pacific/Easter", [ + ["2031-04-27T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2031-04-27T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2031-09-07T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2031-09-07T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2032" : helpers.makeTestYear("Pacific/Easter", [ + ["2032-04-25T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2032-04-25T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2032-09-05T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2032-09-05T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2033" : helpers.makeTestYear("Pacific/Easter", [ + ["2033-04-24T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2033-04-24T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2033-09-04T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2033-09-04T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2034" : helpers.makeTestYear("Pacific/Easter", [ + ["2034-04-23T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2034-04-23T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2034-09-03T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2034-09-03T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2035" : helpers.makeTestYear("Pacific/Easter", [ + ["2035-04-29T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2035-04-29T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2035-09-02T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2035-09-02T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2036" : helpers.makeTestYear("Pacific/Easter", [ + ["2036-04-27T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2036-04-27T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2036-09-07T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2036-09-07T04:00:00+00:00", "23:00:00", "EASST", 300] + ]), + + "2037" : helpers.makeTestYear("Pacific/Easter", [ + ["2037-04-26T02:59:59+00:00", "21:59:59", "EASST", 300], + ["2037-04-26T03:00:00+00:00", "21:00:00", "EAST", 360], + ["2037-09-06T03:59:59+00:00", "21:59:59", "EAST", 360], + ["2037-09-06T04:00:00+00:00", "23:00:00", "EASST", 300] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/efate.js b/tests/zones/pacific/efate.js new file mode 100644 index 00000000..6c7cb13d --- /dev/null +++ b/tests/zones/pacific/efate.js @@ -0,0 +1,83 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Efate"] = { + "1912" : helpers.makeTestYear("Pacific/Efate", [ + ["1912-01-12T12:46:43+00:00", "23:59:59", "LMT", -40396 / 60], + ["1912-01-12T12:46:44+00:00", "23:46:44", "VUT", -660] + ]), + + "1983" : helpers.makeTestYear("Pacific/Efate", [ + ["1983-09-24T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1983-09-24T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1984" : helpers.makeTestYear("Pacific/Efate", [ + ["1984-03-24T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1984-03-24T12:00:00+00:00", "23:00:00", "VUT", -660], + ["1984-10-22T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1984-10-22T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1985" : helpers.makeTestYear("Pacific/Efate", [ + ["1985-03-23T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1985-03-23T12:00:00+00:00", "23:00:00", "VUT", -660], + ["1985-09-28T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1985-09-28T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1986" : helpers.makeTestYear("Pacific/Efate", [ + ["1986-03-22T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1986-03-22T12:00:00+00:00", "23:00:00", "VUT", -660], + ["1986-09-27T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1986-09-27T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1987" : helpers.makeTestYear("Pacific/Efate", [ + ["1987-03-28T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1987-03-28T12:00:00+00:00", "23:00:00", "VUT", -660], + ["1987-09-26T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1987-09-26T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1988" : helpers.makeTestYear("Pacific/Efate", [ + ["1988-03-26T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1988-03-26T12:00:00+00:00", "23:00:00", "VUT", -660], + ["1988-09-24T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1988-09-24T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1989" : helpers.makeTestYear("Pacific/Efate", [ + ["1989-03-25T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1989-03-25T12:00:00+00:00", "23:00:00", "VUT", -660], + ["1989-09-23T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1989-09-23T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1990" : helpers.makeTestYear("Pacific/Efate", [ + ["1990-03-24T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1990-03-24T12:00:00+00:00", "23:00:00", "VUT", -660], + ["1990-09-22T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1990-09-22T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1991" : helpers.makeTestYear("Pacific/Efate", [ + ["1991-03-23T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1991-03-23T12:00:00+00:00", "23:00:00", "VUT", -660], + ["1991-09-28T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1991-09-28T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1992" : helpers.makeTestYear("Pacific/Efate", [ + ["1992-01-25T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1992-01-25T12:00:00+00:00", "23:00:00", "VUT", -660], + ["1992-10-24T12:59:59+00:00", "23:59:59", "VUT", -660], + ["1992-10-24T13:00:00+00:00", "01:00:00", "VUST", -720] + ]), + + "1993" : helpers.makeTestYear("Pacific/Efate", [ + ["1993-01-23T11:59:59+00:00", "23:59:59", "VUST", -720], + ["1993-01-23T12:00:00+00:00", "23:00:00", "VUT", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/enderbury.js b/tests/zones/pacific/enderbury.js new file mode 100644 index 00000000..7958abaf --- /dev/null +++ b/tests/zones/pacific/enderbury.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Enderbury"] = { + "1979" : helpers.makeTestYear("Pacific/Enderbury", [ + ["1979-10-01T11:59:59+00:00", "23:59:59", "PHOT", 720], + ["1979-10-01T12:00:00+00:00", "01:00:00", "PHOT", 660] + ]), + + "1995" : helpers.makeTestYear("Pacific/Enderbury", [ + ["1995-01-01T10:59:59+00:00", "23:59:59", "PHOT", 660], + ["1995-01-01T11:00:00+00:00", "00:00:00", "PHOT", -780] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/fakaofo.js b/tests/zones/pacific/fakaofo.js new file mode 100644 index 00000000..81049cc4 --- /dev/null +++ b/tests/zones/pacific/fakaofo.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Fakaofo"] = { + "2011" : helpers.makeTestYear("Pacific/Fakaofo", [ + ["2011-12-30T10:59:59+00:00", "23:59:59", "TKT", 660], + ["2011-12-30T11:00:00+00:00", "00:00:00", "TKT", -780] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/fiji.js b/tests/zones/pacific/fiji.js new file mode 100644 index 00000000..fc1b717f --- /dev/null +++ b/tests/zones/pacific/fiji.js @@ -0,0 +1,228 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Fiji"] = { + "1915" : helpers.makeTestYear("Pacific/Fiji", [ + ["1915-10-25T12:04:15+00:00", "23:59:59", "LMT", -42944 / 60], + ["1915-10-25T12:04:16+00:00", "00:04:16", "FJT", -720] + ]), + + "1998" : helpers.makeTestYear("Pacific/Fiji", [ + ["1998-10-31T13:59:59+00:00", "01:59:59", "FJT", -720], + ["1998-10-31T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "1999" : helpers.makeTestYear("Pacific/Fiji", [ + ["1999-02-27T13:59:59+00:00", "02:59:59", "FJST", -780], + ["1999-02-27T14:00:00+00:00", "02:00:00", "FJT", -720], + ["1999-11-06T13:59:59+00:00", "01:59:59", "FJT", -720], + ["1999-11-06T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2000" : helpers.makeTestYear("Pacific/Fiji", [ + ["2000-02-26T13:59:59+00:00", "02:59:59", "FJST", -780], + ["2000-02-26T14:00:00+00:00", "02:00:00", "FJT", -720] + ]), + + "2009" : helpers.makeTestYear("Pacific/Fiji", [ + ["2009-11-28T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2009-11-28T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2010" : helpers.makeTestYear("Pacific/Fiji", [ + ["2010-03-27T13:59:59+00:00", "02:59:59", "FJST", -780], + ["2010-03-27T14:00:00+00:00", "02:00:00", "FJT", -720], + ["2010-10-23T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2010-10-23T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2011" : helpers.makeTestYear("Pacific/Fiji", [ + ["2011-03-05T13:59:59+00:00", "02:59:59", "FJST", -780], + ["2011-03-05T14:00:00+00:00", "02:00:00", "FJT", -720], + ["2011-10-22T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2011-10-22T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2012" : helpers.makeTestYear("Pacific/Fiji", [ + ["2012-01-21T13:59:59+00:00", "02:59:59", "FJST", -780], + ["2012-01-21T14:00:00+00:00", "02:00:00", "FJT", -720], + ["2012-10-20T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2012-10-20T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2013" : helpers.makeTestYear("Pacific/Fiji", [ + ["2013-01-19T13:59:59+00:00", "02:59:59", "FJST", -780], + ["2013-01-19T14:00:00+00:00", "02:00:00", "FJT", -720], + ["2013-10-26T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2013-10-26T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2014" : helpers.makeTestYear("Pacific/Fiji", [ + ["2014-01-18T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2014-01-18T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2014-10-25T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2014-10-25T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2015" : helpers.makeTestYear("Pacific/Fiji", [ + ["2015-01-17T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2015-01-17T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2015-10-24T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2015-10-24T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2016" : helpers.makeTestYear("Pacific/Fiji", [ + ["2016-01-23T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2016-01-23T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2016-10-22T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2016-10-22T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2017" : helpers.makeTestYear("Pacific/Fiji", [ + ["2017-01-21T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2017-01-21T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2017-10-21T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2017-10-21T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2018" : helpers.makeTestYear("Pacific/Fiji", [ + ["2018-01-20T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2018-01-20T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2018-10-20T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2018-10-20T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2019" : helpers.makeTestYear("Pacific/Fiji", [ + ["2019-01-19T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2019-01-19T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2019-10-26T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2019-10-26T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2020" : helpers.makeTestYear("Pacific/Fiji", [ + ["2020-01-18T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2020-01-18T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2020-10-24T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2020-10-24T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2021" : helpers.makeTestYear("Pacific/Fiji", [ + ["2021-01-23T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2021-01-23T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2021-10-23T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2021-10-23T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2022" : helpers.makeTestYear("Pacific/Fiji", [ + ["2022-01-22T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2022-01-22T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2022-10-22T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2022-10-22T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2023" : helpers.makeTestYear("Pacific/Fiji", [ + ["2023-01-21T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2023-01-21T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2023-10-21T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2023-10-21T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2024" : helpers.makeTestYear("Pacific/Fiji", [ + ["2024-01-20T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2024-01-20T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2024-10-26T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2024-10-26T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2025" : helpers.makeTestYear("Pacific/Fiji", [ + ["2025-01-18T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2025-01-18T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2025-10-25T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2025-10-25T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2026" : helpers.makeTestYear("Pacific/Fiji", [ + ["2026-01-17T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2026-01-17T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2026-10-24T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2026-10-24T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2027" : helpers.makeTestYear("Pacific/Fiji", [ + ["2027-01-23T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2027-01-23T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2027-10-23T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2027-10-23T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2028" : helpers.makeTestYear("Pacific/Fiji", [ + ["2028-01-22T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2028-01-22T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2028-10-21T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2028-10-21T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2029" : helpers.makeTestYear("Pacific/Fiji", [ + ["2029-01-20T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2029-01-20T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2029-10-20T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2029-10-20T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2030" : helpers.makeTestYear("Pacific/Fiji", [ + ["2030-01-19T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2030-01-19T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2030-10-26T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2030-10-26T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2031" : helpers.makeTestYear("Pacific/Fiji", [ + ["2031-01-18T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2031-01-18T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2031-10-25T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2031-10-25T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2032" : helpers.makeTestYear("Pacific/Fiji", [ + ["2032-01-17T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2032-01-17T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2032-10-23T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2032-10-23T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2033" : helpers.makeTestYear("Pacific/Fiji", [ + ["2033-01-22T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2033-01-22T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2033-10-22T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2033-10-22T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2034" : helpers.makeTestYear("Pacific/Fiji", [ + ["2034-01-21T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2034-01-21T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2034-10-21T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2034-10-21T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2035" : helpers.makeTestYear("Pacific/Fiji", [ + ["2035-01-20T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2035-01-20T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2035-10-20T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2035-10-20T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2036" : helpers.makeTestYear("Pacific/Fiji", [ + ["2036-01-19T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2036-01-19T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2036-10-25T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2036-10-25T14:00:00+00:00", "03:00:00", "FJST", -780] + ]), + + "2037" : helpers.makeTestYear("Pacific/Fiji", [ + ["2037-01-17T12:59:59+00:00", "01:59:59", "FJST", -780], + ["2037-01-17T13:00:00+00:00", "01:00:00", "FJT", -720], + ["2037-10-24T13:59:59+00:00", "01:59:59", "FJT", -720], + ["2037-10-24T14:00:00+00:00", "03:00:00", "FJST", -780] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/funafuti.js b/tests/zones/pacific/funafuti.js new file mode 100644 index 00000000..665d9241 --- /dev/null +++ b/tests/zones/pacific/funafuti.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Funafuti"] = { + +}; \ No newline at end of file diff --git a/tests/zones/pacific/galapagos.js b/tests/zones/pacific/galapagos.js new file mode 100644 index 00000000..9f94cc7f --- /dev/null +++ b/tests/zones/pacific/galapagos.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Galapagos"] = { + "1931" : helpers.makeTestYear("Pacific/Galapagos", [ + ["1931-01-01T05:58:23+00:00", "23:59:59", "LMT", 21504 / 60], + ["1931-01-01T05:58:24+00:00", "00:58:24", "ECT", 300] + ]), + + "1986" : helpers.makeTestYear("Pacific/Galapagos", [ + ["1986-01-01T04:59:59+00:00", "23:59:59", "ECT", 300], + ["1986-01-01T05:00:00+00:00", "23:00:00", "GALT", 360] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/gambier.js b/tests/zones/pacific/gambier.js new file mode 100644 index 00000000..a2694a94 --- /dev/null +++ b/tests/zones/pacific/gambier.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Gambier"] = { + "1912" : helpers.makeTestYear("Pacific/Gambier", [ + ["1912-10-01T08:59:47+00:00", "23:59:59", "LMT", 32388 / 60], + ["1912-10-01T08:59:48+00:00", "23:59:48", "GAMT", 540] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/guadalcanal.js b/tests/zones/pacific/guadalcanal.js new file mode 100644 index 00000000..dda114b7 --- /dev/null +++ b/tests/zones/pacific/guadalcanal.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Guadalcanal"] = { + "1912" : helpers.makeTestYear("Pacific/Guadalcanal", [ + ["1912-09-30T13:20:11+00:00", "23:59:59", "LMT", -38388 / 60], + ["1912-09-30T13:20:12+00:00", "00:20:12", "SBT", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/guam.js b/tests/zones/pacific/guam.js new file mode 100644 index 00000000..da1b8e33 --- /dev/null +++ b/tests/zones/pacific/guam.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Guam"] = { + "2000" : helpers.makeTestYear("Pacific/Guam", [ + ["2000-12-22T13:59:59+00:00", "23:59:59", "GST", -600], + ["2000-12-22T14:00:00+00:00", "00:00:00", "ChST", -600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/honolulu.js b/tests/zones/pacific/honolulu.js new file mode 100644 index 00000000..7a3e41de --- /dev/null +++ b/tests/zones/pacific/honolulu.js @@ -0,0 +1,27 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Honolulu"] = { + "1933" : helpers.makeTestYear("Pacific/Honolulu", [ + ["1933-04-30T12:29:59+00:00", "01:59:59", "HST", 630], + ["1933-04-30T12:30:00+00:00", "03:00:00", "HDT", 570], + ["1933-05-21T21:29:59+00:00", "11:59:59", "HDT", 570], + ["1933-05-21T21:30:00+00:00", "11:00:00", "HST", 630] + ]), + + "1942" : helpers.makeTestYear("Pacific/Honolulu", [ + ["1942-02-09T12:29:59+00:00", "01:59:59", "HST", 630], + ["1942-02-09T12:30:00+00:00", "03:00:00", "HDT", 570] + ]), + + "1945" : helpers.makeTestYear("Pacific/Honolulu", [ + ["1945-09-30T11:29:59+00:00", "01:59:59", "HDT", 570], + ["1945-09-30T11:30:00+00:00", "01:00:00", "HST", 630] + ]), + + "1947" : helpers.makeTestYear("Pacific/Honolulu", [ + ["1947-06-08T12:29:59+00:00", "01:59:59", "HST", 630], + ["1947-06-08T12:30:00+00:00", "02:30:00", "HST", 600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/johnston.js b/tests/zones/pacific/johnston.js new file mode 100644 index 00000000..d931f3a6 --- /dev/null +++ b/tests/zones/pacific/johnston.js @@ -0,0 +1,27 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Johnston"] = { + "1933" : helpers.makeTestYear("Pacific/Johnston", [ + ["1933-04-30T12:29:59+00:00", "01:59:59", "HST", 630], + ["1933-04-30T12:30:00+00:00", "03:00:00", "HDT", 570], + ["1933-05-21T21:29:59+00:00", "11:59:59", "HDT", 570], + ["1933-05-21T21:30:00+00:00", "11:00:00", "HST", 630] + ]), + + "1942" : helpers.makeTestYear("Pacific/Johnston", [ + ["1942-02-09T12:29:59+00:00", "01:59:59", "HST", 630], + ["1942-02-09T12:30:00+00:00", "03:00:00", "HDT", 570] + ]), + + "1945" : helpers.makeTestYear("Pacific/Johnston", [ + ["1945-09-30T11:29:59+00:00", "01:59:59", "HDT", 570], + ["1945-09-30T11:30:00+00:00", "01:00:00", "HST", 630] + ]), + + "1947" : helpers.makeTestYear("Pacific/Johnston", [ + ["1947-06-08T12:29:59+00:00", "01:59:59", "HST", 630], + ["1947-06-08T12:30:00+00:00", "02:30:00", "HST", 600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/kiritimati.js b/tests/zones/pacific/kiritimati.js new file mode 100644 index 00000000..6d3cf167 --- /dev/null +++ b/tests/zones/pacific/kiritimati.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Kiritimati"] = { + "1979" : helpers.makeTestYear("Pacific/Kiritimati", [ + ["1979-10-01T10:39:59+00:00", "23:59:59", "LINT", 640], + ["1979-10-01T10:40:00+00:00", "00:40:00", "LINT", 600] + ]), + + "1995" : helpers.makeTestYear("Pacific/Kiritimati", [ + ["1995-01-01T09:59:59+00:00", "23:59:59", "LINT", 600], + ["1995-01-01T10:00:00+00:00", "00:00:00", "LINT", -840] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/kosrae.js b/tests/zones/pacific/kosrae.js new file mode 100644 index 00000000..53448a2b --- /dev/null +++ b/tests/zones/pacific/kosrae.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Kosrae"] = { + "1969" : helpers.makeTestYear("Pacific/Kosrae", [ + ["1969-09-30T12:59:59+00:00", "23:59:59", "KOST", -660], + ["1969-09-30T13:00:00+00:00", "01:00:00", "KOST", -720] + ]), + + "1998" : helpers.makeTestYear("Pacific/Kosrae", [ + ["1998-12-31T11:59:59+00:00", "23:59:59", "KOST", -720], + ["1998-12-31T12:00:00+00:00", "23:00:00", "KOST", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/kwajalein.js b/tests/zones/pacific/kwajalein.js new file mode 100644 index 00000000..305c7814 --- /dev/null +++ b/tests/zones/pacific/kwajalein.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Kwajalein"] = { + "1969" : helpers.makeTestYear("Pacific/Kwajalein", [ + ["1969-09-30T12:59:59+00:00", "23:59:59", "MHT", -660], + ["1969-09-30T13:00:00+00:00", "01:00:00", "KWAT", 720] + ]), + + "1993" : helpers.makeTestYear("Pacific/Kwajalein", [ + ["1993-08-20T11:59:59+00:00", "23:59:59", "KWAT", 720], + ["1993-08-20T12:00:00+00:00", "00:00:00", "MHT", -720] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/majuro.js b/tests/zones/pacific/majuro.js new file mode 100644 index 00000000..d2fa2945 --- /dev/null +++ b/tests/zones/pacific/majuro.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Majuro"] = { + "1969" : helpers.makeTestYear("Pacific/Majuro", [ + ["1969-09-30T12:59:59+00:00", "23:59:59", "MHT", -660], + ["1969-09-30T13:00:00+00:00", "01:00:00", "MHT", -720] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/marquesas.js b/tests/zones/pacific/marquesas.js new file mode 100644 index 00000000..7fb888a5 --- /dev/null +++ b/tests/zones/pacific/marquesas.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Marquesas"] = { + "1912" : helpers.makeTestYear("Pacific/Marquesas", [ + ["1912-10-01T09:17:59+00:00", "23:59:59", "LMT", 558], + ["1912-10-01T09:18:00+00:00", "23:48:00", "MART", 570] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/midway.js b/tests/zones/pacific/midway.js new file mode 100644 index 00000000..20fa6d56 --- /dev/null +++ b/tests/zones/pacific/midway.js @@ -0,0 +1,22 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Midway"] = { + "1956" : helpers.makeTestYear("Pacific/Midway", [ + ["1956-06-03T10:59:59+00:00", "23:59:59", "NST", 660], + ["1956-06-03T11:00:00+00:00", "01:00:00", "NDT", 600], + ["1956-09-02T09:59:59+00:00", "23:59:59", "NDT", 600], + ["1956-09-02T10:00:00+00:00", "23:00:00", "NST", 660] + ]), + + "1967" : helpers.makeTestYear("Pacific/Midway", [ + ["1967-04-01T10:59:59+00:00", "23:59:59", "NST", 660], + ["1967-04-01T11:00:00+00:00", "00:00:00", "BST", 660] + ]), + + "1983" : helpers.makeTestYear("Pacific/Midway", [ + ["1983-11-30T10:59:59+00:00", "23:59:59", "BST", 660], + ["1983-11-30T11:00:00+00:00", "00:00:00", "SST", 660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/nauru.js b/tests/zones/pacific/nauru.js new file mode 100644 index 00000000..4aefb03f --- /dev/null +++ b/tests/zones/pacific/nauru.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Nauru"] = { + "1921" : helpers.makeTestYear("Pacific/Nauru", [ + ["1921-01-14T12:52:19+00:00", "23:59:59", "LMT", -40060 / 60], + ["1921-01-14T12:52:20+00:00", "00:22:20", "NRT", -690] + ]), + + "1942" : helpers.makeTestYear("Pacific/Nauru", [ + ["1942-03-14T12:29:59+00:00", "23:59:59", "NRT", -690], + ["1942-03-14T12:30:00+00:00", "21:30:00", "JST", -540] + ]), + + "1944" : helpers.makeTestYear("Pacific/Nauru", [ + ["1944-08-14T14:59:59+00:00", "23:59:59", "JST", -540], + ["1944-08-14T15:00:00+00:00", "02:30:00", "NRT", -690] + ]), + + "1979" : helpers.makeTestYear("Pacific/Nauru", [ + ["1979-04-30T12:29:59+00:00", "23:59:59", "NRT", -690], + ["1979-04-30T12:30:00+00:00", "00:30:00", "NRT", -720] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/niue.js b/tests/zones/pacific/niue.js new file mode 100644 index 00000000..93d1d322 --- /dev/null +++ b/tests/zones/pacific/niue.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Niue"] = { + "1951" : helpers.makeTestYear("Pacific/Niue", [ + ["1951-01-01T11:19:59+00:00", "23:59:59", "NUT", 680], + ["1951-01-01T11:20:00+00:00", "23:50:00", "NUT", 690] + ]), + + "1978" : helpers.makeTestYear("Pacific/Niue", [ + ["1978-10-01T11:29:59+00:00", "23:59:59", "NUT", 690], + ["1978-10-01T11:30:00+00:00", "00:30:00", "NUT", 660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/norfolk.js b/tests/zones/pacific/norfolk.js new file mode 100644 index 00000000..226347ec --- /dev/null +++ b/tests/zones/pacific/norfolk.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Norfolk"] = { + "1950" : helpers.makeTestYear("Pacific/Norfolk", [ + ["1950-12-31T12:47:59+00:00", "23:59:59", "NMT", -672], + ["1950-12-31T12:48:00+00:00", "00:18:00", "NFT", -690] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/noumea.js b/tests/zones/pacific/noumea.js new file mode 100644 index 00000000..d682f3a6 --- /dev/null +++ b/tests/zones/pacific/noumea.js @@ -0,0 +1,37 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Noumea"] = { + "1912" : helpers.makeTestYear("Pacific/Noumea", [ + ["1912-01-12T12:54:11+00:00", "23:59:59", "LMT", -39948 / 60], + ["1912-01-12T12:54:12+00:00", "23:54:12", "NCT", -660] + ]), + + "1977" : helpers.makeTestYear("Pacific/Noumea", [ + ["1977-12-03T12:59:59+00:00", "23:59:59", "NCT", -660], + ["1977-12-03T13:00:00+00:00", "01:00:00", "NCST", -720] + ]), + + "1978" : helpers.makeTestYear("Pacific/Noumea", [ + ["1978-02-26T11:59:59+00:00", "23:59:59", "NCST", -720], + ["1978-02-26T12:00:00+00:00", "23:00:00", "NCT", -660], + ["1978-12-02T12:59:59+00:00", "23:59:59", "NCT", -660], + ["1978-12-02T13:00:00+00:00", "01:00:00", "NCST", -720] + ]), + + "1979" : helpers.makeTestYear("Pacific/Noumea", [ + ["1979-02-26T11:59:59+00:00", "23:59:59", "NCST", -720], + ["1979-02-26T12:00:00+00:00", "23:00:00", "NCT", -660] + ]), + + "1996" : helpers.makeTestYear("Pacific/Noumea", [ + ["1996-11-30T14:59:59+00:00", "01:59:59", "NCT", -660], + ["1996-11-30T15:00:00+00:00", "03:00:00", "NCST", -720] + ]), + + "1997" : helpers.makeTestYear("Pacific/Noumea", [ + ["1997-03-01T14:59:59+00:00", "02:59:59", "NCST", -720], + ["1997-03-01T15:00:00+00:00", "02:00:00", "NCT", -660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/pago_pago.js b/tests/zones/pacific/pago_pago.js new file mode 100644 index 00000000..3b110b65 --- /dev/null +++ b/tests/zones/pacific/pago_pago.js @@ -0,0 +1,25 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Pago_Pago"] = { + "1911" : helpers.makeTestYear("Pacific/Pago_Pago", [ + ["1911-01-01T11:22:47+00:00", "23:59:59", "LMT", 40968 / 60], + ["1911-01-01T11:22:48+00:00", "23:52:48", "SAMT", 690] + ]), + + "1950" : helpers.makeTestYear("Pacific/Pago_Pago", [ + ["1950-01-01T11:29:59+00:00", "23:59:59", "SAMT", 690], + ["1950-01-01T11:30:00+00:00", "00:30:00", "NST", 660] + ]), + + "1967" : helpers.makeTestYear("Pacific/Pago_Pago", [ + ["1967-04-01T10:59:59+00:00", "23:59:59", "NST", 660], + ["1967-04-01T11:00:00+00:00", "00:00:00", "BST", 660] + ]), + + "1983" : helpers.makeTestYear("Pacific/Pago_Pago", [ + ["1983-11-30T10:59:59+00:00", "23:59:59", "BST", 660], + ["1983-11-30T11:00:00+00:00", "00:00:00", "SST", 660] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/palau.js b/tests/zones/pacific/palau.js new file mode 100644 index 00000000..5af3964b --- /dev/null +++ b/tests/zones/pacific/palau.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Palau"] = { + +}; \ No newline at end of file diff --git a/tests/zones/pacific/pitcairn.js b/tests/zones/pacific/pitcairn.js new file mode 100644 index 00000000..25cb3e59 --- /dev/null +++ b/tests/zones/pacific/pitcairn.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Pitcairn"] = { + "1998" : helpers.makeTestYear("Pacific/Pitcairn", [ + ["1998-04-27T08:29:59+00:00", "23:59:59", "PNT", 510], + ["1998-04-27T08:30:00+00:00", "00:30:00", "PST", 480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/pohnpei.js b/tests/zones/pacific/pohnpei.js new file mode 100644 index 00000000..2f835f61 --- /dev/null +++ b/tests/zones/pacific/pohnpei.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Pohnpei"] = { + +}; \ No newline at end of file diff --git a/tests/zones/pacific/port_moresby.js b/tests/zones/pacific/port_moresby.js new file mode 100644 index 00000000..f38e024e --- /dev/null +++ b/tests/zones/pacific/port_moresby.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Port_Moresby"] = { + +}; \ No newline at end of file diff --git a/tests/zones/pacific/rarotonga.js b/tests/zones/pacific/rarotonga.js new file mode 100644 index 00000000..ed42b8d1 --- /dev/null +++ b/tests/zones/pacific/rarotonga.js @@ -0,0 +1,99 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Rarotonga"] = { + "1978" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1978-11-12T10:29:59+00:00", "23:59:59", "CKT", 630], + ["1978-11-12T10:30:00+00:00", "01:00:00", "CKHST", 570] + ]), + + "1979" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1979-03-04T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1979-03-04T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1979-10-28T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1979-10-28T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1980" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1980-03-02T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1980-03-02T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1980-10-26T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1980-10-26T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1981" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1981-03-01T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1981-03-01T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1981-10-25T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1981-10-25T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1982" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1982-03-07T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1982-03-07T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1982-10-31T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1982-10-31T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1983" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1983-03-06T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1983-03-06T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1983-10-30T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1983-10-30T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1984" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1984-03-04T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1984-03-04T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1984-10-28T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1984-10-28T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1985" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1985-03-03T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1985-03-03T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1985-10-27T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1985-10-27T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1986" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1986-03-02T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1986-03-02T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1986-10-26T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1986-10-26T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1987" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1987-03-01T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1987-03-01T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1987-10-25T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1987-10-25T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1988" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1988-03-06T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1988-03-06T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1988-10-30T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1988-10-30T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1989" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1989-03-05T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1989-03-05T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1989-10-29T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1989-10-29T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1990" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1990-03-04T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1990-03-04T09:30:00+00:00", "23:30:00", "CKT", 600], + ["1990-10-28T09:59:59+00:00", "23:59:59", "CKT", 600], + ["1990-10-28T10:00:00+00:00", "00:30:00", "CKHST", 570] + ]), + + "1991" : helpers.makeTestYear("Pacific/Rarotonga", [ + ["1991-03-03T09:29:59+00:00", "23:59:59", "CKHST", 570], + ["1991-03-03T09:30:00+00:00", "23:30:00", "CKT", 600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/saipan.js b/tests/zones/pacific/saipan.js new file mode 100644 index 00000000..98da38c1 --- /dev/null +++ b/tests/zones/pacific/saipan.js @@ -0,0 +1,15 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Saipan"] = { + "1969" : helpers.makeTestYear("Pacific/Saipan", [ + ["1969-09-30T14:59:59+00:00", "23:59:59", "MPT", -540], + ["1969-09-30T15:00:00+00:00", "01:00:00", "MPT", -600] + ]), + + "2000" : helpers.makeTestYear("Pacific/Saipan", [ + ["2000-12-22T13:59:59+00:00", "23:59:59", "MPT", -600], + ["2000-12-22T14:00:00+00:00", "00:00:00", "ChST", -600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/tahiti.js b/tests/zones/pacific/tahiti.js new file mode 100644 index 00000000..55248c72 --- /dev/null +++ b/tests/zones/pacific/tahiti.js @@ -0,0 +1,10 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Tahiti"] = { + "1912" : helpers.makeTestYear("Pacific/Tahiti", [ + ["1912-10-01T09:58:15+00:00", "23:59:59", "LMT", 35896 / 60], + ["1912-10-01T09:58:16+00:00", "23:58:16", "TAHT", 600] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/tarawa.js b/tests/zones/pacific/tarawa.js new file mode 100644 index 00000000..a63d9787 --- /dev/null +++ b/tests/zones/pacific/tarawa.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Tarawa"] = { + +}; \ No newline at end of file diff --git a/tests/zones/pacific/tongatapu.js b/tests/zones/pacific/tongatapu.js new file mode 100644 index 00000000..52d9e428 --- /dev/null +++ b/tests/zones/pacific/tongatapu.js @@ -0,0 +1,34 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Tongatapu"] = { + "1940" : helpers.makeTestYear("Pacific/Tongatapu", [ + ["1940-12-31T11:39:59+00:00", "23:59:59", "TOT", -740], + ["1940-12-31T11:40:00+00:00", "00:40:00", "TOT", -780] + ]), + + "1999" : helpers.makeTestYear("Pacific/Tongatapu", [ + ["1999-10-06T12:59:59+00:00", "01:59:59", "TOT", -780], + ["1999-10-06T13:00:00+00:00", "03:00:00", "TOST", -840] + ]), + + "2000" : helpers.makeTestYear("Pacific/Tongatapu", [ + ["2000-03-18T12:59:59+00:00", "02:59:59", "TOST", -840], + ["2000-03-18T13:00:00+00:00", "02:00:00", "TOT", -780], + ["2000-11-04T12:59:59+00:00", "01:59:59", "TOT", -780], + ["2000-11-04T13:00:00+00:00", "03:00:00", "TOST", -840] + ]), + + "2001" : helpers.makeTestYear("Pacific/Tongatapu", [ + ["2001-01-27T11:59:59+00:00", "01:59:59", "TOST", -840], + ["2001-01-27T12:00:00+00:00", "01:00:00", "TOT", -780], + ["2001-11-03T12:59:59+00:00", "01:59:59", "TOT", -780], + ["2001-11-03T13:00:00+00:00", "03:00:00", "TOST", -840] + ]), + + "2002" : helpers.makeTestYear("Pacific/Tongatapu", [ + ["2002-01-26T11:59:59+00:00", "01:59:59", "TOST", -840], + ["2002-01-26T12:00:00+00:00", "01:00:00", "TOT", -780] + ]) +}; \ No newline at end of file diff --git a/tests/zones/pacific/wake.js b/tests/zones/pacific/wake.js new file mode 100644 index 00000000..5400b466 --- /dev/null +++ b/tests/zones/pacific/wake.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Wake"] = { + +}; \ No newline at end of file diff --git a/tests/zones/pacific/wallis.js b/tests/zones/pacific/wallis.js new file mode 100644 index 00000000..9f0bd63f --- /dev/null +++ b/tests/zones/pacific/wallis.js @@ -0,0 +1,7 @@ +"use strict"; + +var helpers = require("../../../tests/helpers/helpers"); + +exports["Pacific/Wallis"] = { + +}; \ No newline at end of file diff --git a/tests/zones/pst8pdt.js b/tests/zones/pst8pdt.js new file mode 100644 index 00000000..c1435adb --- /dev/null +++ b/tests/zones/pst8pdt.js @@ -0,0 +1,528 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["PST8PDT"] = { + "1918" : helpers.makeTestYear("PST8PDT", [ + ["1918-03-31T09:59:59+00:00", "01:59:59", "PST", 480], + ["1918-03-31T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1918-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1918-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1919" : helpers.makeTestYear("PST8PDT", [ + ["1919-03-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1919-03-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1919-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1919-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1942" : helpers.makeTestYear("PST8PDT", [ + ["1942-02-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["1942-02-09T10:00:00+00:00", "03:00:00", "PWT", 420] + ]), + + "1945" : helpers.makeTestYear("PST8PDT", [ + ["1945-08-14T22:59:59+00:00", "15:59:59", "PWT", 420], + ["1945-08-14T23:00:00+00:00", "16:00:00", "PPT", 420], + ["1945-09-30T08:59:59+00:00", "01:59:59", "PPT", 420], + ["1945-09-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1967" : helpers.makeTestYear("PST8PDT", [ + ["1967-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1967-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1967-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1967-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1968" : helpers.makeTestYear("PST8PDT", [ + ["1968-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1968-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1968-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1968-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1969" : helpers.makeTestYear("PST8PDT", [ + ["1969-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1969-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1969-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1969-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1970" : helpers.makeTestYear("PST8PDT", [ + ["1970-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1970-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1970-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1970-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1971" : helpers.makeTestYear("PST8PDT", [ + ["1971-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1971-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1971-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1971-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1972" : helpers.makeTestYear("PST8PDT", [ + ["1972-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1972-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1972-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1972-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1973" : helpers.makeTestYear("PST8PDT", [ + ["1973-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1973-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1973-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1973-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1974" : helpers.makeTestYear("PST8PDT", [ + ["1974-01-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1974-01-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1974-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1974-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1975" : helpers.makeTestYear("PST8PDT", [ + ["1975-02-23T09:59:59+00:00", "01:59:59", "PST", 480], + ["1975-02-23T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1975-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1975-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1976" : helpers.makeTestYear("PST8PDT", [ + ["1976-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1976-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1976-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1976-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1977" : helpers.makeTestYear("PST8PDT", [ + ["1977-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1977-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1977-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1977-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1978" : helpers.makeTestYear("PST8PDT", [ + ["1978-04-30T09:59:59+00:00", "01:59:59", "PST", 480], + ["1978-04-30T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1978-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1978-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1979" : helpers.makeTestYear("PST8PDT", [ + ["1979-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1979-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1979-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1979-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1980" : helpers.makeTestYear("PST8PDT", [ + ["1980-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1980-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1980-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1980-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1981" : helpers.makeTestYear("PST8PDT", [ + ["1981-04-26T09:59:59+00:00", "01:59:59", "PST", 480], + ["1981-04-26T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1981-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1981-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1982" : helpers.makeTestYear("PST8PDT", [ + ["1982-04-25T09:59:59+00:00", "01:59:59", "PST", 480], + ["1982-04-25T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1982-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1982-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1983" : helpers.makeTestYear("PST8PDT", [ + ["1983-04-24T09:59:59+00:00", "01:59:59", "PST", 480], + ["1983-04-24T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1983-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1983-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1984" : helpers.makeTestYear("PST8PDT", [ + ["1984-04-29T09:59:59+00:00", "01:59:59", "PST", 480], + ["1984-04-29T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1984-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1984-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1985" : helpers.makeTestYear("PST8PDT", [ + ["1985-04-28T09:59:59+00:00", "01:59:59", "PST", 480], + ["1985-04-28T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1985-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1985-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1986" : helpers.makeTestYear("PST8PDT", [ + ["1986-04-27T09:59:59+00:00", "01:59:59", "PST", 480], + ["1986-04-27T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1986-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1986-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1987" : helpers.makeTestYear("PST8PDT", [ + ["1987-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1987-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1987-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1987-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1988" : helpers.makeTestYear("PST8PDT", [ + ["1988-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1988-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1988-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1988-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1989" : helpers.makeTestYear("PST8PDT", [ + ["1989-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1989-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1989-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1989-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1990" : helpers.makeTestYear("PST8PDT", [ + ["1990-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["1990-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1990-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1990-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1991" : helpers.makeTestYear("PST8PDT", [ + ["1991-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1991-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1991-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1991-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1992" : helpers.makeTestYear("PST8PDT", [ + ["1992-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1992-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1992-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1992-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1993" : helpers.makeTestYear("PST8PDT", [ + ["1993-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1993-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1993-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1993-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1994" : helpers.makeTestYear("PST8PDT", [ + ["1994-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["1994-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1994-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1994-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1995" : helpers.makeTestYear("PST8PDT", [ + ["1995-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["1995-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1995-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1995-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1996" : helpers.makeTestYear("PST8PDT", [ + ["1996-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["1996-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1996-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1996-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1997" : helpers.makeTestYear("PST8PDT", [ + ["1997-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["1997-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1997-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1997-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1998" : helpers.makeTestYear("PST8PDT", [ + ["1998-04-05T09:59:59+00:00", "01:59:59", "PST", 480], + ["1998-04-05T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1998-10-25T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1998-10-25T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "1999" : helpers.makeTestYear("PST8PDT", [ + ["1999-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["1999-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["1999-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["1999-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2000" : helpers.makeTestYear("PST8PDT", [ + ["2000-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2000-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2000-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2000-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2001" : helpers.makeTestYear("PST8PDT", [ + ["2001-04-01T09:59:59+00:00", "01:59:59", "PST", 480], + ["2001-04-01T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2001-10-28T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2001-10-28T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2002" : helpers.makeTestYear("PST8PDT", [ + ["2002-04-07T09:59:59+00:00", "01:59:59", "PST", 480], + ["2002-04-07T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2002-10-27T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2002-10-27T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2003" : helpers.makeTestYear("PST8PDT", [ + ["2003-04-06T09:59:59+00:00", "01:59:59", "PST", 480], + ["2003-04-06T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2003-10-26T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2003-10-26T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2004" : helpers.makeTestYear("PST8PDT", [ + ["2004-04-04T09:59:59+00:00", "01:59:59", "PST", 480], + ["2004-04-04T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2004-10-31T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2004-10-31T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2005" : helpers.makeTestYear("PST8PDT", [ + ["2005-04-03T09:59:59+00:00", "01:59:59", "PST", 480], + ["2005-04-03T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2005-10-30T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2005-10-30T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2006" : helpers.makeTestYear("PST8PDT", [ + ["2006-04-02T09:59:59+00:00", "01:59:59", "PST", 480], + ["2006-04-02T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2006-10-29T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2006-10-29T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2007" : helpers.makeTestYear("PST8PDT", [ + ["2007-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2007-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2007-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2007-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2008" : helpers.makeTestYear("PST8PDT", [ + ["2008-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2008-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2008-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2008-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2009" : helpers.makeTestYear("PST8PDT", [ + ["2009-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2009-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2009-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2009-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2010" : helpers.makeTestYear("PST8PDT", [ + ["2010-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2010-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2010-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2010-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2011" : helpers.makeTestYear("PST8PDT", [ + ["2011-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2011-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2011-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2011-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2012" : helpers.makeTestYear("PST8PDT", [ + ["2012-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2012-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2012-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2012-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2013" : helpers.makeTestYear("PST8PDT", [ + ["2013-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2013-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2013-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2013-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2014" : helpers.makeTestYear("PST8PDT", [ + ["2014-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2014-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2014-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2014-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2015" : helpers.makeTestYear("PST8PDT", [ + ["2015-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2015-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2015-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2015-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2016" : helpers.makeTestYear("PST8PDT", [ + ["2016-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2016-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2016-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2016-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2017" : helpers.makeTestYear("PST8PDT", [ + ["2017-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2017-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2017-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2017-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2018" : helpers.makeTestYear("PST8PDT", [ + ["2018-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2018-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2018-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2018-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2019" : helpers.makeTestYear("PST8PDT", [ + ["2019-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2019-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2019-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2019-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2020" : helpers.makeTestYear("PST8PDT", [ + ["2020-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2020-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2020-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2020-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2021" : helpers.makeTestYear("PST8PDT", [ + ["2021-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2021-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2021-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2021-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2022" : helpers.makeTestYear("PST8PDT", [ + ["2022-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2022-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2022-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2022-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2023" : helpers.makeTestYear("PST8PDT", [ + ["2023-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2023-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2023-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2023-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2024" : helpers.makeTestYear("PST8PDT", [ + ["2024-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2024-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2024-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2024-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2025" : helpers.makeTestYear("PST8PDT", [ + ["2025-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2025-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2025-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2025-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2026" : helpers.makeTestYear("PST8PDT", [ + ["2026-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2026-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2026-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2026-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2027" : helpers.makeTestYear("PST8PDT", [ + ["2027-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2027-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2027-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2027-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2028" : helpers.makeTestYear("PST8PDT", [ + ["2028-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2028-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2028-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2028-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2029" : helpers.makeTestYear("PST8PDT", [ + ["2029-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2029-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2029-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2029-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2030" : helpers.makeTestYear("PST8PDT", [ + ["2030-03-10T09:59:59+00:00", "01:59:59", "PST", 480], + ["2030-03-10T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2030-11-03T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2030-11-03T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2031" : helpers.makeTestYear("PST8PDT", [ + ["2031-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2031-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2031-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2031-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2032" : helpers.makeTestYear("PST8PDT", [ + ["2032-03-14T09:59:59+00:00", "01:59:59", "PST", 480], + ["2032-03-14T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2032-11-07T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2032-11-07T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2033" : helpers.makeTestYear("PST8PDT", [ + ["2033-03-13T09:59:59+00:00", "01:59:59", "PST", 480], + ["2033-03-13T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2033-11-06T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2033-11-06T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2034" : helpers.makeTestYear("PST8PDT", [ + ["2034-03-12T09:59:59+00:00", "01:59:59", "PST", 480], + ["2034-03-12T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2034-11-05T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2034-11-05T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2035" : helpers.makeTestYear("PST8PDT", [ + ["2035-03-11T09:59:59+00:00", "01:59:59", "PST", 480], + ["2035-03-11T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2035-11-04T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2035-11-04T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2036" : helpers.makeTestYear("PST8PDT", [ + ["2036-03-09T09:59:59+00:00", "01:59:59", "PST", 480], + ["2036-03-09T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2036-11-02T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2036-11-02T09:00:00+00:00", "01:00:00", "PST", 480] + ]), + + "2037" : helpers.makeTestYear("PST8PDT", [ + ["2037-03-08T09:59:59+00:00", "01:59:59", "PST", 480], + ["2037-03-08T10:00:00+00:00", "03:00:00", "PDT", 420], + ["2037-11-01T08:59:59+00:00", "01:59:59", "PDT", 420], + ["2037-11-01T09:00:00+00:00", "01:00:00", "PST", 480] + ]) +}; \ No newline at end of file diff --git a/tests/zones/wet.js b/tests/zones/wet.js new file mode 100644 index 00000000..1c77c741 --- /dev/null +++ b/tests/zones/wet.js @@ -0,0 +1,432 @@ +"use strict"; + +var helpers = require("./../../tests/helpers/helpers"); + +exports["WET"] = { + "1977" : helpers.makeTestYear("WET", [ + ["1977-04-03T00:59:59+00:00", "00:59:59", "WET", 0], + ["1977-04-03T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1977-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1977-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1978" : helpers.makeTestYear("WET", [ + ["1978-04-02T00:59:59+00:00", "00:59:59", "WET", 0], + ["1978-04-02T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1978-10-01T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1978-10-01T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1979" : helpers.makeTestYear("WET", [ + ["1979-04-01T00:59:59+00:00", "00:59:59", "WET", 0], + ["1979-04-01T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1979-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1979-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1980" : helpers.makeTestYear("WET", [ + ["1980-04-06T00:59:59+00:00", "00:59:59", "WET", 0], + ["1980-04-06T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1980-09-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1980-09-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1981" : helpers.makeTestYear("WET", [ + ["1981-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1981-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1981-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1981-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1982" : helpers.makeTestYear("WET", [ + ["1982-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1982-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1982-09-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1982-09-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1983" : helpers.makeTestYear("WET", [ + ["1983-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1983-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1983-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1983-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1984" : helpers.makeTestYear("WET", [ + ["1984-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1984-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1984-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1984-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1985" : helpers.makeTestYear("WET", [ + ["1985-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1985-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1985-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1985-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1986" : helpers.makeTestYear("WET", [ + ["1986-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1986-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1986-09-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1986-09-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1987" : helpers.makeTestYear("WET", [ + ["1987-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1987-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1987-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1987-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1988" : helpers.makeTestYear("WET", [ + ["1988-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1988-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1988-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1988-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1989" : helpers.makeTestYear("WET", [ + ["1989-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["1989-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1989-09-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1989-09-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1990" : helpers.makeTestYear("WET", [ + ["1990-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["1990-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1990-09-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1990-09-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1991" : helpers.makeTestYear("WET", [ + ["1991-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1991-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1991-09-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1991-09-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1992" : helpers.makeTestYear("WET", [ + ["1992-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1992-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1992-09-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1992-09-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1993" : helpers.makeTestYear("WET", [ + ["1993-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1993-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1993-09-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1993-09-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1994" : helpers.makeTestYear("WET", [ + ["1994-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["1994-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1994-09-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1994-09-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1995" : helpers.makeTestYear("WET", [ + ["1995-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["1995-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1995-09-24T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1995-09-24T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1996" : helpers.makeTestYear("WET", [ + ["1996-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["1996-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1996-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1996-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1997" : helpers.makeTestYear("WET", [ + ["1997-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["1997-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1997-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1997-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1998" : helpers.makeTestYear("WET", [ + ["1998-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["1998-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1998-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1998-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "1999" : helpers.makeTestYear("WET", [ + ["1999-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["1999-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["1999-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["1999-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2000" : helpers.makeTestYear("WET", [ + ["2000-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2000-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2000-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2000-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2001" : helpers.makeTestYear("WET", [ + ["2001-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2001-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2001-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2001-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2002" : helpers.makeTestYear("WET", [ + ["2002-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2002-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2002-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2002-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2003" : helpers.makeTestYear("WET", [ + ["2003-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2003-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2003-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2003-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2004" : helpers.makeTestYear("WET", [ + ["2004-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2004-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2004-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2004-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2005" : helpers.makeTestYear("WET", [ + ["2005-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2005-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2005-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2005-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2006" : helpers.makeTestYear("WET", [ + ["2006-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2006-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2006-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2006-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2007" : helpers.makeTestYear("WET", [ + ["2007-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2007-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2007-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2007-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2008" : helpers.makeTestYear("WET", [ + ["2008-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2008-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2008-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2008-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2009" : helpers.makeTestYear("WET", [ + ["2009-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2009-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2009-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2009-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2010" : helpers.makeTestYear("WET", [ + ["2010-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2010-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2010-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2010-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2011" : helpers.makeTestYear("WET", [ + ["2011-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2011-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2011-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2011-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2012" : helpers.makeTestYear("WET", [ + ["2012-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2012-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2012-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2012-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2013" : helpers.makeTestYear("WET", [ + ["2013-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2013-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2013-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2013-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2014" : helpers.makeTestYear("WET", [ + ["2014-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2014-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2014-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2014-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2015" : helpers.makeTestYear("WET", [ + ["2015-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2015-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2015-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2015-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2016" : helpers.makeTestYear("WET", [ + ["2016-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2016-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2016-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2016-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2017" : helpers.makeTestYear("WET", [ + ["2017-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2017-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2017-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2017-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2018" : helpers.makeTestYear("WET", [ + ["2018-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2018-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2018-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2018-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2019" : helpers.makeTestYear("WET", [ + ["2019-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2019-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2019-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2019-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2020" : helpers.makeTestYear("WET", [ + ["2020-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2020-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2020-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2020-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2021" : helpers.makeTestYear("WET", [ + ["2021-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2021-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2021-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2021-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2022" : helpers.makeTestYear("WET", [ + ["2022-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2022-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2022-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2022-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2023" : helpers.makeTestYear("WET", [ + ["2023-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2023-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2023-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2023-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2024" : helpers.makeTestYear("WET", [ + ["2024-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2024-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2024-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2024-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2025" : helpers.makeTestYear("WET", [ + ["2025-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2025-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2025-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2025-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2026" : helpers.makeTestYear("WET", [ + ["2026-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2026-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2026-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2026-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2027" : helpers.makeTestYear("WET", [ + ["2027-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2027-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2027-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2027-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2028" : helpers.makeTestYear("WET", [ + ["2028-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2028-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2028-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2028-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2029" : helpers.makeTestYear("WET", [ + ["2029-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2029-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2029-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2029-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2030" : helpers.makeTestYear("WET", [ + ["2030-03-31T00:59:59+00:00", "00:59:59", "WET", 0], + ["2030-03-31T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2030-10-27T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2030-10-27T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2031" : helpers.makeTestYear("WET", [ + ["2031-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2031-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2031-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2031-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2032" : helpers.makeTestYear("WET", [ + ["2032-03-28T00:59:59+00:00", "00:59:59", "WET", 0], + ["2032-03-28T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2032-10-31T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2032-10-31T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2033" : helpers.makeTestYear("WET", [ + ["2033-03-27T00:59:59+00:00", "00:59:59", "WET", 0], + ["2033-03-27T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2033-10-30T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2033-10-30T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2034" : helpers.makeTestYear("WET", [ + ["2034-03-26T00:59:59+00:00", "00:59:59", "WET", 0], + ["2034-03-26T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2034-10-29T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2034-10-29T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2035" : helpers.makeTestYear("WET", [ + ["2035-03-25T00:59:59+00:00", "00:59:59", "WET", 0], + ["2035-03-25T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2035-10-28T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2035-10-28T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2036" : helpers.makeTestYear("WET", [ + ["2036-03-30T00:59:59+00:00", "00:59:59", "WET", 0], + ["2036-03-30T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2036-10-26T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2036-10-26T01:00:00+00:00", "01:00:00", "WET", 0] + ]), + + "2037" : helpers.makeTestYear("WET", [ + ["2037-03-29T00:59:59+00:00", "00:59:59", "WET", 0], + ["2037-03-29T01:00:00+00:00", "02:00:00", "WEST", -60], + ["2037-10-25T00:59:59+00:00", "01:59:59", "WEST", -60], + ["2037-10-25T01:00:00+00:00", "01:00:00", "WET", 0] + ]) +}; \ No newline at end of file diff --git a/tz b/tz deleted file mode 160000 index f599ad15..00000000 --- a/tz +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f599ad15ce247473d28c179ff4d836dfcdbd0ca5